[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:27]accept exits with 7 [03:18:27]New connection [03:18:27]New thread 3067293028 created [03:18:27]Thread 3067149668 joined [03:18:27]Waiting for new connection... [03:18:27] Sock 7.Parse request [03:18:27]Sock 7.Check first char [03:18:27]Sock 7.First char is OK [03:18:27]request: POST /json_proto HTTP/1.0 [03:18:27]Method: POST [03:18:27]URL: /json_proto [03:18:27]Method is POST - this is cgi request [03:18:27]url: /json_proto [03:18:27]query_string will be loaded in cgi processing [03:18:27]execute_cgi json_proto POST (null) [03:18:27]execute_cgi path=json_proto method=POST [03:18:27]POST find Content-Length [03:18:27]Host: 172.17.60.7:8080 [03:18:27]Content-Length: 654 [03:18:27]Content-Type: application/json [03:18:27] [03:18:27]POST finish read [03:18:27]Found Content-Length = 654 [03:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122819", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:27]execute_script... [03:18: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)122819", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:27]POST & json_proto [03:18:27]process_json_proto [03:18:27]json parsed OK: [03:18:27]protocol is kg_v1.0 [03:18:27]action value=close_receipt [03:18:27]process_action close_receipt [03:18:27]cmd_close_receipt [03:18:27]MH_GetDate [03:18:27]Write to MH i2c: F0 00 00 CB 13 CD [03:18:27]Write i2c OK [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: F0 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: F0 09 00 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: F0 09 00 CB 13 00 06 7F B9 66 63 9B 67 64 43 [03:18:27]GetLastDocTimeStamp 1723429436 [03:18:27]current date 1723432710 [03:18:27]FM_GetShiftState [03:18:27]SAM_PROTO_GetShiftState [03:18:27]wFMCommunicate request_size=4 [03:18:27]MH_SAM_APDU [03:18:27]CAPDU: 80 13 01 00 [03:18:27]Write to MH i2c: E2 08 00 CC 13 80 13 01 00 00 00 00 00 5C [03:18:27]Write i2c OK [03:18:27]MH_I2C_Read... [03:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:27]Read from MH i2c: E2 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: E2 0E 00 [03:18:27]MH_I2C_Read... [03:18:27]Read from MH i2c: E2 0E 00 CC 13 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 BA [03:18:27]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [03:18:27]wFMCommunicate OK [03:18:27]SAM_PROTO_GetShiftState done [03:18:27]FM_GetShiftState done [03:18:27]opened in 1723422684 [03:18:27]opened+sec_in_day 1723509084 [03:18:27]quantity*price = 9500 [03:18:27]sum+1 = 9501 [03:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 7 12.08.2024 03:18 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52689 ФПД: 262359578642747 /tax-web-control/client/api/v1/ticket?date=20240812T031830&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52689&fm=262359578642747&tin=02508201610067®Number=0000000000090834&sum=9500 0 [03:18:28]StoreToDocumentArchive [03:18:28]shift 447 fd 52689 [03:18:28]save to /storage/0447/doc_00052689 [03:18:28]save last doc name /storage/0447/doc_00052689 to /storage/kkm_last_doc_name [03:18:28]save OK [03:18:28]Clear old archive folders... [03:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=293 [03:18:28]tlvbuf is 012AC940 [03:18:28]SAM_PROTO_ClearQueue [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 09 00 00 [03:18:28]Write to MH i2c: E2 08 00 D9 13 80 09 00 00 00 00 00 00 5E [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [03:18:28]RAPDU: 90 00 [03:18:28]wFMCommunicate OK [03:18:28]SAM_PROTO_ClearQueue done [03:18:28]KKMCreateOFDPacket [03:18:28]OFDProtocolAddRootSTLVToBuf [03:18:28]FM_MakeSignedData [03:18:28]FM_MakeSignedData [03:18:28]SAM_PROTO_SignData [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 0D 01 02 [03:18:28]Write to MH i2c: E2 08 00 DA 13 80 0D 01 02 00 00 00 00 66 [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [03:18:28]RAPDU: 90 00 [03:18:28]wFMCommunicate OK [03:18:28]wFMCommunicate request_size=255 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 7F B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [03:18:28]Write to MH i2c: E2 02 01 DB 13 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 7F B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 71 [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [03:18:28]RAPDU: 90 00 [03:18:28]wFMCommunicate OK [03:18:28]wFMCommunicate request_size=52 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D1 CD 00 00 35 04 06 00 EE 9D 59 7D 09 3B [03:18:28]Write to MH i2c: E2 37 00 DC 13 80 0D 02 02 2F 00 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D1 CD 00 00 35 04 06 00 EE 9D 59 7D 09 3B 00 00 6E [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 03 00 DC 13 00 90 00 63 [03:18:28]RAPDU: 90 00 [03:18:28]wFMCommunicate OK [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 0D 03 02 [03:18:28]Write to MH i2c: E2 08 00 DD 13 80 0D 03 02 00 00 00 00 6B [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 0B 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 0B 00 DD 13 00 C0 DD DE 94 AF 20 18 D5 90 00 37 [03:18:28]RAPDU: C0 DD DE 94 AF 20 18 D5 90 00 [03:18:28]wFMCommunicate OK [03:18:28]SAM_PROTO_SignData done [03:18:28]FM_MakeSignedData done [03:18:28]CreateOFDProtocolMessage [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 11 00 00 [03:18:28]Write to MH i2c: E2 08 00 DE 13 80 11 00 00 00 00 00 00 6B [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 17 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 17 00 DE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 BE [03:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [03:18:28]wFMCommunicate OK [03:18:28]CreateOFDProtocolMessage done [03:18:28]OFDSenderStorePacket 52689 [03:18:28]StoreOFDPacket docnum=52689 [03:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 03 C8 31 01 A1 8E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 7F B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D1 CD 00 00 35 04 06 00 EE 9D 59 7D 09 3B C0 DD DE 94 AF 20 18 D5 [03:18:28]CheckFolder [03:18:28]dirname=/storage/ofd_packets [03:18:28]CheckFolder done [03:18:28]ProducePacketName [03:18:28]name=ofd_packets/00052689 [03:18:28]NVStorageSaveData ofd_packets/00052689 [03:18:28]File name is /storage/ofd_packets/00052689 [03:18:28]Write 343 bytes [03:18:28]NVStorageSaveData done [03:18:28]OFDSenderStorePacket done [03:18:28]KKMCreateOFDPacket done [03:18:28]NVStorageSaveData kkm_last_timestamp [03:18:28]File name is /storage/kkm_last_timestamp [03:18:28]Write 4 bytes [03:18:28]NVStorageSaveData done [03:18:28]ExternCall_PrintAddStr [03:18:28]wPrintStart [03:18:28]Write to MH i2c: 01 00 00 DF 13 F2 [03:18:28]OFD Sender: Processing packet 52689 [packets to send 55, broken 54] [03:18:28]ProducePacketName [03:18:28]name=ofd_packets/00052689 [03:18:28]OFD Sender: To server: pG, [03:18:28]CommunicateWithHost lk.salyk.kg:30040 [03:18:28]ConnectInit lk.salyk.kg [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: 01 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: 01 07 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: 01 07 00 DF 13 00 00 00 00 00 FF 0F 07 [03:18:28]RasterBufferAndPrint [03:18:28]line Счет N : (3)122819 [03:18:28]line ИНН: 02508201610067 [03:18:28]line Контрольно-Кассовый Чек [03:18:28]line ПРОДАЖА [03:18:28]line Товар: 4700000480050 [03:18:28]line Напиток Nitro Energy эн green ж/б 0,45л [03:18:28]line 1.000 * 95.00 [03:18:28]line = 95.00 [03:18:28]line НДС 12% НСП 1% [03:18:28]line > о реализуемом товаре [03:18:28]line ИТОГО: 95.00 [03:18:28]line НСП 1% : 0.84 [03:18:28]line НДС 12% : 10.09 [03:18:28]line Наличными: 95.00 [03:18:28]line Безнал.: 0.00 [03:18:28]line Место: АЗС № 54 "Партнер Нефть" [03:18:28]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [03:18:28]line СНО: Общий режим [03:18:28]line Чек 7 12.08.2024 03:18 [03:18:28]line Смена: 447 ФФД: 1.0 [03:18:28]line ЗНМ: 0300000007 [03:18:28]line РНМ: 0000000000090834 [03:18:28]line Версия ККМ: 001 [03:18:28]line ФМ: 0000000000874715 [03:18:28]line ФД: 52689 [03:18:28]line ФПД: 262359578642747 [03:18:28]line /tax-web-control/client/api/v1/ticket?date=20240812T031830&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52689&fm=262359578642747&tin=02508201610067®Number=0000000000090834&sum=9500 [03:18:29]Connected sock=10 [03:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 03 C8 31 01 A1 8E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 7F B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D1 CD 00 00 35 04 06 00 EE 9D 59 7D 09 3B C0 DD DE 94 AF 20 18 D5 [03:18:29]line 0 [03:18:29]written 0, free lines is 4095 [03:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 BE 79 47 00 ED 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D1 CD 00 00 F4 03 04 00 A0 26 B9 66 B6 04 01 00 00 CC A6 42 17 1B CC 0D 23 [03:18:29]CommunicateWithHost err = 0 [03:18:29]CheckOFDResponse [03:18:29]1017 (14) - 77093643461234 [03:18:29]1041 (16) - 0000000000874715 [03:18:29]1040 (4) - 52689 [03:18:29]1012 (4) - 11.08.2024 21:01 [03:18:29]1206 (1) - 0 [03:18:29]OFD Sender: Remove packet 52689 [03:18:29]ProducePacketName [03:18:29]name=ofd_packets/00052689 [03:18:29]NVStorageDeleteData [03:18:29]Write to MH i2c: 01 00 00 07 14 1B [03:18:29]Write i2c OK [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: 01 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: 01 07 00 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: 01 07 00 07 14 00 00 00 00 00 C8 0C F6 [03:18:29]RasterBufferAndPrint [03:18:29]line [03:18:29]line [03:18:29]line [03:18:29]line [03:18:29]line [03:18:29]written 0, free lines is 3277 [03:18:29]MH_Cut [03:18:29]Write to MH i2c: D1 01 00 0E 14 01 F4 [03:18:29]Write i2c OK [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: D1 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: D1 01 00 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: D1 01 00 0E 14 00 F3 [03:18:29]Write to MH i2c: 01 00 00 0F 14 23 [03:18:29]Write i2c OK [03:18:29]MH_I2C_Read... [03:18:29]OFD Sender: No OFD packet to send [03:18:30]*** Cut start [03:18:30]*** Purtial cut [03:18:30]*** Stage 1: CUTSNS_PIN = 1 [03:18:30]Read from MH i2c: 01 [03:18:30]MH_I2C_Read... [03:18:30]*** Stop cut motor [03:18:30]*** Cut end [03:18:30]Read from MH i2c: 01 07 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 FF 0F 38 [03:18:30]process_action close_receipt done [03:18:30]requested_data is exist [03:18:30]produce_requested_data [03:18:30]requested_item fm.sn is exist - process it [03:18:30]wFMCommunicate request_size=4 [03:18:30]MH_SAM_APDU [03:18:30]CAPDU: 80 11 00 00 [03:18:30]Write to MH i2c: E2 08 00 10 14 80 11 00 00 00 00 00 00 9E [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:30]Read from MH i2c: E2 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 17 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 17 00 10 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 F1 [03:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [03:18:30]wFMCommunicate OK [03:18:30]requested_item fd.num is exist - process it [03:18:30]SAM_PROTO_GetFieldsCounters [03:18:30]wFMCommunicate request_size=4 [03:18:30]MH_SAM_APDU [03:18:30]CAPDU: 80 13 00 00 [03:18:30]Write to MH i2c: E2 08 00 11 14 80 13 00 00 00 00 00 00 A1 [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:31]Read from MH i2c: E2 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: E2 62 00 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: E2 62 00 11 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D1 CD 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [03:18: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D1 CD 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:18:31]wFMCommunicate OK [03:18:31]SAM_PROTO_GetFieldsCounters done [03:18:31]requested_item shift.num is exist - process it [03:18:31]requested_item shift.opened is exist - process it [03:18:31]req_shift_opened [03:18:31]FM_GetShiftState [03:18:31]SAM_PROTO_GetShiftState [03:18:31]wFMCommunicate request_size=4 [03:18:31]MH_SAM_APDU [03:18:31]CAPDU: 80 13 01 00 [03:18:31]Write to MH i2c: E2 08 00 12 14 80 13 01 00 00 00 00 00 A3 [03:18:31]Write i2c OK [03:18:31]MH_I2C_Read... [03:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:31]Read from MH i2c: E2 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: E2 0E 00 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: E2 0E 00 12 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 01 [03:18:31]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [03:18:31]wFMCommunicate OK [03:18:31]SAM_PROTO_GetShiftState done [03:18:31]FM_GetShiftState done [03:18:31]req_shift_opened done [03:18:31]requested_item shift.open_date is exist - process it [03:18:31]req_shift_open_date [03:18:31]req_shift_open_date done [03:18:31]produce_requested_data done [03:18:31]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52689,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [03:18:31]process_action_free close_receipt [03:18:31]json_value_free [03:18:31]json_value_free done [03:18:31]process_json_proto returns [03:18:31]Send response to host [03:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52689,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [03:18:31]free response buf [03:18:31]execute_script done [03:18:31]execute_script returns [03:18:31]free content buf [03:18:31]Sock 7.Close socket [03:18:31]Sock 7.Thread stoped [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:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]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:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:32]accept exits with 9 [03:44:32]New connection [03:44:32]New thread 3067149668 created [03:44:32]Thread 3067293028 joined [03:44:32]Waiting for new connection... [03:44:32] Sock 9.Parse request [03:44:32]Sock 9.Check first char [03:44:32]Sock 9.First char is OK [03:44:32]request: POST /json_proto HTTP/1.0 [03:44:32]Method: POST [03:44:32]URL: /json_proto [03:44:32]Method is POST - this is cgi request [03:44:32]url: /json_proto [03:44:32]query_string will be loaded in cgi processing [03:44:32]execute_cgi json_proto POST (null) [03:44:32]execute_cgi path=json_proto method=POST [03:44:32]POST find Content-Length [03:44:32]Host: 172.17.60.7:8080 [03:44:32]Content-Length: 907 [03:44:32]Content-Type: application/json [03:44:32] [03:44:32]POST finish read [03:44:32]Found Content-Length = 907 [03:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122820", "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": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:32]execute_script... [03:44: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)122820", "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": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:32]POST & json_proto [03:44:32]process_json_proto [03:44:32]json parsed OK: [03:44:32]protocol is kg_v1.0 [03:44:32]action value=close_receipt [03:44:32]process_action close_receipt [03:44:32]cmd_close_receipt [03:44:32]MH_GetDate [03:44:32]Write to MH i2c: F0 00 00 13 14 16 [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: F0 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: F0 09 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: F0 09 00 13 14 00 23 85 B9 66 63 9B 67 64 AF [03:44:32]GetLastDocTimeStamp 1723432710 [03:44:32]current date 1723434275 [03:44:32]FM_GetShiftState [03:44:32]SAM_PROTO_GetShiftState [03:44:32]wFMCommunicate request_size=4 [03:44:32]MH_SAM_APDU [03:44:32]CAPDU: 80 13 01 00 [03:44:32]Write to MH i2c: E2 08 00 14 14 80 13 01 00 00 00 00 00 A5 [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 0E 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 0E 00 14 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 03 [03:44:32]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [03:44:32]wFMCommunicate OK [03:44:32]SAM_PROTO_GetShiftState done [03:44:32]FM_GetShiftState done [03:44:32]opened in 1723422684 [03:44:32]opened+sec_in_day 1723509084 [03:44:32]quantity*price = 12500 [03:44:32]sum+1 = 12501 [03:44:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48746717 Сигареты Winston XStyle Caster + Dream M 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 8 12.08.2024 03:44 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52690 ФПД: 71347408864053 /tax-web-control/client/api/v1/ticket?date=20240812T034435&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52690&fm=71347408864053&tin=02508201610067®Number=0000000000090834&sum=26800 0 [03:44:33]StoreToDocumentArchive [03:44:33]shift 447 fd 52690 [03:44:33]save to /storage/0447/doc_00052690 [03:44:33]save last doc name /storage/0447/doc_00052690 to /storage/kkm_last_doc_name [03:44:33]save OK [03:44:33]Clear old archive folders... [03:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=393 [03:44:33]tlvbuf is 01280D60 [03:44:33]SAM_PROTO_ClearQueue [03:44:33]wFMCommunicate request_size=4 [03:44:33]MH_SAM_APDU [03:44:33]CAPDU: 80 09 00 00 [03:44:33]Write to MH i2c: E2 08 00 21 14 80 09 00 00 00 00 00 00 A7 [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:33]Read from MH i2c: E2 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: E2 03 00 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [03:44:33]RAPDU: 90 00 [03:44:33]wFMCommunicate OK [03:44:33]SAM_PROTO_ClearQueue done [03:44:33]KKMCreateOFDPacket [03:44:33]OFDProtocolAddRootSTLVToBuf [03:44:33]FM_MakeSignedData [03:44:33]FM_MakeSignedData [03:44:33]SAM_PROTO_SignData [03:44:33]wFMCommunicate request_size=4 [03:44:33]MH_SAM_APDU [03:44:33]CAPDU: 80 0D 01 02 [03:44:33]Write to MH i2c: E2 08 00 22 14 80 0D 01 02 00 00 00 00 AF [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:33]Read from MH i2c: E2 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: E2 03 00 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [03:44:33]RAPDU: 90 00 [03:44:33]wFMCommunicate OK [03:44:33]wFMCommunicate request_size=255 [03:44:33]MH_SAM_APDU [03:44:33]CAPDU: 80 0D 02 02 FA 03 00 89 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 [03:44:33]Write to MH i2c: E2 02 01 23 14 80 0D 02 02 FA 00 03 00 89 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 CB [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:33]Read from MH i2c: E2 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: E2 03 00 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [03:44:33]RAPDU: 90 00 [03:44:33]wFMCommunicate OK [03:44:33]wFMCommunicate request_size=152 [03:44:33]MH_SAM_APDU [03:44:33]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 23 85 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D2 CD 00 00 35 04 06 00 40 E3 DC F6 03 35 [03:44:33]Write to MH i2c: E2 9B 00 24 14 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 23 85 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D2 CD 00 00 35 04 06 00 40 E3 DC F6 03 35 00 00 88 [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:34]Read from MH i2c: E2 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: E2 03 00 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [03:44:34]RAPDU: 90 00 [03:44:34]wFMCommunicate OK [03:44:34]wFMCommunicate request_size=4 [03:44:34]MH_SAM_APDU [03:44:34]CAPDU: 80 0D 03 02 [03:44:34]Write to MH i2c: E2 08 00 25 14 80 0D 03 02 00 00 00 00 B4 [03:44:34]Write i2c OK [03:44:34]MH_I2C_Read... [03:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:34]Read from MH i2c: E2 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: E2 0B 00 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: E2 0B 00 25 14 00 D0 65 76 7F C8 85 FE DF 90 00 09 [03:44:34]RAPDU: D0 65 76 7F C8 85 FE DF 90 00 [03:44:34]wFMCommunicate OK [03:44:34]SAM_PROTO_SignData done [03:44:34]FM_MakeSignedData done [03:44:34]CreateOFDProtocolMessage [03:44:34]wFMCommunicate request_size=4 [03:44:34]MH_SAM_APDU [03:44:34]CAPDU: 80 11 00 00 [03:44:34]Write to MH i2c: E2 08 00 26 14 80 11 00 00 00 00 00 00 B4 [03:44:34]Write i2c OK [03:44:34]MH_I2C_Read... [03:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:34]Read from MH i2c: E2 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: E2 17 00 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: E2 17 00 26 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 07 [03:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [03:44:34]wFMCommunicate OK [03:44:34]CreateOFDProtocolMessage done [03:44:34]OFDSenderStorePacket 52690 [03:44:34]StoreOFDPacket docnum=52690 [03:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 9D 01 00 00 9C 7E 95 01 8B 57 5A 03 01 00 03 00 89 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 23 85 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D2 CD 00 00 35 04 06 00 40 E3 DC F6 03 35 D0 65 76 7F C8 85 FE DF [03:44:34]CheckFolder [03:44:34]dirname=/storage/ofd_packets [03:44:34]CheckFolder done [03:44:34]ProducePacketName [03:44:34]name=ofd_packets/00052690 [03:44:34]NVStorageSaveData ofd_packets/00052690 [03:44:34]File name is /storage/ofd_packets/00052690 [03:44:34]Write 443 bytes [03:44:34]NVStorageSaveData done [03:44:34]OFDSenderStorePacket done [03:44:34]KKMCreateOFDPacket done [03:44:34]NVStorageSaveData kkm_last_timestamp [03:44:34]File name is /storage/kkm_last_timestamp [03:44:34]Write 4 bytes [03:44:34]NVStorageSaveData done [03:44:34]ExternCall_PrintAddStr [03:44:34]wPrintStart [03:44:34]Write to MH i2c: 01 00 00 27 14 3B [03:44:34]Write i2c OK [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: 01 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: 01 07 00 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 FF 0F 50 [03:44:34]RasterBufferAndPrint [03:44:34]line Счет N : (3)122820 [03:44:34]line ИНН: 02508201610067 [03:44:34]line Контрольно-Кассовый Чек [03:44:34]line ПРОДАЖА [03:44:34]line Товар: 5449000054227 [03:44:34]line Напиток Кока-Кола 1л [03:44:34]line 1.000 * 125.00 [03:44:34]line = 125.00 [03:44:34]line НДС 12% НСП 1% [03:44:34]line > о реализуемом товаре [03:44:34]line Товар: 48746717 [03:44:34]line Сигареты Winston XStyle Caster + Dream M [03:44:34]line 1.000 * 143.00 [03:44:34]line = 143.00 [03:44:34]line НДС 12% НСП 1% [03:44:34]line > о реализуемом товаре [03:44:34]line ИТОГО: 268.00 [03:44:34]line НСП 1% : 2.37 [03:44:34]line НДС 12% : 28.46 [03:44:34]line Наличными: 268.00 [03:44:34]line Безнал.: 0.00 [03:44:34]line Место: АЗС № 54 "Партнер Нефть" [03:44:34]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [03:44:34]line СНО: Общий режим [03:44:34]line Чек 8 12.08.2024 03:44 [03:44:34]line Смена: 447 ФФД: 1.0 [03:44:34]line ЗНМ: 0300000007 [03:44:34]line РНМ: 0000000000090834 [03:44:34]line Версия ККМ: 001 [03:44:34]line ФМ: 0000000000874715 [03:44:34]line ФД: 52690 [03:44:34]line ФПД: 71347408864053 [03:44:34]line /tax-web-control/client/api/v1/ticket?date=20240812T034435&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52690&fm=71347408864053&tin=02508201610067®Number=0000000000090834&sum=26800 [03:44:34]line 0 [03:44:34]OFD Sender: Processing packet 52690 [packets to send 55, broken 54] [03:44:34]ProducePacketName [03:44:34]name=ofd_packets/00052690 [03:44:34]OFD Sender: To server: pG, [03:44:34]CommunicateWithHost lk.salyk.kg:30040 [03:44:34]ConnectInit lk.salyk.kg [03:44:34]written 0, free lines is 4095 [03:44:34]Write to MH i2c: 01 00 00 55 14 69 [03:44:34]Write i2c OK [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: 01 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: 01 07 00 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: 01 07 00 55 14 00 00 00 00 00 6D 0C E9 [03:44:34]RasterBufferAndPrint [03:44:34]line [03:44:34]line [03:44:34]line [03:44:34]line [03:44:34]line [03:44:34]written 0, free lines is 3186 [03:44:34]MH_Cut [03:44:34]Write to MH i2c: D1 01 00 5C 14 01 42 [03:44:34]Write i2c OK [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: D1 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: D1 01 00 [03:44:34]MH_I2C_Read... [03:44:34]Read from MH i2c: D1 01 00 5C 14 00 41 [03:44:34]Write to MH i2c: 01 00 00 5D 14 71 [03:44:34]Write i2c OK [03:44:34]MH_I2C_Read... [03:44:35]*** Cut start [03:44:35]*** Purtial cut [03:44:35]*** Stage 1: CUTSNS_PIN = 1 [03:44:36]Read from MH i2c: 01 [03:44:36]MH_I2C_Read... [03:44:36]*** Stop cut motor [03:44:36]*** Cut end [03:44:36]Read from MH i2c: 01 07 00 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: 01 07 00 5D 14 00 00 00 00 00 FF 0F 86 [03:44:36]process_action close_receipt done [03:44:36]requested_data is exist [03:44:36]produce_requested_data [03:44:36]requested_item fm.sn is exist - process it [03:44:36]wFMCommunicate request_size=4 [03:44:36]MH_SAM_APDU [03:44:36]CAPDU: 80 11 00 00 [03:44:36]Write to MH i2c: E2 08 00 5E 14 80 11 00 00 00 00 00 00 EC [03:44:36]Write i2c OK [03:44:36]MH_I2C_Read... [03:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:36]Read from MH i2c: E2 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: E2 17 00 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: E2 17 00 5E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 3F [03:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [03:44:36]wFMCommunicate OK [03:44:36]requested_item fd.num is exist - process it [03:44:36]SAM_PROTO_GetFieldsCounters [03:44:36]wFMCommunicate request_size=4 [03:44:36]MH_SAM_APDU [03:44:36]CAPDU: 80 13 00 00 [03:44:36]Write to MH i2c: E2 08 00 5F 14 80 13 00 00 00 00 00 00 EF [03:44:36]Write i2c OK [03:44:36]MH_I2C_Read... [03:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:36]Read from MH i2c: E2 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: E2 62 00 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: E2 62 00 5F 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D2 CD 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [03:44: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D2 CD 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:44:36]wFMCommunicate OK [03:44:36]SAM_PROTO_GetFieldsCounters done [03:44:36]requested_item shift.num is exist - process it [03:44:36]requested_item shift.opened is exist - process it [03:44:36]req_shift_opened [03:44:36]FM_GetShiftState [03:44:36]SAM_PROTO_GetShiftState [03:44:36]wFMCommunicate request_size=4 [03:44:36]MH_SAM_APDU [03:44:36]CAPDU: 80 13 01 00 [03:44:36]Write to MH i2c: E2 08 00 60 14 80 13 01 00 00 00 00 00 F1 [03:44:36]Write i2c OK [03:44:36]MH_I2C_Read... [03:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:36]Read from MH i2c: E2 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: E2 0E 00 [03:44:36]MH_I2C_Read... [03:44:36]Read from MH i2c: E2 0E 00 60 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 4F [03:44:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [03:44:36]wFMCommunicate OK [03:44:36]SAM_PROTO_GetShiftState done [03:44:36]FM_GetShiftState done [03:44:36]req_shift_opened done [03:44:36]requested_item shift.open_date is exist - process it [03:44:36]req_shift_open_date [03:44:36]req_shift_open_date done [03:44:36]produce_requested_data done [03:44:36]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52690,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [03:44:36]process_action_free close_receipt [03:44:36]json_value_free [03:44:36]json_value_free done [03:44:36]process_json_proto returns [03:44:36]Send response to host [03:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52690,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [03:44:36]free response buf [03:44:36]execute_script done [03:44:36]execute_script returns [03:44:36]free content buf [03:44:36]Sock 9.Close socket [03:44:36]Sock 9.Thread stoped [03:46:44]ConnectInit Can't connect to host [03:46:44]CommunicateWithHost connect error [03:46:44]CommunicateWithHost err = -1 [03:46:44]OFD Sender: Server communicate error [03:46:49]OFD Sender: Processing packet 52690 [packets to send 55, broken 54] [03:46:49]ProducePacketName [03:46:49]name=ofd_packets/00052690 [03:46:49]OFD Sender: To server: pG, [03:46:49]CommunicateWithHost lk.salyk.kg:30040 [03:46:49]ConnectInit lk.salyk.kg [03:46:49]Connected sock=9 [03:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 9D 01 00 00 9C 7E 95 01 8B 57 5A 03 01 00 03 00 89 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 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 23 85 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D2 CD 00 00 35 04 06 00 40 E3 DC F6 03 35 D0 65 76 7F C8 85 FE DF [03:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 DA 47 47 00 6A 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D2 CD 00 00 F4 03 04 00 45 2D B9 66 B6 04 01 00 00 CB E8 F2 A1 2D 3D A4 4D [03:46:50]CommunicateWithHost err = 0 [03:46:50]CheckOFDResponse [03:46:50]1017 (14) - 77093643461234 [03:46:50]1041 (16) - 0000000000874715 [03:46:50]1040 (4) - 52690 [03:46:50]1012 (4) - 11.08.2024 21:29 [03:46:50]1206 (1) - 0 [03:46:50]OFD Sender: Remove packet 52690 [03:46:50]ProducePacketName [03:46:50]name=ofd_packets/00052690 [03:46:50]NVStorageDeleteData [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:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57: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]accept exits with 7 [04:06:16]New connection [04:06:16]New thread 3067293028 created [04:06:16]Thread 3067149668 joined [04:06:16]Waiting for new connection... [04:06:16] Sock 7.Parse request [04:06:16]Sock 7.Check first char [04:06:16]Sock 7.First char is OK [04:06:16]request: POST /json_proto HTTP/1.0 [04:06:16]Method: POST [04:06:16]URL: /json_proto [04:06:16]Method is POST - this is cgi request [04:06:16]url: /json_proto [04:06:16]query_string will be loaded in cgi processing [04:06:16]execute_cgi json_proto POST (null) [04:06:16]execute_cgi path=json_proto method=POST [04:06:16]POST find Content-Length [04:06:16]Host: 172.17.60.7:8080 [04:06:16]Content-Length: 670 [04:06:16]Content-Type: application/json [04:06:16] [04:06:16]POST finish read [04:06:16]Found Content-Length = 670 [04:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122821", "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" ] } } [04:06:16]execute_script... [04:06:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122821", "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" ] } } [04:06:16]POST & json_proto [04:06:16]process_json_proto [04:06:16]json parsed OK: [04:06:16]protocol is kg_v1.0 [04:06:16]action value=close_receipt [04:06:16]process_action close_receipt [04:06:16]cmd_close_receipt [04:06:16]MH_GetDate [04:06:16]Write to MH i2c: F0 00 00 61 14 64 [04:06:16]Write i2c OK [04:06:16]MH_I2C_Read... [04:06:16]Read from MH i2c: F0 [04:06:16]MH_I2C_Read... [04:06:16]Read from MH i2c: F0 09 00 [04:06:16]MH_I2C_Read... [04:06:16]Read from MH i2c: F0 09 00 61 14 00 3B 8A B9 66 63 9B 67 64 1A [04:06:16]GetLastDocTimeStamp 1723434275 [04:06:16]current date 1723435579 [04:06:16]FM_GetShiftState [04:06:16]SAM_PROTO_GetShiftState [04:06:16]wFMCommunicate request_size=4 [04:06:16]MH_SAM_APDU [04:06:16]CAPDU: 80 13 01 00 [04:06:16]Write to MH i2c: E2 08 00 62 14 80 13 01 00 00 00 00 00 F3 [04:06:16]Write i2c OK [04:06:16]MH_I2C_Read... [04:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:06:16]Read from MH i2c: E2 [04:06:16]MH_I2C_Read... [04:06:16]Read from MH i2c: E2 0E 00 [04:06:16]MH_I2C_Read... [04:06:16]Read from MH i2c: E2 0E 00 62 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 51 [04:06:16]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [04:06:16]wFMCommunicate OK [04:06:16]SAM_PROTO_GetShiftState done [04:06:16]FM_GetShiftState done [04:06:16]opened in 1723422684 [04:06:16]opened+sec_in_day 1723509084 [04:06:16]quantity*price = 34000 [04:06:16]sum+1 = 34001 [04:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 9 12.08.2024 04:06 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52691 ФПД: 540841766787 /tax-web-control/client/api/v1/ticket?date=20240812T040619&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52691&fm=540841766787&tin=02508201610067®Number=0000000000090834&sum=34000 0 [04:06:17]StoreToDocumentArchive [04:06:17]shift 447 fd 52691 [04:06:17]save to /storage/0447/doc_00052691 [04:06:17]save last doc name /storage/0447/doc_00052691 to /storage/kkm_last_doc_name [04:06:17]save OK [04:06:17]Clear old archive folders... [04:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [04:06:17]tlvbuf is 012B5C10 [04:06:17]SAM_PROTO_ClearQueue [04:06:17]wFMCommunicate request_size=4 [04:06:17]MH_SAM_APDU [04:06:17]CAPDU: 80 09 00 00 [04:06:17]Write to MH i2c: E2 08 00 6F 14 80 09 00 00 00 00 00 00 F5 [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:06:17]Read from MH i2c: E2 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [04:06:17]RAPDU: 90 00 [04:06:17]wFMCommunicate OK [04:06:17]SAM_PROTO_ClearQueue done [04:06:17]KKMCreateOFDPacket [04:06:17]OFDProtocolAddRootSTLVToBuf [04:06:17]FM_MakeSignedData [04:06:17]FM_MakeSignedData [04:06:17]SAM_PROTO_SignData [04:06:17]wFMCommunicate request_size=4 [04:06:17]MH_SAM_APDU [04:06:17]CAPDU: 80 0D 01 02 [04:06:17]Write to MH i2c: E2 08 00 70 14 80 0D 01 02 00 00 00 00 FD [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:06:17]Read from MH i2c: E2 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [04:06:17]RAPDU: 90 00 [04:06:17]wFMCommunicate OK [04:06:17]wFMCommunicate request_size=255 [04:06:17]MH_SAM_APDU [04:06:17]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 09 00 00 00 F4 03 04 00 3B 8A B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 [04:06:17]Write to MH i2c: E2 02 01 71 14 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 09 00 00 00 F4 03 04 00 3B 8A B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 00 00 4E [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:06:17]Read from MH i2c: E2 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [04:06:17]RAPDU: 90 00 [04:06:17]wFMCommunicate OK [04:06:17]wFMCommunicate request_size=41 [04:06:17]MH_SAM_APDU [04:06:17]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D3 CD 00 00 35 04 06 00 00 7D EC AE 6F 83 [04:06:17]Write to MH i2c: E2 2C 00 72 14 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D3 CD 00 00 35 04 06 00 00 7D EC AE 6F 83 00 00 78 [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:06:17]Read from MH i2c: E2 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [04:06:17]RAPDU: 90 00 [04:06:17]wFMCommunicate OK [04:06:17]wFMCommunicate request_size=4 [04:06:17]MH_SAM_APDU [04:06:17]CAPDU: 80 0D 03 02 [04:06:17]Write to MH i2c: E2 08 00 73 14 80 0D 03 02 00 00 00 00 02 [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:06:17]Read from MH i2c: E2 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 0B 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 0B 00 73 14 00 D9 52 0F 35 5A 6B 74 AC 90 00 57 [04:06:17]RAPDU: D9 52 0F 35 5A 6B 74 AC 90 00 [04:06:17]wFMCommunicate OK [04:06:17]SAM_PROTO_SignData done [04:06:17]FM_MakeSignedData done [04:06:17]CreateOFDProtocolMessage [04:06:17]wFMCommunicate request_size=4 [04:06:17]MH_SAM_APDU [04:06:17]CAPDU: 80 11 00 00 [04:06:17]Write to MH i2c: E2 08 00 74 14 80 11 00 00 00 00 00 00 02 [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:06:17]Read from MH i2c: E2 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 17 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: E2 17 00 74 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 55 [04:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [04:06:17]wFMCommunicate OK [04:06:17]CreateOFDProtocolMessage done [04:06:17]OFDSenderStorePacket 52691 [04:06:17]StoreOFDPacket docnum=52691 [04:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2E 01 00 00 B9 8D 26 01 15 D1 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 09 00 00 00 F4 03 04 00 3B 8A B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D3 CD 00 00 35 04 06 00 00 7D EC AE 6F 83 D9 52 0F 35 5A 6B 74 AC [04:06:17]CheckFolder [04:06:17]dirname=/storage/ofd_packets [04:06:17]CheckFolder done [04:06:17]ProducePacketName [04:06:17]name=ofd_packets/00052691 [04:06:17]NVStorageSaveData ofd_packets/00052691 [04:06:17]File name is /storage/ofd_packets/00052691 [04:06:17]Write 332 bytes [04:06:17]NVStorageSaveData done [04:06:17]OFDSenderStorePacket done [04:06:17]KKMCreateOFDPacket done [04:06:17]NVStorageSaveData kkm_last_timestamp [04:06:17]File name is /storage/kkm_last_timestamp [04:06:17]Write 4 bytes [04:06:17]OFD Sender: Processing packet 52691 [packets to send 55, broken 54] [04:06:17]ProducePacketName [04:06:17]name=ofd_packets/00052691 [04:06:17]OFD Sender: To server: pG, [04:06:17]CommunicateWithHost lk.salyk.kg:30040 [04:06:17]ConnectInit lk.salyk.kg [04:06:17]NVStorageSaveData done [04:06:17]ExternCall_PrintAddStr [04:06:17]wPrintStart [04:06:17]Write to MH i2c: 01 00 00 75 14 89 [04:06:17]Write i2c OK [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: 01 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: 01 07 00 [04:06:17]MH_I2C_Read... [04:06:17]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 FF 0F 9E [04:06:17]RasterBufferAndPrint [04:06:17]line Счет N : (3)122821 [04:06:17]line ИНН: 02508201610067 [04:06:17]line Контрольно-Кассовый Чек [04:06:17]line ПРОДАЖА [04:06:17]line Товар: 4700000480357 [04:06:17]line Пиво шахтерское 1л ПЭТ [04:06:17]line 2.000 * 170.00 [04:06:17]line = 340.00 [04:06:17]line НДС 12% НСП 1% [04:06:17]line > о реализуемом товаре [04:06:17]line ИТОГО: 340.00 [04:06:17]line НСП 1% : 3.01 [04:06:17]line НДС 12% : 36.11 [04:06:17]line Наличными: 340.00 [04:06:17]line Безнал.: 0.00 [04:06:17]line Место: АЗС № 54 "Партнер Нефть" [04:06:17]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [04:06:17]line СНО: Общий режим [04:06:17]line Чек 9 12.08.2024 04:06 [04:06:17]line Смена: 447 ФФД: 1.0 [04:06:17]line ЗНМ: 0300000007 [04:06:17]line РНМ: 0000000000090834 [04:06:17]line Версия ККМ: 001 [04:06:17]line ФМ: 0000000000874715 [04:06:17]line ФД: 52691 [04:06:17]line ФПД: 540841766787 [04:06:18]line /tax-web-control/client/api/v1/ticket?date=20240812T040619&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52691&fm=540841766787&tin=02508201610067®Number=0000000000090834&sum=34000 [04:06:18]line 0 [04:06:18]Connected sock=11 [04:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2E 01 00 00 B9 8D 26 01 15 D1 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 09 00 00 00 F4 03 04 00 3B 8A B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D3 CD 00 00 35 04 06 00 00 7D EC AE 6F 83 D9 52 0F 35 5A 6B 74 AC [04:06:18]written 0, free lines is 4095 [04:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 18 7A 47 00 F2 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D3 CD 00 00 F4 03 04 00 D5 31 B9 66 B6 04 01 00 00 52 4E F2 61 7B 7F 4F 91 [04:06:18]CommunicateWithHost err = 0 [04:06:18]CheckOFDResponse [04:06:18]1017 (14) - 77093643461234 [04:06:18]1041 (16) - 0000000000874715 [04:06:18]1040 (4) - 52691 [04:06:18]1012 (4) - 11.08.2024 21:49 [04:06:18]1206 (1) - 0 [04:06:18]OFD Sender: Remove packet 52691 [04:06:18]ProducePacketName [04:06:18]name=ofd_packets/00052691 [04:06:18]NVStorageDeleteData [04:06:18]Write to MH i2c: 01 00 00 9C 14 B0 [04:06:18]Write i2c OK [04:06:18]MH_I2C_Read... [04:06:18]Read from MH i2c: 01 [04:06:18]MH_I2C_Read... [04:06:18]Read from MH i2c: 01 07 00 [04:06:18]MH_I2C_Read... [04:06:18]Read from MH i2c: 01 07 00 9C 14 00 00 00 00 00 DC 0C 9F [04:06:18]RasterBufferAndPrint [04:06:18]line [04:06:18]line [04:06:18]line [04:06:18]line [04:06:18]line [04:06:18]written 0, free lines is 3297 [04:06:18]MH_Cut [04:06:18]Write to MH i2c: D1 01 00 A3 14 01 89 [04:06:18]Write i2c OK [04:06:18]MH_I2C_Read... [04:06:18]Read from MH i2c: D1 [04:06:18]MH_I2C_Read... [04:06:18]Read from MH i2c: D1 01 00 [04:06:18]MH_I2C_Read... [04:06:18]Read from MH i2c: D1 01 00 A3 14 00 88 [04:06:18]Write to MH i2c: 01 00 00 A4 14 B8 [04:06:18]Write i2c OK [04:06:18]MH_I2C_Read... [04:06:18]OFD Sender: No OFD packet to send [04:06:19]*** Cut start [04:06:19]*** Purtial cut [04:06:19]*** Stage 1: CUTSNS_PIN = 1 [04:06:19]Read from MH i2c: 01 [04:06:19]MH_I2C_Read... [04:06:19]*** Stop cut motor [04:06:19]*** Cut end [04:06:19]Read from MH i2c: 01 07 00 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: 01 07 00 A4 14 00 00 00 00 00 FF 0F CD [04:06:19]process_action close_receipt done [04:06:19]requested_data is exist [04:06:19]produce_requested_data [04:06:19]requested_item fm.sn is exist - process it [04:06:19]wFMCommunicate request_size=4 [04:06:19]MH_SAM_APDU [04:06:19]CAPDU: 80 11 00 00 [04:06:19]Write to MH i2c: E2 08 00 A5 14 80 11 00 00 00 00 00 00 33 [04:06:19]Write i2c OK [04:06:19]MH_I2C_Read... [04:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:06:19]Read from MH i2c: E2 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: E2 17 00 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: E2 17 00 A5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 86 [04:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [04:06:19]wFMCommunicate OK [04:06:19]requested_item fd.num is exist - process it [04:06:19]SAM_PROTO_GetFieldsCounters [04:06:19]wFMCommunicate request_size=4 [04:06:19]MH_SAM_APDU [04:06:19]CAPDU: 80 13 00 00 [04:06:19]Write to MH i2c: E2 08 00 A6 14 80 13 00 00 00 00 00 00 36 [04:06:19]Write i2c OK [04:06:19]MH_I2C_Read... [04:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:06:19]Read from MH i2c: E2 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: E2 62 00 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: E2 62 00 A6 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D3 CD 00 00 0E 04 04 00 BF 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 D1 [04:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D3 CD 00 00 0E 04 04 00 BF 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 [04:06:19]wFMCommunicate OK [04:06:19]SAM_PROTO_GetFieldsCounters done [04:06:19]requested_item shift.num is exist - process it [04:06:19]requested_item shift.opened is exist - process it [04:06:19]req_shift_opened [04:06:19]FM_GetShiftState [04:06:19]SAM_PROTO_GetShiftState [04:06:19]wFMCommunicate request_size=4 [04:06:19]MH_SAM_APDU [04:06:19]CAPDU: 80 13 01 00 [04:06:19]Write to MH i2c: E2 08 00 A7 14 80 13 01 00 00 00 00 00 38 [04:06:19]Write i2c OK [04:06:19]MH_I2C_Read... [04:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:06:19]Read from MH i2c: E2 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: E2 0E 00 [04:06:19]MH_I2C_Read... [04:06:19]Read from MH i2c: E2 0E 00 A7 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 96 [04:06:19]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [04:06:19]wFMCommunicate OK [04:06:19]SAM_PROTO_GetShiftState done [04:06:19]FM_GetShiftState done [04:06:19]req_shift_opened done [04:06:19]requested_item shift.open_date is exist - process it [04:06:19]req_shift_open_date [04:06:19]req_shift_open_date done [04:06:19]produce_requested_data done [04:06:19]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52691,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [04:06:19]process_action_free close_receipt [04:06:19]json_value_free [04:06:19]json_value_free done [04:06:19]process_json_proto returns [04:06:19]Send response to host [04:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52691,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [04:06:19]free response buf [04:06:19]execute_script done [04:06:19]execute_script returns [04:06:19]free content buf [04:06:19]Sock 7.Close socket [04:06:19]Sock 7.Thread stoped [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:52]accept exits with 9 [04:42:52]New connection [04:42:52]New thread 3067149668 created [04:42:52]Thread 3067293028 joined [04:42:52]Waiting for new connection... [04:42:52] Sock 9.Parse request [04:42:52]Sock 9.Check first char [04:42:52]Sock 9.First char is OK [04:42:52]request: POST /json_proto HTTP/1.0 [04:42:52]Method: POST [04:42:52]URL: /json_proto [04:42:52]Method is POST - this is cgi request [04:42:52]url: /json_proto [04:42:52]query_string will be loaded in cgi processing [04:42:52]execute_cgi json_proto POST (null) [04:42:52]execute_cgi path=json_proto method=POST [04:42:52]POST find Content-Length [04:42:52]Host: 172.17.60.7:8080 [04:42:52]Content-Length: 806 [04:42:52]Content-Type: application/json [04:42:52] [04:42:52]POST finish read [04:42:52]Found Content-Length = 806 [04:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122822", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:52]execute_script... [04:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122822", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:42:52]POST & json_proto [04:42:52]process_json_proto [04:42:52]json parsed OK: [04:42:52]protocol is kg_v1.0 [04:42:52]action value=close_receipt [04:42:52]process_action close_receipt [04:42:52]cmd_close_receipt [04:42:52]MH_GetDate [04:42:52]Write to MH i2c: F0 00 00 A8 14 AB [04:42:52]Write i2c OK [04:42:52]MH_I2C_Read... [04:42:52]Read from MH i2c: F0 [04:42:52]MH_I2C_Read... [04:42:52]Read from MH i2c: F0 09 00 [04:42:52]MH_I2C_Read... [04:42:52]Read from MH i2c: F0 09 00 A8 14 00 D0 92 B9 66 63 9B 67 64 FE [04:42:52]GetLastDocTimeStamp 1723435579 [04:42:52]current date 1723437776 [04:42:52]FM_GetShiftState [04:42:52]SAM_PROTO_GetShiftState [04:42:52]wFMCommunicate request_size=4 [04:42:52]MH_SAM_APDU [04:42:52]CAPDU: 80 13 01 00 [04:42:52]Write to MH i2c: E2 08 00 A9 14 80 13 01 00 00 00 00 00 3A [04:42:52]Write i2c OK [04:42:52]MH_I2C_Read... [04:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:52]Read from MH i2c: E2 [04:42:52]MH_I2C_Read... [04:42:52]Read from MH i2c: E2 0E 00 [04:42:52]MH_I2C_Read... [04:42:52]Read from MH i2c: E2 0E 00 A9 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 98 [04:42:52]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [04:42:52]wFMCommunicate OK [04:42:52]SAM_PROTO_GetShiftState done [04:42:52]FM_GetShiftState done [04:42:52]opened in 1723422684 [04:42:52]opened+sec_in_day 1723509084 [04:42:52]quantity*price = 15600 [04:42:52]sum+1 = 15601 [04:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 0.00 Безнал.: 156.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 10 12.08.2024 04:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52692 ФПД: 24893121455456 /tax-web-control/client/api/v1/ticket?date=20240812T044256&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52692&fm=24893121455456&tin=02508201610067®Number=0000000000090834&sum=15600 0 [04:42:54]StoreToDocumentArchive [04:42:54]shift 447 fd 52692 [04:42:54]save to /storage/0447/doc_00052692 [04:42:54]save last doc name /storage/0447/doc_00052692 to /storage/kkm_last_doc_name [04:42:54]save OK [04:42:54]Clear old archive folders... [04:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=272 [04:42:54]tlvbuf is 012A3660 [04:42:54]SAM_PROTO_ClearQueue [04:42:54]wFMCommunicate request_size=4 [04:42:54]MH_SAM_APDU [04:42:54]CAPDU: 80 09 00 00 [04:42:54]Write to MH i2c: E2 08 00 B6 14 80 09 00 00 00 00 00 00 3C [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:42:54]Read from MH i2c: E2 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [04:42:54]RAPDU: 90 00 [04:42:54]wFMCommunicate OK [04:42:54]SAM_PROTO_ClearQueue done [04:42:54]KKMCreateOFDPacket [04:42:54]OFDProtocolAddRootSTLVToBuf [04:42:54]FM_MakeSignedData [04:42:54]FM_MakeSignedData [04:42:54]SAM_PROTO_SignData [04:42:54]wFMCommunicate request_size=4 [04:42:54]MH_SAM_APDU [04:42:54]CAPDU: 80 0D 01 02 [04:42:54]Write to MH i2c: E2 08 00 B7 14 80 0D 01 02 00 00 00 00 44 [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:42:54]Read from MH i2c: E2 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [04:42:54]RAPDU: 90 00 [04:42:54]wFMCommunicate OK [04:42:54]wFMCommunicate request_size=255 [04:42:54]MH_SAM_APDU [04:42:54]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 D0 92 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 [04:42:54]Write to MH i2c: E2 02 01 B8 14 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 D0 92 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 AF [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:54]Read from MH i2c: E2 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [04:42:54]RAPDU: 90 00 [04:42:54]wFMCommunicate OK [04:42:54]wFMCommunicate request_size=31 [04:42:54]MH_SAM_APDU [04:42:54]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 31 35 10 04 04 00 D4 CD 00 00 35 04 06 00 16 A3 E1 A9 65 60 [04:42:54]Write to MH i2c: E2 22 00 B9 14 80 0D 02 02 1A 00 30 30 38 37 34 37 31 35 10 04 04 00 D4 CD 00 00 35 04 06 00 16 A3 E1 A9 65 60 00 00 1B [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:42:54]Read from MH i2c: E2 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [04:42:54]RAPDU: 90 00 [04:42:54]wFMCommunicate OK [04:42:54]wFMCommunicate request_size=4 [04:42:54]MH_SAM_APDU [04:42:54]CAPDU: 80 0D 03 02 [04:42:54]Write to MH i2c: E2 08 00 BA 14 80 0D 03 02 00 00 00 00 49 [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:42:54]Read from MH i2c: E2 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 0B 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 0B 00 BA 14 00 58 FE F1 04 4C 72 FE C1 90 00 12 [04:42:54]RAPDU: 58 FE F1 04 4C 72 FE C1 90 00 [04:42:54]wFMCommunicate OK [04:42:54]SAM_PROTO_SignData done [04:42:54]FM_MakeSignedData done [04:42:54]CreateOFDProtocolMessage [04:42:54]wFMCommunicate request_size=4 [04:42:54]MH_SAM_APDU [04:42:54]CAPDU: 80 11 00 00 [04:42:54]Write to MH i2c: E2 08 00 BB 14 80 11 00 00 00 00 00 00 49 [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:54]Read from MH i2c: E2 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 17 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: E2 17 00 BB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9C [04:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [04:42:54]wFMCommunicate OK [04:42:54]CreateOFDProtocolMessage done [04:42:54]OFDSenderStorePacket 52692 [04:42:54]StoreOFDPacket docnum=52692 [04:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 89 D8 1C 01 ED D5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 D0 92 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D4 CD 00 00 35 04 06 00 16 A3 E1 A9 65 60 58 FE F1 04 4C 72 FE C1 [04:42:54]CheckFolder [04:42:54]dirname=/storage/ofd_packets [04:42:54]CheckFolder done [04:42:54]ProducePacketName [04:42:54]name=ofd_packets/00052692 [04:42:54]NVStorageSaveData ofd_packets/00052692 [04:42:54]File name is /storage/ofd_packets/00052692 [04:42:54]Write 322 bytes [04:42:54]NVStorageSaveData done [04:42:54]OFDSenderStorePacket done [04:42:54]KKMCreateOFDPacket done [04:42:54]NVStorageSaveData kkm_last_timestamp [04:42:54]File name is /storage/kkm_last_timestamp [04:42:54]Write 4 bytes [04:42:54]NVStorageSaveData done [04:42:54]ExternCall_PrintAddStr [04:42:54]wPrintStart [04:42:54]Write to MH i2c: 01 00 00 BC 14 D0 [04:42:54]Write i2c OK [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: 01 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: 01 07 00 [04:42:54]MH_I2C_Read... [04:42:54]Read from MH i2c: 01 07 00 BC 14 00 00 00 00 00 FF 0F E5 [04:42:54]RasterBufferAndPrint [04:42:54]line Счет N : (3)122822 [04:42:54]line ИНН: 02508201610067 [04:42:54]line Контрольно-Кассовый Чек [04:42:54]line ПРОДАЖА [04:42:54]line Товар: 4700000480517 [04:42:54]line Пиво Живое 1л ПЭТ [04:42:54]line 1.000 * 156.00 [04:42:54]line = 156.00 [04:42:54]line НДС 12% НСП 1% [04:42:54]line > о реализуемом товаре [04:42:54]line ИТОГО: 156.00 [04:42:54]line НСП 1% : 1.38 [04:42:54]line НДС 12% : 16.57 [04:42:54]line Наличными: 0.00 [04:42:54]line Безнал.: 156.00 [04:42:54]line Место: АЗС № 54 "Партнер Нефть" [04:42:54]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [04:42:54]line СНО: Общий режим [04:42:54]line Чек 10 12.08.2024 04:42 [04:42:54]line Смена: 447 ФФД: 1.0 [04:42:54]line ЗНМ: 0300000007 [04:42:54]line РНМ: 0000000000090834 [04:42:54]line Версия ККМ: 001 [04:42:54]line Платежная система: О! деньги [04:42:54]line ФМ: 0000000000874715 [04:42:54]line ФД: 52692 [04:42:54]line ФПД: 24893121455456 [04:42:54]line /tax-web-control/client/api/v1/ticket?date=20240812T044256&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52692&fm=24893121455456&tin=02508201610067®Number=0000000000090834&sum=15600 [04:42:54]OFD Sender: Processing packet 52692 [packets to send 55, broken 54] [04:42:54]ProducePacketName [04:42:54]name=ofd_packets/00052692 [04:42:54]OFD Sender: To server: pG, [04:42:54]CommunicateWithHost lk.salyk.kg:30040 [04:42:54]ConnectInit lk.salyk.kg [04:42:54]line 0 [04:42:54]written 0, free lines is 4095 [04:42:55]Connected sock=7 [04:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 89 D8 1C 01 ED D5 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 D0 92 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D4 CD 00 00 35 04 06 00 16 A3 E1 A9 65 60 58 FE F1 04 4C 72 FE C1 [04:42:55]Write to MH i2c: 01 00 00 E5 14 F9 [04:42:55]Write i2c OK [04:42:55]MH_I2C_Read... [04:42:55]Read from MH i2c: 01 [04:42:55]MH_I2C_Read... [04:42:55]Read from MH i2c: 01 07 00 [04:42:55]MH_I2C_Read... [04:42:55]Read from MH i2c: 01 07 00 E5 14 00 00 00 00 00 BF 0C CB [04:42:55]RasterBufferAndPrint [04:42:55]line [04:42:55]line [04:42:55]line [04:42:55]line [04:42:55]line [04:42:55]written 0, free lines is 3270 [04:42:55]MH_Cut [04:42:55]Write to MH i2c: D1 01 00 EC 14 01 D2 [04:42:55]Write i2c OK [04:42:55]MH_I2C_Read... [04:42:55]Read from MH i2c: D1 [04:42:55]MH_I2C_Read... [04:42:55]Read from MH i2c: D1 01 00 [04:42:55]MH_I2C_Read... [04:42:55]Read from MH i2c: D1 01 00 EC 14 00 D1 [04:42:55]Write to MH i2c: 01 00 00 ED 14 01 [04:42:55]Write i2c OK [04:42:55]MH_I2C_Read... [04:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 7B AE 47 00 76 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D4 CD 00 00 F4 03 04 00 6A 3A B9 66 B6 04 01 00 00 FE 40 BA 77 9D 64 3D 6B [04:42:55]CommunicateWithHost err = 0 [04:42:55]CheckOFDResponse [04:42:55]1017 (14) - 77093643461234 [04:42:55]1041 (16) - 0000000000874715 [04:42:55]1040 (4) - 52692 [04:42:55]1012 (4) - 11.08.2024 22:25 [04:42:55]1206 (1) - 0 [04:42:55]OFD Sender: Remove packet 52692 [04:42:55]ProducePacketName [04:42:55]name=ofd_packets/00052692 [04:42:55]NVStorageDeleteData [04:42:56]OFD Sender: No OFD packet to send [04:42:56]*** Cut start [04:42:56]*** Purtial cut [04:42:56]*** Stage 1: CUTSNS_PIN = 1 [04:42:56]Read from MH i2c: 01 [04:42:56]MH_I2C_Read... [04:42:56]*** Stop cut motor [04:42:56]*** Cut end [04:42:56]Read from MH i2c: 01 07 00 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: 01 07 00 ED 14 00 00 00 00 00 FF 0F 16 [04:42:56]process_action close_receipt done [04:42:56]requested_data is exist [04:42:56]produce_requested_data [04:42:56]requested_item fm.sn is exist - process it [04:42:56]wFMCommunicate request_size=4 [04:42:56]MH_SAM_APDU [04:42:56]CAPDU: 80 11 00 00 [04:42:56]Write to MH i2c: E2 08 00 EE 14 80 11 00 00 00 00 00 00 7C [04:42:56]Write i2c OK [04:42:56]MH_I2C_Read... [04:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:42:56]Read from MH i2c: E2 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: E2 17 00 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: E2 17 00 EE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 CF [04:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [04:42:56]wFMCommunicate OK [04:42:56]requested_item fd.num is exist - process it [04:42:56]SAM_PROTO_GetFieldsCounters [04:42:56]wFMCommunicate request_size=4 [04:42:56]MH_SAM_APDU [04:42:56]CAPDU: 80 13 00 00 [04:42:56]Write to MH i2c: E2 08 00 EF 14 80 13 00 00 00 00 00 00 7F [04:42:56]Write i2c OK [04:42:56]MH_I2C_Read... [04:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:42:56]Read from MH i2c: E2 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: E2 62 00 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: E2 62 00 EF 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D4 CD 00 00 0E 04 04 00 BF 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 1E [04:42: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D4 CD 00 00 0E 04 04 00 BF 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 [04:42:56]wFMCommunicate OK [04:42:56]SAM_PROTO_GetFieldsCounters done [04:42:56]requested_item shift.num is exist - process it [04:42:56]requested_item shift.opened is exist - process it [04:42:56]req_shift_opened [04:42:56]FM_GetShiftState [04:42:56]SAM_PROTO_GetShiftState [04:42:56]wFMCommunicate request_size=4 [04:42:56]MH_SAM_APDU [04:42:56]CAPDU: 80 13 01 00 [04:42:56]Write to MH i2c: E2 08 00 F0 14 80 13 01 00 00 00 00 00 81 [04:42:56]Write i2c OK [04:42:56]MH_I2C_Read... [04:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:56]Read from MH i2c: E2 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: E2 0E 00 [04:42:56]MH_I2C_Read... [04:42:56]Read from MH i2c: E2 0E 00 F0 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 DF [04:42:56]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [04:42:56]wFMCommunicate OK [04:42:56]SAM_PROTO_GetShiftState done [04:42:56]FM_GetShiftState done [04:42:56]req_shift_opened done [04:42:56]requested_item shift.open_date is exist - process it [04:42:56]req_shift_open_date [04:42:56]req_shift_open_date done [04:42:56]produce_requested_data done [04:42:56]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52692,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [04:42:56]process_action_free close_receipt [04:42:56]json_value_free [04:42:56]json_value_free done [04:42:56]process_json_proto returns [04:42:56]Send response to host [04:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52692,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [04:42:56]free response buf [04:42:56]execute_script done [04:42:56]execute_script returns [04:42:56]free content buf [04:42:56]Sock 9.Close socket [04:42:56]Sock 9.Thread stoped [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:33]recv_with_timeout no data received [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:02]accept exits with 10 [05:02:02]New connection [05:02:02]New thread 3067293028 created [05:02:02]Thread 3067149668 joined [05:02:02]Waiting for new connection... [05:02:02] Sock 10.Parse request [05:02:02]Sock 10.Check first char [05:02:02]Sock 10.First char is OK [05:02:02]request: POST /json_proto HTTP/1.0 [05:02:02]Method: POST [05:02:02]URL: /json_proto [05:02:02]Method is POST - this is cgi request [05:02:02]url: /json_proto [05:02:02]query_string will be loaded in cgi processing [05:02:02]execute_cgi json_proto POST (null) [05:02:02]execute_cgi path=json_proto method=POST [05:02:02]POST find Content-Length [05:02:02]Host: 172.17.60.7:8080 [05:02:02]Content-Length: 820 [05:02:02]Content-Type: application/json [05:02:02] [05:02:02]POST finish read [05:02:02]Found Content-Length = 820 [05:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122823", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:02:02]execute_script... [05:02: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)122823", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:02:02]POST & json_proto [05:02:02]process_json_proto [05:02:02]json parsed OK: [05:02:02]protocol is kg_v1.0 [05:02:02]action value=close_receipt [05:02:02]process_action close_receipt [05:02:02]cmd_close_receipt [05:02:02]MH_GetDate [05:02:02]Write to MH i2c: F0 00 00 F1 14 F4 [05:02:02]Write i2c OK [05:02:02]MH_I2C_Read... [05:02:02]Read from MH i2c: F0 [05:02:02]MH_I2C_Read... [05:02:02]Read from MH i2c: F0 09 00 [05:02:02]MH_I2C_Read... [05:02:02]Read from MH i2c: F0 09 00 F1 14 00 4E 97 B9 66 63 9B 67 64 CA [05:02:02]GetLastDocTimeStamp 1723437776 [05:02:02]current date 1723438926 [05:02:02]FM_GetShiftState [05:02:02]SAM_PROTO_GetShiftState [05:02:02]wFMCommunicate request_size=4 [05:02:02]MH_SAM_APDU [05:02:02]CAPDU: 80 13 01 00 [05:02:02]Write to MH i2c: E2 08 00 F2 14 80 13 01 00 00 00 00 00 83 [05:02:02]Write i2c OK [05:02:02]MH_I2C_Read... [05:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:02]Read from MH i2c: E2 [05:02:02]MH_I2C_Read... [05:02:02]Read from MH i2c: E2 0E 00 [05:02:02]MH_I2C_Read... [05:02:02]Read from MH i2c: E2 0E 00 F2 14 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E1 [05:02:02]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [05:02:02]wFMCommunicate OK [05:02:02]SAM_PROTO_GetShiftState done [05:02:02]FM_GetShiftState done [05:02:02]opened in 1723422684 [05:02:02]opened+sec_in_day 1723509084 [05:02:02]quantity*price = 9500 [05:02:02]sum+1 = 9501 [05:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 11 12.08.2024 05:02 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52693 ФПД: 112227493415356 /tax-web-control/client/api/v1/ticket?date=20240812T050206&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52693&fm=112227493415356&tin=02508201610067®Number=0000000000090834&sum=9500 0 [05:02:04]StoreToDocumentArchive [05:02:04]shift 447 fd 52693 [05:02:04]save to /storage/0447/doc_00052693 [05:02:04]save last doc name /storage/0447/doc_00052693 to /storage/kkm_last_doc_name [05:02:04]save OK [05:02:04]Clear old archive folders... [05:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=293 [05:02:04]tlvbuf is 01266E60 [05:02:04]SAM_PROTO_ClearQueue [05:02:04]wFMCommunicate request_size=4 [05:02:04]MH_SAM_APDU [05:02:04]CAPDU: 80 09 00 00 [05:02:04]Write to MH i2c: E2 08 00 FF 14 80 09 00 00 00 00 00 00 85 [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:02:04]Read from MH i2c: E2 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [05:02:04]RAPDU: 90 00 [05:02:04]wFMCommunicate OK [05:02:04]SAM_PROTO_ClearQueue done [05:02:04]KKMCreateOFDPacket [05:02:04]OFDProtocolAddRootSTLVToBuf [05:02:04]FM_MakeSignedData [05:02:04]FM_MakeSignedData [05:02:04]SAM_PROTO_SignData [05:02:04]wFMCommunicate request_size=4 [05:02:04]MH_SAM_APDU [05:02:04]CAPDU: 80 0D 01 02 [05:02:04]Write to MH i2c: E2 08 00 00 15 80 0D 01 02 00 00 00 00 8E [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:02:04]Read from MH i2c: E2 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [05:02:04]RAPDU: 90 00 [05:02:04]wFMCommunicate OK [05:02:04]wFMCommunicate request_size=255 [05:02:04]MH_SAM_APDU [05:02:04]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 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 0B 00 00 00 F4 03 04 00 4E 97 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [05:02:04]Write to MH i2c: E2 02 01 01 15 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 97 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 FD [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:04]Read from MH i2c: E2 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [05:02:04]RAPDU: 90 00 [05:02:04]wFMCommunicate OK [05:02:04]wFMCommunicate request_size=52 [05:02:04]MH_SAM_APDU [05:02:04]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D5 CD 00 00 35 04 06 00 66 11 FF E1 09 BC [05:02:04]Write to MH i2c: E2 37 00 02 15 80 0D 02 02 2F 00 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D5 CD 00 00 35 04 06 00 66 11 FF E1 09 BC 00 00 11 [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:04]Read from MH i2c: E2 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [05:02:04]RAPDU: 90 00 [05:02:04]wFMCommunicate OK [05:02:04]wFMCommunicate request_size=4 [05:02:04]MH_SAM_APDU [05:02:04]CAPDU: 80 0D 03 02 [05:02:04]Write to MH i2c: E2 08 00 03 15 80 0D 03 02 00 00 00 00 93 [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:02:04]Read from MH i2c: E2 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 0B 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 0B 00 03 15 00 0F F1 B3 3D E9 18 C9 7A 90 00 C8 [05:02:04]RAPDU: 0F F1 B3 3D E9 18 C9 7A 90 00 [05:02:04]wFMCommunicate OK [05:02:04]SAM_PROTO_SignData done [05:02:04]FM_MakeSignedData done [05:02:04]CreateOFDProtocolMessage [05:02:04]wFMCommunicate request_size=4 [05:02:04]MH_SAM_APDU [05:02:04]CAPDU: 80 11 00 00 [05:02:04]Write to MH i2c: E2 08 00 04 15 80 11 00 00 00 00 00 00 93 [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:04]Read from MH i2c: E2 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 17 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: E2 17 00 04 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 E6 [05:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [05:02:04]wFMCommunicate OK [05:02:04]CreateOFDProtocolMessage done [05:02:04]OFDSenderStorePacket 52693 [05:02:04]StoreOFDPacket docnum=52693 [05:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 A0 98 31 01 74 D5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 97 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D5 CD 00 00 35 04 06 00 66 11 FF E1 09 BC 0F F1 B3 3D E9 18 C9 7A [05:02:04]CheckFolder [05:02:04]dirname=/storage/ofd_packets [05:02:04]CheckFolder done [05:02:04]ProducePacketName [05:02:04]name=ofd_packets/00052693 [05:02:04]NVStorageSaveData ofd_packets/00052693 [05:02:04]File name is /storage/ofd_packets/00052693 [05:02:04]Write 343 bytes [05:02:04]NVStorageSaveData done [05:02:04]OFDSenderStorePacket done [05:02:04]KKMCreateOFDPacket done [05:02:04]NVStorageSaveData kkm_last_timestamp [05:02:04]File name is /storage/kkm_last_timestamp [05:02:04]Write 4 bytes [05:02:04]NVStorageSaveData done [05:02:04]OFD Sender: Processing packet 52693 [packets to send 55, broken 54] [05:02:04]ProducePacketName [05:02:04]name=ofd_packets/00052693 [05:02:04]OFD Sender: To server: pG, [05:02:04]CommunicateWithHost lk.salyk.kg:30040 [05:02:04]ConnectInit lk.salyk.kg [05:02:04]ExternCall_PrintAddStr [05:02:04]wPrintStart [05:02:04]Write to MH i2c: 01 00 00 05 15 1A [05:02:04]Write i2c OK [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: 01 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: 01 07 00 [05:02:04]MH_I2C_Read... [05:02:04]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [05:02:04]RasterBufferAndPrint [05:02:04]line Счет N : (3)122823 [05:02:04]line ИНН: 02508201610067 [05:02:04]line Контрольно-Кассовый Чек [05:02:04]line ПРОДАЖА [05:02:04]line Товар: 4700000480050 [05:02:04]line Напиток Nitro Energy эн green ж/б 0,45л [05:02:04]line 1.000 * 95.00 [05:02:04]line = 95.00 [05:02:04]line НДС 12% НСП 1% [05:02:04]line > о реализуемом товаре [05:02:04]line ИТОГО: 95.00 [05:02:04]line НСП 1% : 0.84 [05:02:04]line НДС 12% : 10.09 [05:02:04]line Наличными: 0.00 [05:02:04]line Безнал.: 95.00 [05:02:04]line Место: АЗС № 54 "Партнер Нефть" [05:02:04]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [05:02:04]line СНО: Общий режим [05:02:04]line Чек 11 12.08.2024 05:02 [05:02:04]line Смена: 447 ФФД: 1.0 [05:02:04]line ЗНМ: 0300000007 [05:02:04]line РНМ: 0000000000090834 [05:02:04]line Версия ККМ: 001 [05:02:04]line Платежная система: О! деньги [05:02:04]line ФМ: 0000000000874715 [05:02:04]line ФД: 52693 [05:02:04]line ФПД: 112227493415356 [05:02:05]line /tax-web-control/client/api/v1/ticket?date=20240812T050206&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52693&fm=112227493415356&tin=02508201610067®Number=0000000000090834&sum=9500 [05:02:05]line 0 [05:02:05]Connected sock=11 [05:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 A0 98 31 01 74 D5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4E 97 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D5 CD 00 00 35 04 06 00 66 11 FF E1 09 BC 0F F1 B3 3D E9 18 C9 7A [05:02:05]written 0, free lines is 4095 [05:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 14 EA 47 00 02 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D5 CD 00 00 F4 03 04 00 E8 3E B9 66 B6 04 01 00 00 7B 5D 6F 04 37 C8 93 49 [05:02:05]CommunicateWithHost err = 0 [05:02:05]CheckOFDResponse [05:02:05]1017 (14) - 77093643461234 [05:02:05]1041 (16) - 0000000000874715 [05:02:05]1040 (4) - 52693 [05:02:05]1012 (4) - 11.08.2024 22:44 [05:02:05]1206 (1) - 0 [05:02:05]OFD Sender: Remove packet 52693 [05:02:05]ProducePacketName [05:02:05]name=ofd_packets/00052693 [05:02:05]NVStorageDeleteData [05:02:05]Write to MH i2c: 01 00 00 2F 15 44 [05:02:05]Write i2c OK [05:02:05]MH_I2C_Read... [05:02:05]Read from MH i2c: 01 [05:02:05]MH_I2C_Read... [05:02:05]Read from MH i2c: 01 07 00 [05:02:05]MH_I2C_Read... [05:02:05]Read from MH i2c: 01 07 00 2F 15 00 00 00 00 00 9A 0C F1 [05:02:05]RasterBufferAndPrint [05:02:05]line [05:02:05]line [05:02:05]line [05:02:05]line [05:02:05]line [05:02:05]written 0, free lines is 3230 [05:02:05]MH_Cut [05:02:05]Write to MH i2c: D1 01 00 36 15 01 1D [05:02:05]Write i2c OK [05:02:05]MH_I2C_Read... [05:02:05]Read from MH i2c: D1 [05:02:05]MH_I2C_Read... [05:02:05]Read from MH i2c: D1 01 00 [05:02:05]MH_I2C_Read... [05:02:05]Read from MH i2c: D1 01 00 36 15 00 1C [05:02:05]Write to MH i2c: 01 00 00 37 15 4C [05:02:05]Write i2c OK [05:02:05]MH_I2C_Read... [05:02:05]OFD Sender: No OFD packet to send [05:02:06]*** Cut start [05:02:06]*** Purtial cut [05:02:06]*** Stage 1: CUTSNS_PIN = 1 [05:02:06]Read from MH i2c: 01 [05:02:06]MH_I2C_Read... [05:02:06]*** Stop cut motor [05:02:06]*** Cut end [05:02:06]Read from MH i2c: 01 07 00 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [05:02:06]process_action close_receipt done [05:02:06]requested_data is exist [05:02:06]produce_requested_data [05:02:06]requested_item fm.sn is exist - process it [05:02:06]wFMCommunicate request_size=4 [05:02:06]MH_SAM_APDU [05:02:06]CAPDU: 80 11 00 00 [05:02:06]Write to MH i2c: E2 08 00 38 15 80 11 00 00 00 00 00 00 C7 [05:02:06]Write i2c OK [05:02:06]MH_I2C_Read... [05:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:06]Read from MH i2c: E2 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: E2 17 00 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: E2 17 00 38 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 1A [05:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [05:02:06]wFMCommunicate OK [05:02:06]requested_item fd.num is exist - process it [05:02:06]SAM_PROTO_GetFieldsCounters [05:02:06]wFMCommunicate request_size=4 [05:02:06]MH_SAM_APDU [05:02:06]CAPDU: 80 13 00 00 [05:02:06]Write to MH i2c: E2 08 00 39 15 80 13 00 00 00 00 00 00 CA [05:02:06]Write i2c OK [05:02:06]MH_I2C_Read... [05:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:02:06]Read from MH i2c: E2 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: E2 62 00 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: E2 62 00 39 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D5 CD 00 00 0E 04 04 00 BF 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 6D [05:02: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D5 CD 00 00 0E 04 04 00 BF 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 [05:02:06]wFMCommunicate OK [05:02:06]SAM_PROTO_GetFieldsCounters done [05:02:06]requested_item shift.num is exist - process it [05:02:06]requested_item shift.opened is exist - process it [05:02:06]req_shift_opened [05:02:06]FM_GetShiftState [05:02:06]SAM_PROTO_GetShiftState [05:02:06]wFMCommunicate request_size=4 [05:02:06]MH_SAM_APDU [05:02:06]CAPDU: 80 13 01 00 [05:02:06]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [05:02:06]Write i2c OK [05:02:06]MH_I2C_Read... [05:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:06]Read from MH i2c: E2 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: E2 0E 00 [05:02:06]MH_I2C_Read... [05:02:06]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 2A [05:02:06]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [05:02:06]wFMCommunicate OK [05:02:06]SAM_PROTO_GetShiftState done [05:02:06]FM_GetShiftState done [05:02:06]req_shift_opened done [05:02:06]requested_item shift.open_date is exist - process it [05:02:06]req_shift_open_date [05:02:06]req_shift_open_date done [05:02:06]produce_requested_data done [05:02:06]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52693,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [05:02:06]process_action_free close_receipt [05:02:06]json_value_free [05:02:06]json_value_free done [05:02:06]process_json_proto returns [05:02:06]Send response to host [05:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52693,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [05:02:06]free response buf [05:02:06]execute_script done [05:02:06]execute_script returns [05:02:06]free content buf [05:02:06]Sock 10.Close socket [05:02:06]Sock 10.Thread stoped [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24: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:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:24]accept exits with 7 [05:31:24]New connection [05:31:24]New thread 3067149668 created [05:31:24]Thread 3067293028 joined [05:31:24]Waiting for new connection... [05:31:24] Sock 7.Parse request [05:31:24]Sock 7.Check first char [05:31:24]Sock 7.First char is OK [05:31:24]request: POST /json_proto HTTP/1.0 [05:31:24]Method: POST [05:31:24]URL: /json_proto [05:31:24]Method is POST - this is cgi request [05:31:24]url: /json_proto [05:31:24]query_string will be loaded in cgi processing [05:31:24]execute_cgi json_proto POST (null) [05:31:24]execute_cgi path=json_proto method=POST [05:31:24]POST find Content-Length [05:31:24]Host: 172.17.60.7:8080 [05:31:24]Content-Length: 2735 [05:31:24]Content-Type: application/json [05:31:24] [05:31:24]POST finish read [05:31:24]Found Content-Length = 2735 [05:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122824", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ,{ "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": "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 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 730.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:24]execute_script... [05:31: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)122824", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ,{ "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": "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 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 730.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:31:24]POST & json_proto [05:31:24]process_json_proto [05:31:24]json parsed OK: [05:31:24]protocol is kg_v1.0 [05:31:24]action value=close_receipt [05:31:24]process_action close_receipt [05:31:24]cmd_close_receipt [05:31:24]MH_GetDate [05:31:24]Write to MH i2c: F0 00 00 3B 15 3F [05:31:24]Write i2c OK [05:31:24]MH_I2C_Read... [05:31:24]Read from MH i2c: F0 [05:31:24]MH_I2C_Read... [05:31:24]Read from MH i2c: F0 09 00 [05:31:24]MH_I2C_Read... [05:31:24]Read from MH i2c: F0 09 00 3B 15 00 30 9E B9 66 63 9B 67 64 FE [05:31:24]GetLastDocTimeStamp 1723438926 [05:31:24]current date 1723440688 [05:31:24]FM_GetShiftState [05:31:24]SAM_PROTO_GetShiftState [05:31:24]wFMCommunicate request_size=4 [05:31:24]MH_SAM_APDU [05:31:24]CAPDU: 80 13 01 00 [05:31:24]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [05:31:24]Write i2c OK [05:31:24]MH_I2C_Read... [05:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:24]Read from MH i2c: E2 [05:31:24]MH_I2C_Read... [05:31:24]Read from MH i2c: E2 0E 00 [05:31:24]MH_I2C_Read... [05:31:24]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 2C [05:31:24]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [05:31:24]wFMCommunicate OK [05:31:24]SAM_PROTO_GetShiftState done [05:31:24]FM_GetShiftState done [05:31:24]opened in 1723422684 [05:31:24]opened+sec_in_day 1723509084 [05:31:24]quantity*price = 5000 [05:31:24]sum+1 = 5001 [05:31:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 730.00 НСП 1% : 6.46 НДС 12% : 77.50 Наличными: 0.00 Безнал.: 730.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 12 12.08.2024 05:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874715 ФД: 52694 ФПД: 29228560378484 /tax-web-control/client/api/v1/ticket?date=20240812T053128&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52694&fm=29228560378484&tin=02508201610067®Number=0000000000090834&sum=73000 0 [05:31:26]StoreToDocumentArchive [05:31:26]shift 447 fd 52694 [05:31:26]save to /storage/0447/doc_00052694 [05:31:26]save last doc name /storage/0447/doc_00052694 to /storage/kkm_last_doc_name [05:31:26]save OK [05:31:26]Clear old archive folders... [05:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=1044 [05:31:26]tlvbuf is 012D70A0 [05:31:26]SAM_PROTO_ClearQueue [05:31:26]wFMCommunicate request_size=4 [05:31:26]MH_SAM_APDU [05:31:26]CAPDU: 80 09 00 00 [05:31:26]Write to MH i2c: E2 08 00 49 15 80 09 00 00 00 00 00 00 D0 [05:31:26]Write i2c OK [05:31:26]MH_I2C_Read... [05:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:26]Read from MH i2c: E2 [05:31:26]MH_I2C_Read... [05:31:26]Read from MH i2c: E2 03 00 [05:31:26]MH_I2C_Read... [05:31:26]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [05:31:26]RAPDU: 90 00 [05:31:26]wFMCommunicate OK [05:31:26]SAM_PROTO_ClearQueue done [05:31:26]KKMCreateOFDPacket [05:31:26]OFDProtocolAddRootSTLVToBuf [05:31:26]FM_MakeSignedData [05:31:26]FM_MakeSignedData [05:31:26]SAM_PROTO_SignData [05:31:26]wFMCommunicate request_size=4 [05:31:26]MH_SAM_APDU [05:31:26]CAPDU: 80 0D 01 02 [05:31:26]Write to MH i2c: E2 08 00 4A 15 80 0D 01 02 00 00 00 00 D8 [05:31:26]Write i2c OK [05:31:26]MH_I2C_Read... [05:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:26]Read from MH i2c: E2 [05:31:26]MH_I2C_Read... [05:31:26]Read from MH i2c: E2 03 00 [05:31:26]MH_I2C_Read... [05:31:26]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [05:31:26]RAPDU: 90 00 [05:31:26]wFMCommunicate OK [05:31:26]wFMCommunicate request_size=255 [05:31:26]MH_SAM_APDU [05:31:26]CAPDU: 80 0D 02 02 FA 03 00 14 04 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 68 00 8A 04 0D 00 35 34 34 [05:31:26]Write to MH i2c: E2 02 01 4B 15 80 0D 02 02 FA 00 03 00 14 04 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 68 00 8A 04 0D 00 35 34 34 00 00 75 [05:31:26]Write i2c OK [05:31:26]MH_I2C_Read... [05:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:26]Read from MH i2c: E2 [05:31:26]MH_I2C_Read... [05:31:26]Read from MH i2c: E2 03 00 [05:31:26]MH_I2C_Read... [05:31:26]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [05:31:26]RAPDU: 90 00 [05:31:26]wFMCommunicate OK [05:31:26]wFMCommunicate request_size=255 [05:31:26]MH_SAM_APDU [05:31:26]CAPDU: 80 0D 02 02 FA 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 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 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 [05:31:26]Write to MH i2c: E2 02 01 4C 15 80 0D 02 02 FA 00 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 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 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 00 00 AC [05:31:26]Write i2c OK [05:31:26]MH_I2C_Read... [05:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:27]Read from MH i2c: E2 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [05:31:27]RAPDU: 90 00 [05:31:27]wFMCommunicate OK [05:31:27]wFMCommunicate request_size=255 [05:31:27]MH_SAM_APDU [05:31:27]CAPDU: 80 0D 02 02 FA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 [05:31:27]Write to MH i2c: E2 02 01 4D 15 80 0D 02 02 FA 00 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 00 00 9B [05:31:27]Write i2c OK [05:31:27]MH_I2C_Read... [05:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:27]Read from MH i2c: E2 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [05:31:27]RAPDU: 90 00 [05:31:27]wFMCommunicate OK [05:31:27]wFMCommunicate request_size=255 [05:31:27]MH_SAM_APDU [05:31:27]CAPDU: 80 0D 02 02 FA 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 30 9E B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [05:31:27]Write to MH i2c: E2 02 01 4E 15 80 0D 02 02 FA 00 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 30 9E B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 51 [05:31:27]OFD Sender: No OFD packet to send [05:31:27]Write i2c OK [05:31:27]MH_I2C_Read... [05:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:27]Read from MH i2c: E2 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 4E 15 00 90 00 D7 [05:31:27]RAPDU: 90 00 [05:31:27]wFMCommunicate OK [05:31:27]wFMCommunicate request_size=53 [05:31:27]MH_SAM_APDU [05:31:27]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D6 CD 00 00 35 04 06 00 1A 95 4D F5 6A 74 [05:31:27]Write to MH i2c: E2 38 00 4F 15 80 0D 02 02 30 00 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D6 CD 00 00 35 04 06 00 1A 95 4D F5 6A 74 00 00 44 [05:31:27]Write i2c OK [05:31:27]MH_I2C_Read... [05:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:27]Read from MH i2c: E2 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [05:31:27]RAPDU: 90 00 [05:31:27]wFMCommunicate OK [05:31:27]wFMCommunicate request_size=4 [05:31:27]MH_SAM_APDU [05:31:27]CAPDU: 80 0D 03 02 [05:31:27]Write to MH i2c: E2 08 00 50 15 80 0D 03 02 00 00 00 00 E0 [05:31:27]Write i2c OK [05:31:27]MH_I2C_Read... [05:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:31:27]Read from MH i2c: E2 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 0B 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 0B 00 50 15 00 BB 3B 7B 5A DE 43 0D DC 90 00 B6 [05:31:27]RAPDU: BB 3B 7B 5A DE 43 0D DC 90 00 [05:31:27]wFMCommunicate OK [05:31:27]SAM_PROTO_SignData done [05:31:27]FM_MakeSignedData done [05:31:27]CreateOFDProtocolMessage [05:31:27]wFMCommunicate request_size=4 [05:31:27]MH_SAM_APDU [05:31:27]CAPDU: 80 11 00 00 [05:31:27]Write to MH i2c: E2 08 00 51 15 80 11 00 00 00 00 00 00 E0 [05:31:27]Write i2c OK [05:31:27]MH_I2C_Read... [05:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:27]Read from MH i2c: E2 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 17 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: E2 17 00 51 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 33 [05:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [05:31:27]wFMCommunicate OK [05:31:27]CreateOFDProtocolMessage done [05:31:27]OFDSenderStorePacket 52694 [05:31:27]StoreOFDPacket docnum=52694 [05:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 28 04 00 00 11 7C 20 04 81 45 5A 03 01 00 03 00 14 04 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 30 9E B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D6 CD 00 00 35 04 06 00 1A 95 4D F5 6A 74 BB 3B 7B 5A DE 43 0D DC [05:31:27]CheckFolder [05:31:27]dirname=/storage/ofd_packets [05:31:27]CheckFolder done [05:31:27]ProducePacketName [05:31:27]name=ofd_packets/00052694 [05:31:27]NVStorageSaveData ofd_packets/00052694 [05:31:27]File name is /storage/ofd_packets/00052694 [05:31:27]Write 1094 bytes [05:31:27]NVStorageSaveData done [05:31:27]OFDSenderStorePacket done [05:31:27]KKMCreateOFDPacket done [05:31:27]NVStorageSaveData kkm_last_timestamp [05:31:27]File name is /storage/kkm_last_timestamp [05:31:27]Write 4 bytes [05:31:27]NVStorageSaveData done [05:31:27]ExternCall_PrintAddStr [05:31:27]wPrintStart [05:31:27]Write to MH i2c: 01 00 00 52 15 67 [05:31:27]Write i2c OK [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: 01 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: 01 07 00 [05:31:27]MH_I2C_Read... [05:31:27]Read from MH i2c: 01 07 00 52 15 00 00 00 00 00 FF 0F 7C [05:31:27]RasterBufferAndPrint [05:31:27]line Счет N : (3)122824 [05:31:27]line ИНН: 02508201610067 [05:31:28]line Контрольно-Кассовый Чек [05:31:28]line ПРОДАЖА [05:31:28]line Товар: 4700000160051 [05:31:28]line Вода Ыссык Ата 1л [05:31:28]line 1.000 * 50.00 [05:31:28]line = 50.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 5449000189356 [05:31:28]line Холодный чай Fuse манго ананас 1л [05:31:28]line 1.000 * 120.00 [05:31:28]line = 120.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 5449000054227 [05:31:28]line Напиток Кока-Кола 1л [05:31:28]line 1.000 * 125.00 [05:31:28]line = 125.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 5449000006271 [05:31:28]line Напиток Фанта 1л [05:31:28]line 1.000 * 125.00 [05:31:28]line = 125.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 4700000160358 [05:31:28]line Вода Легенда 1л [05:31:28]line 1.000 * 50.00 [05:31:28]line = 50.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 2000032760017 [05:31:28]line Слойка DC треугольная мясо110г [05:31:28]line 2.000 * 65.00 [05:31:28]line = 130.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 2000032780025 [05:31:28]line Сосиска в тесте DC 110г [05:31:28]line 2.000 * 60.00 [05:31:28]line = 120.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line Товар: 46226624 [05:31:28]line Mentos ПВ Клубника 6*100*2 [05:31:28]line 1.000 * 10.00 [05:31:28]line = 10.00 [05:31:28]line НДС 12% НСП 1% [05:31:28]line > о реализуемом товаре [05:31:28]line ИТОГО: 730.00 [05:31:28]line НСП 1% : 6.46 [05:31:28]line НДС 12% : 77.50 [05:31:28]line Наличными: 0.00 [05:31:28]line Безнал.: 730.00 [05:31:28]line Место: АЗС № 54 "Партнер Нефть" [05:31:28]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [05:31:28]line СНО: Общий режим [05:31:28]line Чек 12 12.08.2024 05:31 [05:31:28]line Смена: 447 ФФД: 1.0 [05:31:28]line ЗНМ: 0300000007 [05:31:28]line РНМ: 0000000000090834 [05:31:28]line Версия ККМ: 001 [05:31:28]line Платежная система: Бакай Банк [05:31:28]line ФМ: 0000000000874715 [05:31:28]line ФД: 52694 [05:31:28]line ФПД: 29228560378484 [05:31:28]line /tax-web-control/client/api/v1/ticket?date=20240812T053128&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52694&fm=29228560378484&tin=02508201610067®Number=0000000000090834&sum=73000 [05:31:28]OFD Sender: Processing packet 52694 [packets to send 55, broken 54] [05:31:28]ProducePacketName [05:31:28]name=ofd_packets/00052694 [05:31:28]OFD Sender: To server: pG, [05:31:28]CommunicateWithHost lk.salyk.kg:30040 [05:31:28]ConnectInit lk.salyk.kg [05:31:28]line 0 [05:31:28]written 0, free lines is 4095 [05:31:28]Connected sock=10 [05:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 28 04 00 00 11 7C 20 04 81 45 5A 03 01 00 03 00 14 04 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 1D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 30 9E B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D6 CD 00 00 35 04 06 00 1A 95 4D F5 6A 74 BB 3B 7B 5A DE 43 0D DC [05:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 DD 08 47 00 3E 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D6 CD 00 00 F4 03 04 00 CB 45 B9 66 B6 04 01 00 00 03 7E 32 03 F1 6D 7C C7 [05:31:28]CommunicateWithHost err = 0 [05:31:28]CheckOFDResponse [05:31:28]1017 (14) - 77093643461234 [05:31:28]1041 (16) - 0000000000874715 [05:31:28]1040 (4) - 52694 [05:31:28]1012 (4) - 11.08.2024 23:14 [05:31:28]1206 (1) - 0 [05:31:28]OFD Sender: Remove packet 52694 [05:31:28]ProducePacketName [05:31:28]name=ofd_packets/00052694 [05:31:28]NVStorageDeleteData [05:31:29]Write to MH i2c: 01 00 00 A7 15 BC [05:31:29]Write i2c OK [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: 01 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: 01 07 00 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: 01 07 00 A7 15 00 00 00 00 00 BC 09 88 [05:31:29]RasterBufferAndPrint [05:31:29]line [05:31:29]line [05:31:29]line [05:31:29]line [05:31:29]line [05:31:29]written 0, free lines is 2501 [05:31:29]MH_Cut [05:31:29]Write to MH i2c: D1 01 00 AE 15 01 95 [05:31:29]Write i2c OK [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: D1 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: D1 01 00 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: D1 01 00 AE 15 00 94 [05:31:29]Write to MH i2c: 01 00 00 AF 15 C4 [05:31:29]Write i2c OK [05:31:29]MH_I2C_Read... [05:31:29]OFD Sender: No OFD packet to send [05:31:30]*** Cut start [05:31:30]*** Purtial cut [05:31:30]*** Stage 1: CUTSNS_PIN = 1 [05:31:30]Read from MH i2c: 01 [05:31:30]MH_I2C_Read... [05:31:30]*** Stop cut motor [05:31:30]*** Cut end [05:31:30]Read from MH i2c: 01 07 00 [05:31:30]MH_I2C_Read... [05:31:30]Read from MH i2c: 01 07 00 AF 15 00 00 00 00 00 FF 0F D9 [05:31:30]process_action close_receipt done [05:31:30]requested_data is exist [05:31:30]produce_requested_data [05:31:30]requested_item fm.sn is exist - process it [05:31:30]wFMCommunicate request_size=4 [05:31:30]MH_SAM_APDU [05:31:30]CAPDU: 80 11 00 00 [05:31:30]Write to MH i2c: E2 08 00 B0 15 80 11 00 00 00 00 00 00 3F [05:31:30]Write i2c OK [05:31:30]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 17 00 [05:31:31]MH_I2C_Read... [05:31:31]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 34 37 31 35 90 00 92 [05:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [05:31:31]wFMCommunicate OK [05:31:31]requested_item fd.num is exist - process it [05:31:31]SAM_PROTO_GetFieldsCounters [05:31:31]wFMCommunicate request_size=4 [05:31:31]MH_SAM_APDU [05:31:31]CAPDU: 80 13 00 00 [05:31:31]Write to MH i2c: E2 08 00 B1 15 80 13 00 00 00 00 00 00 42 [05:31:31]Write i2c OK [05:31:31]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 62 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 62 00 B1 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D6 CD 00 00 0E 04 04 00 BF 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 E9 [05:31: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D6 CD 00 00 0E 04 04 00 BF 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:31:31]wFMCommunicate OK [05:31:31]SAM_PROTO_GetFieldsCounters done [05:31:31]requested_item shift.num is exist - process it [05:31:31]requested_item shift.opened is exist - process it [05:31:31]req_shift_opened [05:31:31]FM_GetShiftState [05:31:31]SAM_PROTO_GetShiftState [05:31:31]wFMCommunicate request_size=4 [05:31:31]MH_SAM_APDU [05:31:31]CAPDU: 80 13 01 00 [05:31:31]Write to MH i2c: E2 08 00 B2 15 80 13 01 00 00 00 00 00 44 [05:31:31]Write i2c OK [05:31:31]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 0E 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 0E 00 B2 15 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A2 [05:31:31]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [05:31:31]wFMCommunicate OK [05:31:31]SAM_PROTO_GetShiftState done [05:31:31]FM_GetShiftState done [05:31:31]req_shift_opened done [05:31:31]requested_item shift.open_date is exist - process it [05:31:31]req_shift_open_date [05:31:31]req_shift_open_date done [05:31:31]produce_requested_data done [05:31:31]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52694,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [05:31:31]process_action_free close_receipt [05:31:31]json_value_free [05:31:31]json_value_free done [05:31:31]process_json_proto returns [05:31:31]Send response to host [05:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52694,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [05:31:31]free response buf [05:31:31]execute_script done [05:31:31]execute_script returns [05:31:31]free content buf [05:31:31]Sock 7.Close socket [05:31:31]Sock 7.Thread stoped [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:19]accept exits with 9 [05:46:19]New connection [05:46:19]New thread 3067293028 created [05:46:19]Thread 3067149668 joined [05:46:19]Waiting for new connection... [05:46:19] Sock 9.Parse request [05:46:19]Sock 9.Check first char [05:46:19]Sock 9.First char is OK [05:46:19]request: POST /json_proto HTTP/1.0 [05:46:19]Method: POST [05:46:19]URL: /json_proto [05:46:19]Method is POST - this is cgi request [05:46:19]url: /json_proto [05:46:19]query_string will be loaded in cgi processing [05:46:19]execute_cgi json_proto POST (null) [05:46:19]execute_cgi path=json_proto method=POST [05:46:19]POST find Content-Length [05:46:19]Host: 172.17.60.7:8080 [05:46:19]Content-Length: 816 [05:46:19]Content-Type: application/json [05:46:19] [05:46:19]POST finish read [05:46:19]Found Content-Length = 816 [05:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122825", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:19]execute_script... [05:46: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)122825", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:19]POST & json_proto [05:46:19]process_json_proto [05:46:19]json parsed OK: [05:46:19]protocol is kg_v1.0 [05:46:19]action value=close_receipt [05:46:19]process_action close_receipt [05:46:19]cmd_close_receipt [05:46:19]MH_GetDate [05:46:19]Write to MH i2c: F0 00 00 B3 15 B7 [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: F0 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: F0 09 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: F0 09 00 B3 15 00 AF A1 B9 66 63 9B 67 64 F8 [05:46:19]GetLastDocTimeStamp 1723440688 [05:46:19]current date 1723441583 [05:46:19]FM_GetShiftState [05:46:19]SAM_PROTO_GetShiftState [05:46:19]wFMCommunicate request_size=4 [05:46:19]MH_SAM_APDU [05:46:19]CAPDU: 80 13 01 00 [05:46:19]Write to MH i2c: E2 08 00 B4 15 80 13 01 00 00 00 00 00 46 [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:19]Read from MH i2c: E2 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 0E 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 0E 00 B4 15 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A4 [05:46:19]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [05:46:19]wFMCommunicate OK [05:46:19]SAM_PROTO_GetShiftState done [05:46:19]FM_GetShiftState done [05:46:19]opened in 1723422684 [05:46:19]opened+sec_in_day 1723509084 [05:46:19]quantity*price = 12000 [05:46:19]sum+1 = 12001 [05:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 13 12.08.2024 05:46 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52695 ФПД: 150983804005789 /tax-web-control/client/api/v1/ticket?date=20240812T054623&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52695&fm=150983804005789&tin=02508201610067®Number=0000000000090834&sum=12000 0 [05:46:20]StoreToDocumentArchive [05:46:20]shift 447 fd 52695 [05:46:20]save to /storage/0447/doc_00052695 [05:46:20]save last doc name /storage/0447/doc_00052695 to /storage/kkm_last_doc_name [05:46:20]save OK [05:46:20]Clear old archive folders... [05:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=279 [05:46:20]tlvbuf is B6F14680 [05:46:20]SAM_PROTO_ClearQueue [05:46:20]wFMCommunicate request_size=4 [05:46:20]MH_SAM_APDU [05:46:20]CAPDU: 80 09 00 00 [05:46:20]Write to MH i2c: E2 08 00 C1 15 80 09 00 00 00 00 00 00 48 [05:46:20]Write i2c OK [05:46:20]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 C1 15 00 90 00 4A [05:46:21]RAPDU: 90 00 [05:46:21]wFMCommunicate OK [05:46:21]SAM_PROTO_ClearQueue done [05:46:21]KKMCreateOFDPacket [05:46:21]OFDProtocolAddRootSTLVToBuf [05:46:21]FM_MakeSignedData [05:46:21]FM_MakeSignedData [05:46:21]SAM_PROTO_SignData [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 0D 01 02 [05:46:21]Write to MH i2c: E2 08 00 C2 15 80 0D 01 02 00 00 00 00 50 [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 C2 15 00 90 00 4B [05:46:21]RAPDU: 90 00 [05:46:21]wFMCommunicate OK [05:46:21]wFMCommunicate request_size=255 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0D 00 00 00 F4 03 04 00 AF A1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 [05:46:21]Write to MH i2c: E2 02 01 C3 15 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0D 00 00 00 F4 03 04 00 AF A1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 00 00 87 [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 C3 15 00 90 00 4C [05:46:21]RAPDU: 90 00 [05:46:21]wFMCommunicate OK [05:46:21]wFMCommunicate request_size=38 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D7 CD 00 00 35 04 06 00 89 51 A8 01 2D 9D [05:46:21]Write to MH i2c: E2 29 00 C4 15 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D7 CD 00 00 35 04 06 00 89 51 A8 01 2D 9D 00 00 CD [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 03 00 C4 15 00 90 00 4D [05:46:21]RAPDU: 90 00 [05:46:21]wFMCommunicate OK [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 0D 03 02 [05:46:21]Write to MH i2c: E2 08 00 C5 15 80 0D 03 02 00 00 00 00 55 [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 0B 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 0B 00 C5 15 00 8B 09 77 03 80 19 C4 5E 90 00 1F [05:46:21]RAPDU: 8B 09 77 03 80 19 C4 5E 90 00 [05:46:21]wFMCommunicate OK [05:46:21]SAM_PROTO_SignData done [05:46:21]FM_MakeSignedData done [05:46:21]CreateOFDProtocolMessage [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 11 00 00 [05:46:21]Write to MH i2c: E2 08 00 C6 15 80 11 00 00 00 00 00 00 55 [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 17 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 17 00 C6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 A8 [05:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [05:46:21]wFMCommunicate OK [05:46:21]CreateOFDProtocolMessage done [05:46:21]OFDSenderStorePacket 52695 [05:46:21]StoreOFDPacket docnum=52695 [05:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2B 01 00 00 00 68 23 01 F3 16 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0D 00 00 00 F4 03 04 00 AF A1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D7 CD 00 00 35 04 06 00 89 51 A8 01 2D 9D 8B 09 77 03 80 19 C4 5E [05:46:21]CheckFolder [05:46:21]dirname=/storage/ofd_packets [05:46:21]CheckFolder done [05:46:21]ProducePacketName [05:46:21]name=ofd_packets/00052695 [05:46:21]NVStorageSaveData ofd_packets/00052695 [05:46:21]File name is /storage/ofd_packets/00052695 [05:46:21]Write 329 bytes [05:46:21]NVStorageSaveData done [05:46:21]OFDSenderStorePacket done [05:46:21]KKMCreateOFDPacket done [05:46:21]NVStorageSaveData kkm_last_timestamp [05:46:21]File name is /storage/kkm_last_timestamp [05:46:21]Write 4 bytes [05:46:21]NVStorageSaveData done [05:46:21]ExternCall_PrintAddStr [05:46:21]wPrintStart [05:46:21]Write to MH i2c: 01 00 00 C7 15 DC [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: 01 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: 01 07 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: 01 07 00 C7 15 00 00 00 00 00 FF 0F F1 [05:46:21]RasterBufferAndPrint [05:46:21]line Счет N : (3)122825 [05:46:21]line ИНН: 02508201610067 [05:46:21]line Контрольно-Кассовый Чек [05:46:21]line ПРОДАЖА [05:46:21]line Товар: 2000032780025 [05:46:21]line Сосиска в тесте DC 110г [05:46:21]line 2.000 * 60.00 [05:46:21]line = 120.00 [05:46:21]line НДС 12% НСП 1% [05:46:21]line > о реализуемом товаре [05:46:21]line ИТОГО: 120.00 [05:46:21]line НСП 1% : 1.06 [05:46:21]line НДС 12% : 12.74 [05:46:21]line Наличными: 0.00 [05:46:21]line Безнал.: 120.00 [05:46:21]line Место: АЗС № 54 "Партнер Нефть" [05:46:21]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [05:46:21]line СНО: Общий режим [05:46:21]line Чек 13 12.08.2024 05:46 [05:46:21]line Смена: 447 ФФД: 1.0 [05:46:21]line ЗНМ: 0300000007 [05:46:21]line РНМ: 0000000000090834 [05:46:21]line Версия ККМ: 001 [05:46:21]line Платежная система: О! деньги [05:46:21]line ФМ: 0000000000874715 [05:46:21]line ФД: 52695 [05:46:21]line ФПД: 150983804005789 [05:46:21]line /tax-web-control/client/api/v1/ticket?date=20240812T054623&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52695&fm=150983804005789&tin=02508201610067®Number=0000000000090834&sum=12000 [05:46:21]OFD Sender: Processing packet 52695 [packets to send 55, broken 54] [05:46:21]ProducePacketName [05:46:21]name=ofd_packets/00052695 [05:46:21]OFD Sender: To server: pG, [05:46:21]CommunicateWithHost lk.salyk.kg:30040 [05:46:21]ConnectInit lk.salyk.kg [05:46:21]line 0 [05:46:21]written 0, free lines is 4095 [05:46:22]Connected sock=10 [05:46:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2B 01 00 00 00 68 23 01 F3 16 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0D 00 00 00 F4 03 04 00 AF A1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D7 CD 00 00 35 04 06 00 89 51 A8 01 2D 9D 8B 09 77 03 80 19 C4 5E [05:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 A0 1F 47 00 3A 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D7 CD 00 00 F4 03 04 00 49 49 B9 66 B6 04 01 00 00 5F 5B C8 54 03 89 FF EB [05:46:22]CommunicateWithHost err = 0 [05:46:22]CheckOFDResponse [05:46:22]1017 (14) - 77093643461234 [05:46:22]1041 (16) - 0000000000874715 [05:46:22]1040 (4) - 52695 [05:46:22]1012 (4) - 11.08.2024 23:29 [05:46:22]1206 (1) - 0 [05:46:22]OFD Sender: Remove packet 52695 [05:46:22]ProducePacketName [05:46:22]name=ofd_packets/00052695 [05:46:22]NVStorageDeleteData [05:46:22]Write to MH i2c: 01 00 00 F0 15 05 [05:46:22]Write i2c OK [05:46:22]MH_I2C_Read... [05:46:22]Read from MH i2c: 01 [05:46:22]MH_I2C_Read... [05:46:22]Read from MH i2c: 01 07 00 [05:46:22]MH_I2C_Read... [05:46:22]Read from MH i2c: 01 07 00 F0 15 00 00 00 00 00 C2 0C DA [05:46:22]RasterBufferAndPrint [05:46:22]line [05:46:22]line [05:46:22]line [05:46:22]line [05:46:22]line [05:46:22]written 0, free lines is 3273 [05:46:22]MH_Cut [05:46:22]Write to MH i2c: D1 01 00 F7 15 01 DE [05:46:22]Write i2c OK [05:46:22]MH_I2C_Read... [05:46:22]Read from MH i2c: D1 [05:46:22]MH_I2C_Read... [05:46:22]Read from MH i2c: D1 01 00 [05:46:22]MH_I2C_Read... [05:46:22]Read from MH i2c: D1 01 00 F7 15 00 DD [05:46:22]Write to MH i2c: 01 00 00 F8 15 0D [05:46:22]Write i2c OK [05:46:22]MH_I2C_Read... [05:46:22]OFD Sender: No OFD packet to send [05:46:23]*** Cut start [05:46:23]*** Purtial cut [05:46:23]*** Stage 1: CUTSNS_PIN = 1 [05:46:23]Read from MH i2c: 01 [05:46:23]MH_I2C_Read... [05:46:23]*** Stop cut motor [05:46:23]*** Cut end [05:46:23]Read from MH i2c: 01 07 00 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: 01 07 00 F8 15 00 00 00 00 00 FF 0F 22 [05:46:23]process_action close_receipt done [05:46:23]requested_data is exist [05:46:23]produce_requested_data [05:46:23]requested_item fm.sn is exist - process it [05:46:23]wFMCommunicate request_size=4 [05:46:23]MH_SAM_APDU [05:46:23]CAPDU: 80 11 00 00 [05:46:23]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [05:46:23]Write i2c OK [05:46:23]MH_I2C_Read... [05:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:23]Read from MH i2c: E2 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: E2 17 00 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 DB [05:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [05:46:23]wFMCommunicate OK [05:46:23]requested_item fd.num is exist - process it [05:46:23]SAM_PROTO_GetFieldsCounters [05:46:23]wFMCommunicate request_size=4 [05:46:23]MH_SAM_APDU [05:46:23]CAPDU: 80 13 00 00 [05:46:23]Write to MH i2c: E2 08 00 FA 15 80 13 00 00 00 00 00 00 8B [05:46:23]Write i2c OK [05:46:23]MH_I2C_Read... [05:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:23]Read from MH i2c: E2 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: E2 62 00 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: E2 62 00 FA 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D7 CD 00 00 0E 04 04 00 BF 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 36 [05:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D7 CD 00 00 0E 04 04 00 BF 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:46:23]wFMCommunicate OK [05:46:23]SAM_PROTO_GetFieldsCounters done [05:46:23]requested_item shift.num is exist - process it [05:46:23]requested_item shift.opened is exist - process it [05:46:23]req_shift_opened [05:46:23]FM_GetShiftState [05:46:23]SAM_PROTO_GetShiftState [05:46:23]wFMCommunicate request_size=4 [05:46:23]MH_SAM_APDU [05:46:23]CAPDU: 80 13 01 00 [05:46:23]Write to MH i2c: E2 08 00 FB 15 80 13 01 00 00 00 00 00 8D [05:46:23]Write i2c OK [05:46:23]MH_I2C_Read... [05:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:23]Read from MH i2c: E2 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: E2 0E 00 [05:46:23]MH_I2C_Read... [05:46:23]Read from MH i2c: E2 0E 00 FB 15 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 EB [05:46:23]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [05:46:23]wFMCommunicate OK [05:46:23]SAM_PROTO_GetShiftState done [05:46:23]FM_GetShiftState done [05:46:23]req_shift_opened done [05:46:23]requested_item shift.open_date is exist - process it [05:46:23]req_shift_open_date [05:46:23]req_shift_open_date done [05:46:23]produce_requested_data done [05:46:23]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52695,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [05:46:23]process_action_free close_receipt [05:46:23]json_value_free [05:46:23]json_value_free done [05:46:23]process_json_proto returns [05:46:23]Send response to host [05:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52695,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [05:46:23]free response buf [05:46:23]execute_script done [05:46:23]execute_script returns [05:46:23]free content buf [05:46:23]Sock 9.Close socket [05:46:23]Sock 9.Thread stoped [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:21]accept exits with 7 [07:19:21]New connection [07:19:21]New thread 3067149668 created [07:19:21]Thread 3067293028 joined [07:19:21]Waiting for new connection... [07:19:21] Sock 7.Parse request [07:19:21]Sock 7.Check first char [07:19:21]Sock 7.First char is OK [07:19:21]request: POST /json_proto HTTP/1.0 [07:19:21]Method: POST [07:19:21]URL: /json_proto [07:19:21]Method is POST - this is cgi request [07:19:21]url: /json_proto [07:19:21]query_string will be loaded in cgi processing [07:19:21]execute_cgi json_proto POST (null) [07:19:21]execute_cgi path=json_proto method=POST [07:19:21]POST find Content-Length [07:19:21]Host: 172.17.60.7:8080 [07:19:21]Content-Length: 806 [07:19:21]Content-Type: application/json [07:19:21] [07:19:21]POST finish read [07:19:21]Found Content-Length = 806 [07:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122826", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:21]execute_script... [07:19: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)122826", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 156.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:21]POST & json_proto [07:19:21]process_json_proto [07:19:21]json parsed OK: [07:19:21]protocol is kg_v1.0 [07:19:21]action value=close_receipt [07:19:21]process_action close_receipt [07:19:21]cmd_close_receipt [07:19:21]MH_GetDate [07:19:21]Write to MH i2c: F0 00 00 FC 15 00 [07:19:21]Write i2c OK [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: F0 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: F0 09 00 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: F0 09 00 FC 15 00 7D B7 B9 66 63 9B 67 64 25 [07:19:21]GetLastDocTimeStamp 1723441583 [07:19:21]current date 1723447165 [07:19:21]FM_GetShiftState [07:19:21]SAM_PROTO_GetShiftState [07:19:21]wFMCommunicate request_size=4 [07:19:21]MH_SAM_APDU [07:19:21]CAPDU: 80 13 01 00 [07:19:21]Write to MH i2c: E2 08 00 FD 15 80 13 01 00 00 00 00 00 8F [07:19:21]Write i2c OK [07:19:21]MH_I2C_Read... [07:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:21]Read from MH i2c: E2 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 0E 00 [07:19:21]MH_I2C_Read... [07:19:21]Read from MH i2c: E2 0E 00 FD 15 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 ED [07:19:21]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:19:21]wFMCommunicate OK [07:19:21]SAM_PROTO_GetShiftState done [07:19:21]FM_GetShiftState done [07:19:21]opened in 1723422684 [07:19:21]opened+sec_in_day 1723509084 [07:19:21]quantity*price = 15600 [07:19:21]sum+1 = 15601 [07:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 156.00 НСП 1% : 1.38 НДС 12% : 16.57 Наличными: 0.00 Безнал.: 156.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 14 12.08.2024 07:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52696 ФПД: 212400215293775 /tax-web-control/client/api/v1/ticket?date=20240812T071925&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52696&fm=212400215293775&tin=02508201610067®Number=0000000000090834&sum=15600 0 [07:19:22]StoreToDocumentArchive [07:19:22]shift 447 fd 52696 [07:19:22]save to /storage/0447/doc_00052696 [07:19:22]save last doc name /storage/0447/doc_00052696 to /storage/kkm_last_doc_name [07:19:22]save OK [07:19:22]Clear old archive folders... [07:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:19:22]tlvbuf is 012E0D90 [07:19:22]SAM_PROTO_ClearQueue [07:19:22]wFMCommunicate request_size=4 [07:19:22]MH_SAM_APDU [07:19:22]CAPDU: 80 09 00 00 [07:19:22]Write to MH i2c: E2 08 00 0A 16 80 09 00 00 00 00 00 00 92 [07:19:22]Write i2c OK [07:19:22]MH_I2C_Read... [07:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:22]OFD Sender: No OFD packet to send [07:19:22]Read from MH i2c: E2 [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: E2 03 00 [07:19:22]MH_I2C_Read... [07:19:22]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [07:19:22]RAPDU: 90 00 [07:19:22]wFMCommunicate OK [07:19:22]SAM_PROTO_ClearQueue done [07:19:22]KKMCreateOFDPacket [07:19:22]OFDProtocolAddRootSTLVToBuf [07:19:22]FM_MakeSignedData [07:19:22]FM_MakeSignedData [07:19:22]SAM_PROTO_SignData [07:19:22]wFMCommunicate request_size=4 [07:19:22]MH_SAM_APDU [07:19:22]CAPDU: 80 0D 01 02 [07:19:22]Write to MH i2c: E2 08 00 0B 16 80 0D 01 02 00 00 00 00 9A [07:19:22]Write i2c OK [07:19:22]MH_I2C_Read... [07:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:23]Read from MH i2c: E2 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 03 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 03 00 0B 16 00 90 00 95 [07:19:23]RAPDU: 90 00 [07:19:23]wFMCommunicate OK [07:19:23]wFMCommunicate request_size=255 [07:19:23]MH_SAM_APDU [07:19:23]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7D B7 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 [07:19:23]Write to MH i2c: E2 02 01 0C 16 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7D B7 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 DB [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:23]Read from MH i2c: E2 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 03 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 03 00 0C 16 00 90 00 96 [07:19:23]RAPDU: 90 00 [07:19:23]wFMCommunicate OK [07:19:23]wFMCommunicate request_size=31 [07:19:23]MH_SAM_APDU [07:19:23]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 31 35 10 04 04 00 D8 CD 00 00 35 04 06 00 C1 2D 47 61 FF 4F [07:19:23]Write to MH i2c: E2 22 00 0D 16 80 0D 02 02 1A 00 30 30 38 37 34 37 31 35 10 04 04 00 D8 CD 00 00 35 04 06 00 C1 2D 47 61 FF 4F 00 00 51 [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:23]Read from MH i2c: E2 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 03 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 03 00 0D 16 00 90 00 97 [07:19:23]RAPDU: 90 00 [07:19:23]wFMCommunicate OK [07:19:23]wFMCommunicate request_size=4 [07:19:23]MH_SAM_APDU [07:19:23]CAPDU: 80 0D 03 02 [07:19:23]Write to MH i2c: E2 08 00 0E 16 80 0D 03 02 00 00 00 00 9F [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:23]Read from MH i2c: E2 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 0B 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 0B 00 0E 16 00 F2 EA 54 D8 81 12 57 64 90 00 F6 [07:19:23]RAPDU: F2 EA 54 D8 81 12 57 64 90 00 [07:19:23]wFMCommunicate OK [07:19:23]SAM_PROTO_SignData done [07:19:23]FM_MakeSignedData done [07:19:23]CreateOFDProtocolMessage [07:19:23]wFMCommunicate request_size=4 [07:19:23]MH_SAM_APDU [07:19:23]CAPDU: 80 11 00 00 [07:19:23]Write to MH i2c: E2 08 00 0F 16 80 11 00 00 00 00 00 00 9F [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:23]Read from MH i2c: E2 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 17 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 17 00 0F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 F2 [07:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:19:23]wFMCommunicate OK [07:19:23]CreateOFDProtocolMessage done [07:19:23]OFDSenderStorePacket 52696 [07:19:23]StoreOFDPacket docnum=52696 [07:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 55 9D 1C 01 C9 3F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7D B7 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D8 CD 00 00 35 04 06 00 C1 2D 47 61 FF 4F F2 EA 54 D8 81 12 57 64 [07:19:23]CheckFolder [07:19:23]dirname=/storage/ofd_packets [07:19:23]CheckFolder done [07:19:23]ProducePacketName [07:19:23]name=ofd_packets/00052696 [07:19:23]NVStorageSaveData ofd_packets/00052696 [07:19:23]File name is /storage/ofd_packets/00052696 [07:19:23]Write 322 bytes [07:19:23]NVStorageSaveData done [07:19:23]OFDSenderStorePacket done [07:19:23]KKMCreateOFDPacket done [07:19:23]NVStorageSaveData kkm_last_timestamp [07:19:23]File name is /storage/kkm_last_timestamp [07:19:23]Write 4 bytes [07:19:23]NVStorageSaveData done [07:19:23]ExternCall_PrintAddStr [07:19:23]wPrintStart [07:19:23]Write to MH i2c: 01 00 00 10 16 26 [07:19:23]OFD Sender: Processing packet 52696 [packets to send 55, broken 54] [07:19:23]ProducePacketName [07:19:23]name=ofd_packets/00052696 [07:19:23]OFD Sender: To server: pG, [07:19:23]CommunicateWithHost lk.salyk.kg:30040 [07:19:23]ConnectInit lk.salyk.kg [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: 01 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: 01 07 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: 01 07 00 10 16 00 00 00 00 00 FF 0F 3B [07:19:23]RasterBufferAndPrint [07:19:23]line Счет N : (3)122826 [07:19:23]line ИНН: 02508201610067 [07:19:23]line Контрольно-Кассовый Чек [07:19:23]line ПРОДАЖА [07:19:23]line Товар: 4700000480517 [07:19:23]line Пиво Живое 1л ПЭТ [07:19:23]line 1.000 * 156.00 [07:19:23]line = 156.00 [07:19:23]line НДС 12% НСП 1% [07:19:23]line > о реализуемом товаре [07:19:23]line ИТОГО: 156.00 [07:19:23]line НСП 1% : 1.38 [07:19:23]line НДС 12% : 16.57 [07:19:23]line Наличными: 0.00 [07:19:23]line Безнал.: 156.00 [07:19:23]line Место: АЗС № 54 "Партнер Нефть" [07:19:23]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [07:19:23]line СНО: Общий режим [07:19:23]line Чек 14 12.08.2024 07:19 [07:19:23]line Смена: 447 ФФД: 1.0 [07:19:23]line ЗНМ: 0300000007 [07:19:23]line РНМ: 0000000000090834 [07:19:23]line Версия ККМ: 001 [07:19:23]line Платежная система: О! деньги [07:19:23]line ФМ: 0000000000874715 [07:19:23]line ФД: 52696 [07:19:23]line ФПД: 212400215293775 [07:19:23]line /tax-web-control/client/api/v1/ticket?date=20240812T071925&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52696&fm=212400215293775&tin=02508201610067®Number=0000000000090834&sum=15600 [07:19:23]line 0 [07:19:23]Connected sock=10 [07:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 55 9D 1C 01 C9 3F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 7D B7 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D8 CD 00 00 35 04 06 00 C1 2D 47 61 FF 4F F2 EA 54 D8 81 12 57 64 [07:19:23]written 0, free lines is 4095 [07:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F2 56 47 00 AA 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 34 37 31 35 10 04 04 00 D8 CD 00 00 F4 03 04 00 17 5F B9 66 B6 04 01 00 00 B7 07 EF 3E F1 A5 F6 48 [07:19:24]CommunicateWithHost err = 0 [07:19:24]CheckOFDResponse [07:19:24]1017 (14) - 77093643461234 [07:19:24]1041 (16) - 0000000000874715 [07:19:24]1040 (4) - 52696 [07:19:24]1012 (4) - 12.08.2024 01:02 [07:19:24]1206 (1) - 0 [07:19:24]OFD Sender: Remove packet 52696 [07:19:24]ProducePacketName [07:19:24]name=ofd_packets/00052696 [07:19:24]NVStorageDeleteData [07:19:24]Write to MH i2c: 01 00 00 39 16 4F [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: 01 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: 01 07 00 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: 01 07 00 39 16 00 00 00 00 00 B6 0C 18 [07:19:24]RasterBufferAndPrint [07:19:24]line [07:19:24]line [07:19:24]line [07:19:24]line [07:19:24]line [07:19:24]written 0, free lines is 3260 [07:19:24]MH_Cut [07:19:24]Write to MH i2c: D1 01 00 40 16 01 28 [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: D1 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: D1 01 00 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: D1 01 00 40 16 00 27 [07:19:24]Write to MH i2c: 01 00 00 41 16 57 [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]OFD Sender: No OFD packet to send [07:19:25]*** Cut start [07:19:25]*** Purtial cut [07:19:25]*** Stage 1: CUTSNS_PIN = 1 [07:19:25]Read from MH i2c: 01 [07:19:25]MH_I2C_Read... [07:19:25]*** Stop cut motor [07:19:25]*** Cut end [07:19:25]Read from MH i2c: 01 07 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: 01 07 00 41 16 00 00 00 00 00 FF 0F 6C [07:19:25]process_action close_receipt done [07:19:25]requested_data is exist [07:19:25]produce_requested_data [07:19:25]requested_item fm.sn is exist - process it [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 11 00 00 [07:19:25]Write to MH i2c: E2 08 00 42 16 80 11 00 00 00 00 00 00 D2 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 17 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 17 00 42 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 25 [07:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:19:25]wFMCommunicate OK [07:19:25]requested_item fd.num is exist - process it [07:19:25]SAM_PROTO_GetFieldsCounters [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 13 00 00 [07:19:25]Write to MH i2c: E2 08 00 43 16 80 13 00 00 00 00 00 00 D5 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 62 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 62 00 43 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D8 CD 00 00 0E 04 04 00 BF 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 84 [07:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D8 CD 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:25]wFMCommunicate OK [07:19:25]SAM_PROTO_GetFieldsCounters done [07:19:25]requested_item shift.num is exist - process it [07:19:25]requested_item shift.opened is exist - process it [07:19:25]req_shift_opened [07:19:25]FM_GetShiftState [07:19:25]SAM_PROTO_GetShiftState [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 13 01 00 [07:19:25]Write to MH i2c: E2 08 00 44 16 80 13 01 00 00 00 00 00 D7 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 0E 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 0E 00 44 16 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 35 [07:19:25]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:19:25]wFMCommunicate OK [07:19:25]SAM_PROTO_GetShiftState done [07:19:25]FM_GetShiftState done [07:19:25]req_shift_opened done [07:19:25]requested_item shift.open_date is exist - process it [07:19:25]req_shift_open_date [07:19:25]req_shift_open_date done [07:19:25]produce_requested_data done [07:19:25]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52696,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [07:19:25]process_action_free close_receipt [07:19:25]json_value_free [07:19:25]json_value_free done [07:19:25]process_json_proto returns [07:19:25]Send response to host [07:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52696,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [07:19:25]free response buf [07:19:25]execute_script done [07:19:25]execute_script returns [07:19:25]free content buf [07:19:25]Sock 7.Close socket [07:19:25]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:27]accept exits with 9 [07:28:27]New connection [07:28:27]New thread 3067293028 created [07:28:27]Thread 3067149668 joined [07:28:27]Waiting for new connection... [07:28:27] Sock 9.Parse request [07:28:27]Sock 9.Check first char [07:28:27]Sock 9.First char is OK [07:28:27]request: POST /json_proto HTTP/1.0 [07:28:27]Method: POST [07:28:27]URL: /json_proto [07:28:27]Method is POST - this is cgi request [07:28:27]url: /json_proto [07:28:27]query_string will be loaded in cgi processing [07:28:27]execute_cgi json_proto POST (null) [07:28:27]execute_cgi path=json_proto method=POST [07:28:27]POST find Content-Length [07:28:27]Host: 172.17.60.7:8080 [07:28:27]Content-Length: 1093 [07:28:27]Content-Type: application/json [07:28:27] [07:28:27]POST finish read [07:28:27]Found Content-Length = 1093 [07:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122827", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:27]execute_script... [07:28: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)122827", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:27]POST & json_proto [07:28:27]process_json_proto [07:28:27]json parsed OK: [07:28:27]protocol is kg_v1.0 [07:28:27]action value=close_receipt [07:28:27]process_action close_receipt [07:28:27]cmd_close_receipt [07:28:27]MH_GetDate [07:28:27]Write to MH i2c: F0 00 00 45 16 4A [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: F0 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: F0 09 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: F0 09 00 45 16 00 A0 B9 B9 66 63 9B 67 64 94 [07:28:27]GetLastDocTimeStamp 1723447165 [07:28:27]current date 1723447712 [07:28:27]FM_GetShiftState [07:28:27]SAM_PROTO_GetShiftState [07:28:27]wFMCommunicate request_size=4 [07:28:27]MH_SAM_APDU [07:28:27]CAPDU: 80 13 01 00 [07:28:27]Write to MH i2c: E2 08 00 46 16 80 13 01 00 00 00 00 00 D9 [07:28:27]Write i2c OK [07:28:27]MH_I2C_Read... [07:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:27]Read from MH i2c: E2 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 0E 00 [07:28:27]MH_I2C_Read... [07:28:27]Read from MH i2c: E2 0E 00 46 16 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 37 [07:28:27]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:28:27]wFMCommunicate OK [07:28:27]SAM_PROTO_GetShiftState done [07:28:27]FM_GetShiftState done [07:28:27]opened in 1723422684 [07:28:27]opened+sec_in_day 1723509084 [07:28:27]quantity*price = 8500 [07:28:27]sum+1 = 8501 [07:28:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.12 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 15 12.08.2024 07:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52697 ФПД: 211282006275516 /tax-web-control/client/api/v1/ticket?date=20240812T072832&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52697&fm=211282006275516&tin=02508201610067®Number=0000000000090834&sum=18000 0 [07:28:29]StoreToDocumentArchive [07:28:29]shift 447 fd 52697 [07:28:29]save to /storage/0447/doc_00052697 [07:28:29]save last doc name /storage/0447/doc_00052697 to /storage/kkm_last_doc_name [07:28:29]save OK [07:28:29]Clear old archive folders... [07:28:29]ProcessDocumentItem done err = 0, tmpTLVsize=417 [07:28:29]tlvbuf is 012703F0 [07:28:29]SAM_PROTO_ClearQueue [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 09 00 00 [07:28:29]Write to MH i2c: E2 08 00 53 16 80 09 00 00 00 00 00 00 DB [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 53 16 00 90 00 DD [07:28:29]RAPDU: 90 00 [07:28:29]wFMCommunicate OK [07:28:29]SAM_PROTO_ClearQueue done [07:28:29]KKMCreateOFDPacket [07:28:29]OFDProtocolAddRootSTLVToBuf [07:28:29]FM_MakeSignedData [07:28:29]FM_MakeSignedData [07:28:29]SAM_PROTO_SignData [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 0D 01 02 [07:28:29]Write to MH i2c: E2 08 00 54 16 80 0D 01 02 00 00 00 00 E3 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 54 16 00 90 00 DE [07:28:29]RAPDU: 90 00 [07:28:29]wFMCommunicate OK [07:28:29]wFMCommunicate request_size=255 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 0D 02 02 FA 03 00 A1 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [07:28:29]Write to MH i2c: E2 02 01 55 16 80 0D 02 02 FA 00 03 00 A1 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 08 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 55 16 00 90 00 DF [07:28:29]RAPDU: 90 00 [07:28:29]wFMCommunicate OK [07:28:29]wFMCommunicate request_size=176 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A0 B9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D9 CD 00 00 35 04 06 00 C0 28 EC EE 75 BC [07:28:29]Write to MH i2c: E2 B3 00 56 16 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A0 B9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D9 CD 00 00 35 04 06 00 C0 28 EC EE 75 BC 00 00 6A [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 03 00 56 16 00 90 00 E0 [07:28:29]RAPDU: 90 00 [07:28:29]wFMCommunicate OK [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 0D 03 02 [07:28:29]Write to MH i2c: E2 08 00 57 16 80 0D 03 02 00 00 00 00 E8 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 0B 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 0B 00 57 16 00 B3 60 F7 1F FE 0F 2A 99 90 00 E2 [07:28:29]RAPDU: B3 60 F7 1F FE 0F 2A 99 90 00 [07:28:29]wFMCommunicate OK [07:28:29]SAM_PROTO_SignData done [07:28:29]FM_MakeSignedData done [07:28:29]CreateOFDProtocolMessage [07:28:29]wFMCommunicate request_size=4 [07:28:29]MH_SAM_APDU [07:28:29]CAPDU: 80 11 00 00 [07:28:29]Write to MH i2c: E2 08 00 58 16 80 11 00 00 00 00 00 00 E8 [07:28:29]Write i2c OK [07:28:29]MH_I2C_Read... [07:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:29]Read from MH i2c: E2 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 17 00 [07:28:29]MH_I2C_Read... [07:28:29]Read from MH i2c: E2 17 00 58 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 3B [07:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:28:29]wFMCommunicate OK [07:28:29]CreateOFDProtocolMessage done [07:28:29]OFDSenderStorePacket 52697 [07:28:29]StoreOFDPacket docnum=52697 [07:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 B5 01 00 00 15 83 AD 01 C0 6E 5A 03 01 00 03 00 A1 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A0 B9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D9 CD 00 00 35 04 06 00 C0 28 EC EE 75 BC B3 60 F7 1F FE 0F 2A 99 [07:28:29]CheckFolder [07:28:29]dirname=/storage/ofd_packets [07:28:29]CheckFolder done [07:28:29]ProducePacketName [07:28:29]name=ofd_packets/00052697 [07:28:29]NVStorageSaveData ofd_packets/00052697 [07:28:29]File name is /storage/ofd_packets/00052697 [07:28:29]Write 467 bytes [07:28:29]NVStorageSaveData done [07:28:29]OFDSenderStorePacket done [07:28:29]KKMCreateOFDPacket done [07:28:30]NVStorageSaveData kkm_last_timestamp [07:28:30]File name is /storage/kkm_last_timestamp [07:28:30]Write 4 bytes [07:28:30]NVStorageSaveData done [07:28:30]ExternCall_PrintAddStr [07:28:30]wPrintStart [07:28:30]Write to MH i2c: 01 00 00 59 16 6F [07:28:30]OFD Sender: Processing packet 52697 [packets to send 55, broken 54] [07:28:30]ProducePacketName [07:28:30]name=ofd_packets/00052697 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:30]OFD Sender: To server: pG, [07:28:30]CommunicateWithHost lk.salyk.kg:30040 [07:28:30]ConnectInit lk.salyk.kg [07:28:30]Read from MH i2c: 01 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: 01 07 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: 01 07 00 59 16 00 00 00 00 00 FF 0F 84 [07:28:30]RasterBufferAndPrint [07:28:30]line Счет N : (3)122827 [07:28:30]line ИНН: 02508201610067 [07:28:30]line Контрольно-Кассовый Чек [07:28:30]line ПРОДАЖА [07:28:30]line Товар: 4600682557456 [07:28:30]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:28:30]line 1.000 * 85.00 [07:28:30]line = 85.00 [07:28:30]line НДС 12% НСП 1% [07:28:30]line > о реализуемом товаре [07:28:30]line Товар: 4700000480050 [07:28:30]line Напиток Nitro Energy эн green ж/б 0,45л [07:28:30]line 1.000 * 95.00 [07:28:30]line = 95.00 [07:28:30]line НДС 12% НСП 1% [07:28:30]line > о реализуемом товаре [07:28:30]line ИТОГО: 180.00 [07:28:30]line НСП 1% : 1.59 [07:28:30]line НДС 12% : 19.12 [07:28:30]line Наличными: 0.00 [07:28:30]line Безнал.: 180.00 [07:28:30]line Место: АЗС № 54 "Партнер Нефть" [07:28:30]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [07:28:30]line СНО: Общий режим [07:28:30]line Чек 15 12.08.2024 07:28 [07:28:30]line Смена: 447 ФФД: 1.0 [07:28:30]line ЗНМ: 0300000007 [07:28:30]line РНМ: 0000000000090834 [07:28:30]line Версия ККМ: 001 [07:28:30]line Платежная система: О! деньги [07:28:30]line ФМ: 0000000000874715 [07:28:30]line ФД: 52697 [07:28:30]line ФПД: 211282006275516 [07:28:30]line /tax-web-control/client/api/v1/ticket?date=20240812T072832&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52697&fm=211282006275516&tin=02508201610067®Number=0000000000090834&sum=18000 [07:28:30]line 0 [07:28:30]written 0, free lines is 4095 [07:28:30]Connected sock=10 [07:28:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 B5 01 00 00 15 83 AD 01 C0 6E 5A 03 01 00 03 00 A1 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A0 B9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D9 CD 00 00 35 04 06 00 C0 28 EC EE 75 BC B3 60 F7 1F FE 0F 2A 99 [07:28:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 3A 57 47 00 BF 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 D9 CD 00 00 F4 03 04 00 39 61 B9 66 B6 04 01 00 00 3F A4 46 51 D0 07 E3 E4 [07:28:30]CommunicateWithHost err = 0 [07:28:30]CheckOFDResponse [07:28:30]1017 (14) - 77093643461234 [07:28:30]1041 (16) - 0000000000874715 [07:28:30]1040 (4) - 52697 [07:28:30]1012 (4) - 12.08.2024 01:11 [07:28:30]1206 (1) - 0 [07:28:30]OFD Sender: Remove packet 52697 [07:28:30]ProducePacketName [07:28:30]name=ofd_packets/00052697 [07:28:30]NVStorageDeleteData [07:28:30]Write to MH i2c: 01 00 00 8A 16 A0 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: 01 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: 01 07 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: 01 07 00 8A 16 00 00 00 00 00 33 0C E6 [07:28:30]RasterBufferAndPrint [07:28:30]line [07:28:30]line [07:28:30]line [07:28:30]line [07:28:30]line [07:28:30]written 0, free lines is 3131 [07:28:30]MH_Cut [07:28:30]Write to MH i2c: D1 01 00 91 16 01 79 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: D1 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: D1 01 00 [07:28:30]MH_I2C_Read... [07:28:30]Read from MH i2c: D1 01 00 91 16 00 78 [07:28:30]Write to MH i2c: 01 00 00 92 16 A8 [07:28:30]Write i2c OK [07:28:30]MH_I2C_Read... [07:28:31]OFD Sender: No OFD packet to send [07:28:31]*** Cut start [07:28:31]*** Purtial cut [07:28:31]*** Stage 1: CUTSNS_PIN = 1 [07:28:31]Read from MH i2c: 01 [07:28:31]MH_I2C_Read... [07:28:31]*** Stop cut motor [07:28:31]*** Cut end [07:28:31]Read from MH i2c: 01 07 00 [07:28:31]MH_I2C_Read... [07:28:31]Read from MH i2c: 01 07 00 92 16 00 00 00 00 00 FF 0F BD [07:28:31]process_action close_receipt done [07:28:31]requested_data is exist [07:28:31]produce_requested_data [07:28:31]requested_item fm.sn is exist - process it [07:28:31]wFMCommunicate request_size=4 [07:28:31]MH_SAM_APDU [07:28:31]CAPDU: 80 11 00 00 [07:28:31]Write to MH i2c: E2 08 00 93 16 80 11 00 00 00 00 00 00 23 [07:28:31]Write i2c OK [07:28:31]MH_I2C_Read... [07:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:32]Read from MH i2c: E2 [07:28:32]MH_I2C_Read... [07:28:32]Read from MH i2c: E2 17 00 [07:28:32]MH_I2C_Read... [07:28:32]Read from MH i2c: E2 17 00 93 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 76 [07:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:28:32]wFMCommunicate OK [07:28:32]requested_item fd.num is exist - process it [07:28:32]SAM_PROTO_GetFieldsCounters [07:28:32]wFMCommunicate request_size=4 [07:28:32]MH_SAM_APDU [07:28:32]CAPDU: 80 13 00 00 [07:28:32]Write to MH i2c: E2 08 00 94 16 80 13 00 00 00 00 00 00 26 [07:28:32]Write i2c OK [07:28:32]MH_I2C_Read... [07:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:32]Read from MH i2c: E2 [07:28:32]MH_I2C_Read... [07:28:32]Read from MH i2c: E2 62 00 [07:28:32]MH_I2C_Read... [07:28:32]Read from MH i2c: E2 62 00 94 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D9 CD 00 00 0E 04 04 00 BF 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 D9 [07:28: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 D9 CD 00 00 0E 04 04 00 BF 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:28:32]wFMCommunicate OK [07:28:32]SAM_PROTO_GetFieldsCounters done [07:28:32]requested_item shift.num is exist - process it [07:28:32]requested_item shift.opened is exist - process it [07:28:32]req_shift_opened [07:28:32]FM_GetShiftState [07:28:32]SAM_PROTO_GetShiftState [07:28:32]wFMCommunicate request_size=4 [07:28:32]MH_SAM_APDU [07:28:32]CAPDU: 80 13 01 00 [07:28:32]Write to MH i2c: E2 08 00 95 16 80 13 01 00 00 00 00 00 28 [07:28:32]Write i2c OK [07:28:32]MH_I2C_Read... [07:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:32]Read from MH i2c: E2 [07:28:32]MH_I2C_Read... [07:28:32]Read from MH i2c: E2 0E 00 [07:28:32]MH_I2C_Read... [07:28:32]Read from MH i2c: E2 0E 00 95 16 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 86 [07:28:32]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:28:32]wFMCommunicate OK [07:28:32]SAM_PROTO_GetShiftState done [07:28:32]FM_GetShiftState done [07:28:32]req_shift_opened done [07:28:32]requested_item shift.open_date is exist - process it [07:28:32]req_shift_open_date [07:28:32]req_shift_open_date done [07:28:32]produce_requested_data done [07:28:32]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52697,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [07:28:32]process_action_free close_receipt [07:28:32]json_value_free [07:28:32]json_value_free done [07:28:32]process_json_proto returns [07:28:32]Send response to host [07:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52697,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [07:28:32]free response buf [07:28:32]execute_script done [07:28:32]execute_script returns [07:28:32]free content buf [07:28:32]Sock 9.Close socket [07:28:32]Sock 9.Thread stoped [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:42]accept exits with 7 [07:43:42]New connection [07:43:42]New thread 3067149668 created [07:43:42]Thread 3067293028 joined [07:43:42]Waiting for new connection... [07:43:42] Sock 7.Parse request [07:43:42]Sock 7.Check first char [07:43:42]Sock 7.First char is OK [07:43:42]request: POST /json_proto HTTP/1.0 [07:43:42]Method: POST [07:43:42]URL: /json_proto [07:43:42]Method is POST - this is cgi request [07:43:42]url: /json_proto [07:43:42]query_string will be loaded in cgi processing [07:43:42]execute_cgi json_proto POST (null) [07:43:42]execute_cgi path=json_proto method=POST [07:43:42]POST find Content-Length [07:43:42]Host: 172.17.60.7:8080 [07:43:42]Content-Length: 786 [07:43:42]Content-Type: application/json [07:43:42] [07:43:42]POST finish read [07:43:42]Found Content-Length = 786 [07:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122828", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:42]execute_script... [07:43: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)122828", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:42]POST & json_proto [07:43:42]process_json_proto [07:43:42]json parsed OK: [07:43:42]protocol is kg_v1.0 [07:43:42]action value=close_receipt [07:43:42]process_action close_receipt [07:43:42]cmd_close_receipt [07:43:42]MH_GetDate [07:43:42]Write to MH i2c: F0 00 00 96 16 9B [07:43:42]Write i2c OK [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: F0 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: F0 09 00 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: F0 09 00 96 16 00 32 BD B9 66 63 9B 67 64 7B [07:43:42]GetLastDocTimeStamp 1723447712 [07:43:42]current date 1723448626 [07:43:42]FM_GetShiftState [07:43:42]SAM_PROTO_GetShiftState [07:43:42]wFMCommunicate request_size=4 [07:43:42]MH_SAM_APDU [07:43:42]CAPDU: 80 13 01 00 [07:43:42]Write to MH i2c: E2 08 00 97 16 80 13 01 00 00 00 00 00 2A [07:43:42]Write i2c OK [07:43:42]MH_I2C_Read... [07:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:42]Read from MH i2c: E2 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: E2 0E 00 [07:43:42]MH_I2C_Read... [07:43:42]Read from MH i2c: E2 0E 00 97 16 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 88 [07:43:42]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:43:42]wFMCommunicate OK [07:43:42]SAM_PROTO_GetShiftState done [07:43:42]FM_GetShiftState done [07:43:42]opened in 1723422684 [07:43:42]opened+sec_in_day 1723509084 [07:43:42]quantity*price = 13500 [07:43:42]sum+1 = 13501 [07:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 16 12.08.2024 07:43 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52698 ФПД: 227273526064209 /tax-web-control/client/api/v1/ticket?date=20240812T074347&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52698&fm=227273526064209&tin=02508201610067®Number=0000000000090834&sum=13500 0 [07:43:43]StoreToDocumentArchive [07:43:43]shift 447 fd 52698 [07:43:43]save to /storage/0447/doc_00052698 [07:43:43]save last doc name /storage/0447/doc_00052698 to /storage/kkm_last_doc_name [07:43:43]save OK [07:43:43]Clear old archive folders... [07:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:43:43]tlvbuf is 012E0D90 [07:43:43]SAM_PROTO_ClearQueue [07:43:43]wFMCommunicate request_size=4 [07:43:43]MH_SAM_APDU [07:43:43]CAPDU: 80 09 00 00 [07:43:43]Write to MH i2c: E2 08 00 A4 16 80 09 00 00 00 00 00 00 2C [07:43:43]Write i2c OK [07:43:43]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 A4 16 00 90 00 2E [07:43:44]RAPDU: 90 00 [07:43:44]wFMCommunicate OK [07:43:44]SAM_PROTO_ClearQueue done [07:43:44]KKMCreateOFDPacket [07:43:44]OFDProtocolAddRootSTLVToBuf [07:43:44]FM_MakeSignedData [07:43:44]FM_MakeSignedData [07:43:44]SAM_PROTO_SignData [07:43:44]wFMCommunicate request_size=4 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 0D 01 02 [07:43:44]Write to MH i2c: E2 08 00 A5 16 80 0D 01 02 00 00 00 00 34 [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 A5 16 00 90 00 2F [07:43:44]RAPDU: 90 00 [07:43:44]wFMCommunicate OK [07:43:44]wFMCommunicate request_size=255 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 33 BD B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 [07:43:44]Write to MH i2c: E2 02 01 A6 16 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 33 BD B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 CD [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 A6 16 00 90 00 30 [07:43:44]RAPDU: 90 00 [07:43:44]wFMCommunicate OK [07:43:44]wFMCommunicate request_size=31 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 31 35 10 04 04 00 DA CD 00 00 35 04 06 00 CE B4 3D C9 B4 51 [07:43:44]Write to MH i2c: E2 22 00 A7 16 80 0D 02 02 1A 00 30 30 38 37 34 37 31 35 10 04 04 00 DA CD 00 00 35 04 06 00 CE B4 3D C9 B4 51 00 00 96 [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [07:43:44]RAPDU: 90 00 [07:43:44]wFMCommunicate OK [07:43:44]wFMCommunicate request_size=4 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 0D 03 02 [07:43:44]Write to MH i2c: E2 08 00 A8 16 80 0D 03 02 00 00 00 00 39 [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 0B 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 0B 00 A8 16 00 68 09 2B D4 DF 90 7A 0B 90 00 9E [07:43:44]RAPDU: 68 09 2B D4 DF 90 7A 0B 90 00 [07:43:44]wFMCommunicate OK [07:43:44]SAM_PROTO_SignData done [07:43:44]FM_MakeSignedData done [07:43:44]CreateOFDProtocolMessage [07:43:44]wFMCommunicate request_size=4 [07:43:44]MH_SAM_APDU [07:43:44]CAPDU: 80 11 00 00 [07:43:44]Write to MH i2c: E2 08 00 A9 16 80 11 00 00 00 00 00 00 39 [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:44]Read from MH i2c: E2 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 17 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: E2 17 00 A9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 8C [07:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:43:44]wFMCommunicate OK [07:43:44]CreateOFDProtocolMessage done [07:43:44]OFDSenderStorePacket 52698 [07:43:44]StoreOFDPacket docnum=52698 [07:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 0C E0 1C 01 B4 63 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 33 BD B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DA CD 00 00 35 04 06 00 CE B4 3D C9 B4 51 68 09 2B D4 DF 90 7A 0B [07:43:44]CheckFolder [07:43:44]dirname=/storage/ofd_packets [07:43:44]CheckFolder done [07:43:44]ProducePacketName [07:43:44]name=ofd_packets/00052698 [07:43:44]NVStorageSaveData ofd_packets/00052698 [07:43:44]File name is /storage/ofd_packets/00052698 [07:43:44]Write 322 bytes [07:43:44]NVStorageSaveData done [07:43:44]OFDSenderStorePacket done [07:43:44]KKMCreateOFDPacket done [07:43:44]NVStorageSaveData kkm_last_timestamp [07:43:44]File name is /storage/kkm_last_timestamp [07:43:44]Write 4 bytes [07:43:44]NVStorageSaveData done [07:43:44]ExternCall_PrintAddStr [07:43:44]wPrintStart [07:43:44]Write to MH i2c: 01 00 00 AA 16 C0 [07:43:44]Write i2c OK [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: 01 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: 01 07 00 [07:43:44]MH_I2C_Read... [07:43:44]Read from MH i2c: 01 07 00 AA 16 00 00 00 00 00 FF 0F D5 [07:43:44]RasterBufferAndPrint [07:43:44]line Счет N : (3)122828 [07:43:44]line ИНН: 02508201610067 [07:43:44]line Контрольно-Кассовый Чек [07:43:44]line ПРОДАЖА [07:43:44]line Товар: 48745000 [07:43:44]line Сигареты Winston Purple Mix [07:43:44]line 1.000 * 135.00 [07:43:44]line = 135.00 [07:43:44]line НДС 12% НСП 1% [07:43:44]line > о реализуемом товаре [07:43:44]line ИТОГО: 135.00 [07:43:44]line НСП 1% : 1.19 [07:43:44]line НДС 12% : 14.34 [07:43:44]line Наличными: 0.00 [07:43:44]line Безнал.: 135.00 [07:43:44]line Место: АЗС № 54 "Партнер Нефть" [07:43:44]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [07:43:44]line СНО: Общий режим [07:43:44]line Чек 16 12.08.2024 07:43 [07:43:44]line Смена: 447 ФФД: 1.0 [07:43:44]line ЗНМ: 0300000007 [07:43:44]line РНМ: 0000000000090834 [07:43:44]line Версия ККМ: 001 [07:43:44]line Платежная система: О! деньги [07:43:44]line ФМ: 0000000000874715 [07:43:44]line ФД: 52698 [07:43:44]line ФПД: 227273526064209 [07:43:44]line /tax-web-control/client/api/v1/ticket?date=20240812T074347&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52698&fm=227273526064209&tin=02508201610067®Number=0000000000090834&sum=13500 [07:43:44]line 0 [07:43:44]written 0, free lines is 4095 [07:43:44]OFD Sender: Processing packet 52698 [packets to send 55, broken 54] [07:43:44]ProducePacketName [07:43:44]name=ofd_packets/00052698 [07:43:44]OFD Sender: To server: pG, [07:43:44]CommunicateWithHost lk.salyk.kg:30040 [07:43:44]ConnectInit lk.salyk.kg [07:43:45]Connected sock=10 [07:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 0C E0 1C 01 B4 63 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 33 BD B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DA CD 00 00 35 04 06 00 CE B4 3D C9 B4 51 68 09 2B D4 DF 90 7A 0B [07:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 49 2B 47 00 95 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 34 37 31 35 10 04 04 00 DA CD 00 00 F4 03 04 00 CC 64 B9 66 B6 04 01 00 00 0B E4 A0 5B D8 E9 8F 76 [07:43:45]CommunicateWithHost err = 0 [07:43:45]CheckOFDResponse [07:43:45]1017 (14) - 77093643461234 [07:43:45]1041 (16) - 0000000000874715 [07:43:45]1040 (4) - 52698 [07:43:45]1012 (4) - 12.08.2024 01:26 [07:43:45]1206 (1) - 0 [07:43:45]OFD Sender: Remove packet 52698 [07:43:45]ProducePacketName [07:43:45]name=ofd_packets/00052698 [07:43:45]NVStorageDeleteData [07:43:45]Write to MH i2c: 01 00 00 D3 16 E9 [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: 01 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: 01 07 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: 01 07 00 D3 16 00 00 00 00 00 AF 0C AB [07:43:45]RasterBufferAndPrint [07:43:45]line [07:43:45]line [07:43:45]line [07:43:45]line [07:43:45]line [07:43:45]written 0, free lines is 3251 [07:43:45]MH_Cut [07:43:45]Write to MH i2c: D1 01 00 DA 16 01 C2 [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: D1 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: D1 01 00 [07:43:45]MH_I2C_Read... [07:43:45]Read from MH i2c: D1 01 00 DA 16 00 C1 [07:43:45]Write to MH i2c: 01 00 00 DB 16 F1 [07:43:45]Write i2c OK [07:43:45]MH_I2C_Read... [07:43:45]OFD Sender: No OFD packet to send [07:43:46]*** Cut start [07:43:46]*** Purtial cut [07:43:46]*** Stage 1: CUTSNS_PIN = 1 [07:43:46]Read from MH i2c: 01 [07:43:46]MH_I2C_Read... [07:43:46]*** Stop cut motor [07:43:46]*** Cut end [07:43:46]Read from MH i2c: 01 07 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: 01 07 00 DB 16 00 00 00 00 00 FF 0F 06 [07:43:46]process_action close_receipt done [07:43:46]requested_data is exist [07:43:46]produce_requested_data [07:43:46]requested_item fm.sn is exist - process it [07:43:46]wFMCommunicate request_size=4 [07:43:46]MH_SAM_APDU [07:43:46]CAPDU: 80 11 00 00 [07:43:46]Write to MH i2c: E2 08 00 DC 16 80 11 00 00 00 00 00 00 6C [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:46]Read from MH i2c: E2 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 17 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 17 00 DC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 BF [07:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:43:46]wFMCommunicate OK [07:43:46]requested_item fd.num is exist - process it [07:43:46]SAM_PROTO_GetFieldsCounters [07:43:46]wFMCommunicate request_size=4 [07:43:46]MH_SAM_APDU [07:43:46]CAPDU: 80 13 00 00 [07:43:46]Write to MH i2c: E2 08 00 DD 16 80 13 00 00 00 00 00 00 6F [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:46]Read from MH i2c: E2 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 62 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 62 00 DD 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DA CD 00 00 0E 04 04 00 BF 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 26 [07:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DA CD 00 00 0E 04 04 00 BF 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:43:46]wFMCommunicate OK [07:43:46]SAM_PROTO_GetFieldsCounters done [07:43:46]requested_item shift.num is exist - process it [07:43:46]requested_item shift.opened is exist - process it [07:43:46]req_shift_opened [07:43:46]FM_GetShiftState [07:43:46]SAM_PROTO_GetShiftState [07:43:46]wFMCommunicate request_size=4 [07:43:46]MH_SAM_APDU [07:43:46]CAPDU: 80 13 01 00 [07:43:46]Write to MH i2c: E2 08 00 DE 16 80 13 01 00 00 00 00 00 71 [07:43:46]Write i2c OK [07:43:46]MH_I2C_Read... [07:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:46]Read from MH i2c: E2 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 0E 00 [07:43:46]MH_I2C_Read... [07:43:46]Read from MH i2c: E2 0E 00 DE 16 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CF [07:43:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:43:46]wFMCommunicate OK [07:43:46]SAM_PROTO_GetShiftState done [07:43:46]FM_GetShiftState done [07:43:46]req_shift_opened done [07:43:46]requested_item shift.open_date is exist - process it [07:43:46]req_shift_open_date [07:43:46]req_shift_open_date done [07:43:46]produce_requested_data done [07:43:46]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52698,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [07:43:46]process_action_free close_receipt [07:43:46]json_value_free [07:43:46]json_value_free done [07:43:46]process_json_proto returns [07:43:46]Send response to host [07:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52698,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [07:43:46]free response buf [07:43:46]execute_script done [07:43:46]execute_script returns [07:43:46]free content buf [07:43:46]Sock 7.Close socket [07:43:46]Sock 7.Thread stoped [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:52]accept exits with 9 [07:47:52]New connection [07:47:52]New thread 3067293028 created [07:47:52]Thread 3067149668 joined [07:47:52]Waiting for new connection... [07:47:52] Sock 9.Parse request [07:47:52]Sock 9.Check first char [07:47:52]Sock 9.First char is OK [07:47:52]request: POST /json_proto HTTP/1.0 [07:47:52]Method: POST [07:47:52]URL: /json_proto [07:47:52]Method is POST - this is cgi request [07:47:52]url: /json_proto [07:47:52]query_string will be loaded in cgi processing [07:47:52]execute_cgi json_proto POST (null) [07:47:52]execute_cgi path=json_proto method=POST [07:47:52]POST find Content-Length [07:47:52]Host: 172.17.60.7:8080 [07:47:52]Content-Length: 1254 [07:47:52]Content-Type: application/json [07:47:52] [07:47:52]POST finish read [07:47:52]Found Content-Length = 1254 [07:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122829", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 381.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:52]execute_script... [07:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122829", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 381.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:52]POST & json_proto [07:47:52]process_json_proto [07:47:52]json parsed OK: [07:47:52]protocol is kg_v1.0 [07:47:52]action value=close_receipt [07:47:52]process_action close_receipt [07:47:52]cmd_close_receipt [07:47:52]MH_GetDate [07:47:52]Write to MH i2c: F0 00 00 DF 16 E4 [07:47:52]Write i2c OK [07:47:52]MH_I2C_Read... [07:47:52]Read from MH i2c: F0 [07:47:52]MH_I2C_Read... [07:47:52]Read from MH i2c: F0 09 00 [07:47:52]MH_I2C_Read... [07:47:52]Read from MH i2c: F0 09 00 DF 16 00 2C BE B9 66 63 9B 67 64 BF [07:47:52]GetLastDocTimeStamp 1723448627 [07:47:52]current date 1723448876 [07:47:52]FM_GetShiftState [07:47:52]SAM_PROTO_GetShiftState [07:47:52]wFMCommunicate request_size=4 [07:47:52]MH_SAM_APDU [07:47:52]CAPDU: 80 13 01 00 [07:47:52]Write to MH i2c: E2 08 00 E0 16 80 13 01 00 00 00 00 00 73 [07:47:52]Write i2c OK [07:47:52]MH_I2C_Read... [07:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:52]Read from MH i2c: E2 [07:47:52]MH_I2C_Read... [07:47:52]Read from MH i2c: E2 0E 00 [07:47:52]MH_I2C_Read... [07:47:52]Read from MH i2c: E2 0E 00 E0 16 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D1 [07:47:52]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:47:52]wFMCommunicate OK [07:47:52]SAM_PROTO_GetShiftState done [07:47:52]FM_GetShiftState done [07:47:52]opened in 1723422684 [07:47:52]opened+sec_in_day 1723509084 [07:47:52]quantity*price = 14000 [07:47:52]sum+1 = 14001 [07:47:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 381.00 НСП 1% : 3.37 НДС 12% : 40.46 Наличными: 0.00 Безнал.: 381.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 17 12.08.2024 07:47 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52699 ФПД: 258572415320092 /tax-web-control/client/api/v1/ticket?date=20240812T074756&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52699&fm=258572415320092&tin=02508201610067®Number=0000000000090834&sum=38100 0 [07:47:53]StoreToDocumentArchive [07:47:53]shift 447 fd 52699 [07:47:53]save to /storage/0447/doc_00052699 [07:47:53]save last doc name /storage/0447/doc_00052699 to /storage/kkm_last_doc_name [07:47:53]save OK [07:47:53]Clear old archive folders... [07:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=472 [07:47:53]tlvbuf is 012AC500 [07:47:53]SAM_PROTO_ClearQueue [07:47:53]wFMCommunicate request_size=4 [07:47:53]MH_SAM_APDU [07:47:53]CAPDU: 80 09 00 00 [07:47:53]Write to MH i2c: E2 08 00 ED 16 80 09 00 00 00 00 00 00 75 [07:47:53]Write i2c OK [07:47:53]MH_I2C_Read... [07:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:53]Read from MH i2c: E2 [07:47:53]MH_I2C_Read... [07:47:53]Read from MH i2c: E2 03 00 [07:47:53]MH_I2C_Read... [07:47:53]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [07:47:53]RAPDU: 90 00 [07:47:53]wFMCommunicate OK [07:47:53]SAM_PROTO_ClearQueue done [07:47:53]KKMCreateOFDPacket [07:47:53]OFDProtocolAddRootSTLVToBuf [07:47:53]FM_MakeSignedData [07:47:53]FM_MakeSignedData [07:47:53]SAM_PROTO_SignData [07:47:53]wFMCommunicate request_size=4 [07:47:53]MH_SAM_APDU [07:47:53]CAPDU: 80 0D 01 02 [07:47:53]Write to MH i2c: E2 08 00 EE 16 80 0D 01 02 00 00 00 00 7D [07:47:53]Write i2c OK [07:47:53]MH_I2C_Read... [07:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:53]Read from MH i2c: E2 [07:47:53]MH_I2C_Read... [07:47:53]Read from MH i2c: E2 03 00 [07:47:53]MH_I2C_Read... [07:47:53]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [07:47:53]RAPDU: 90 00 [07:47:53]wFMCommunicate OK [07:47:53]wFMCommunicate request_size=255 [07:47:53]MH_SAM_APDU [07:47:53]CAPDU: 80 0D 02 02 FA 03 00 D8 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 [07:47:53]Write to MH i2c: E2 02 01 EF 16 80 0D 02 02 FA 00 03 00 D8 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 00 00 E5 [07:47:53]Write i2c OK [07:47:53]MH_I2C_Read... [07:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:53]Read from MH i2c: E2 [07:47:53]MH_I2C_Read... [07:47:53]Read from MH i2c: E2 03 00 [07:47:53]MH_I2C_Read... [07:47:53]Read from MH i2c: E2 03 00 EF 16 00 90 00 79 [07:47:53]RAPDU: 90 00 [07:47:53]wFMCommunicate OK [07:47:53]wFMCommunicate request_size=231 [07:47:53]MH_SAM_APDU [07:47:53]CAPDU: 80 0D 02 02 E2 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 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 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C BE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DB CD 00 00 35 04 06 00 EB 2B 94 F6 C0 1C [07:47:53]Write to MH i2c: E2 EA 00 F0 16 80 0D 02 02 E2 00 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 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 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C BE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DB CD 00 00 35 04 06 00 EB 2B 94 F6 C0 1C 00 00 DA [07:47:53]Write i2c OK [07:47:53]MH_I2C_Read... [07:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:54]Read from MH i2c: E2 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: E2 03 00 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [07:47:54]RAPDU: 90 00 [07:47:54]wFMCommunicate OK [07:47:54]wFMCommunicate request_size=4 [07:47:54]MH_SAM_APDU [07:47:54]CAPDU: 80 0D 03 02 [07:47:54]Write to MH i2c: E2 08 00 F1 16 80 0D 03 02 00 00 00 00 82 [07:47:54]Write i2c OK [07:47:54]MH_I2C_Read... [07:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:54]Read from MH i2c: E2 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: E2 0B 00 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: E2 0B 00 F1 16 00 36 59 CC 53 BD AA 09 00 90 00 A1 [07:47:54]RAPDU: 36 59 CC 53 BD AA 09 00 90 00 [07:47:54]wFMCommunicate OK [07:47:54]SAM_PROTO_SignData done [07:47:54]FM_MakeSignedData done [07:47:54]CreateOFDProtocolMessage [07:47:54]wFMCommunicate request_size=4 [07:47:54]MH_SAM_APDU [07:47:54]CAPDU: 80 11 00 00 [07:47:54]Write to MH i2c: E2 08 00 F2 16 80 11 00 00 00 00 00 00 82 [07:47:54]Write i2c OK [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: E2 [07:47:54]MH_I2C_Read... [07:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:54]Read from MH i2c: E2 17 00 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: E2 17 00 F2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D5 [07:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:47:54]wFMCommunicate OK [07:47:54]CreateOFDProtocolMessage done [07:47:54]OFDSenderStorePacket 52699 [07:47:54]StoreOFDPacket docnum=52699 [07:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 EC 01 00 00 EB 65 E4 01 9E 6A 5A 03 01 00 03 00 D8 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 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 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C BE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DB CD 00 00 35 04 06 00 EB 2B 94 F6 C0 1C 36 59 CC 53 BD AA 09 00 [07:47:54]CheckFolder [07:47:54]dirname=/storage/ofd_packets [07:47:54]CheckFolder done [07:47:54]ProducePacketName [07:47:54]name=ofd_packets/00052699 [07:47:54]NVStorageSaveData ofd_packets/00052699 [07:47:54]File name is /storage/ofd_packets/00052699 [07:47:54]Write 522 bytes [07:47:54]NVStorageSaveData done [07:47:54]OFDSenderStorePacket done [07:47:54]KKMCreateOFDPacket done [07:47:54]NVStorageSaveData kkm_last_timestamp [07:47:54]File name is /storage/kkm_last_timestamp [07:47:54]Write 4 bytes [07:47:54]NVStorageSaveData done [07:47:54]ExternCall_PrintAddStr [07:47:54]wPrintStart [07:47:54]Write to MH i2c: 01 00 00 F3 16 09 [07:47:54]Write i2c OK [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: 01 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: 01 07 00 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: 01 07 00 F3 16 00 00 00 00 00 FF 0F 1E [07:47:54]RasterBufferAndPrint [07:47:54]line Счет N : (3)122829 [07:47:54]line ИНН: 02508201610067 [07:47:54]line Контрольно-Кассовый Чек [07:47:54]line ПРОДАЖА [07:47:54]line Товар: 48743570 [07:47:54]line Сигареты Winston XStyle Blue [07:47:54]line 1.000 * 140.00 [07:47:54]line = 140.00 [07:47:54]line НДС 12% НСП 1% [07:47:54]line > о реализуемом товаре [07:47:54]line Товар: 4870001570071 [07:47:54]line Напиток Pepsi 1л [07:47:54]line 1.000 * 111.00 [07:47:54]line = 111.00 [07:47:54]line НДС 12% НСП 1% [07:47:54]line > о реализуемом товаре [07:47:54]line Товар: 4780014240406 [07:47:54]line Сигареты Sovereign Blue [07:47:54]line 1.000 * 130.00 [07:47:54]line = 130.00 [07:47:54]line НДС 12% НСП 1% [07:47:54]line > о реализуемом товаре [07:47:54]line ИТОГО: 381.00 [07:47:54]line НСП 1% : 3.37 [07:47:54]line НДС 12% : 40.46 [07:47:54]line Наличными: 0.00 [07:47:54]line Безнал.: 381.00 [07:47:54]line Место: АЗС № 54 "Партнер Нефть" [07:47:54]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [07:47:54]line СНО: Общий режим [07:47:54]line Чек 17 12.08.2024 07:47 [07:47:54]line Смена: 447 ФФД: 1.0 [07:47:54]line ЗНМ: 0300000007 [07:47:54]line РНМ: 0000000000090834 [07:47:54]line Версия ККМ: 001 [07:47:54]line Платежная система: О! деньги [07:47:54]line ФМ: 0000000000874715 [07:47:54]line ФД: 52699 [07:47:54]line ФПД: 258572415320092 [07:47:54]line /tax-web-control/client/api/v1/ticket?date=20240812T074756&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52699&fm=258572415320092&tin=02508201610067®Number=0000000000090834&sum=38100 [07:47:54]line 0 [07:47:54]written 0, free lines is 4095 [07:47:54]OFD Sender: Processing packet 52699 [packets to send 55, broken 54] [07:47:54]ProducePacketName [07:47:54]name=ofd_packets/00052699 [07:47:54]OFD Sender: To server: pG, [07:47:54]CommunicateWithHost lk.salyk.kg:30040 [07:47:54]ConnectInit lk.salyk.kg [07:47:54]Connected sock=10 [07:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 EC 01 00 00 EB 65 E4 01 9E 6A 5A 03 01 00 03 00 D8 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 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 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 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2C BE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DB CD 00 00 35 04 06 00 EB 2B 94 F6 C0 1C 36 59 CC 53 BD AA 09 00 [07:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 EC 03 47 00 C6 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DB CD 00 00 F4 03 04 00 C5 65 B9 66 B6 04 01 00 00 2A 30 C3 37 9F B7 0A 87 [07:47:54]CommunicateWithHost err = 0 [07:47:54]CheckOFDResponse [07:47:54]1017 (14) - 77093643461234 [07:47:54]1041 (16) - 0000000000874715 [07:47:54]1040 (4) - 52699 [07:47:54]1012 (4) - 12.08.2024 01:30 [07:47:54]1206 (1) - 0 [07:47:54]OFD Sender: Remove packet 52699 [07:47:54]ProducePacketName [07:47:54]name=ofd_packets/00052699 [07:47:54]NVStorageDeleteData [07:47:54]Write to MH i2c: 01 00 00 28 17 3F [07:47:54]Write i2c OK [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: 01 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: 01 07 00 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: 01 07 00 28 17 00 00 00 00 00 F3 0B 44 [07:47:54]RasterBufferAndPrint [07:47:54]line [07:47:54]line [07:47:54]line [07:47:54]line [07:47:54]line [07:47:54]written 0, free lines is 3064 [07:47:54]MH_Cut [07:47:54]Write to MH i2c: D1 01 00 2F 17 01 18 [07:47:54]Write i2c OK [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: D1 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: D1 01 00 [07:47:54]MH_I2C_Read... [07:47:54]Read from MH i2c: D1 01 00 2F 17 00 17 [07:47:54]Write to MH i2c: 01 00 00 30 17 47 [07:47:54]Write i2c OK [07:47:54]MH_I2C_Read... [07:47:55]OFD Sender: No OFD packet to send [07:47:55]*** Cut start [07:47:55]*** Purtial cut [07:47:55]*** Stage 1: CUTSNS_PIN = 1 [07:47:56]Read from MH i2c: 01 [07:47:56]MH_I2C_Read... [07:47:56]*** Stop cut motor [07:47:56]*** Cut end [07:47:56]Read from MH i2c: 01 07 00 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 FF 0F 5C [07:47:56]process_action close_receipt done [07:47:56]requested_data is exist [07:47:56]produce_requested_data [07:47:56]requested_item fm.sn is exist - process it [07:47:56]wFMCommunicate request_size=4 [07:47:56]MH_SAM_APDU [07:47:56]CAPDU: 80 11 00 00 [07:47:56]Write to MH i2c: E2 08 00 31 17 80 11 00 00 00 00 00 00 C2 [07:47:56]Write i2c OK [07:47:56]MH_I2C_Read... [07:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:56]Read from MH i2c: E2 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: E2 17 00 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: E2 17 00 31 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 15 [07:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:47:56]wFMCommunicate OK [07:47:56]requested_item fd.num is exist - process it [07:47:56]SAM_PROTO_GetFieldsCounters [07:47:56]wFMCommunicate request_size=4 [07:47:56]MH_SAM_APDU [07:47:56]CAPDU: 80 13 00 00 [07:47:56]Write to MH i2c: E2 08 00 32 17 80 13 00 00 00 00 00 00 C5 [07:47:56]Write i2c OK [07:47:56]MH_I2C_Read... [07:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:56]Read from MH i2c: E2 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: E2 62 00 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: E2 62 00 32 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DB CD 00 00 0E 04 04 00 BF 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 80 [07:47: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DB CD 00 00 0E 04 04 00 BF 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:47:56]wFMCommunicate OK [07:47:56]SAM_PROTO_GetFieldsCounters done [07:47:56]requested_item shift.num is exist - process it [07:47:56]requested_item shift.opened is exist - process it [07:47:56]req_shift_opened [07:47:56]FM_GetShiftState [07:47:56]SAM_PROTO_GetShiftState [07:47:56]wFMCommunicate request_size=4 [07:47:56]MH_SAM_APDU [07:47:56]CAPDU: 80 13 01 00 [07:47:56]Write to MH i2c: E2 08 00 33 17 80 13 01 00 00 00 00 00 C7 [07:47:56]Write i2c OK [07:47:56]MH_I2C_Read... [07:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:56]Read from MH i2c: E2 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: E2 0E 00 [07:47:56]MH_I2C_Read... [07:47:56]Read from MH i2c: E2 0E 00 33 17 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 25 [07:47:56]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:47:56]wFMCommunicate OK [07:47:56]SAM_PROTO_GetShiftState done [07:47:56]FM_GetShiftState done [07:47:56]req_shift_opened done [07:47:56]requested_item shift.open_date is exist - process it [07:47:56]req_shift_open_date [07:47:56]req_shift_open_date done [07:47:56]produce_requested_data done [07:47:56]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52699,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [07:47:56]process_action_free close_receipt [07:47:56]json_value_free [07:47:56]json_value_free done [07:47:56]process_json_proto returns [07:47:56]Send response to host [07:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52699,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [07:47:56]free response buf [07:47:56]execute_script done [07:47:56]execute_script returns [07:47:56]free content buf [07:47:56]Sock 9.Close socket [07:47:56]Sock 9.Thread stoped [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:51]accept exits with 7 [07:56:51]New connection [07:56:51]New thread 3067149668 created [07:56:51]Thread 3067293028 joined [07:56:51]Waiting for new connection... [07:56:51] Sock 7.Parse request [07:56:51]Sock 7.Check first char [07:56:51]Sock 7.First char is OK [07:56:51]request: POST /json_proto HTTP/1.0 [07:56:51]Method: POST [07:56:51]URL: /json_proto [07:56:51]Method is POST - this is cgi request [07:56:51]url: /json_proto [07:56:51]query_string will be loaded in cgi processing [07:56:51]execute_cgi json_proto POST (null) [07:56:51]execute_cgi path=json_proto method=POST [07:56:51]POST find Content-Length [07:56:51]Host: 172.17.60.7:8080 [07:56:51]Content-Length: 1990 [07:56:51]Content-Type: application/json [07:56:51] [07:56:51]POST finish read [07:56:51]Found Content-Length = 1990 [07:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122830", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040110863", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0423\u043C\u0443\u0442 \u0438 \u041A \u0420\u043E\u0436\u043E\u043A \u041D\u0430\u0432\u043E\u0440\u043E\u0442 50\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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": "2000039260010", "name": "\u041C\u0430\u0444\u0444\u0438\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 80\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:51]execute_script... [07:56:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122830", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040110863", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0423\u043C\u0443\u0442 \u0438 \u041A \u0420\u043E\u0436\u043E\u043A \u041D\u0430\u0432\u043E\u0440\u043E\u0442 50\u0433", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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": "2000039260010", "name": "\u041C\u0430\u0444\u0444\u0438\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 80\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:51]POST & json_proto [07:56:51]process_json_proto [07:56:51]json parsed OK: [07:56:51]protocol is kg_v1.0 [07:56:51]action value=close_receipt [07:56:51]process_action close_receipt [07:56:51]cmd_close_receipt [07:56:51]MH_GetDate [07:56:51]Write to MH i2c: F0 00 00 34 17 3A [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: F0 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: F0 09 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: F0 09 00 34 17 00 48 C0 B9 66 63 9B 67 64 33 [07:56:51]GetLastDocTimeStamp 1723448876 [07:56:51]current date 1723449416 [07:56:51]FM_GetShiftState [07:56:51]SAM_PROTO_GetShiftState [07:56:51]wFMCommunicate request_size=4 [07:56:51]MH_SAM_APDU [07:56:51]CAPDU: 80 13 01 00 [07:56:51]Write to MH i2c: E2 08 00 35 17 80 13 01 00 00 00 00 00 C9 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:51]Read from MH i2c: E2 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: E2 0E 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: E2 0E 00 35 17 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 27 [07:56:51]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:56:51]wFMCommunicate OK [07:56:51]SAM_PROTO_GetShiftState done [07:56:51]FM_GetShiftState done [07:56:51]opened in 1723422684 [07:56:51]opened+sec_in_day 1723509084 [07:56:51]quantity*price = 9000 [07:56:51]sum+1 = 9001 [07:56:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040110863 Мороженое Умут и К Рожок Наворот 50г 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039260010 Маффин шоколад 80г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.49 НДС 12% : 41.93 Наличными: 0.00 Безнал.: 395.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 18 12.08.2024 07:56 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52700 ФПД: 78550189834011 /tax-web-control/client/api/v1/ticket?date=20240812T075656&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52700&fm=78550189834011&tin=02508201610067®Number=0000000000090834&sum=39500 0 [07:56:53]StoreToDocumentArchive [07:56:53]shift 447 fd 52700 [07:56:53]save to /storage/0447/doc_00052700 [07:56:53]save last doc name /storage/0447/doc_00052700 to /storage/kkm_last_doc_name [07:56:53]save OK [07:56:53]Clear old archive folders... [07:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=748 [07:56:53]tlvbuf is 012ACBB0 [07:56:53]SAM_PROTO_ClearQueue [07:56:53]wFMCommunicate request_size=4 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 09 00 00 [07:56:53]Write to MH i2c: E2 08 00 42 17 80 09 00 00 00 00 00 00 CB [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 42 17 00 90 00 CD [07:56:53]RAPDU: 90 00 [07:56:53]wFMCommunicate OK [07:56:53]SAM_PROTO_ClearQueue done [07:56:53]KKMCreateOFDPacket [07:56:53]OFDProtocolAddRootSTLVToBuf [07:56:53]FM_MakeSignedData [07:56:53]FM_MakeSignedData [07:56:53]SAM_PROTO_SignData [07:56:53]wFMCommunicate request_size=4 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 0D 01 02 [07:56:53]Write to MH i2c: E2 08 00 43 17 80 0D 01 02 00 00 00 00 D3 [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 43 17 00 90 00 CE [07:56:53]RAPDU: 90 00 [07:56:53]wFMCommunicate OK [07:56:53]wFMCommunicate request_size=255 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 0D 02 02 FA 03 00 EC 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 84 00 8A 04 0D 00 34 37 30 30 30 34 30 [07:56:53]Write to MH i2c: E2 02 01 44 17 80 0D 02 02 FA 00 03 00 EC 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 84 00 8A 04 0D 00 34 37 30 30 30 34 30 00 00 33 [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [07:56:53]RAPDU: 90 00 [07:56:53]wFMCommunicate OK [07:56:53]wFMCommunicate request_size=255 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 0D 02 02 FA 31 31 30 38 36 33 06 04 40 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 B8 20 D0 9A 20 D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 D0 9D D0 B0 D0 B2 D0 BE D1 80 D0 BE D1 82 20 35 30 D0 B3 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 [07:56:53]Write to MH i2c: E2 02 01 45 17 80 0D 02 02 FA 00 31 31 30 38 36 33 06 04 40 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 B8 20 D0 9A 20 D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 D0 9D D0 B0 D0 B2 D0 BE D1 80 D0 BE D1 82 20 35 30 D0 B3 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 00 00 B2 [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [07:56:53]RAPDU: 90 00 [07:56:53]wFMCommunicate OK [07:56:53]wFMCommunicate request_size=255 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 0D 02 02 FA 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 48 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DC CD 00 00 35 04 06 00 47 70 E4 29 [07:56:54]Write to MH i2c: E2 02 01 46 17 80 0D 02 02 FA 00 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 48 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DC CD 00 00 35 04 06 00 47 70 E4 29 00 00 39 [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [07:56:54]RAPDU: 90 00 [07:56:54]wFMCommunicate OK [07:56:54]wFMCommunicate request_size=7 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 0D 02 02 02 7F 1B [07:56:54]Write to MH i2c: E2 0A 00 47 17 80 0D 02 02 02 00 7F 1B 00 00 76 [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [07:56:54]RAPDU: 90 00 [07:56:54]wFMCommunicate OK [07:56:54]wFMCommunicate request_size=4 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 0D 03 02 [07:56:54]Write to MH i2c: E2 08 00 48 17 80 0D 03 02 00 00 00 00 DA [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 0B 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 0B 00 48 17 00 4B 85 DE 52 78 95 04 24 90 00 10 [07:56:54]RAPDU: 4B 85 DE 52 78 95 04 24 90 00 [07:56:54]wFMCommunicate OK [07:56:54]SAM_PROTO_SignData done [07:56:54]FM_MakeSignedData done [07:56:54]CreateOFDProtocolMessage [07:56:54]wFMCommunicate request_size=4 [07:56:54]MH_SAM_APDU [07:56:54]CAPDU: 80 11 00 00 [07:56:54]Write to MH i2c: E2 08 00 49 17 80 11 00 00 00 00 00 00 DA [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:54]Read from MH i2c: E2 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 17 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: E2 17 00 49 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 2D [07:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:56:54]wFMCommunicate OK [07:56:54]CreateOFDProtocolMessage done [07:56:54]OFDSenderStorePacket 52700 [07:56:54]StoreOFDPacket docnum=52700 [07:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 00 03 00 00 C4 54 F8 02 E8 AD 5A 03 01 00 03 00 EC 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 84 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 38 36 33 06 04 40 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 B8 20 D0 9A 20 D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 D0 9D D0 B0 D0 B2 D0 BE D1 80 D0 BE D1 82 20 35 30 D0 B3 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 48 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DC CD 00 00 35 04 06 00 47 70 E4 29 7F 1B 4B 85 DE 52 78 95 04 24 [07:56:54]CheckFolder [07:56:54]dirname=/storage/ofd_packets [07:56:54]CheckFolder done [07:56:54]ProducePacketName [07:56:54]name=ofd_packets/00052700 [07:56:54]NVStorageSaveData ofd_packets/00052700 [07:56:54]File name is /storage/ofd_packets/00052700 [07:56:54]Write 798 bytes [07:56:54]NVStorageSaveData done [07:56:54]OFDSenderStorePacket done [07:56:54]KKMCreateOFDPacket done [07:56:54]NVStorageSaveData kkm_last_timestamp [07:56:54]File name is /storage/kkm_last_timestamp [07:56:54]Write 4 bytes [07:56:54]NVStorageSaveData done [07:56:54]ExternCall_PrintAddStr [07:56:54]wPrintStart [07:56:54]Write to MH i2c: 01 00 00 4A 17 61 [07:56:54]Write i2c OK [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: 01 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: 01 07 00 [07:56:54]MH_I2C_Read... [07:56:54]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FF 0F 76 [07:56:54]RasterBufferAndPrint [07:56:54]line Счет N : (3)122830 [07:56:54]line ИНН: 02508201610067 [07:56:54]line Контрольно-Кассовый Чек [07:56:54]line ПРОДАЖА [07:56:54]line Товар: 4607015235784 [07:56:54]line Печ. сд. Яшкино клубника 137г [07:56:54]line 1.000 * 90.00 [07:56:54]line = 90.00 [07:56:54]line НДС 12% НСП 1% [07:56:54]line > о реализуемом товаре [07:56:54]line Товар: 54491472 [07:56:54]line Напиток Кока-Кола 0,5л [07:56:54]line 1.000 * 75.00 [07:56:54]line = 75.00 [07:56:54]line НДС 12% НСП 1% [07:56:54]line > о реализуемом товаре [07:56:54]line Товар: 4700040110863 [07:56:54]line Мороженое Умут и К Рожок Наворот 50г [07:56:54]line 1.000 * 25.00 [07:56:54]line = 25.00 [07:56:54]line НДС 12% НСП 1% [07:56:54]line > о реализуемом товаре [07:56:54]line Товар: 2000036220012 [07:56:54]line Кофе Капучино XL(GABB TRADE) [07:56:54]line 1.000 * 130.00 [07:56:54]line = 130.00 [07:56:54]line НДС 12% НСП 1% [07:56:54]line > о реализуемом товаре [07:56:54]line Товар: 2000039260010 [07:56:54]line Маффин шоколад 80г [07:56:54]line 1.000 * 75.00 [07:56:54]line = 75.00 [07:56:54]line НДС 12% НСП 1% [07:56:54]line > о реализуемом товаре [07:56:54]line ИТОГО: 395.00 [07:56:54]line НСП 1% : 3.49 [07:56:54]line НДС 12% : 41.93 [07:56:54]line Наличными: 0.00 [07:56:54]line Безнал.: 395.00 [07:56:54]line Место: АЗС № 54 "Партнер Нефть" [07:56:54]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [07:56:54]line СНО: Общий режим [07:56:54]line Чек 18 12.08.2024 07:56 [07:56:54]line Смена: 447 ФФД: 1.0 [07:56:54]line ЗНМ: 0300000007 [07:56:54]line РНМ: 0000000000090834 [07:56:54]line Версия ККМ: 001 [07:56:54]line Платежная система: О! деньги [07:56:54]line ФМ: 0000000000874715 [07:56:54]line ФД: 52700 [07:56:54]line ФПД: 78550189834011 [07:56:54]line /tax-web-control/client/api/v1/ticket?date=20240812T075656&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52700&fm=78550189834011&tin=02508201610067®Number=0000000000090834&sum=39500 [07:56:54]line 0 [07:56:54]OFD Sender: Processing packet 52700 [packets to send 55, broken 54] [07:56:54]ProducePacketName [07:56:54]name=ofd_packets/00052700 [07:56:54]OFD Sender: To server: pG, [07:56:54]CommunicateWithHost lk.salyk.kg:30040 [07:56:54]ConnectInit lk.salyk.kg [07:56:54]written 0, free lines is 4095 [07:56:54]Connected sock=10 [07:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 00 03 00 00 C4 54 F8 02 E8 AD 5A 03 01 00 03 00 EC 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 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 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 84 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 38 36 33 06 04 40 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 B8 20 D0 9A 20 D0 A0 D0 BE D0 B6 D0 BE D0 BA 20 D0 9D D0 B0 D0 B2 D0 BE D1 80 D0 BE D1 82 20 35 30 D0 B3 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 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 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 9A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 48 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DC CD 00 00 35 04 06 00 47 70 E4 29 7F 1B 4B 85 DE 52 78 95 04 24 [07:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 C4 0A 47 00 30 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 34 37 31 35 10 04 04 00 DC CD 00 00 F4 03 04 00 E2 67 B9 66 B6 04 01 00 00 EB 36 A6 32 DF 63 00 F4 [07:56:55]CommunicateWithHost err = 0 [07:56:55]CheckOFDResponse [07:56:55]1017 (14) - 77093643461234 [07:56:55]1041 (16) - 0000000000874715 [07:56:55]1040 (4) - 52700 [07:56:55]1012 (4) - 12.08.2024 01:39 [07:56:55]1206 (1) - 0 [07:56:55]OFD Sender: Remove packet 52700 [07:56:55]ProducePacketName [07:56:55]name=ofd_packets/00052700 [07:56:55]NVStorageDeleteData [07:56:55]Write to MH i2c: 01 00 00 8E 17 A5 [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 07 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: 01 07 00 8E 17 00 00 00 00 00 EB 0A A1 [07:56:55]RasterBufferAndPrint [07:56:55]line [07:56:55]line [07:56:55]line [07:56:55]line [07:56:55]line [07:56:55]written 0, free lines is 2802 [07:56:55]MH_Cut [07:56:55]Write to MH i2c: D1 01 00 95 17 01 7E [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: D1 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: D1 01 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: D1 01 00 95 17 00 7D [07:56:55]Write to MH i2c: 01 00 00 96 17 AD [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]OFD Sender: No OFD packet to send [07:56:56]*** Cut start [07:56:56]*** Purtial cut [07:56:56]*** Stage 1: CUTSNS_PIN = 1 [07:56:57]Read from MH i2c: 01 [07:56:57]MH_I2C_Read... [07:56:57]*** Stop cut motor [07:56:57]*** Cut end [07:56:57]Read from MH i2c: 01 07 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: 01 07 00 96 17 00 00 00 00 00 FF 0F C2 [07:56:57]process_action close_receipt done [07:56:57]requested_data is exist [07:56:57]produce_requested_data [07:56:57]requested_item fm.sn is exist - process it [07:56:57]wFMCommunicate request_size=4 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 11 00 00 [07:56:57]Write to MH i2c: E2 08 00 97 17 80 11 00 00 00 00 00 00 28 [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 17 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 17 00 97 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 7B [07:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:56:57]wFMCommunicate OK [07:56:57]requested_item fd.num is exist - process it [07:56:57]SAM_PROTO_GetFieldsCounters [07:56:57]wFMCommunicate request_size=4 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 13 00 00 [07:56:57]Write to MH i2c: E2 08 00 98 17 80 13 00 00 00 00 00 00 2B [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 62 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 62 00 98 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DC CD 00 00 0E 04 04 00 BF 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 EA [07: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DC CD 00 00 0E 04 04 00 BF 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:56:57]wFMCommunicate OK [07:56:57]SAM_PROTO_GetFieldsCounters done [07:56:57]requested_item shift.num is exist - process it [07:56:57]requested_item shift.opened is exist - process it [07:56:57]req_shift_opened [07:56:57]FM_GetShiftState [07:56:57]SAM_PROTO_GetShiftState [07:56:57]wFMCommunicate request_size=4 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 13 01 00 [07:56:57]Write to MH i2c: E2 08 00 99 17 80 13 01 00 00 00 00 00 2D [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 0E 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 0E 00 99 17 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 8B [07:56:57]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:56:57]wFMCommunicate OK [07:56:57]SAM_PROTO_GetShiftState done [07:56:57]FM_GetShiftState done [07:56:57]req_shift_opened done [07:56:57]requested_item shift.open_date is exist - process it [07:56:57]req_shift_open_date [07:56:57]req_shift_open_date done [07:56:57]produce_requested_data done [07:56:57]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52700,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [07:56:57]process_action_free close_receipt [07:56:57]json_value_free [07:56:57]json_value_free done [07:56:57]process_json_proto returns [07:56:57]Send response to host [07:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52700,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [07:56:57]free response buf [07:56:57]execute_script done [07:56:57]execute_script returns [07:56:57]free content buf [07:56:57]Sock 7.Close socket [07:56:57]Sock 7.Thread stoped [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:38]accept exits with 9 [07:57:38]New connection [07:57:38]New thread 3067293028 created [07:57:38]Thread 3067149668 joined [07:57:38]Waiting for new connection... [07:57:38] Sock 9.Parse request [07:57:38]Sock 9.Check first char [07:57:38]Sock 9.First char is OK [07:57:38]request: POST /json_proto HTTP/1.0 [07:57:38]Method: POST [07:57:38]URL: /json_proto [07:57:38]Method is POST - this is cgi request [07:57:38]url: /json_proto [07:57:38]query_string will be loaded in cgi processing [07:57:38]execute_cgi json_proto POST (null) [07:57:38]execute_cgi path=json_proto method=POST [07:57:38]POST find Content-Length [07:57:38]Host: 172.17.60.7:8080 [07:57:38]Content-Length: 1335 [07:57:38]Content-Type: application/json [07:57:38] [07:57:38]POST finish read [07:57:38]Found Content-Length = 1335 [07:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122831", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039260010", "name": "\u041C\u0430\u0444\u0444\u0438\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 80\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:38]execute_script... [07:57: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)122831", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039260010", "name": "\u041C\u0430\u0444\u0444\u0438\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 80\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:38]POST & json_proto [07:57:38]process_json_proto [07:57:38]json parsed OK: [07:57:38]protocol is kg_v1.0 [07:57:38]action value=close_receipt [07:57:38]process_action close_receipt [07:57:38]cmd_close_receipt [07:57:38]MH_GetDate [07:57:38]Write to MH i2c: F0 00 00 9A 17 A0 [07:57:38]Write i2c OK [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: F0 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: F0 09 00 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: F0 09 00 9A 17 00 76 C0 B9 66 63 9B 67 64 C7 [07:57:38]GetLastDocTimeStamp 1723449416 [07:57:38]current date 1723449462 [07:57:38]FM_GetShiftState [07:57:38]SAM_PROTO_GetShiftState [07:57:38]wFMCommunicate request_size=4 [07:57:38]MH_SAM_APDU [07:57:38]CAPDU: 80 13 01 00 [07:57:38]Write to MH i2c: E2 08 00 9B 17 80 13 01 00 00 00 00 00 2F [07:57:38]Write i2c OK [07:57:38]MH_I2C_Read... [07:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:38]Read from MH i2c: E2 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 0E 00 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 0E 00 9B 17 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 8D [07:57:38]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:57:38]wFMCommunicate OK [07:57:38]SAM_PROTO_GetShiftState done [07:57:38]FM_GetShiftState done [07:57:38]opened in 1723422684 [07:57:38]opened+sec_in_day 1723509084 [07:57:38]quantity*price = 9500 [07:57:38]sum+1 = 9501 [07:57:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039260010 Маффин шоколад 80г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 19 12.08.2024 07:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874715 ФД: 52701 ФПД: 77339165314861 /tax-web-control/client/api/v1/ticket?date=20240812T075742&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52701&fm=77339165314861&tin=02508201610067®Number=0000000000090834&sum=18000 0 [07:57:39]StoreToDocumentArchive [07:57:39]shift 447 fd 52701 [07:57:39]save to /storage/0447/doc_00052701 [07:57:39]save last doc name /storage/0447/doc_00052701 to /storage/kkm_last_doc_name [07:57:39]save OK [07:57:39]Clear old archive folders... [07:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=500 [07:57:39]tlvbuf is 012702B0 [07:57:39]SAM_PROTO_ClearQueue [07:57:39]wFMCommunicate request_size=4 [07:57:39]MH_SAM_APDU [07:57:39]CAPDU: 80 09 00 00 [07:57:39]Write to MH i2c: E2 08 00 A8 17 80 09 00 00 00 00 00 00 31 [07:57:39]Write i2c OK [07:57:39]MH_I2C_Read... [07:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:39]Read from MH i2c: E2 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 03 00 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 03 00 A8 17 00 90 00 33 [07:57:39]RAPDU: 90 00 [07:57:39]wFMCommunicate OK [07:57:39]SAM_PROTO_ClearQueue done [07:57:39]KKMCreateOFDPacket [07:57:39]OFDProtocolAddRootSTLVToBuf [07:57:39]FM_MakeSignedData [07:57:39]FM_MakeSignedData [07:57:39]SAM_PROTO_SignData [07:57:39]wFMCommunicate request_size=4 [07:57:39]MH_SAM_APDU [07:57:39]CAPDU: 80 0D 01 02 [07:57:39]Write to MH i2c: E2 08 00 A9 17 80 0D 01 02 00 00 00 00 39 [07:57:39]Write i2c OK [07:57:39]MH_I2C_Read... [07:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:39]Read from MH i2c: E2 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 03 00 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [07:57:39]RAPDU: 90 00 [07:57:39]wFMCommunicate OK [07:57:39]wFMCommunicate request_size=255 [07:57:39]MH_SAM_APDU [07:57:39]CAPDU: 80 0D 02 02 FA 03 00 F4 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 63 00 8A 04 08 00 34 36 32 32 36 36 [07:57:39]Write to MH i2c: E2 02 01 AA 17 80 0D 02 02 FA 00 03 00 F4 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 63 00 8A 04 08 00 34 36 32 32 36 36 00 00 72 [07:57:39]Write i2c OK [07:57:39]MH_I2C_Read... [07:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:39]Read from MH i2c: E2 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 03 00 [07:57:39]MH_I2C_Read... [07:57:39]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [07:57:39]RAPDU: 90 00 [07:57:39]wFMCommunicate OK [07:57:39]wFMCommunicate request_size=255 [07:57:39]MH_SAM_APDU [07:57:39]CAPDU: 80 0D 02 02 FA 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 76 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DD CD 00 00 35 04 06 00 46 56 [07:57:39]Write to MH i2c: E2 02 01 AB 17 80 0D 02 02 FA 00 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 76 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DD CD 00 00 35 04 06 00 46 56 00 00 7A [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [07:57:40]RAPDU: 90 00 [07:57:40]wFMCommunicate OK [07:57:40]wFMCommunicate request_size=9 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 0D 02 02 04 ED 79 CF 2D [07:57:40]Write to MH i2c: E2 0C 00 AC 17 80 0D 02 02 04 00 ED 79 CF 2D 00 00 A7 [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [07:57:40]RAPDU: 90 00 [07:57:40]wFMCommunicate OK [07:57:40]wFMCommunicate request_size=4 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 0D 03 02 [07:57:40]Write to MH i2c: E2 08 00 AD 17 80 0D 03 02 00 00 00 00 3F [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 0B 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 0B 00 AD 17 00 B6 C0 37 E1 A8 4F 93 0B 90 00 63 [07:57:40]RAPDU: B6 C0 37 E1 A8 4F 93 0B 90 00 [07:57:40]wFMCommunicate OK [07:57:40]SAM_PROTO_SignData done [07:57:40]FM_MakeSignedData done [07:57:40]CreateOFDProtocolMessage [07:57:40]wFMCommunicate request_size=4 [07:57:40]MH_SAM_APDU [07:57:40]CAPDU: 80 11 00 00 [07:57:40]Write to MH i2c: E2 08 00 AE 17 80 11 00 00 00 00 00 00 3F [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:40]Read from MH i2c: E2 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 17 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: E2 17 00 AE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 92 [07:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:57:40]wFMCommunicate OK [07:57:40]CreateOFDProtocolMessage done [07:57:40]OFDSenderStorePacket 52701 [07:57:40]StoreOFDPacket docnum=52701 [07:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 08 02 00 00 09 93 00 02 8C D7 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 76 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DD CD 00 00 35 04 06 00 46 56 ED 79 CF 2D B6 C0 37 E1 A8 4F 93 0B [07:57:40]CheckFolder [07:57:40]dirname=/storage/ofd_packets [07:57:40]CheckFolder done [07:57:40]ProducePacketName [07:57:40]name=ofd_packets/00052701 [07:57:40]NVStorageSaveData ofd_packets/00052701 [07:57:40]File name is /storage/ofd_packets/00052701 [07:57:40]Write 550 bytes [07:57:40]NVStorageSaveData done [07:57:40]OFDSenderStorePacket done [07:57:40]KKMCreateOFDPacket done [07:57:40]NVStorageSaveData kkm_last_timestamp [07:57:40]File name is /storage/kkm_last_timestamp [07:57:40]Write 4 bytes [07:57:40]NVStorageSaveData done [07:57:40]ExternCall_PrintAddStr [07:57:40]wPrintStart [07:57:40]Write to MH i2c: 01 00 00 AF 17 C6 [07:57:40]Write i2c OK [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: 01 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: 01 07 00 [07:57:40]MH_I2C_Read... [07:57:40]Read from MH i2c: 01 07 00 AF 17 00 00 00 00 00 FF 0F DB [07:57:40]RasterBufferAndPrint [07:57:40]line Счет N : (3)122831 [07:57:40]line ИНН: 02508201610067 [07:57:40]line Контрольно-Кассовый Чек [07:57:40]line ПРОДАЖА [07:57:40]line Товар: 4700000480050 [07:57:40]line Напиток Nitro Energy эн green ж/б 0,45л [07:57:40]line 1.000 * 95.00 [07:57:40]line = 95.00 [07:57:40]line НДС 12% НСП 1% [07:57:40]line > о реализуемом товаре [07:57:40]line Товар: 2000039260010 [07:57:40]line Маффин шоколад 80г [07:57:40]line 1.000 * 75.00 [07:57:40]line = 75.00 [07:57:40]line НДС 12% НСП 1% [07:57:40]line > о реализуемом товаре [07:57:40]line Товар: 46226624 [07:57:40]line Mentos ПВ Клубника 6*100*2 [07:57:40]line 1.000 * 10.00 [07:57:40]line = 10.00 [07:57:40]line НДС 12% НСП 1% [07:57:40]line > о реализуемом товаре [07:57:40]line ИТОГО: 180.00 [07:57:40]line НСП 1% : 1.59 [07:57:40]line НДС 12% : 19.11 [07:57:40]line Наличными: 0.00 [07:57:40]line Безнал.: 180.00 [07:57:40]line Место: АЗС № 54 "Партнер Нефть" [07:57:40]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [07:57:40]line СНО: Общий режим [07:57:40]line Чек 19 12.08.2024 07:57 [07:57:40]line Смена: 447 ФФД: 1.0 [07:57:40]line ЗНМ: 0300000007 [07:57:40]line РНМ: 0000000000090834 [07:57:40]line Версия ККМ: 001 [07:57:40]line Платежная система: Бакай Банк [07:57:40]line ФМ: 0000000000874715 [07:57:40]line ФД: 52701 [07:57:40]line ФПД: 77339165314861 [07:57:40]line /tax-web-control/client/api/v1/ticket?date=20240812T075742&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52701&fm=77339165314861&tin=02508201610067®Number=0000000000090834&sum=18000 [07:57:40]line 0 [07:57:40]written 0, free lines is 4095 [07:57:40]OFD Sender: Processing packet 52701 [packets to send 55, broken 54] [07:57:40]ProducePacketName [07:57:40]name=ofd_packets/00052701 [07:57:40]OFD Sender: To server: pG, [07:57:40]CommunicateWithHost lk.salyk.kg:30040 [07:57:40]ConnectInit lk.salyk.kg [07:57:40]Connected sock=10 [07:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 08 02 00 00 09 93 00 02 8C D7 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 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 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 76 C0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DD CD 00 00 35 04 06 00 46 56 ED 79 CF 2D B6 C0 37 E1 A8 4F 93 0B [07:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 37 30 47 00 68 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DD CD 00 00 F4 03 04 00 10 68 B9 66 B6 04 01 00 00 EE B7 39 53 D4 3F B1 E8 [07:57:40]CommunicateWithHost err = 0 [07:57:40]CheckOFDResponse [07:57:40]1017 (14) - 77093643461234 [07:57:40]1041 (16) - 0000000000874715 [07:57:40]1040 (4) - 52701 [07:57:40]1012 (4) - 12.08.2024 01:40 [07:57:40]1206 (1) - 0 [07:57:40]OFD Sender: Remove packet 52701 [07:57:40]ProducePacketName [07:57:40]name=ofd_packets/00052701 [07:57:40]NVStorageDeleteData [07:57:41]Write to MH i2c: 01 00 00 E5 17 FC [07:57:41]Write i2c OK [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: 01 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: 01 07 00 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: 01 07 00 E5 17 00 00 00 00 00 DD 0B EB [07:57:41]RasterBufferAndPrint [07:57:41]line [07:57:41]line [07:57:41]line [07:57:41]line [07:57:41]line [07:57:41]written 0, free lines is 3043 [07:57:41]MH_Cut [07:57:41]Write to MH i2c: D1 01 00 EC 17 01 D5 [07:57:41]Write i2c OK [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: D1 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: D1 01 00 [07:57:41]MH_I2C_Read... [07:57:41]Read from MH i2c: D1 01 00 EC 17 00 D4 [07:57:41]Write to MH i2c: 01 00 00 ED 17 04 [07:57:41]Write i2c OK [07:57:41]MH_I2C_Read... [07:57:41]OFD Sender: No OFD packet to send [07:57:42]*** Cut start [07:57:42]*** Purtial cut [07:57:42]*** Stage 1: CUTSNS_PIN = 1 [07:57:42]Read from MH i2c: 01 [07:57:42]MH_I2C_Read... [07:57:42]*** Stop cut motor [07:57:42]*** Cut end [07:57:42]Read from MH i2c: 01 07 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: 01 07 00 ED 17 00 00 00 00 00 FF 0F 19 [07:57:42]process_action close_receipt done [07:57:42]requested_data is exist [07:57:42]produce_requested_data [07:57:42]requested_item fm.sn is exist - process it [07:57:42]wFMCommunicate request_size=4 [07:57:42]MH_SAM_APDU [07:57:42]CAPDU: 80 11 00 00 [07:57:42]Write to MH i2c: E2 08 00 EE 17 80 11 00 00 00 00 00 00 7F [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:42]Read from MH i2c: E2 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 17 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 17 00 EE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D2 [07:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [07:57:42]wFMCommunicate OK [07:57:42]requested_item fd.num is exist - process it [07:57:42]SAM_PROTO_GetFieldsCounters [07:57:42]wFMCommunicate request_size=4 [07:57:42]MH_SAM_APDU [07:57:42]CAPDU: 80 13 00 00 [07:57:42]Write to MH i2c: E2 08 00 EF 17 80 13 00 00 00 00 00 00 82 [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:42]Read from MH i2c: E2 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 62 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 62 00 EF 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DD CD 00 00 0E 04 04 00 BF 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 45 [07:57: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DD CD 00 00 0E 04 04 00 BF 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 [07:57:42]wFMCommunicate OK [07:57:42]SAM_PROTO_GetFieldsCounters done [07:57:42]requested_item shift.num is exist - process it [07:57:42]requested_item shift.opened is exist - process it [07:57:42]req_shift_opened [07:57:42]FM_GetShiftState [07:57:42]SAM_PROTO_GetShiftState [07:57:42]wFMCommunicate request_size=4 [07:57:42]MH_SAM_APDU [07:57:42]CAPDU: 80 13 01 00 [07:57:42]Write to MH i2c: E2 08 00 F0 17 80 13 01 00 00 00 00 00 84 [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:42]Read from MH i2c: E2 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 0E 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 0E 00 F0 17 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E2 [07:57:42]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [07:57:42]wFMCommunicate OK [07:57:42]SAM_PROTO_GetShiftState done [07:57:42]FM_GetShiftState done [07:57:42]req_shift_opened done [07:57:42]requested_item shift.open_date is exist - process it [07:57:42]req_shift_open_date [07:57:42]req_shift_open_date done [07:57:42]produce_requested_data done [07:57:42]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52701,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [07:57:42]process_action_free close_receipt [07:57:42]json_value_free [07:57:42]json_value_free done [07:57:42]process_json_proto returns [07:57:42]Send response to host [07:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52701,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [07:57:42]free response buf [07:57:42]execute_script done [07:57:42]execute_script returns [07:57:42]free content buf [07:57:42]Sock 9.Close socket [07:57:42]Sock 9.Thread stoped [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]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:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:43]ConnectInit Can't connect to host [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:08]accept exits with 7 [08:21:08]New connection [08:21:08]New thread 3067149668 created [08:21:08]Thread 3067293028 joined [08:21:08]Waiting for new connection... [08:21:08] Sock 7.Parse request [08:21:08]Sock 7.Check first char [08:21:08]Sock 7.First char is OK [08:21:08]request: POST /json_proto HTTP/1.0 [08:21:08]Method: POST [08:21:08]URL: /json_proto [08:21:08]Method is POST - this is cgi request [08:21:08]url: /json_proto [08:21:08]query_string will be loaded in cgi processing [08:21:08]execute_cgi json_proto POST (null) [08:21:08]execute_cgi path=json_proto method=POST [08:21:08]POST find Content-Length [08:21:08]Host: 172.17.60.7:8080 [08:21:08]Content-Length: 831 [08:21:08]Content-Type: application/json [08:21:08] [08:21:08]POST finish read [08:21:08]Found Content-Length = 831 [08:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122832", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:08]execute_script... [08:21:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122832", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:08]POST & json_proto [08:21:08]process_json_proto [08:21:08]json parsed OK: [08:21:08]protocol is kg_v1.0 [08:21:08]action value=close_receipt [08:21:08]process_action close_receipt [08:21:08]cmd_close_receipt [08:21:08]MH_GetDate [08:21:08]Write to MH i2c: F0 00 00 F1 17 F7 [08:21:08]Write i2c OK [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: F0 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: F0 09 00 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: F0 09 00 F1 17 00 F9 C5 B9 66 63 9B 67 64 A6 [08:21:08]GetLastDocTimeStamp 1723449462 [08:21:08]current date 1723450873 [08:21:08]FM_GetShiftState [08:21:08]SAM_PROTO_GetShiftState [08:21:08]wFMCommunicate request_size=4 [08:21:08]MH_SAM_APDU [08:21:08]CAPDU: 80 13 01 00 [08:21:08]Write to MH i2c: E2 08 00 F2 17 80 13 01 00 00 00 00 00 86 [08:21:08]Write i2c OK [08:21:08]MH_I2C_Read... [08:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:08]Read from MH i2c: E2 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: E2 0E 00 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: E2 0E 00 F2 17 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E4 [08:21:08]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [08:21:08]wFMCommunicate OK [08:21:08]SAM_PROTO_GetShiftState done [08:21:08]FM_GetShiftState done [08:21:08]opened in 1723422684 [08:21:08]opened+sec_in_day 1723509084 [08:21:08]quantity*price = 9500 [08:21:08]sum+1 = 9501 [08:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 20 12.08.2024 08:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52702 ФПД: 181480941696767 /tax-web-control/client/api/v1/ticket?date=20240812T082113&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52702&fm=181480941696767&tin=02508201610067®Number=0000000000090834&sum=9500 0 [08:21:09]StoreToDocumentArchive [08:21:09]shift 447 fd 52702 [08:21:09]save to /storage/0447/doc_00052702 [08:21:09]save last doc name /storage/0447/doc_00052702 to /storage/kkm_last_doc_name [08:21:09]save OK [08:21:09]Clear old archive folders... [08:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=296 [08:21:09]tlvbuf is B6EFB8B0 [08:21:09]SAM_PROTO_ClearQueue [08:21:09]wFMCommunicate request_size=4 [08:21:09]MH_SAM_APDU [08:21:09]CAPDU: 80 09 00 00 [08:21:09]Write to MH i2c: E2 08 00 FF 17 80 09 00 00 00 00 00 00 88 [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]SAM_PROTO_ClearQueue done [08:21:10]KKMCreateOFDPacket [08:21:10]OFDProtocolAddRootSTLVToBuf [08:21:10]FM_MakeSignedData [08:21:10]FM_MakeSignedData [08:21:10]SAM_PROTO_SignData [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 01 02 [08:21:10]Write to MH i2c: E2 08 00 00 18 80 0D 01 02 00 00 00 00 91 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]wFMCommunicate request_size=255 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 C5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [08:21:10]Write to MH i2c: E2 02 01 01 18 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 C5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 C2 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 01 18 00 90 00 8D [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]wFMCommunicate request_size=55 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DE CD 00 00 35 04 06 00 A5 0E 53 10 36 FF [08:21:10]Write to MH i2c: E2 3A 00 02 18 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DE CD 00 00 35 04 06 00 A5 0E 53 10 36 FF 00 00 E2 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 03 00 02 18 00 90 00 8E [08:21:10]RAPDU: 90 00 [08:21:10]wFMCommunicate OK [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 0D 03 02 [08:21:10]Write to MH i2c: E2 08 00 03 18 80 0D 03 02 00 00 00 00 96 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 0B 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 0B 00 03 18 00 CE 66 56 BC 88 7D A9 79 90 00 04 [08:21:10]RAPDU: CE 66 56 BC 88 7D A9 79 90 00 [08:21:10]wFMCommunicate OK [08:21:10]SAM_PROTO_SignData done [08:21:10]FM_MakeSignedData done [08:21:10]CreateOFDProtocolMessage [08:21:10]wFMCommunicate request_size=4 [08:21:10]MH_SAM_APDU [08:21:10]CAPDU: 80 11 00 00 [08:21:10]Write to MH i2c: E2 08 00 04 18 80 11 00 00 00 00 00 00 96 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:10]Read from MH i2c: E2 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 17 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: E2 17 00 04 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 E9 [08:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [08:21:10]wFMCommunicate OK [08:21:10]CreateOFDProtocolMessage done [08:21:10]OFDSenderStorePacket 52702 [08:21:10]StoreOFDPacket docnum=52702 [08:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3C 01 00 00 5E 42 34 01 A9 52 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 C5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DE CD 00 00 35 04 06 00 A5 0E 53 10 36 FF CE 66 56 BC 88 7D A9 79 [08:21:10]CheckFolder [08:21:10]dirname=/storage/ofd_packets [08:21:10]CheckFolder done [08:21:10]ProducePacketName [08:21:10]name=ofd_packets/00052702 [08:21:10]NVStorageSaveData ofd_packets/00052702 [08:21:10]File name is /storage/ofd_packets/00052702 [08:21:10]Write 346 bytes [08:21:10]NVStorageSaveData done [08:21:10]OFDSenderStorePacket done [08:21:10]KKMCreateOFDPacket done [08:21:10]NVStorageSaveData kkm_last_timestamp [08:21:10]File name is /storage/kkm_last_timestamp [08:21:10]Write 4 bytes [08:21:10]NVStorageSaveData done [08:21:10]OFD Sender: Processing packet 52702 [packets to send 55, broken 54] [08:21:10]ProducePacketName [08:21:10]name=ofd_packets/00052702 [08:21:10]OFD Sender: To server: pG, [08:21:10]CommunicateWithHost lk.salyk.kg:30040 [08:21:10]ConnectInit lk.salyk.kg [08:21:10]ExternCall_PrintAddStr [08:21:10]wPrintStart [08:21:10]Write to MH i2c: 01 00 00 05 18 1D [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: 01 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: 01 07 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: 01 07 00 05 18 00 00 00 00 00 FF 0F 32 [08:21:10]RasterBufferAndPrint [08:21:10]line Счет N : (3)122832 [08:21:10]line ИНН: 02508201610067 [08:21:10]line Контрольно-Кассовый Чек [08:21:10]line ПРОДАЖА [08:21:10]line Товар: 4631150682851 [08:21:10]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [08:21:10]line 1.000 * 95.00 [08:21:10]line = 95.00 [08:21:10]line НДС 12% НСП 1% [08:21:10]line > о реализуемом товаре [08:21:10]line ИТОГО: 95.00 [08:21:10]line НСП 1% : 0.84 [08:21:10]line НДС 12% : 10.09 [08:21:10]line Наличными: 0.00 [08:21:10]line Безнал.: 95.00 [08:21:10]line Место: АЗС № 54 "Партнер Нефть" [08:21:10]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [08:21:10]line СНО: Общий режим [08:21:10]line Чек 20 12.08.2024 08:21 [08:21:10]line Смена: 447 ФФД: 1.0 [08:21:10]line ЗНМ: 0300000007 [08:21:10]line РНМ: 0000000000090834 [08:21:10]line Версия ККМ: 001 [08:21:10]line Платежная система: О! деньги [08:21:10]line ФМ: 0000000000874715 [08:21:10]line ФД: 52702 [08:21:10]line ФПД: 181480941696767 [08:21:10]line /tax-web-control/client/api/v1/ticket?date=20240812T082113&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52702&fm=181480941696767&tin=02508201610067®Number=0000000000090834&sum=9500 [08:21:10]line 0 [08:21:10]Connected sock=11 [08:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3C 01 00 00 5E 42 34 01 A9 52 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 F9 C5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DE CD 00 00 35 04 06 00 A5 0E 53 10 36 FF CE 66 56 BC 88 7D A9 79 [08:21:10]written 0, free lines is 4095 [08:21:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 4B 83 47 00 28 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 34 37 31 35 10 04 04 00 DE CD 00 00 F4 03 04 00 92 6D B9 66 B6 04 01 00 00 D7 A2 A0 E8 25 79 BF 50 [08:21:11]CommunicateWithHost err = 0 [08:21:11]CheckOFDResponse [08:21:11]1017 (14) - 77093643461234 [08:21:11]1041 (16) - 0000000000874715 [08:21:11]1040 (4) - 52702 [08:21:11]1012 (4) - 12.08.2024 02:04 [08:21:11]1206 (1) - 0 [08:21:11]OFD Sender: Remove packet 52702 [08:21:11]ProducePacketName [08:21:11]name=ofd_packets/00052702 [08:21:11]NVStorageDeleteData [08:21:11]Write to MH i2c: 01 00 00 2F 18 47 [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 07 00 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: 01 07 00 2F 18 00 00 00 00 00 97 0C F1 [08:21:11]RasterBufferAndPrint [08:21:11]line [08:21:11]line [08:21:11]line [08:21:11]line [08:21:11]line [08:21:11]written 0, free lines is 3227 [08:21:11]MH_Cut [08:21:11]Write to MH i2c: D1 01 00 36 18 01 20 [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: D1 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: D1 01 00 [08:21:11]MH_I2C_Read... [08:21:11]Read from MH i2c: D1 01 00 36 18 00 1F [08:21:11]Write to MH i2c: 01 00 00 37 18 4F [08:21:11]Write i2c OK [08:21:11]MH_I2C_Read... [08:21:11]OFD Sender: No OFD packet to send [08:21:12]*** Cut start [08:21:12]*** Purtial cut [08:21:12]*** Stage 1: CUTSNS_PIN = 1 [08:21:12]Read from MH i2c: 01 [08:21:12]MH_I2C_Read... [08:21:12]*** Stop cut motor [08:21:12]*** Cut end [08:21:12]Read from MH i2c: 01 07 00 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: 01 07 00 37 18 00 00 00 00 00 FF 0F 64 [08:21:12]process_action close_receipt done [08:21:12]requested_data is exist [08:21:12]produce_requested_data [08:21:12]requested_item fm.sn is exist - process it [08:21:12]wFMCommunicate request_size=4 [08:21:12]MH_SAM_APDU [08:21:12]CAPDU: 80 11 00 00 [08:21:12]Write to MH i2c: E2 08 00 38 18 80 11 00 00 00 00 00 00 CA [08:21:12]Write i2c OK [08:21:12]MH_I2C_Read... [08:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:12]Read from MH i2c: E2 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 17 00 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 17 00 38 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 1D [08:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [08:21:12]wFMCommunicate OK [08:21:12]requested_item fd.num is exist - process it [08:21:12]SAM_PROTO_GetFieldsCounters [08:21:12]wFMCommunicate request_size=4 [08:21:12]MH_SAM_APDU [08:21:12]CAPDU: 80 13 00 00 [08:21:12]Write to MH i2c: E2 08 00 39 18 80 13 00 00 00 00 00 00 CD [08:21:12]Write i2c OK [08:21:12]MH_I2C_Read... [08:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:12]Read from MH i2c: E2 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 62 00 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 62 00 39 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DE CD 00 00 0E 04 04 00 BF 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 94 [08:21: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DE CD 00 00 0E 04 04 00 BF 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:21:12]wFMCommunicate OK [08:21:12]SAM_PROTO_GetFieldsCounters done [08:21:12]requested_item shift.num is exist - process it [08:21:12]requested_item shift.opened is exist - process it [08:21:12]req_shift_opened [08:21:12]FM_GetShiftState [08:21:12]SAM_PROTO_GetShiftState [08:21:12]wFMCommunicate request_size=4 [08:21:12]MH_SAM_APDU [08:21:12]CAPDU: 80 13 01 00 [08:21:12]Write to MH i2c: E2 08 00 3A 18 80 13 01 00 00 00 00 00 CF [08:21:12]Write i2c OK [08:21:12]MH_I2C_Read... [08:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:12]Read from MH i2c: E2 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 0E 00 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 0E 00 3A 18 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 2D [08:21:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [08:21:12]wFMCommunicate OK [08:21:12]SAM_PROTO_GetShiftState done [08:21:12]FM_GetShiftState done [08:21:12]req_shift_opened done [08:21:12]requested_item shift.open_date is exist - process it [08:21:12]req_shift_open_date [08:21:12]req_shift_open_date done [08:21:12]produce_requested_data done [08:21:12]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52702,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [08:21:12]process_action_free close_receipt [08:21:12]json_value_free [08:21:12]json_value_free done [08:21:12]process_json_proto returns [08:21:12]Send response to host [08:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52702,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [08:21:12]free response buf [08:21:12]execute_script done [08:21:12]execute_script returns [08:21:12]free content buf [08:21:12]Sock 7.Close socket [08:21:12]Sock 7.Thread stoped [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:38]accept exits with 9 [08:22:38]New connection [08:22:38]New thread 3067293028 created [08:22:38]Thread 3067149668 joined [08:22:38]Waiting for new connection... [08:22:38] Sock 9.Parse request [08:22:38]Sock 9.Check first char [08:22:38]Sock 9.First char is OK [08:22:38]request: POST /json_proto HTTP/1.0 [08:22:38]Method: POST [08:22:38]URL: /json_proto [08:22:38]Method is POST - this is cgi request [08:22:38]url: /json_proto [08:22:38]query_string will be loaded in cgi processing [08:22:38]execute_cgi json_proto POST (null) [08:22:38]execute_cgi path=json_proto method=POST [08:22:38]POST find Content-Length [08:22:38]Host: 172.17.60.7:8080 [08:22:38]Content-Length: 820 [08:22:38]Content-Type: application/json [08:22:38] [08:22:38]POST finish read [08:22:38]Found Content-Length = 820 [08:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122833", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:38]execute_script... [08:22: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)122833", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:38]POST & json_proto [08:22:38]process_json_proto [08:22:38]json parsed OK: [08:22:38]protocol is kg_v1.0 [08:22:38]action value=close_receipt [08:22:38]process_action close_receipt [08:22:38]cmd_close_receipt [08:22:38]MH_GetDate [08:22:38]Write to MH i2c: F0 00 00 3B 18 42 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: F0 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: F0 09 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: F0 09 00 3B 18 00 52 C6 B9 66 63 9B 67 64 4B [08:22:38]GetLastDocTimeStamp 1723450873 [08:22:38]current date 1723450962 [08:22:38]FM_GetShiftState [08:22:38]SAM_PROTO_GetShiftState [08:22:38]wFMCommunicate request_size=4 [08:22:38]MH_SAM_APDU [08:22:38]CAPDU: 80 13 01 00 [08:22:38]Write to MH i2c: E2 08 00 3C 18 80 13 01 00 00 00 00 00 D1 [08:22:38]Write i2c OK [08:22:38]MH_I2C_Read... [08:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:38]Read from MH i2c: E2 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0E 00 [08:22:38]MH_I2C_Read... [08:22:38]Read from MH i2c: E2 0E 00 3C 18 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 2F [08:22:38]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [08:22:38]wFMCommunicate OK [08:22:38]SAM_PROTO_GetShiftState done [08:22:38]FM_GetShiftState done [08:22:38]opened in 1723422684 [08:22:38]opened+sec_in_day 1723509084 [08:22:38]quantity*price = 9500 [08:22:38]sum+1 = 9501 [08:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 21 12.08.2024 08:22 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52703 ФПД: 206699762881681 /tax-web-control/client/api/v1/ticket?date=20240812T082242&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52703&fm=206699762881681&tin=02508201610067®Number=0000000000090834&sum=9500 0 [08:22:39]StoreToDocumentArchive [08:22:39]shift 447 fd 52703 [08:22:39]save to /storage/0447/doc_00052703 [08:22:39]save last doc name /storage/0447/doc_00052703 to /storage/kkm_last_doc_name [08:22:39]save OK [08:22:39]Clear old archive folders... [08:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:22:39]tlvbuf is 012D4460 [08:22:39]SAM_PROTO_ClearQueue [08:22:39]wFMCommunicate request_size=4 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 09 00 00 [08:22:39]Write to MH i2c: E2 08 00 49 18 80 09 00 00 00 00 00 00 D3 [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:39]Read from MH i2c: E2 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 03 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [08:22:39]RAPDU: 90 00 [08:22:39]wFMCommunicate OK [08:22:39]SAM_PROTO_ClearQueue done [08:22:39]KKMCreateOFDPacket [08:22:39]OFDProtocolAddRootSTLVToBuf [08:22:39]FM_MakeSignedData [08:22:39]FM_MakeSignedData [08:22:39]SAM_PROTO_SignData [08:22:39]wFMCommunicate request_size=4 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 0D 01 02 [08:22:39]Write to MH i2c: E2 08 00 4A 18 80 0D 01 02 00 00 00 00 DB [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:39]Read from MH i2c: E2 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 03 00 [08:22:39]MH_I2C_Read... [08:22:39]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [08:22:39]RAPDU: 90 00 [08:22:39]wFMCommunicate OK [08:22:39]wFMCommunicate request_size=255 [08:22:39]MH_SAM_APDU [08:22:39]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 C6 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:22:39]Write to MH i2c: E2 02 01 4B 18 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 C6 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 87 [08:22:39]Write i2c OK [08:22:39]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 03 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [08:22:40]RAPDU: 90 00 [08:22:40]wFMCommunicate OK [08:22:40]wFMCommunicate request_size=52 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DF CD 00 00 35 04 06 00 BB FE 09 F1 14 91 [08:22:40]Write to MH i2c: E2 37 00 4C 18 80 0D 02 02 2F 00 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DF CD 00 00 35 04 06 00 BB FE 09 F1 14 91 00 00 A4 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 03 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [08:22:40]RAPDU: 90 00 [08:22:40]wFMCommunicate OK [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 0D 03 02 [08:22:40]Write to MH i2c: E2 08 00 4D 18 80 0D 03 02 00 00 00 00 E0 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0B 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 0B 00 4D 18 00 A1 68 78 0E 62 EB 4F BC 90 00 C8 [08:22:40]RAPDU: A1 68 78 0E 62 EB 4F BC 90 00 [08:22:40]wFMCommunicate OK [08:22:40]SAM_PROTO_SignData done [08:22:40]FM_MakeSignedData done [08:22:40]CreateOFDProtocolMessage [08:22:40]wFMCommunicate request_size=4 [08:22:40]MH_SAM_APDU [08:22:40]CAPDU: 80 11 00 00 [08:22:40]Write to MH i2c: E2 08 00 4E 18 80 11 00 00 00 00 00 00 E0 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:40]Read from MH i2c: E2 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 17 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: E2 17 00 4E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 33 [08:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [08:22:40]wFMCommunicate OK [08:22:40]CreateOFDProtocolMessage done [08:22:40]OFDSenderStorePacket 52703 [08:22:40]StoreOFDPacket docnum=52703 [08:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 CD 0F 31 01 33 09 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 C6 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DF CD 00 00 35 04 06 00 BB FE 09 F1 14 91 A1 68 78 0E 62 EB 4F BC [08:22:40]CheckFolder [08:22:40]dirname=/storage/ofd_packets [08:22:40]CheckFolder done [08:22:40]ProducePacketName [08:22:40]name=ofd_packets/00052703 [08:22:40]NVStorageSaveData ofd_packets/00052703 [08:22:40]File name is /storage/ofd_packets/00052703 [08:22:40]Write 343 bytes [08:22:40]NVStorageSaveData done [08:22:40]OFDSenderStorePacket done [08:22:40]KKMCreateOFDPacket done [08:22:40]NVStorageSaveData kkm_last_timestamp [08:22:40]File name is /storage/kkm_last_timestamp [08:22:40]Write 4 bytes [08:22:40]NVStorageSaveData done [08:22:40]ExternCall_PrintAddStr [08:22:40]wPrintStart [08:22:40]Write to MH i2c: 01 00 00 4F 18 67 [08:22:40]Write i2c OK [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: 01 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: 01 07 00 [08:22:40]MH_I2C_Read... [08:22:40]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 FF 0F 7C [08:22:40]RasterBufferAndPrint [08:22:40]line Счет N : (3)122833 [08:22:40]line ИНН: 02508201610067 [08:22:40]line Контрольно-Кассовый Чек [08:22:40]line ПРОДАЖА [08:22:40]line Товар: 4700000480050 [08:22:40]line Напиток Nitro Energy эн green ж/б 0,45л [08:22:40]line 1.000 * 95.00 [08:22:40]line = 95.00 [08:22:40]line НДС 12% НСП 1% [08:22:40]line > о реализуемом товаре [08:22:40]line ИТОГО: 95.00 [08:22:40]line НСП 1% : 0.84 [08:22:40]line НДС 12% : 10.09 [08:22:40]line Наличными: 0.00 [08:22:40]line Безнал.: 95.00 [08:22:40]line Место: АЗС № 54 "Партнер Нефть" [08:22:40]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [08:22:40]line СНО: Общий режим [08:22:40]line Чек 21 12.08.2024 08:22 [08:22:40]line Смена: 447 ФФД: 1.0 [08:22:40]line ЗНМ: 0300000007 [08:22:40]line РНМ: 0000000000090834 [08:22:40]line Версия ККМ: 001 [08:22:40]line Платежная система: О! деньги [08:22:40]line ФМ: 0000000000874715 [08:22:40]line ФД: 52703 [08:22:40]line ФПД: 206699762881681 [08:22:40]line /tax-web-control/client/api/v1/ticket?date=20240812T082242&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52703&fm=206699762881681&tin=02508201610067®Number=0000000000090834&sum=9500 [08:22:40]OFD Sender: Processing packet 52703 [packets to send 55, broken 54] [08:22:40]ProducePacketName [08:22:40]name=ofd_packets/00052703 [08:22:40]OFD Sender: To server: pG, [08:22:40]CommunicateWithHost lk.salyk.kg:30040 [08:22:40]ConnectInit lk.salyk.kg [08:22:40]line 0 [08:22:40]written 0, free lines is 4095 [08:22:40]Connected sock=11 [08:22:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 CD 0F 31 01 33 09 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 C6 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DF CD 00 00 35 04 06 00 BB FE 09 F1 14 91 A1 68 78 0E 62 EB 4F BC [08:22:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 97 12 47 00 41 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 DF CD 00 00 F4 03 04 00 EC 6D B9 66 B6 04 01 00 00 59 76 D2 31 CF DD E8 B7 [08:22:41]CommunicateWithHost err = 0 [08:22:41]CheckOFDResponse [08:22:41]1017 (14) - 77093643461234 [08:22:41]1041 (16) - 0000000000874715 [08:22:41]1040 (4) - 52703 [08:22:41]1012 (4) - 12.08.2024 02:05 [08:22:41]1206 (1) - 0 [08:22:41]OFD Sender: Remove packet 52703 [08:22:41]ProducePacketName [08:22:41]name=ofd_packets/00052703 [08:22:41]NVStorageDeleteData [08:22:41]Write to MH i2c: 01 00 00 79 18 91 [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: 01 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: 01 07 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 A6 0C 4A [08:22:41]RasterBufferAndPrint [08:22:41]line [08:22:41]line [08:22:41]line [08:22:41]line [08:22:41]line [08:22:41]written 0, free lines is 3242 [08:22:41]MH_Cut [08:22:41]Write to MH i2c: D1 01 00 80 18 01 6A [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: D1 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: D1 01 00 [08:22:41]MH_I2C_Read... [08:22:41]Read from MH i2c: D1 01 00 80 18 00 69 [08:22:41]Write to MH i2c: 01 00 00 81 18 99 [08:22:41]Write i2c OK [08:22:41]MH_I2C_Read... [08:22:41]OFD Sender: No OFD packet to send [08:22:42]*** Cut start [08:22:42]*** Purtial cut [08:22:42]*** Stage 1: CUTSNS_PIN = 1 [08:22:42]Read from MH i2c: 01 [08:22:42]MH_I2C_Read... [08:22:42]*** Stop cut motor [08:22:42]*** Cut end [08:22:42]Read from MH i2c: 01 07 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 FF 0F AE [08:22:42]process_action close_receipt done [08:22:42]requested_data is exist [08:22:42]produce_requested_data [08:22:42]requested_item fm.sn is exist - process it [08:22:42]wFMCommunicate request_size=4 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 11 00 00 [08:22:42]Write to MH i2c: E2 08 00 82 18 80 11 00 00 00 00 00 00 14 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 17 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 17 00 82 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 67 [08:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [08:22:42]wFMCommunicate OK [08:22:42]requested_item fd.num is exist - process it [08:22:42]SAM_PROTO_GetFieldsCounters [08:22:42]wFMCommunicate request_size=4 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 13 00 00 [08:22:42]Write to MH i2c: E2 08 00 83 18 80 13 00 00 00 00 00 00 17 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 62 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 62 00 83 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DF CD 00 00 0E 04 04 00 BF 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 E2 [08:22: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 DF CD 00 00 0E 04 04 00 BF 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:22:42]wFMCommunicate OK [08:22:42]SAM_PROTO_GetFieldsCounters done [08:22:42]requested_item shift.num is exist - process it [08:22:42]requested_item shift.opened is exist - process it [08:22:42]req_shift_opened [08:22:42]FM_GetShiftState [08:22:42]SAM_PROTO_GetShiftState [08:22:42]wFMCommunicate request_size=4 [08:22:42]MH_SAM_APDU [08:22:42]CAPDU: 80 13 01 00 [08:22:42]Write to MH i2c: E2 08 00 84 18 80 13 01 00 00 00 00 00 19 [08:22:42]Write i2c OK [08:22:42]MH_I2C_Read... [08:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:42]Read from MH i2c: E2 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 0E 00 [08:22:42]MH_I2C_Read... [08:22:42]Read from MH i2c: E2 0E 00 84 18 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 77 [08:22:42]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [08:22:42]wFMCommunicate OK [08:22:42]SAM_PROTO_GetShiftState done [08:22:42]FM_GetShiftState done [08:22:42]req_shift_opened done [08:22:42]requested_item shift.open_date is exist - process it [08:22:42]req_shift_open_date [08:22:42]req_shift_open_date done [08:22:42]produce_requested_data done [08:22:42]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52703,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [08:22:42]process_action_free close_receipt [08:22:42]json_value_free [08:22:42]json_value_free done [08:22:42]process_json_proto returns [08:22:42]Send response to host [08:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52703,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [08:22:42]free response buf [08:22:42]execute_script done [08:22:42]execute_script returns [08:22:42]free content buf [08:22:42]Sock 9.Close socket [08:22:42]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]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:44]accept exits with 7 [08:35:44]New connection [08:35:44]New thread 3067149668 created [08:35:44]Thread 3067293028 joined [08:35:44]Waiting for new connection... [08:35:44] Sock 7.Parse request [08:35:44]Sock 7.Check first char [08:35:44]Sock 7.First char is OK [08:35:44]request: POST /json_proto HTTP/1.0 [08:35:44]Method: POST [08:35:44]URL: /json_proto [08:35:44]Method is POST - this is cgi request [08:35:44]url: /json_proto [08:35:44]query_string will be loaded in cgi processing [08:35:44]execute_cgi json_proto POST (null) [08:35:44]execute_cgi path=json_proto method=POST [08:35:44]POST find Content-Length [08:35:44]Host: 172.17.60.7:8080 [08:35:44]Content-Length: 788 [08:35:44]Content-Type: application/json [08:35:44] [08:35:44]POST finish read [08:35:44]Found Content-Length = 788 [08:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122834", "tax_sys" : 0, "items" : [ { "code": "4700026030109", "name": "\u041A\u0443\u0440\u0443\u0442 \u0447\u043E\u0431\u043E\u0433\u043E", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:44]execute_script... [08:35: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)122834", "tax_sys" : 0, "items" : [ { "code": "4700026030109", "name": "\u041A\u0443\u0440\u0443\u0442 \u0447\u043E\u0431\u043E\u0433\u043E", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:44]POST & json_proto [08:35:44]process_json_proto [08:35:44]json parsed OK: [08:35:44]protocol is kg_v1.0 [08:35:44]action value=close_receipt [08:35:44]process_action close_receipt [08:35:44]cmd_close_receipt [08:35:44]MH_GetDate [08:35:44]Write to MH i2c: F0 00 00 85 18 8C [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: F0 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: F0 09 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: F0 09 00 85 18 00 65 C9 B9 66 63 9B 67 64 AB [08:35:44]GetLastDocTimeStamp 1723450962 [08:35:44]current date 1723451749 [08:35:44]FM_GetShiftState [08:35:44]SAM_PROTO_GetShiftState [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 13 01 00 [08:35:44]Write to MH i2c: E2 08 00 86 18 80 13 01 00 00 00 00 00 1B [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:44]Read from MH i2c: E2 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 0E 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 0E 00 86 18 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 79 [08:35:44]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [08:35:44]wFMCommunicate OK [08:35:44]SAM_PROTO_GetShiftState done [08:35:44]FM_GetShiftState done [08:35:44]opened in 1723422684 [08:35:44]opened+sec_in_day 1723509084 [08:35:44]quantity*price = 4900 [08:35:44]sum+1 = 4901 [08:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 0.00 Безнал.: 49.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 22 12.08.2024 08:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52704 ФПД: 257355036074609 /tax-web-control/client/api/v1/ticket?date=20240812T083549&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52704&fm=257355036074609&tin=02508201610067®Number=0000000000090834&sum=4900 0 [08:35:45]StoreToDocumentArchive [08:35:45]shift 447 fd 52704 [08:35:45]save to /storage/0447/doc_00052704 [08:35:45]save last doc name /storage/0447/doc_00052704 to /storage/kkm_last_doc_name [08:35:45]save OK [08:35:45]Clear old archive folders... [08:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=265 [08:35:45]tlvbuf is B6DFB9C0 [08:35:45]SAM_PROTO_ClearQueue [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 09 00 00 [08:35:45]Write to MH i2c: E2 08 00 93 18 80 09 00 00 00 00 00 00 1D [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_ClearQueue done [08:35:45]KKMCreateOFDPacket [08:35:45]OFDProtocolAddRootSTLVToBuf [08:35:45]FM_MakeSignedData [08:35:45]FM_MakeSignedData [08:35:45]SAM_PROTO_SignData [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 01 02 [08:35:45]Write to MH i2c: E2 08 00 94 18 80 0D 01 02 00 00 00 00 25 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=255 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 65 C9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 [08:35:45]Write to MH i2c: E2 02 01 95 18 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 65 C9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 00 00 EA [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 03 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [08:35:46]RAPDU: 90 00 [08:35:46]wFMCommunicate OK [08:35:46]wFMCommunicate request_size=24 [08:35:46]MH_SAM_APDU [08:35:46]CAPDU: 80 0D 02 02 13 35 10 04 04 00 E0 CD 00 00 35 04 06 00 EA 10 23 81 A2 71 [08:35:46]Write to MH i2c: E2 1B 00 96 18 80 0D 02 02 13 00 35 10 04 04 00 E0 CD 00 00 35 04 06 00 EA 10 23 81 A2 71 00 00 38 [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 03 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 03 00 96 18 00 90 00 22 [08:35:46]RAPDU: 90 00 [08:35:46]wFMCommunicate OK [08:35:46]wFMCommunicate request_size=4 [08:35:46]MH_SAM_APDU [08:35:46]CAPDU: 80 0D 03 02 [08:35:46]Write to MH i2c: E2 08 00 97 18 80 0D 03 02 00 00 00 00 2A [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 0B 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 0B 00 97 18 00 06 6C 49 8A 0C 6B E4 E9 90 00 B4 [08:35:46]RAPDU: 06 6C 49 8A 0C 6B E4 E9 90 00 [08:35:46]wFMCommunicate OK [08:35:46]SAM_PROTO_SignData done [08:35:46]FM_MakeSignedData done [08:35:46]CreateOFDProtocolMessage [08:35:46]wFMCommunicate request_size=4 [08:35:46]MH_SAM_APDU [08:35:46]CAPDU: 80 11 00 00 [08:35:46]Write to MH i2c: E2 08 00 98 18 80 11 00 00 00 00 00 00 2A [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:46]Read from MH i2c: E2 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 17 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: E2 17 00 98 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 7D [08:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [08:35:46]wFMCommunicate OK [08:35:46]CreateOFDProtocolMessage done [08:35:46]OFDSenderStorePacket 52704 [08:35:46]StoreOFDPacket docnum=52704 [08:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1D 01 00 00 BF FF 15 01 26 C6 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 65 C9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E0 CD 00 00 35 04 06 00 EA 10 23 81 A2 71 06 6C 49 8A 0C 6B E4 E9 [08:35:46]CheckFolder [08:35:46]dirname=/storage/ofd_packets [08:35:46]CheckFolder done [08:35:46]ProducePacketName [08:35:46]name=ofd_packets/00052704 [08:35:46]NVStorageSaveData ofd_packets/00052704 [08:35:46]File name is /storage/ofd_packets/00052704 [08:35:46]Write 315 bytes [08:35:46]NVStorageSaveData done [08:35:46]OFDSenderStorePacket done [08:35:46]KKMCreateOFDPacket done [08:35:46]NVStorageSaveData kkm_last_timestamp [08:35:46]File name is /storage/kkm_last_timestamp [08:35:46]Write 4 bytes [08:35:46]NVStorageSaveData done [08:35:46]ExternCall_PrintAddStr [08:35:46]wPrintStart [08:35:46]Write to MH i2c: 01 00 00 99 18 B1 [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 07 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: 01 07 00 99 18 00 00 00 00 00 FF 0F C6 [08:35:46]RasterBufferAndPrint [08:35:46]line Счет N : (3)122834 [08:35:46]line ИНН: 02508201610067 [08:35:46]line Контрольно-Кассовый Чек [08:35:46]line ПРОДАЖА [08:35:46]line Товар: 4700026030109 [08:35:46]line Курут чобого [08:35:46]line 1.000 * 49.00 [08:35:46]line = 49.00 [08:35:46]line НДС 12% НСП 1% [08:35:46]line > о реализуемом товаре [08:35:46]line ИТОГО: 49.00 [08:35:46]line НСП 1% : 0.43 [08:35:46]line НДС 12% : 5.20 [08:35:46]line Наличными: 0.00 [08:35:46]line Безнал.: 49.00 [08:35:46]line Место: АЗС № 54 "Партнер Нефть" [08:35:46]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [08:35:46]line СНО: Общий режим [08:35:46]line Чек 22 12.08.2024 08:35 [08:35:46]line Смена: 447 ФФД: 1.0 [08:35:46]line ЗНМ: 0300000007 [08:35:46]line РНМ: 0000000000090834 [08:35:46]line Версия ККМ: 001 [08:35:46]line Платежная система: О! деньги [08:35:46]line ФМ: 0000000000874715 [08:35:46]line ФД: 52704 [08:35:46]line ФПД: 257355036074609 [08:35:46]line /tax-web-control/client/api/v1/ticket?date=20240812T083549&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52704&fm=257355036074609&tin=02508201610067®Number=0000000000090834&sum=4900 [08:35:46]OFD Sender: Processing packet 52704 [packets to send 55, broken 54] [08:35:46]ProducePacketName [08:35:46]name=ofd_packets/00052704 [08:35:46]OFD Sender: To server: pG, [08:35:46]CommunicateWithHost lk.salyk.kg:30040 [08:35:46]ConnectInit lk.salyk.kg [08:35:46]line 0 [08:35:46]written 0, free lines is 4095 [08:35:46]Connected sock=10 [08:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1D 01 00 00 BF FF 15 01 26 C6 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 31 30 39 06 04 17 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D1 87 D0 BE D0 B1 D0 BE D0 B3 D0 BE 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 00 00 00 00 00 00 39 04 06 00 24 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 65 C9 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E0 CD 00 00 35 04 06 00 EA 10 23 81 A2 71 06 6C 49 8A 0C 6B E4 E9 [08:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 CC 89 47 00 BC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E0 CD 00 00 F4 03 04 00 FE 70 B9 66 B6 04 01 00 00 CF 13 4E 46 55 BA 1E 00 [08:35:47]CommunicateWithHost err = 0 [08:35:47]CheckOFDResponse [08:35:47]1017 (14) - 77093643461234 [08:35:47]1041 (16) - 0000000000874715 [08:35:47]1040 (4) - 52704 [08:35:47]1012 (4) - 12.08.2024 02:18 [08:35:47]1206 (1) - 0 [08:35:47]OFD Sender: Remove packet 52704 [08:35:47]ProducePacketName [08:35:47]name=ofd_packets/00052704 [08:35:47]NVStorageDeleteData [08:35:47]Write to MH i2c: 01 00 00 C2 18 DA [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: 01 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: 01 07 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 C0 0C AD [08:35:47]RasterBufferAndPrint [08:35:47]line [08:35:47]line [08:35:47]line [08:35:47]line [08:35:47]line [08:35:47]written 0, free lines is 3270 [08:35:47]MH_Cut [08:35:47]Write to MH i2c: D1 01 00 C9 18 01 B3 [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: D1 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: D1 01 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: D1 01 00 C9 18 00 B2 [08:35:47]Write to MH i2c: 01 00 00 CA 18 E2 [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]OFD Sender: No OFD packet to send [08:35:48]*** Cut start [08:35:48]*** Purtial cut [08:35:48]*** Stage 1: CUTSNS_PIN = 1 [08:35:48]Read from MH i2c: 01 [08:35:48]MH_I2C_Read... [08:35:48]*** Stop cut motor [08:35:48]*** Cut end [08:35:48]Read from MH i2c: 01 07 00 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: 01 07 00 CA 18 00 00 00 00 00 FF 0F F7 [08:35:48]process_action close_receipt done [08:35:48]requested_data is exist [08:35:48]produce_requested_data [08:35:48]requested_item fm.sn is exist - process it [08:35:48]wFMCommunicate request_size=4 [08:35:48]MH_SAM_APDU [08:35:48]CAPDU: 80 11 00 00 [08:35:48]Write to MH i2c: E2 08 00 CB 18 80 11 00 00 00 00 00 00 5D [08:35:48]Write i2c OK [08:35:48]MH_I2C_Read... [08:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:48]Read from MH i2c: E2 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: E2 17 00 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: E2 17 00 CB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B0 [08:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [08:35:48]wFMCommunicate OK [08:35:48]requested_item fd.num is exist - process it [08:35:48]SAM_PROTO_GetFieldsCounters [08:35:48]wFMCommunicate request_size=4 [08:35:48]MH_SAM_APDU [08:35:48]CAPDU: 80 13 00 00 [08:35:48]Write to MH i2c: E2 08 00 CC 18 80 13 00 00 00 00 00 00 60 [08:35:48]Write i2c OK [08:35:48]MH_I2C_Read... [08:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:48]Read from MH i2c: E2 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: E2 62 00 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: E2 62 00 CC 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E0 CD 00 00 0E 04 04 00 BF 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 2F [08:35: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E0 CD 00 00 0E 04 04 00 BF 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:35:48]wFMCommunicate OK [08:35:48]SAM_PROTO_GetFieldsCounters done [08:35:48]requested_item shift.num is exist - process it [08:35:48]requested_item shift.opened is exist - process it [08:35:48]req_shift_opened [08:35:48]FM_GetShiftState [08:35:48]SAM_PROTO_GetShiftState [08:35:48]wFMCommunicate request_size=4 [08:35:48]MH_SAM_APDU [08:35:48]CAPDU: 80 13 01 00 [08:35:48]Write to MH i2c: E2 08 00 CD 18 80 13 01 00 00 00 00 00 62 [08:35:48]Write i2c OK [08:35:48]MH_I2C_Read... [08:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:48]Read from MH i2c: E2 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: E2 0E 00 [08:35:48]MH_I2C_Read... [08:35:48]Read from MH i2c: E2 0E 00 CD 18 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C0 [08:35:48]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [08:35:48]wFMCommunicate OK [08:35:48]SAM_PROTO_GetShiftState done [08:35:48]FM_GetShiftState done [08:35:48]req_shift_opened done [08:35:48]requested_item shift.open_date is exist - process it [08:35:48]req_shift_open_date [08:35:48]req_shift_open_date done [08:35:48]produce_requested_data done [08:35:48]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52704,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [08:35:48]process_action_free close_receipt [08:35:48]json_value_free [08:35:48]json_value_free done [08:35:48]process_json_proto returns [08:35:48]Send response to host [08:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52704,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [08:35:48]free response buf [08:35:48]execute_script done [08:35:48]execute_script returns [08:35:48]free content buf [08:35:48]Sock 7.Close socket [08:35:48]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]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: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:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:41]accept exits with 9 [09:17:41]New connection [09:17:41]New thread 3067293028 created [09:17:41]Thread 3067149668 joined [09:17:41]Waiting for new connection... [09:17:41] Sock 9.Parse request [09:17:41]Sock 9.Check first char [09:17:41]Sock 9.First char is OK [09:17:41]request: POST /json_proto HTTP/1.0 [09:17:41]Method: POST [09:17:41]URL: /json_proto [09:17:41]Method is POST - this is cgi request [09:17:41]url: /json_proto [09:17:41]query_string will be loaded in cgi processing [09:17:41]execute_cgi json_proto POST (null) [09:17:41]execute_cgi path=json_proto method=POST [09:17:41]POST find Content-Length [09:17:41]Host: 172.17.60.7:8080 [09:17:41]Content-Length: 991 [09:17:41]Content-Type: application/json [09:17:41] [09:17:41]POST finish read [09:17:41]Found Content-Length = 991 [09:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122835", "tax_sys" : 0, "items" : [ { "code": "4630007400242", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 50 \u0433\u0440", "price" : 55.00, "quantity" : 1.000, "sum" : 55.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" : 2.000, "sum" : 190.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:17:41]execute_script... [09:17: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)122835", "tax_sys" : 0, "items" : [ { "code": "4630007400242", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 50 \u0433\u0440", "price" : 55.00, "quantity" : 1.000, "sum" : 55.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" : 2.000, "sum" : 190.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:17:41]POST & json_proto [09:17:41]process_json_proto [09:17:41]json parsed OK: [09:17:41]protocol is kg_v1.0 [09:17:41]action value=close_receipt [09:17:41]process_action close_receipt [09:17:41]cmd_close_receipt [09:17:41]MH_GetDate [09:17:41]Write to MH i2c: F0 00 00 CE 18 D5 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: F0 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: F0 09 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: F0 09 00 CE 18 00 3A D3 B9 66 63 9B 67 64 D3 [09:17:41]GetLastDocTimeStamp 1723451749 [09:17:41]current date 1723454266 [09:17:41]FM_GetShiftState [09:17:41]SAM_PROTO_GetShiftState [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 13 01 00 [09:17:41]Write to MH i2c: E2 08 00 CF 18 80 13 01 00 00 00 00 00 64 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 0E 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 0E 00 CF 18 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C2 [09:17:41]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:17:41]wFMCommunicate OK [09:17:41]SAM_PROTO_GetShiftState done [09:17:41]FM_GetShiftState done [09:17:41]opened in 1723422684 [09:17:41]opened+sec_in_day 1723509084 [09:17:41]quantity*price = 5500 [09:17:41]sum+1 = 5501 [09:17:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 23 12.08.2024 09:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52705 ФПД: 188906432784249 /tax-web-control/client/api/v1/ticket?date=20240812T091746&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52705&fm=188906432784249&tin=02508201610067®Number=0000000000090834&sum=24500 0 [09:17:42]StoreToDocumentArchive [09:17:42]shift 447 fd 52705 [09:17:42]save to /storage/0447/doc_00052705 [09:17:42]save last doc name /storage/0447/doc_00052705 to /storage/kkm_last_doc_name [09:17:42]save OK [09:17:42]Clear old archive folders... [09:17:42]ProcessDocumentItem done err = 0, tmpTLVsize=424 [09:17:42]tlvbuf is B6FA8180 [09:17:42]SAM_PROTO_ClearQueue [09:17:42]wFMCommunicate request_size=4 [09:17:42]MH_SAM_APDU [09:17:42]CAPDU: 80 09 00 00 [09:17:42]Write to MH i2c: E2 08 00 DC 18 80 09 00 00 00 00 00 00 66 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [09:17:43]RAPDU: 90 00 [09:17:43]wFMCommunicate OK [09:17:43]SAM_PROTO_ClearQueue done [09:17:43]KKMCreateOFDPacket [09:17:43]OFDProtocolAddRootSTLVToBuf [09:17:43]FM_MakeSignedData [09:17:43]FM_MakeSignedData [09:17:43]SAM_PROTO_SignData [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 0D 01 02 [09:17:43]Write to MH i2c: E2 08 00 DD 18 80 0D 01 02 00 00 00 00 6E [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:43]Read from MH i2c: E2 03 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [09:17:43]RAPDU: 90 00 [09:17:43]wFMCommunicate OK [09:17:43]wFMCommunicate request_size=255 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 [09:17:43]Write to MH i2c: E2 02 01 DE 18 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 00 00 51 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [09:17:43]RAPDU: 90 00 [09:17:43]wFMCommunicate OK [09:17:43]wFMCommunicate request_size=183 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 0D 02 02 B2 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 2A 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 17 00 00 00 F4 03 04 00 3A D3 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E1 CD 00 00 35 04 06 00 AB CF 34 D2 67 79 [09:17:43]Write to MH i2c: E2 BA 00 DF 18 80 0D 02 02 B2 00 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 2A 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 17 00 00 00 F4 03 04 00 3A D3 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E1 CD 00 00 35 04 06 00 AB CF 34 D2 67 79 00 00 19 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [09:17:43]RAPDU: 90 00 [09:17:43]wFMCommunicate OK [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 0D 03 02 [09:17:43]Write to MH i2c: E2 08 00 E0 18 80 0D 03 02 00 00 00 00 73 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 0B 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 0B 00 E0 18 00 8D 88 7D 94 40 3B 31 FE 90 00 44 [09:17:43]RAPDU: 8D 88 7D 94 40 3B 31 FE 90 00 [09:17:43]wFMCommunicate OK [09:17:43]SAM_PROTO_SignData done [09:17:43]FM_MakeSignedData done [09:17:43]CreateOFDProtocolMessage [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 11 00 00 [09:17:43]Write to MH i2c: E2 08 00 E1 18 80 11 00 00 00 00 00 00 73 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 17 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 17 00 E1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C6 [09:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:17:43]wFMCommunicate OK [09:17:43]CreateOFDProtocolMessage done [09:17:43]OFDSenderStorePacket 52705 [09:17:43]StoreOFDPacket docnum=52705 [09:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 BC 01 00 00 1D 72 B4 01 90 5C 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2A 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 17 00 00 00 F4 03 04 00 3A D3 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E1 CD 00 00 35 04 06 00 AB CF 34 D2 67 79 8D 88 7D 94 40 3B 31 FE [09:17:43]CheckFolder [09:17:43]dirname=/storage/ofd_packets [09:17:43]CheckFolder done [09:17:43]ProducePacketName [09:17:43]name=ofd_packets/00052705 [09:17:43]NVStorageSaveData ofd_packets/00052705 [09:17:43]File name is /storage/ofd_packets/00052705 [09:17:43]Write 474 bytes [09:17:43]NVStorageSaveData done [09:17:43]OFDSenderStorePacket done [09:17:43]KKMCreateOFDPacket done [09:17:43]NVStorageSaveData kkm_last_timestamp [09:17:43]File name is /storage/kkm_last_timestamp [09:17:43]Write 4 bytes [09:17:43]NVStorageSaveData done [09:17:43]ExternCall_PrintAddStr [09:17:43]wPrintStart [09:17:43]Write to MH i2c: 01 00 00 E2 18 FA [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: 01 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: 01 07 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 FF 0F 0F [09:17:43]RasterBufferAndPrint [09:17:43]line Счет N : (3)122835 [09:17:43]line ИНН: 02508201610067 [09:17:43]line Контрольно-Кассовый Чек [09:17:43]line ПРОДАЖА [09:17:43]line Товар: 4630007400242 [09:17:43]line Арахис жарен Караван орехов 50 гр [09:17:43]line 1.000 * 55.00 [09:17:43]line = 55.00 [09:17:43]line НДС 12% НСП 1% [09:17:43]line > о реализуемом товаре [09:17:43]line Товар: 4700000480050 [09:17:43]line Напиток Nitro Energy эн green ж/б 0,45л [09:17:43]line 2.000 * 95.00 [09:17:43]line = 190.00 [09:17:43]line НДС 12% НСП 1% [09:17:43]line > о реализуемом товаре [09:17:43]line ИТОГО: 245.00 [09:17:43]line НСП 1% : 2.17 [09:17:43]line НДС 12% : 26.02 [09:17:43]line Наличными: 245.00 [09:17:43]line Безнал.: 0.00 [09:17:43]line Место: АЗС № 54 "Партнер Нефть" [09:17:43]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [09:17:43]line СНО: Общий режим [09:17:43]line Чек 23 12.08.2024 09:17 [09:17:43]line Смена: 447 ФФД: 1.0 [09:17:43]line ЗНМ: 0300000007 [09:17:43]line РНМ: 0000000000090834 [09:17:43]line Версия ККМ: 001 [09:17:43]line ФМ: 0000000000874715 [09:17:43]line ФД: 52705 [09:17:43]line ФПД: 188906432784249 [09:17:43]line /tax-web-control/client/api/v1/ticket?date=20240812T091746&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52705&fm=188906432784249&tin=02508201610067®Number=0000000000090834&sum=24500 [09:17:43]line 0 [09:17:43]written 0, free lines is 4095 [09:17:43]OFD Sender: Processing packet 52705 [packets to send 55, broken 54] [09:17:43]ProducePacketName [09:17:43]name=ofd_packets/00052705 [09:17:43]OFD Sender: To server: pG, [09:17:43]CommunicateWithHost lk.salyk.kg:30040 [09:17:43]ConnectInit lk.salyk.kg [09:17:43]Connected sock=10 [09:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 BC 01 00 00 1D 72 B4 01 90 5C 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2A 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 17 00 00 00 F4 03 04 00 3A D3 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E1 CD 00 00 35 04 06 00 AB CF 34 D2 67 79 8D 88 7D 94 40 3B 31 FE [09:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 AF 32 47 00 2C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E1 CD 00 00 F4 03 04 00 D3 7A B9 66 B6 04 01 00 00 C8 CD B8 58 6C AC C5 45 [09:17:44]CommunicateWithHost err = 0 [09:17:44]CheckOFDResponse [09:17:44]1017 (14) - 77093643461234 [09:17:44]1041 (16) - 0000000000874715 [09:17:44]1040 (4) - 52705 [09:17:44]1012 (4) - 12.08.2024 03:00 [09:17:44]1206 (1) - 0 [09:17:44]OFD Sender: Remove packet 52705 [09:17:44]ProducePacketName [09:17:44]name=ofd_packets/00052705 [09:17:44]NVStorageDeleteData [09:17:44]Write to MH i2c: 01 00 00 11 19 2A [09:17:44]Write i2c OK [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: 01 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: 01 07 00 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: 01 07 00 11 19 00 00 00 00 00 3B 0C 78 [09:17:44]RasterBufferAndPrint [09:17:44]line [09:17:44]line [09:17:44]line [09:17:44]line [09:17:44]line [09:17:44]written 0, free lines is 3135 [09:17:44]MH_Cut [09:17:44]Write to MH i2c: D1 01 00 18 19 01 03 [09:17:44]Write i2c OK [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: D1 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: D1 01 00 [09:17:44]MH_I2C_Read... [09:17:44]Read from MH i2c: D1 01 00 18 19 00 02 [09:17:44]Write to MH i2c: 01 00 00 19 19 32 [09:17:44]Write i2c OK [09:17:44]MH_I2C_Read... [09:17:44]OFD Sender: No OFD packet to send [09:17:45]*** Cut start [09:17:45]*** Purtial cut [09:17:45]*** Stage 1: CUTSNS_PIN = 1 [09:17:45]Read from MH i2c: 01 [09:17:45]MH_I2C_Read... [09:17:45]*** Stop cut motor [09:17:45]*** Cut end [09:17:45]Read from MH i2c: 01 07 00 [09:17:45]MH_I2C_Read... [09:17:45]Read from MH i2c: 01 07 00 19 19 00 00 00 00 00 FF 0F 47 [09:17:45]process_action close_receipt done [09:17:45]requested_data is exist [09:17:45]produce_requested_data [09:17:45]requested_item fm.sn is exist - process it [09:17:45]wFMCommunicate request_size=4 [09:17:45]MH_SAM_APDU [09:17:45]CAPDU: 80 11 00 00 [09:17:45]Write to MH i2c: E2 08 00 1A 19 80 11 00 00 00 00 00 00 AD [09:17:45]Write i2c OK [09:17:45]MH_I2C_Read... [09:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:45]Read from MH i2c: E2 [09:17:45]MH_I2C_Read... [09:17:45]Read from MH i2c: E2 17 00 [09:17:45]MH_I2C_Read... [09:17:45]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 34 37 31 35 90 00 00 [09:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:17:45]wFMCommunicate OK [09:17:45]requested_item fd.num is exist - process it [09:17:45]SAM_PROTO_GetFieldsCounters [09:17:45]wFMCommunicate request_size=4 [09:17:45]MH_SAM_APDU [09:17:45]CAPDU: 80 13 00 00 [09:17:45]Write to MH i2c: E2 08 00 1B 19 80 13 00 00 00 00 00 00 B0 [09:17:45]Write i2c OK [09:17:45]MH_I2C_Read... [09:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:45]Read from MH i2c: E2 [09:17:45]MH_I2C_Read... [09:17:45]Read from MH i2c: E2 62 00 [09:17:45]MH_I2C_Read... [09:17:45]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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E1 CD 00 00 0E 04 04 00 BF 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 83 [09:17: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E1 CD 00 00 0E 04 04 00 BF 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:17:45]wFMCommunicate OK [09:17:45]SAM_PROTO_GetFieldsCounters done [09:17:45]requested_item shift.num is exist - process it [09:17:45]requested_item shift.opened is exist - process it [09:17:45]req_shift_opened [09:17:45]FM_GetShiftState [09:17:45]SAM_PROTO_GetShiftState [09:17:45]wFMCommunicate request_size=4 [09:17:45]MH_SAM_APDU [09:17:45]CAPDU: 80 13 01 00 [09:17:45]Write to MH i2c: E2 08 00 1C 19 80 13 01 00 00 00 00 00 B2 [09:17:45]Write i2c OK [09:17:45]MH_I2C_Read... [09:17:45]Read from MH i2c: E2 [09:17:45]MH_I2C_Read... [09:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:45]Read from MH i2c: E2 0E 00 [09:17:45]MH_I2C_Read... [09:17:45]Read from MH i2c: E2 0E 00 1C 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 10 [09:17:45]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:17:45]wFMCommunicate OK [09:17:45]SAM_PROTO_GetShiftState done [09:17:45]FM_GetShiftState done [09:17:45]req_shift_opened done [09:17:45]requested_item shift.open_date is exist - process it [09:17:45]req_shift_open_date [09:17:45]req_shift_open_date done [09:17:45]produce_requested_data done [09:17:45]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52705,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [09:17:45]process_action_free close_receipt [09:17:45]json_value_free [09:17:45]json_value_free done [09:17:45]process_json_proto returns [09:17:45]Send response to host [09:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52705,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [09:17:45]free response buf [09:17:45]execute_script done [09:17:45]execute_script returns [09:17:45]free content buf [09:17:45]Sock 9.Close socket [09:17:45]Sock 9.Thread stoped [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [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:17]accept exits with 7 [09:23:17]New connection [09:23:17]New thread 3067149668 created [09:23:17]Thread 3067293028 joined [09:23:17]Waiting for new connection... [09:23:17] Sock 7.Parse request [09:23:17]Sock 7.Check first char [09:23:17]Sock 7.First char is OK [09:23:17]request: POST /json_proto HTTP/1.0 [09:23:17]Method: POST [09:23:17]URL: /json_proto [09:23:17]Method is POST - this is cgi request [09:23:17]url: /json_proto [09:23:17]query_string will be loaded in cgi processing [09:23:17]execute_cgi json_proto POST (null) [09:23:17]execute_cgi path=json_proto method=POST [09:23:17]POST find Content-Length [09:23:17]Host: 172.17.60.7:8080 [09:23:17]Content-Length: 789 [09:23:17]Content-Type: application/json [09:23:17] [09:23:17]POST finish read [09:23:17]Found Content-Length = 789 [09:23:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122836", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:17]execute_script... [09:23: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)122836", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:17]POST & json_proto [09:23:17]process_json_proto [09:23:17]json parsed OK: [09:23:17]protocol is kg_v1.0 [09:23:17]action value=close_receipt [09:23:17]process_action close_receipt [09:23:17]cmd_close_receipt [09:23:17]MH_GetDate [09:23:17]Write to MH i2c: F0 00 00 1D 19 25 [09:23:17]Write i2c OK [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: F0 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: F0 09 00 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: F0 09 00 1D 19 00 8A D4 B9 66 63 9B 67 64 74 [09:23:17]GetLastDocTimeStamp 1723454266 [09:23:17]current date 1723454602 [09:23:17]FM_GetShiftState [09:23:17]SAM_PROTO_GetShiftState [09:23:17]wFMCommunicate request_size=4 [09:23:17]MH_SAM_APDU [09:23:17]CAPDU: 80 13 01 00 [09:23:17]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [09:23:17]Write i2c OK [09:23:17]MH_I2C_Read... [09:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:17]Read from MH i2c: E2 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: E2 0E 00 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: E2 0E 00 1E 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 12 [09:23:17]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:23:17]wFMCommunicate OK [09:23:17]SAM_PROTO_GetShiftState done [09:23:17]FM_GetShiftState done [09:23:17]opened in 1723422684 [09:23:17]opened+sec_in_day 1723509084 [09:23:17]quantity*price = 14000 [09:23:17]sum+1 = 14001 [09:23:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 24 12.08.2024 09:23 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52706 ФПД: 181307322422393 /tax-web-control/client/api/v1/ticket?date=20240812T092322&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52706&fm=181307322422393&tin=02508201610067®Number=0000000000090834&sum=14000 0 [09:23:18]StoreToDocumentArchive [09:23:18]shift 447 fd 52706 [09:23:18]save to /storage/0447/doc_00052706 [09:23:18]save last doc name /storage/0447/doc_00052706 to /storage/kkm_last_doc_name [09:23:18]save OK [09:23:18]Clear old archive folders... [09:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:23:18]tlvbuf is B6FA8700 [09:23:18]SAM_PROTO_ClearQueue [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 09 00 00 [09:23:18]Write to MH i2c: E2 08 00 2B 19 80 09 00 00 00 00 00 00 B6 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 03 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [09:23:18]RAPDU: 90 00 [09:23:18]wFMCommunicate OK [09:23:18]SAM_PROTO_ClearQueue done [09:23:18]KKMCreateOFDPacket [09:23:18]OFDProtocolAddRootSTLVToBuf [09:23:18]FM_MakeSignedData [09:23:18]FM_MakeSignedData [09:23:18]SAM_PROTO_SignData [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 0D 01 02 [09:23:18]Write to MH i2c: E2 08 00 2C 19 80 0D 01 02 00 00 00 00 BE [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 03 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [09:23:18]RAPDU: 90 00 [09:23:18]wFMCommunicate OK [09:23:18]wFMCommunicate request_size=255 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8A D4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 [09:23:18]Write to MH i2c: E2 02 01 2D 19 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8A D4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 00 00 A2 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [09:23:19]RAPDU: 90 00 [09:23:19]wFMCommunicate OK [09:23:19]wFMCommunicate request_size=34 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E2 CD 00 00 35 04 06 00 A4 E5 E6 8C 54 79 [09:23:19]Write to MH i2c: E2 25 00 2E 19 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E2 CD 00 00 35 04 06 00 A4 E5 E6 8C 54 79 00 00 F9 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [09:23:19]RAPDU: 90 00 [09:23:19]wFMCommunicate OK [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 0D 03 02 [09:23:19]Write to MH i2c: E2 08 00 2F 19 80 0D 03 02 00 00 00 00 C3 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 0B 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 0B 00 2F 19 00 66 04 86 8D 0E 49 62 80 90 00 7A [09:23:19]RAPDU: 66 04 86 8D 0E 49 62 80 90 00 [09:23:19]wFMCommunicate OK [09:23:19]SAM_PROTO_SignData done [09:23:19]FM_MakeSignedData done [09:23:19]CreateOFDProtocolMessage [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 11 00 00 [09:23:19]Write to MH i2c: E2 08 00 30 19 80 11 00 00 00 00 00 00 C3 [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 17 00 [09:23:19]MH_I2C_Read... [09:23:19]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 34 37 31 35 90 00 16 [09:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:23:19]wFMCommunicate OK [09:23:19]CreateOFDProtocolMessage done [09:23:19]OFDSenderStorePacket 52706 [09:23:19]StoreOFDPacket docnum=52706 [09:23:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 27 01 00 00 ED AB 1F 01 09 92 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8A D4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E2 CD 00 00 35 04 06 00 A4 E5 E6 8C 54 79 66 04 86 8D 0E 49 62 80 [09:23:19]CheckFolder [09:23:19]dirname=/storage/ofd_packets [09:23:19]CheckFolder done [09:23:19]ProducePacketName [09:23:19]name=ofd_packets/00052706 [09:23:19]NVStorageSaveData ofd_packets/00052706 [09:23:19]File name is /storage/ofd_packets/00052706 [09:23:19]Write 325 bytes [09:23:19]NVStorageSaveData done [09:23:19]OFDSenderStorePacket done [09:23:19]KKMCreateOFDPacket done [09:23:19]NVStorageSaveData kkm_last_timestamp [09:23:19]File name is /storage/kkm_last_timestamp [09:23:19]Write 4 bytes [09:23:19]NVStorageSaveData done [09:23:19]ExternCall_PrintAddStr [09:23:19]wPrintStart [09:23:19]Write to MH i2c: 01 00 00 31 19 4A [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: 01 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: 01 07 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [09:23:19]RasterBufferAndPrint [09:23:19]line Счет N : (3)122836 [09:23:19]line ИНН: 02508201610067 [09:23:19]line Контрольно-Кассовый Чек [09:23:19]line ПРОДАЖА [09:23:19]line Товар: 48743587 [09:23:19]line Сигареты Winston XStyle Silver [09:23:19]line 1.000 * 140.00 [09:23:19]line = 140.00 [09:23:19]line НДС 12% НСП 1% [09:23:19]line > о реализуемом товаре [09:23:19]line ИТОГО: 140.00 [09:23:19]line НСП 1% : 1.24 [09:23:19]line НДС 12% : 14.87 [09:23:19]line Наличными: 0.00 [09:23:19]line Безнал.: 140.00 [09:23:19]line Место: АЗС № 54 "Партнер Нефть" [09:23:19]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [09:23:19]line СНО: Общий режим [09:23:19]line Чек 24 12.08.2024 09:23 [09:23:19]line Смена: 447 ФФД: 1.0 [09:23:19]line ЗНМ: 0300000007 [09:23:19]line РНМ: 0000000000090834 [09:23:19]line Версия ККМ: 001 [09:23:19]line Платежная система: О! деньги [09:23:19]line ФМ: 0000000000874715 [09:23:19]line ФД: 52706 [09:23:19]line ФПД: 181307322422393 [09:23:19]line /tax-web-control/client/api/v1/ticket?date=20240812T092322&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52706&fm=181307322422393&tin=02508201610067®Number=0000000000090834&sum=14000 [09:23:19]OFD Sender: Processing packet 52706 [packets to send 55, broken 54] [09:23:19]ProducePacketName [09:23:19]name=ofd_packets/00052706 [09:23:19]OFD Sender: To server: pG, [09:23:19]CommunicateWithHost lk.salyk.kg:30040 [09:23:19]ConnectInit lk.salyk.kg [09:23:19]line 0 [09:23:19]written 0, free lines is 4095 [09:23:19]Connected sock=10 [09:23:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 27 01 00 00 ED AB 1F 01 09 92 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 8A D4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E2 CD 00 00 35 04 06 00 A4 E5 E6 8C 54 79 66 04 86 8D 0E 49 62 80 [09:23:20]Write to MH i2c: 01 00 00 5B 19 74 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: 01 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: 01 07 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 AA 0C 31 [09:23:20]RasterBufferAndPrint [09:23:20]line [09:23:20]line [09:23:20]line [09:23:20]line [09:23:20]line [09:23:20]written 0, free lines is 3246 [09:23:20]MH_Cut [09:23:20]Write to MH i2c: D1 01 00 62 19 01 4D [09:23:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 41 EC 47 00 C6 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E2 CD 00 00 F4 03 04 00 23 7C B9 66 B6 04 01 00 00 CE DE 24 20 D2 8E 50 C2 [09:23:20]CommunicateWithHost err = 0 [09:23:20]CheckOFDResponse [09:23:20]1017 (14) - 77093643461234 [09:23:20]1041 (16) - 0000000000874715 [09:23:20]1040 (4) - 52706 [09:23:20]1012 (4) - 12.08.2024 03:06 [09:23:20]1206 (1) - 0 [09:23:20]OFD Sender: Remove packet 52706 [09:23:20]ProducePacketName [09:23:20]name=ofd_packets/00052706 [09:23:20]NVStorageDeleteData [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: D1 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: D1 01 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: D1 01 00 62 19 00 4C [09:23:20]Write to MH i2c: 01 00 00 63 19 7C [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]OFD Sender: No OFD packet to send [09:23:20]*** Cut start [09:23:20]*** Purtial cut [09:23:20]*** Stage 1: CUTSNS_PIN = 1 [09:23:21]Read from MH i2c: 01 [09:23:21]MH_I2C_Read... [09:23:21]*** Stop cut motor [09:23:21]*** Cut end [09:23:21]Read from MH i2c: 01 07 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 FF 0F 91 [09:23:21]process_action close_receipt done [09:23:21]requested_data is exist [09:23:21]produce_requested_data [09:23:21]requested_item fm.sn is exist - process it [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 11 00 00 [09:23:21]Write to MH i2c: E2 08 00 64 19 80 11 00 00 00 00 00 00 F7 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 17 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 17 00 64 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 4A [09:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:23:21]wFMCommunicate OK [09:23:21]requested_item fd.num is exist - process it [09:23:21]SAM_PROTO_GetFieldsCounters [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 13 00 00 [09:23:21]Write to MH i2c: E2 08 00 65 19 80 13 00 00 00 00 00 00 FA [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 62 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 62 00 65 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E2 CD 00 00 0E 04 04 00 BF 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 D1 [09:23: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E2 CD 00 00 0E 04 04 00 BF 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:23:21]wFMCommunicate OK [09:23:21]SAM_PROTO_GetFieldsCounters done [09:23:21]requested_item shift.num is exist - process it [09:23:21]requested_item shift.opened is exist - process it [09:23:21]req_shift_opened [09:23:21]FM_GetShiftState [09:23:21]SAM_PROTO_GetShiftState [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 13 01 00 [09:23:21]Write to MH i2c: E2 08 00 66 19 80 13 01 00 00 00 00 00 FC [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 0E 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 0E 00 66 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 5A [09:23:21]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:23:21]wFMCommunicate OK [09:23:21]SAM_PROTO_GetShiftState done [09:23:21]FM_GetShiftState done [09:23:21]req_shift_opened done [09:23:21]requested_item shift.open_date is exist - process it [09:23:21]req_shift_open_date [09:23:21]req_shift_open_date done [09:23:21]produce_requested_data done [09:23:21]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52706,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [09:23:21]process_action_free close_receipt [09:23:21]json_value_free [09:23:21]json_value_free done [09:23:21]process_json_proto returns [09:23:21]Send response to host [09:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52706,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [09:23:21]free response buf [09:23:21]execute_script done [09:23:21]execute_script returns [09:23:21]free content buf [09:23:21]Sock 7.Close socket [09:23:21]Sock 7.Thread stoped [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]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:14]accept exits with 9 [09:28:14]New connection [09:28:14]New thread 3067293028 created [09:28:14]Thread 3067149668 joined [09:28:14]Waiting for new connection... [09:28:14] Sock 9.Parse request [09:28:14]Sock 9.Check first char [09:28:14]Sock 9.First char is OK [09:28:14]request: POST /json_proto HTTP/1.0 [09:28:14]Method: POST [09:28:14]URL: /json_proto [09:28:14]Method is POST - this is cgi request [09:28:14]url: /json_proto [09:28:14]query_string will be loaded in cgi processing [09:28:14]execute_cgi json_proto POST (null) [09:28:14]execute_cgi path=json_proto method=POST [09:28:14]POST find Content-Length [09:28:14]Host: 172.17.60.7:8080 [09:28:14]Content-Length: 575 [09:28:14]Content-Type: application/json [09:28:14] [09:28:14]POST finish read [09:28:14]Found Content-Length = 575 [09:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122837", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "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" ] } } [09:28:14]execute_script... [09:28: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)122837", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s Silver", "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" ] } } [09:28:14]POST & json_proto [09:28:14]process_json_proto [09:28:14]json parsed OK: [09:28:14]protocol is kg_v1.0 [09:28:14]action value=close_receipt [09:28:14]process_action close_receipt [09:28:14]cmd_close_receipt [09:28:14]MH_GetDate [09:28:14]Write to MH i2c: F0 00 00 67 19 6F [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: F0 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: F0 09 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: F0 09 00 67 19 00 B3 D5 B9 66 63 9B 67 64 E8 [09:28:14]GetLastDocTimeStamp 1723454602 [09:28:14]current date 1723454899 [09:28:14]FM_GetShiftState [09:28:14]SAM_PROTO_GetShiftState [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 13 01 00 [09:28:14]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 0E 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 5C [09:28:14]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:28:14]wFMCommunicate OK [09:28:14]SAM_PROTO_GetShiftState done [09:28:14]FM_GetShiftState done [09:28:14]opened in 1723422684 [09:28:14]opened+sec_in_day 1723509084 [09:28:14]quantity*price = 13000 [09:28:14]sum+1 = 13001 [09:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 25 12.08.2024 09:28 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52707 ФПД: 18425936112622 /tax-web-control/client/api/v1/ticket?date=20240812T092819&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52707&fm=18425936112622&tin=02508201610067®Number=0000000000090834&sum=13000 0 [09:28:15]StoreToDocumentArchive [09:28:15]shift 447 fd 52707 [09:28:15]save to /storage/0447/doc_00052707 [09:28:15]save last doc name /storage/0447/doc_00052707 to /storage/kkm_last_doc_name [09:28:15]save OK [09:28:15]Clear old archive folders... [09:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=259 [09:28:15]tlvbuf is 0125F660 [09:28:15]SAM_PROTO_ClearQueue [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 09 00 00 [09:28:15]Write to MH i2c: E2 08 00 75 19 80 09 00 00 00 00 00 00 00 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:15]OFD Sender: No OFD packet to send [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]SAM_PROTO_ClearQueue done [09:28:15]KKMCreateOFDPacket [09:28:15]OFDProtocolAddRootSTLVToBuf [09:28:15]FM_MakeSignedData [09:28:15]FM_MakeSignedData [09:28:15]SAM_PROTO_SignData [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 01 02 [09:28:15]Write to MH i2c: E2 08 00 76 19 80 0D 01 02 00 00 00 00 08 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 03 00 76 19 00 90 00 03 [09:28:15]RAPDU: 90 00 [09:28:15]wFMCommunicate OK [09:28:15]wFMCommunicate request_size=255 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B3 D5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E3 [09:28:15]Write to MH i2c: E2 02 01 77 19 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B3 D5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E3 00 00 5B [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 03 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [09:28:16]RAPDU: 90 00 [09:28:16]wFMCommunicate OK [09:28:16]wFMCommunicate request_size=18 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 0D 02 02 0D CD 00 00 35 04 06 00 10 C2 1F 60 6B EE [09:28:16]Write to MH i2c: E2 15 00 78 19 80 0D 02 02 0D 00 CD 00 00 35 04 06 00 10 C2 1F 60 6B EE 00 00 DB [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 03 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [09:28:16]RAPDU: 90 00 [09:28:16]wFMCommunicate OK [09:28:16]wFMCommunicate request_size=4 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 0D 03 02 [09:28:16]Write to MH i2c: E2 08 00 79 19 80 0D 03 02 00 00 00 00 0D [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 0B 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 0B 00 79 19 00 B5 6C E7 73 83 AA 32 0C 90 00 F4 [09:28:16]RAPDU: B5 6C E7 73 83 AA 32 0C 90 00 [09:28:16]wFMCommunicate OK [09:28:16]SAM_PROTO_SignData done [09:28:16]FM_MakeSignedData done [09:28:16]CreateOFDProtocolMessage [09:28:16]wFMCommunicate request_size=4 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 11 00 00 [09:28:16]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 17 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 60 [09:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:28:16]wFMCommunicate OK [09:28:16]CreateOFDProtocolMessage done [09:28:16]OFDSenderStorePacket 52707 [09:28:16]StoreOFDPacket docnum=52707 [09:28:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 17 01 00 00 8E 10 0F 01 AE C8 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B3 D5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E3 CD 00 00 35 04 06 00 10 C2 1F 60 6B EE B5 6C E7 73 83 AA 32 0C [09:28:16]CheckFolder [09:28:16]dirname=/storage/ofd_packets [09:28:16]CheckFolder done [09:28:16]ProducePacketName [09:28:16]name=ofd_packets/00052707 [09:28:16]NVStorageSaveData ofd_packets/00052707 [09:28:16]File name is /storage/ofd_packets/00052707 [09:28:16]Write 309 bytes [09:28:16]NVStorageSaveData done [09:28:16]OFDSenderStorePacket done [09:28:16]KKMCreateOFDPacket done [09:28:16]NVStorageSaveData kkm_last_timestamp [09:28:16]File name is /storage/kkm_last_timestamp [09:28:16]Write 4 bytes [09:28:16]NVStorageSaveData done [09:28:16]ExternCall_PrintAddStr [09:28:16]wPrintStart [09:28:16]Write to MH i2c: 01 00 00 7B 19 94 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 FF 0F A9 [09:28:16]RasterBufferAndPrint [09:28:16]line Счет N : (3)122837 [09:28:16]line ИНН: 02508201610067 [09:28:16]line Контрольно-Кассовый Чек [09:28:16]line ПРОДАЖА [09:28:16]line Товар: 46233820 [09:28:16]line LD Compact 100s Silver [09:28:16]line 1.000 * 130.00 [09:28:16]line = 130.00 [09:28:16]line НДС 12% НСП 1% [09:28:16]line > о реализуемом товаре [09:28:16]line ИТОГО: 130.00 [09:28:16]line НСП 1% : 1.15 [09:28:16]line НДС 12% : 13.80 [09:28:16]line Наличными: 130.00 [09:28:16]line Безнал.: 0.00 [09:28:16]line Место: АЗС № 54 "Партнер Нефть" [09:28:16]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [09:28:16]line СНО: Общий режим [09:28:16]line Чек 25 12.08.2024 09:28 [09:28:16]line Смена: 447 ФФД: 1.0 [09:28:16]line ЗНМ: 0300000007 [09:28:16]line РНМ: 0000000000090834 [09:28:16]line Версия ККМ: 001 [09:28:16]line ФМ: 0000000000874715 [09:28:16]line ФД: 52707 [09:28:16]line ФПД: 18425936112622 [09:28:16]line /tax-web-control/client/api/v1/ticket?date=20240812T092819&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52707&fm=18425936112622&tin=02508201610067®Number=0000000000090834&sum=13000 [09:28:16]line 0 [09:28:16]written 0, free lines is 4095 [09:28:16]OFD Sender: Processing packet 52707 [packets to send 55, broken 54] [09:28:16]ProducePacketName [09:28:16]name=ofd_packets/00052707 [09:28:16]OFD Sender: To server: pG, [09:28:16]CommunicateWithHost lk.salyk.kg:30040 [09:28:16]ConnectInit lk.salyk.kg [09:28:16]Connected sock=10 [09:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 17 01 00 00 8E 10 0F 01 AE C8 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B3 D5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E3 CD 00 00 35 04 06 00 10 C2 1F 60 6B EE B5 6C E7 73 83 AA 32 0C [09:28:16]Write to MH i2c: 01 00 00 A2 19 BB [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: 01 07 00 A2 19 00 00 00 00 00 D6 0C A4 [09:28:16]RasterBufferAndPrint [09:28:16]line [09:28:16]line [09:28:16]line [09:28:16]line [09:28:16]line [09:28:16]written 0, free lines is 3290 [09:28:16]MH_Cut [09:28:16]Write to MH i2c: D1 01 00 A9 19 01 94 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: D1 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: D1 01 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: D1 01 00 A9 19 00 93 [09:28:16]Write to MH i2c: 01 00 00 AA 19 C3 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 4A F9 47 00 21 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E3 CD 00 00 F4 03 04 00 4C 7D B9 66 B6 04 01 00 00 EA BF D4 62 A2 4B 78 72 [09:28:16]CommunicateWithHost err = 0 [09:28:16]CheckOFDResponse [09:28:16]1017 (14) - 77093643461234 [09:28:16]1041 (16) - 0000000000874715 [09:28:16]1040 (4) - 52707 [09:28:16]1012 (4) - 12.08.2024 03:11 [09:28:16]1206 (1) - 0 [09:28:16]OFD Sender: Remove packet 52707 [09:28:16]ProducePacketName [09:28:16]name=ofd_packets/00052707 [09:28:16]NVStorageDeleteData [09:28:17]OFD Sender: No OFD packet to send [09:28:17]*** Cut start [09:28:17]*** Purtial cut [09:28:17]*** Stage 1: CUTSNS_PIN = 1 [09:28:17]Read from MH i2c: 01 [09:28:17]MH_I2C_Read... [09:28:17]*** Stop cut motor [09:28:17]*** Cut end [09:28:17]Read from MH i2c: 01 07 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: 01 07 00 AA 19 00 00 00 00 00 FF 0F D8 [09:28:17]process_action close_receipt done [09:28:17]requested_data is exist [09:28:17]produce_requested_data [09:28:17]requested_item fm.sn is exist - process it [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 11 00 00 [09:28:17]Write to MH i2c: E2 08 00 AB 19 80 11 00 00 00 00 00 00 3E [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 AB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 91 [09:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:28:18]wFMCommunicate OK [09:28:18]requested_item fd.num is exist - process it [09:28:18]SAM_PROTO_GetFieldsCounters [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 13 00 00 [09:28:18]Write to MH i2c: E2 08 00 AC 19 80 13 00 00 00 00 00 00 41 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 62 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 62 00 AC 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E3 CD 00 00 0E 04 04 00 BF 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 1C [09:28: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E3 CD 00 00 0E 04 04 00 BF 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:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_GetFieldsCounters done [09:28:18]requested_item shift.num is exist - process it [09:28:18]requested_item shift.opened is exist - process it [09:28:18]req_shift_opened [09:28:18]FM_GetShiftState [09:28:18]SAM_PROTO_GetShiftState [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 13 01 00 [09:28:18]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0E 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A1 [09:28:18]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_GetShiftState done [09:28:18]FM_GetShiftState done [09:28:18]req_shift_opened done [09:28:18]requested_item shift.open_date is exist - process it [09:28:18]req_shift_open_date [09:28:18]req_shift_open_date done [09:28:18]produce_requested_data done [09:28:18]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52707,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [09:28:18]process_action_free close_receipt [09:28:18]json_value_free [09:28:18]json_value_free done [09:28:18]process_json_proto returns [09:28:18]Send response to host [09:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52707,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [09:28:18]free response buf [09:28:18]execute_script done [09:28:18]execute_script returns [09:28:18]free content buf [09:28:18]Sock 9.Close socket [09:28:18]Sock 9.Thread stoped [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:09]accept exits with 7 [09:50:09]New connection [09:50:09]New thread 3067149668 created [09:50:09]Thread 3067293028 joined [09:50:09]Waiting for new connection... [09:50:09] Sock 7.Parse request [09:50:09]Sock 7.Check first char [09:50:09]Sock 7.First char is OK [09:50:09]request: POST /json_proto HTTP/1.0 [09:50:09]Method: POST [09:50:09]URL: /json_proto [09:50:09]Method is POST - this is cgi request [09:50:09]url: /json_proto [09:50:09]query_string will be loaded in cgi processing [09:50:09]execute_cgi json_proto POST (null) [09:50:09]execute_cgi path=json_proto method=POST [09:50:09]POST find Content-Length [09:50:09]Host: 172.17.60.7:8080 [09:50:09]Content-Length: 628 [09:50:09]Content-Type: application/json [09:50:09] [09:50:09]POST finish read [09:50:09]Found Content-Length = 628 [09:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122838", "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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:09]execute_script... [09:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122838", "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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:09]POST & json_proto [09:50:09]process_json_proto [09:50:09]json parsed OK: [09:50:09]protocol is kg_v1.0 [09:50:09]action value=close_receipt [09:50:09]process_action close_receipt [09:50:09]cmd_close_receipt [09:50:09]MH_GetDate [09:50:09]Write to MH i2c: F0 00 00 AE 19 B6 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: F0 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: F0 09 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: F0 09 00 AE 19 00 D6 DA B9 66 63 9B 67 64 57 [09:50:09]GetLastDocTimeStamp 1723454899 [09:50:09]current date 1723456214 [09:50:09]FM_GetShiftState [09:50:09]SAM_PROTO_GetShiftState [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 13 01 00 [09:50:09]Write to MH i2c: E2 08 00 AF 19 80 13 01 00 00 00 00 00 45 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0E 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0E 00 AF 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A3 [09:50:09]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:50:09]wFMCommunicate OK [09:50:09]SAM_PROTO_GetShiftState done [09:50:09]FM_GetShiftState done [09:50:09]opened in 1723422684 [09:50:09]opened+sec_in_day 1723509084 [09:50:09]quantity*price = 13000 [09:50:09]sum+1 = 13001 [09:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 26 12.08.2024 09:50 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52708 ФПД: 234231505331874 /tax-web-control/client/api/v1/ticket?date=20240812T095014&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52708&fm=234231505331874&tin=02508201610067®Number=0000000000090834&sum=13000 0 [09:50:10]StoreToDocumentArchive [09:50:10]shift 447 fd 52708 [09:50:10]save to /storage/0447/doc_00052708 [09:50:10]save last doc name /storage/0447/doc_00052708 to /storage/kkm_last_doc_name [09:50:10]save OK [09:50:10]Clear old archive folders... [09:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:50:10]tlvbuf is 0125FA80 [09:50:10]SAM_PROTO_ClearQueue [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 09 00 00 [09:50:10]Write to MH i2c: E2 08 00 BC 19 80 09 00 00 00 00 00 00 47 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]SAM_PROTO_ClearQueue done [09:50:10]KKMCreateOFDPacket [09:50:10]OFDProtocolAddRootSTLVToBuf [09:50:10]FM_MakeSignedData [09:50:10]FM_MakeSignedData [09:50:10]SAM_PROTO_SignData [09:50:10]wFMCommunicate request_size=4 [09:50:10]MH_SAM_APDU [09:50:10]CAPDU: 80 0D 01 02 [09:50:10]Write to MH i2c: E2 08 00 BD 19 80 0D 01 02 00 00 00 00 4F [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:10]Read from MH i2c: E2 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 [09:50:10]MH_I2C_Read... [09:50:10]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [09:50:10]RAPDU: 90 00 [09:50:10]wFMCommunicate OK [09:50:10]wFMCommunicate request_size=255 [09:50:10]MH_SAM_APDU [09:50:10]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 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 1A 00 00 00 F4 03 04 00 D6 DA B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 [09:50:10]Write to MH i2c: E2 02 01 BE 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 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 1A 00 00 00 F4 03 04 00 D6 DA B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 00 00 12 [09:50:10]Write i2c OK [09:50:10]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [09:50:11]RAPDU: 90 00 [09:50:11]wFMCommunicate OK [09:50:11]wFMCommunicate request_size=35 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E4 CD 00 00 35 04 06 00 D5 08 45 AB A6 A2 [09:50:11]Write to MH i2c: E2 26 00 BF 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E4 CD 00 00 35 04 06 00 D5 08 45 AB A6 A2 00 00 0B [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [09:50:11]RAPDU: 90 00 [09:50:11]wFMCommunicate OK [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 0D 03 02 [09:50:11]Write to MH i2c: E2 08 00 C0 19 80 0D 03 02 00 00 00 00 54 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0B 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0B 00 C0 19 00 CD 68 A1 30 73 73 DC 19 90 00 36 [09:50:11]RAPDU: CD 68 A1 30 73 73 DC 19 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_SignData done [09:50:11]FM_MakeSignedData done [09:50:11]CreateOFDProtocolMessage [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 11 00 00 [09:50:11]Write to MH i2c: E2 08 00 C1 19 80 11 00 00 00 00 00 00 54 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 C1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 A7 [09:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:50:11]wFMCommunicate OK [09:50:11]CreateOFDProtocolMessage done [09:50:11]OFDSenderStorePacket 52708 [09:50:11]StoreOFDPacket docnum=52708 [09:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 28 01 00 00 FB 09 20 01 DA B2 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 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 1A 00 00 00 F4 03 04 00 D6 DA B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E4 CD 00 00 35 04 06 00 D5 08 45 AB A6 A2 CD 68 A1 30 73 73 DC 19 [09:50:11]CheckFolder [09:50:11]dirname=/storage/ofd_packets [09:50:11]CheckFolder done [09:50:11]ProducePacketName [09:50:11]name=ofd_packets/00052708 [09:50:11]NVStorageSaveData ofd_packets/00052708 [09:50:11]File name is /storage/ofd_packets/00052708 [09:50:11]Write 326 bytes [09:50:11]NVStorageSaveData done [09:50:11]OFDSenderStorePacket done [09:50:11]KKMCreateOFDPacket done [09:50:11]NVStorageSaveData kkm_last_timestamp [09:50:11]File name is /storage/kkm_last_timestamp [09:50:11]Write 4 bytes [09:50:11]NVStorageSaveData done [09:50:11]ExternCall_PrintAddStr [09:50:11]wPrintStart [09:50:11]Write to MH i2c: 01 00 00 C2 19 DB [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 C2 19 00 00 00 00 00 FF 0F F0 [09:50:11]RasterBufferAndPrint [09:50:11]line Счет N : (3)122838 [09:50:11]line ИНН: 02508201610067 [09:50:11]line Контрольно-Кассовый Чек [09:50:11]line ПРОДАЖА [09:50:11]line Товар: 2000036230011 [09:50:11]line Кофе Латте XL(GABB TRADE) [09:50:11]line 1.000 * 130.00 [09:50:11]line = 130.00 [09:50:11]line НДС 12% НСП 1% [09:50:11]line > о реализуемом товаре [09:50:11]line ИТОГО: 130.00 [09:50:11]line НСП 1% : 1.15 [09:50:11]line НДС 12% : 13.80 [09:50:11]line Наличными: 130.00 [09:50:11]line Безнал.: 0.00 [09:50:11]line Место: АЗС № 54 "Партнер Нефть" [09:50:11]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [09:50:11]line СНО: Общий режим [09:50:11]line Чек 26 12.08.2024 09:50 [09:50:11]line Смена: 447 ФФД: 1.0 [09:50:11]line ЗНМ: 0300000007 [09:50:11]line РНМ: 0000000000090834 [09:50:11]line Версия ККМ: 001 [09:50:11]line ФМ: 0000000000874715 [09:50:11]line ФД: 52708 [09:50:11]line ФПД: 234231505331874 [09:50:11]line /tax-web-control/client/api/v1/ticket?date=20240812T095014&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52708&fm=234231505331874&tin=02508201610067®Number=0000000000090834&sum=13000 [09:50:11]line 0 [09:50:11]OFD Sender: Processing packet 52708 [packets to send 55, broken 54] [09:50:11]ProducePacketName [09:50:11]name=ofd_packets/00052708 [09:50:11]OFD Sender: To server: pG, [09:50:11]CommunicateWithHost lk.salyk.kg:30040 [09:50:11]ConnectInit lk.salyk.kg [09:50:11]written 0, free lines is 4095 [09:50:11]Connected sock=11 [09:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 28 01 00 00 FB 09 20 01 DA B2 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 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 1A 00 00 00 F4 03 04 00 D6 DA B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E4 CD 00 00 35 04 06 00 D5 08 45 AB A6 A2 CD 68 A1 30 73 73 DC 19 [09:50:12]Write to MH i2c: 01 00 00 E9 19 02 [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: 01 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: 01 07 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: 01 07 00 E9 19 00 00 00 00 00 DE 0C F3 [09:50:12]RasterBufferAndPrint [09:50:12]line [09:50:12]line [09:50:12]line [09:50:12]line [09:50:12]line [09:50:12]written 0, free lines is 3299 [09:50:12]MH_Cut [09:50:12]Write to MH i2c: D1 01 00 F0 19 01 DB [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: D1 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: D1 01 00 [09:50:12]MH_I2C_Read... [09:50:12]Read from MH i2c: D1 01 00 F0 19 00 DA [09:50:12]Write to MH i2c: 01 00 00 F1 19 0A [09:50:12]Write i2c OK [09:50:12]MH_I2C_Read... [09:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 68 12 47 00 72 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E4 CD 00 00 F4 03 04 00 6F 82 B9 66 B6 04 01 00 00 0E 43 F4 45 74 FE D3 84 [09:50:12]CommunicateWithHost err = 0 [09:50:12]CheckOFDResponse [09:50:12]1017 (14) - 77093643461234 [09:50:12]1041 (16) - 0000000000874715 [09:50:12]1040 (4) - 52708 [09:50:12]1012 (4) - 12.08.2024 03:33 [09:50:12]1206 (1) - 0 [09:50:12]OFD Sender: Remove packet 52708 [09:50:12]ProducePacketName [09:50:12]name=ofd_packets/00052708 [09:50:12]NVStorageDeleteData [09:50:12]OFD Sender: No OFD packet to send [09:50:12]*** Cut start [09:50:12]*** Purtial cut [09:50:12]*** Stage 1: CUTSNS_PIN = 1 [09:50:13]Read from MH i2c: 01 [09:50:13]MH_I2C_Read... [09:50:13]*** Stop cut motor [09:50:13]*** Cut end [09:50:13]Read from MH i2c: 01 07 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 07 00 F1 19 00 00 00 00 00 FF 0F 1F [09:50:13]process_action close_receipt done [09:50:13]requested_data is exist [09:50:13]produce_requested_data [09:50:13]requested_item fm.sn is exist - process it [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 11 00 00 [09:50:13]Write to MH i2c: E2 08 00 F2 19 80 11 00 00 00 00 00 00 85 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 17 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 17 00 F2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D8 [09:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:50:13]wFMCommunicate OK [09:50:13]requested_item fd.num is exist - process it [09:50:13]SAM_PROTO_GetFieldsCounters [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 13 00 00 [09:50:13]Write to MH i2c: E2 08 00 F3 19 80 13 00 00 00 00 00 00 88 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 62 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 62 00 F3 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E4 CD 00 00 0E 04 04 00 BF 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 67 [09:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E4 CD 00 00 0E 04 04 00 BF 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:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_GetFieldsCounters done [09:50:13]requested_item shift.num is exist - process it [09:50:13]requested_item shift.opened is exist - process it [09:50:13]req_shift_opened [09:50:13]FM_GetShiftState [09:50:13]SAM_PROTO_GetShiftState [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 13 01 00 [09:50:13]Write to MH i2c: E2 08 00 F4 19 80 13 01 00 00 00 00 00 8A [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0E 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0E 00 F4 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E8 [09:50:13]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_GetShiftState done [09:50:13]FM_GetShiftState done [09:50:13]req_shift_opened done [09:50:13]requested_item shift.open_date is exist - process it [09:50:13]req_shift_open_date [09:50:13]req_shift_open_date done [09:50:13]produce_requested_data done [09:50:13]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52708,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [09:50:13]process_action_free close_receipt [09:50:13]json_value_free [09:50:13]json_value_free done [09:50:13]process_json_proto returns [09:50:13]Send response to host [09:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52708,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [09:50:13]free response buf [09:50:13]execute_script done [09:50:13]execute_script returns [09:50:13]free content buf [09:50:13]Sock 7.Close socket [09:50:13]Sock 7.Thread stoped [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:11]accept exits with 9 [09:59:11]New connection [09:59:11]New thread 3067293028 created [09:59:11]Thread 3067149668 joined [09:59:11]Waiting for new connection... [09:59:11] Sock 9.Parse request [09:59:11]Sock 9.Check first char [09:59:11]Sock 9.First char is OK [09:59:11]request: POST /json_proto HTTP/1.0 [09:59:11]Method: POST [09:59:11]URL: /json_proto [09:59:11]Method is POST - this is cgi request [09:59:11]url: /json_proto [09:59:11]query_string will be loaded in cgi processing [09:59:11]execute_cgi json_proto POST (null) [09:59:11]execute_cgi path=json_proto method=POST [09:59:11]POST find Content-Length [09:59:11]Host: 172.17.60.7:8080 [09:59:11]Content-Length: 1486 [09:59:11]Content-Type: application/json [09:59:11] [09:59:11]POST finish read [09:59:11]Found Content-Length = 1486 [09:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122839", "tax_sys" : 0, "items" : [ { "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:11]execute_script... [09:59: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)122839", "tax_sys" : 0, "items" : [ { "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 289.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:11]POST & json_proto [09:59:11]process_json_proto [09:59:11]json parsed OK: [09:59:11]protocol is kg_v1.0 [09:59:11]action value=close_receipt [09:59:11]process_action close_receipt [09:59:11]cmd_close_receipt [09:59:11]MH_GetDate [09:59:11]Write to MH i2c: F0 00 00 F5 19 FD [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: F0 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: F0 09 00 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: F0 09 00 F5 19 00 F4 DC B9 66 63 9B 67 64 BE [09:59:11]GetLastDocTimeStamp 1723456214 [09:59:11]current date 1723456756 [09:59:11]FM_GetShiftState [09:59:12]SAM_PROTO_GetShiftState [09:59:12]wFMCommunicate request_size=4 [09:59:12]MH_SAM_APDU [09:59:12]CAPDU: 80 13 01 00 [09:59:12]Write to MH i2c: E2 08 00 F6 19 80 13 01 00 00 00 00 00 8C [09:59:12]Write i2c OK [09:59:12]MH_I2C_Read... [09:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:12]Read from MH i2c: E2 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 0E 00 [09:59:12]MH_I2C_Read... [09:59:12]Read from MH i2c: E2 0E 00 F6 19 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 EA [09:59:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:59:12]wFMCommunicate OK [09:59:12]SAM_PROTO_GetShiftState done [09:59:12]FM_GetShiftState done [09:59:12]opened in 1723422684 [09:59:12]opened+sec_in_day 1723509084 [09:59:12]quantity*price = 5900 [09:59:12]sum+1 = 5901 [09:59:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400662 Семечки ДЖИНН 140г синий 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 289.00 НСП 1% : 2.55 НДС 12% : 30.68 Наличными: 0.00 Безнал.: 289.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 27 12.08.2024 09:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52709 ФПД: 219166396773470 /tax-web-control/client/api/v1/ticket?date=20240812T095916&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52709&fm=219166396773470&tin=02508201610067®Number=0000000000090834&sum=28900 0 [09:59:13]StoreToDocumentArchive [09:59:13]shift 447 fd 52709 [09:59:13]save to /storage/0447/doc_00052709 [09:59:13]save last doc name /storage/0447/doc_00052709 to /storage/kkm_last_doc_name [09:59:13]save OK [09:59:13]Clear old archive folders... [09:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=542 [09:59:13]tlvbuf is 01256880 [09:59:13]SAM_PROTO_ClearQueue [09:59:13]wFMCommunicate request_size=4 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 09 00 00 [09:59:13]Write to MH i2c: E2 08 00 03 1A 80 09 00 00 00 00 00 00 8F [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 [09:59:13]MH_I2C_Read... [09:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:13]Read from MH i2c: E2 03 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [09:59:13]RAPDU: 90 00 [09:59:13]wFMCommunicate OK [09:59:13]SAM_PROTO_ClearQueue done [09:59:13]KKMCreateOFDPacket [09:59:13]OFDProtocolAddRootSTLVToBuf [09:59:13]FM_MakeSignedData [09:59:13]FM_MakeSignedData [09:59:13]SAM_PROTO_SignData [09:59:13]wFMCommunicate request_size=4 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 0D 01 02 [09:59:13]Write to MH i2c: E2 08 00 04 1A 80 0D 01 02 00 00 00 00 97 [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:13]OFD Sender: No OFD packet to send [09:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:13]Read from MH i2c: E2 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 03 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [09:59:13]RAPDU: 90 00 [09:59:13]wFMCommunicate OK [09:59:13]wFMCommunicate request_size=255 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 0D 02 02 FA 03 00 1E 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [09:59:13]Write to MH i2c: E2 02 01 05 1A 80 0D 02 02 FA 00 03 00 1E 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 61 [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:13]Read from MH i2c: E2 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 03 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [09:59:13]RAPDU: 90 00 [09:59:13]wFMCommunicate OK [09:59:13]wFMCommunicate request_size=255 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 E4 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 FC 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F4 DC B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [09:59:13]Write to MH i2c: E2 02 01 06 1A 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 E4 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 FC 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F4 DC B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 2D [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:14]Read from MH i2c: E2 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 03 00 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [09:59:14]RAPDU: 90 00 [09:59:14]wFMCommunicate OK [09:59:14]wFMCommunicate request_size=51 [09:59:14]MH_SAM_APDU [09:59:14]CAPDU: 80 0D 02 02 2E 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E5 CD 00 00 35 04 06 00 C7 54 A7 39 F4 5E [09:59:14]Write to MH i2c: E2 36 00 07 1A 80 0D 02 02 2E 00 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E5 CD 00 00 35 04 06 00 C7 54 A7 39 F4 5E 00 00 2A [09:59:14]Write i2c OK [09:59:14]MH_I2C_Read... [09:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:14]Read from MH i2c: E2 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 03 00 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [09:59:14]RAPDU: 90 00 [09:59:14]wFMCommunicate OK [09:59:14]wFMCommunicate request_size=4 [09:59:14]MH_SAM_APDU [09:59:14]CAPDU: 80 0D 03 02 [09:59:14]Write to MH i2c: E2 08 00 08 1A 80 0D 03 02 00 00 00 00 9D [09:59:14]Write i2c OK [09:59:14]MH_I2C_Read... [09:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:14]Read from MH i2c: E2 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 0B 00 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 0B 00 08 1A 00 74 6E 47 56 6D 7A 8C 50 90 00 E0 [09:59:14]RAPDU: 74 6E 47 56 6D 7A 8C 50 90 00 [09:59:14]wFMCommunicate OK [09:59:14]SAM_PROTO_SignData done [09:59:14]FM_MakeSignedData done [09:59:14]CreateOFDProtocolMessage [09:59:14]wFMCommunicate request_size=4 [09:59:14]MH_SAM_APDU [09:59:14]CAPDU: 80 11 00 00 [09:59:14]Write to MH i2c: E2 08 00 09 1A 80 11 00 00 00 00 00 00 9D [09:59:14]Write i2c OK [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 [09:59:14]MH_I2C_Read... [09:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:14]Read from MH i2c: E2 17 00 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: E2 17 00 09 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 F0 [09:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:59:14]wFMCommunicate OK [09:59:14]CreateOFDProtocolMessage done [09:59:14]OFDSenderStorePacket 52709 [09:59:14]StoreOFDPacket docnum=52709 [09:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 32 02 00 00 EF 8C 2A 02 79 82 5A 03 01 00 03 00 1E 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 E4 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 FC 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F4 DC B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E5 CD 00 00 35 04 06 00 C7 54 A7 39 F4 5E 74 6E 47 56 6D 7A 8C 50 [09:59:14]CheckFolder [09:59:14]dirname=/storage/ofd_packets [09:59:14]CheckFolder done [09:59:14]ProducePacketName [09:59:14]name=ofd_packets/00052709 [09:59:14]NVStorageSaveData ofd_packets/00052709 [09:59:14]File name is /storage/ofd_packets/00052709 [09:59:14]Write 592 bytes [09:59:14]NVStorageSaveData done [09:59:14]OFDSenderStorePacket done [09:59:14]KKMCreateOFDPacket done [09:59:14]NVStorageSaveData kkm_last_timestamp [09:59:14]File name is /storage/kkm_last_timestamp [09:59:14]Write 4 bytes [09:59:14]NVStorageSaveData done [09:59:14]ExternCall_PrintAddStr [09:59:14]wPrintStart [09:59:14]Write to MH i2c: 01 00 00 0A 1A 24 [09:59:14]Write i2c OK [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: 01 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: 01 07 00 [09:59:14]MH_I2C_Read... [09:59:14]Read from MH i2c: 01 07 00 0A 1A 00 00 00 00 00 FF 0F 39 [09:59:14]RasterBufferAndPrint [09:59:14]line Счет N : (3)122839 [09:59:14]line ИНН: 02508201610067 [09:59:14]line Контрольно-Кассовый Чек [09:59:14]line ПРОДАЖА [09:59:14]line Товар: 4630056952082 [09:59:14]line Печенье Юбилейное Торжество 120г [09:59:14]line 1.000 * 59.00 [09:59:14]line = 59.00 [09:59:14]line НДС 12% НСП 1% [09:59:14]line > о реализуемом товаре [09:59:14]line Товар: 4870001571528 [09:59:14]line Вода ASU пит н.газ персик ПЭТ 1,0 л [09:59:14]line 1.000 * 100.00 [09:59:14]line = 100.00 [09:59:14]line НДС 12% НСП 1% [09:59:14]line > о реализуемом товаре [09:59:14]line Товар: 4630007400662 [09:59:14]line Семечки ДЖИНН 140г синий [09:59:14]line 1.000 * 130.00 [09:59:14]line = 130.00 [09:59:14]line НДС 12% НСП 1% [09:59:14]line > о реализуемом товаре [09:59:14]line ИТОГО: 289.00 [09:59:14]line НСП 1% : 2.55 [09:59:14]line НДС 12% : 30.68 [09:59:14]line Наличными: 0.00 [09:59:14]line Безнал.: 289.00 [09:59:14]line Место: АЗС № 54 "Партнер Нефть" [09:59:14]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [09:59:14]line СНО: Общий режим [09:59:14]line Чек 27 12.08.2024 09:59 [09:59:14]line Смена: 447 ФФД: 1.0 [09:59:14]line ЗНМ: 0300000007 [09:59:14]line РНМ: 0000000000090834 [09:59:14]line Версия ККМ: 001 [09:59:14]line Платежная система: О! деньги [09:59:14]line ФМ: 0000000000874715 [09:59:14]line ФД: 52709 [09:59:14]line ФПД: 219166396773470 [09:59:14]line /tax-web-control/client/api/v1/ticket?date=20240812T095916&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52709&fm=219166396773470&tin=02508201610067®Number=0000000000090834&sum=28900 [09:59:14]OFD Sender: Processing packet 52709 [packets to send 55, broken 54] [09:59:14]ProducePacketName [09:59:14]name=ofd_packets/00052709 [09:59:14]OFD Sender: To server: pG, [09:59:14]CommunicateWithHost lk.salyk.kg:30040 [09:59:14]ConnectInit lk.salyk.kg [09:59:14]line 0 [09:59:14]written 0, free lines is 4095 [09:59:14]Connected sock=10 [09:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 32 02 00 00 EF 8C 2A 02 79 82 5A 03 01 00 03 00 1E 02 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 E4 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 FC 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 70 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F4 DC B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E5 CD 00 00 35 04 06 00 C7 54 A7 39 F4 5E 74 6E 47 56 6D 7A 8C 50 [09:59:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 A2 2D 47 00 53 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E5 CD 00 00 F4 03 04 00 8E 84 B9 66 B6 04 01 00 00 D2 94 22 9C 86 0C 38 64 [09:59:15]CommunicateWithHost err = 0 [09:59:15]CheckOFDResponse [09:59:15]1017 (14) - 77093643461234 [09:59:15]1041 (16) - 0000000000874715 [09:59:15]1040 (4) - 52709 [09:59:15]1012 (4) - 12.08.2024 03:42 [09:59:15]1206 (1) - 0 [09:59:15]OFD Sender: Remove packet 52709 [09:59:15]ProducePacketName [09:59:15]name=ofd_packets/00052709 [09:59:15]NVStorageDeleteData [09:59:15]Write to MH i2c: 01 00 00 41 1A 5B [09:59:15]Write i2c OK [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: 01 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: 01 07 00 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: 01 07 00 41 1A 00 00 00 00 00 CD 0B 3A [09:59:15]RasterBufferAndPrint [09:59:15]line [09:59:15]line [09:59:15]line [09:59:15]line [09:59:15]line [09:59:15]written 0, free lines is 3029 [09:59:15]MH_Cut [09:59:15]Write to MH i2c: D1 01 00 48 1A 01 34 [09:59:15]Write i2c OK [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: D1 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: D1 01 00 [09:59:15]MH_I2C_Read... [09:59:15]Read from MH i2c: D1 01 00 48 1A 00 33 [09:59:15]Write to MH i2c: 01 00 00 49 1A 63 [09:59:15]Write i2c OK [09:59:15]MH_I2C_Read... [09:59:15]OFD Sender: No OFD packet to send [09:59:16]*** Cut start [09:59:16]*** Purtial cut [09:59:16]*** Stage 1: CUTSNS_PIN = 1 [09:59:16]Read from MH i2c: 01 [09:59:16]MH_I2C_Read... [09:59:16]*** Stop cut motor [09:59:16]*** Cut end [09:59:16]Read from MH i2c: 01 07 00 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [09:59:16]process_action close_receipt done [09:59:16]requested_data is exist [09:59:16]produce_requested_data [09:59:16]requested_item fm.sn is exist - process it [09:59:16]wFMCommunicate request_size=4 [09:59:16]MH_SAM_APDU [09:59:16]CAPDU: 80 11 00 00 [09:59:16]Write to MH i2c: E2 08 00 4A 1A 80 11 00 00 00 00 00 00 DE [09:59:16]Write i2c OK [09:59:16]MH_I2C_Read... [09:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:16]Read from MH i2c: E2 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 17 00 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 17 00 4A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 31 [09:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [09:59:16]wFMCommunicate OK [09:59:16]requested_item fd.num is exist - process it [09:59:16]SAM_PROTO_GetFieldsCounters [09:59:16]wFMCommunicate request_size=4 [09:59:16]MH_SAM_APDU [09:59:16]CAPDU: 80 13 00 00 [09:59:16]Write to MH i2c: E2 08 00 4B 1A 80 13 00 00 00 00 00 00 E1 [09:59:16]Write i2c OK [09:59:16]MH_I2C_Read... [09:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:16]Read from MH i2c: E2 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 62 00 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 62 00 4B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E5 CD 00 00 0E 04 04 00 BF 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 C4 [09:59: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E5 CD 00 00 0E 04 04 00 BF 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:59:16]wFMCommunicate OK [09:59:16]SAM_PROTO_GetFieldsCounters done [09:59:16]requested_item shift.num is exist - process it [09:59:16]requested_item shift.opened is exist - process it [09:59:16]req_shift_opened [09:59:16]FM_GetShiftState [09:59:16]SAM_PROTO_GetShiftState [09:59:16]wFMCommunicate request_size=4 [09:59:16]MH_SAM_APDU [09:59:16]CAPDU: 80 13 01 00 [09:59:16]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [09:59:16]Write i2c OK [09:59:16]MH_I2C_Read... [09:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:16]Read from MH i2c: E2 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 0E 00 [09:59:16]MH_I2C_Read... [09:59:16]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 41 [09:59:16]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [09:59:16]wFMCommunicate OK [09:59:16]SAM_PROTO_GetShiftState done [09:59:16]FM_GetShiftState done [09:59:16]req_shift_opened done [09:59:16]requested_item shift.open_date is exist - process it [09:59:16]req_shift_open_date [09:59:16]req_shift_open_date done [09:59:16]produce_requested_data done [09:59:16]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52709,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [09:59:16]process_action_free close_receipt [09:59:16]json_value_free [09:59:16]json_value_free done [09:59:16]process_json_proto returns [09:59:16]Send response to host [09:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52709,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [09:59:16]free response buf [09:59:16]execute_script done [09:59:16]execute_script returns [09:59:16]free content buf [09:59:16]Sock 9.Close socket [09:59:16]Sock 9.Thread stoped [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:51]accept exits with 7 [10:08:51]New connection [10:08:51]New thread 3067149668 created [10:08:51]Thread 3067293028 joined [10:08:51]Waiting for new connection... [10:08:51] Sock 7.Parse request [10:08:51]Sock 7.Check first char [10:08:51]Sock 7.First char is OK [10:08:51]request: POST /json_proto HTTP/1.0 [10:08:51]Method: POST [10:08:51]URL: /json_proto [10:08:51]Method is POST - this is cgi request [10:08:51]url: /json_proto [10:08:51]query_string will be loaded in cgi processing [10:08:51]execute_cgi json_proto POST (null) [10:08:51]execute_cgi path=json_proto method=POST [10:08:51]POST find Content-Length [10:08:51]Host: 172.17.60.7:8080 [10:08:51]Content-Length: 1025 [10:08:51]Content-Type: application/json [10:08:51] [10:08:51]POST finish read [10:08:51]Found Content-Length = 1025 [10:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122840", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:51]execute_script... [10:08: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)122840", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:51]POST & json_proto [10:08:51]process_json_proto [10:08:51]json parsed OK: [10:08:51]protocol is kg_v1.0 [10:08:51]action value=close_receipt [10:08:51]process_action close_receipt [10:08:51]cmd_close_receipt [10:08:51]MH_GetDate [10:08:51]Write to MH i2c: F0 00 00 4D 1A 56 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: F0 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: F0 09 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: F0 09 00 4D 1A 00 38 DF B9 66 63 9B 67 64 5E [10:08:51]GetLastDocTimeStamp 1723456756 [10:08:51]current date 1723457336 [10:08:51]FM_GetShiftState [10:08:51]SAM_PROTO_GetShiftState [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 13 01 00 [10:08:51]Write to MH i2c: E2 08 00 4E 1A 80 13 01 00 00 00 00 00 E5 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 0E 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 0E 00 4E 1A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 43 [10:08:51]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:08:51]wFMCommunicate OK [10:08:51]SAM_PROTO_GetShiftState done [10:08:51]FM_GetShiftState done [10:08:51]opened in 1723422684 [10:08:51]opened+sec_in_day 1723509084 [10:08:51]quantity*price = 14000 [10:08:51]sum+1 = 14001 [10:08:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 0.00 Безнал.: 290.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 28 12.08.2024 10:08 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52710 ФПД: 214058173039157 /tax-web-control/client/api/v1/ticket?date=20240812T100856&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52710&fm=214058173039157&tin=02508201610067®Number=0000000000090834&sum=29000 0 [10:08:52]StoreToDocumentArchive [10:08:52]shift 447 fd 52710 [10:08:52]save to /storage/0447/doc_00052710 [10:08:52]save last doc name /storage/0447/doc_00052710 to /storage/kkm_last_doc_name [10:08:52]save OK [10:08:52]Clear old archive folders... [10:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=377 [10:08:52]tlvbuf is 01258200 [10:08:52]SAM_PROTO_ClearQueue [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 09 00 00 [10:08:52]Write to MH i2c: E2 08 00 5B 1A 80 09 00 00 00 00 00 00 E7 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:52]Read from MH i2c: E2 03 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [10:08:52]RAPDU: 90 00 [10:08:52]wFMCommunicate OK [10:08:52]SAM_PROTO_ClearQueue done [10:08:52]KKMCreateOFDPacket [10:08:52]OFDProtocolAddRootSTLVToBuf [10:08:52]FM_MakeSignedData [10:08:52]FM_MakeSignedData [10:08:52]SAM_PROTO_SignData [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 0D 01 02 [10:08:52]Write to MH i2c: E2 08 00 5C 1A 80 0D 01 02 00 00 00 00 EF [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [10:08:52]RAPDU: 90 00 [10:08:52]wFMCommunicate OK [10:08:52]wFMCommunicate request_size=255 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE [10:08:52]Write to MH i2c: E2 02 01 5D 1A 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 00 00 72 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:53]Read from MH i2c: E2 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 03 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [10:08:53]RAPDU: 90 00 [10:08:53]wFMCommunicate OK [10:08:53]wFMCommunicate request_size=136 [10:08:53]MH_SAM_APDU [10:08:53]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 38 DF B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E6 CD 00 00 35 04 06 00 C2 AF 4D 5D 82 35 [10:08:53]Write to MH i2c: E2 8B 00 5E 1A 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 38 DF B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E6 CD 00 00 35 04 06 00 C2 AF 4D 5D 82 35 00 00 9A [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:53]Read from MH i2c: E2 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 03 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [10:08:53]RAPDU: 90 00 [10:08:53]wFMCommunicate OK [10:08:53]wFMCommunicate request_size=4 [10:08:53]MH_SAM_APDU [10:08:53]CAPDU: 80 0D 03 02 [10:08:53]Write to MH i2c: E2 08 00 5F 1A 80 0D 03 02 00 00 00 00 F4 [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:53]Read from MH i2c: E2 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 0B 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 0B 00 5F 1A 00 7F CC B3 E0 D0 E7 C9 C0 90 00 13 [10:08:53]RAPDU: 7F CC B3 E0 D0 E7 C9 C0 90 00 [10:08:53]wFMCommunicate OK [10:08:53]SAM_PROTO_SignData done [10:08:53]FM_MakeSignedData done [10:08:53]CreateOFDProtocolMessage [10:08:53]wFMCommunicate request_size=4 [10:08:53]MH_SAM_APDU [10:08:53]CAPDU: 80 11 00 00 [10:08:53]Write to MH i2c: E2 08 00 60 1A 80 11 00 00 00 00 00 00 F4 [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:53]Read from MH i2c: E2 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 17 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: E2 17 00 60 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 47 [10:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:08:53]wFMCommunicate OK [10:08:53]CreateOFDProtocolMessage done [10:08:53]OFDSenderStorePacket 52710 [10:08:53]StoreOFDPacket docnum=52710 [10:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8D 01 00 00 34 D7 85 01 9F 69 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 38 DF B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E6 CD 00 00 35 04 06 00 C2 AF 4D 5D 82 35 7F CC B3 E0 D0 E7 C9 C0 [10:08:53]CheckFolder [10:08:53]dirname=/storage/ofd_packets [10:08:53]CheckFolder done [10:08:53]ProducePacketName [10:08:53]name=ofd_packets/00052710 [10:08:53]NVStorageSaveData ofd_packets/00052710 [10:08:53]File name is /storage/ofd_packets/00052710 [10:08:53]Write 427 bytes [10:08:53]NVStorageSaveData done [10:08:53]OFDSenderStorePacket done [10:08:53]KKMCreateOFDPacket done [10:08:53]NVStorageSaveData kkm_last_timestamp [10:08:53]File name is /storage/kkm_last_timestamp [10:08:53]Write 4 bytes [10:08:53]NVStorageSaveData done [10:08:53]ExternCall_PrintAddStr [10:08:53]wPrintStart [10:08:53]Write to MH i2c: 01 00 00 61 1A 7B [10:08:53]OFD Sender: Processing packet 52710 [packets to send 55, broken 54] [10:08:53]ProducePacketName [10:08:53]name=ofd_packets/00052710 [10:08:53]OFD Sender: To server: pG, [10:08:53]CommunicateWithHost lk.salyk.kg:30040 [10:08:53]ConnectInit lk.salyk.kg [10:08:53]Write i2c OK [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: 01 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: 01 07 00 [10:08:53]MH_I2C_Read... [10:08:53]Read from MH i2c: 01 07 00 61 1A 00 00 00 00 00 FF 0F 90 [10:08:53]RasterBufferAndPrint [10:08:53]line Счет N : (3)122840 [10:08:53]line ИНН: 02508201610067 [10:08:53]line Контрольно-Кассовый Чек [10:08:53]line ПРОДАЖА [10:08:53]line Товар: 48743587 [10:08:53]line Сигареты Winston XStyle Silver [10:08:53]line 1.000 * 140.00 [10:08:53]line = 140.00 [10:08:53]line НДС 12% НСП 1% [10:08:53]line > о реализуемом товаре [10:08:53]line Товар: 4640030091607 [10:08:53]line Сигареты ESSE Exchange [10:08:53]line 1.000 * 150.00 [10:08:53]line = 150.00 [10:08:53]line НДС 12% НСП 1% [10:08:53]line > о реализуемом товаре [10:08:53]line ИТОГО: 290.00 [10:08:53]line НСП 1% : 2.57 [10:08:53]line НДС 12% : 30.80 [10:08:53]line Наличными: 0.00 [10:08:53]line Безнал.: 290.00 [10:08:53]line Место: АЗС № 54 "Партнер Нефть" [10:08:53]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [10:08:53]line СНО: Общий режим [10:08:53]line Чек 28 12.08.2024 10:08 [10:08:53]line Смена: 447 ФФД: 1.0 [10:08:53]line ЗНМ: 0300000007 [10:08:53]line РНМ: 0000000000090834 [10:08:53]line Версия ККМ: 001 [10:08:53]line Платежная система: О! деньги [10:08:53]line ФМ: 0000000000874715 [10:08:53]line ФД: 52710 [10:08:53]line ФПД: 214058173039157 [10:08:53]line /tax-web-control/client/api/v1/ticket?date=20240812T100856&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52710&fm=214058173039157&tin=02508201610067®Number=0000000000090834&sum=29000 [10:08:53]line 0 [10:08:53]written 0, free lines is 4095 [10:08:54]Connected sock=10 [10:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8D 01 00 00 34 D7 85 01 9F 69 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 38 DF B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E6 CD 00 00 35 04 06 00 C2 AF 4D 5D 82 35 7F CC B3 E0 D0 E7 C9 C0 [10:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 28 08 47 00 92 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E6 CD 00 00 F4 03 04 00 D1 86 B9 66 B6 04 01 00 00 4C 0F 96 83 DE A2 A3 79 [10:08:54]CommunicateWithHost err = 0 [10:08:54]CheckOFDResponse [10:08:54]1017 (14) - 77093643461234 [10:08:54]1041 (16) - 0000000000874715 [10:08:54]1040 (4) - 52710 [10:08:54]1012 (4) - 12.08.2024 03:51 [10:08:54]1206 (1) - 0 [10:08:54]OFD Sender: Remove packet 52710 [10:08:54]ProducePacketName [10:08:54]name=ofd_packets/00052710 [10:08:54]NVStorageDeleteData [10:08:54]Write to MH i2c: 01 00 00 91 1A AB [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: 01 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: 01 07 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 44 0C 02 [10:08:54]RasterBufferAndPrint [10:08:54]line [10:08:54]line [10:08:54]line [10:08:54]line [10:08:54]line [10:08:54]written 0, free lines is 3146 [10:08:54]MH_Cut [10:08:54]Write to MH i2c: D1 01 00 98 1A 01 84 [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: D1 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: D1 01 00 [10:08:54]MH_I2C_Read... [10:08:54]Read from MH i2c: D1 01 00 98 1A 00 83 [10:08:54]Write to MH i2c: 01 00 00 99 1A B3 [10:08:54]Write i2c OK [10:08:54]MH_I2C_Read... [10:08:54]OFD Sender: No OFD packet to send [10:08:55]*** Cut start [10:08:55]*** Purtial cut [10:08:55]*** Stage 1: CUTSNS_PIN = 1 [10:08:55]Read from MH i2c: 01 [10:08:55]MH_I2C_Read... [10:08:55]*** Stop cut motor [10:08:55]*** Cut end [10:08:55]Read from MH i2c: 01 07 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: 01 07 00 99 1A 00 00 00 00 00 FF 0F C8 [10:08:55]process_action close_receipt done [10:08:55]requested_data is exist [10:08:55]produce_requested_data [10:08:55]requested_item fm.sn is exist - process it [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 11 00 00 [10:08:55]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 17 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 81 [10:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:08:55]wFMCommunicate OK [10:08:55]requested_item fd.num is exist - process it [10:08:55]SAM_PROTO_GetFieldsCounters [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 00 00 [10:08:55]Write to MH i2c: E2 08 00 9B 1A 80 13 00 00 00 00 00 00 31 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 62 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 62 00 9B 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E6 CD 00 00 0E 04 04 00 BF 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 18 [10:08:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E6 CD 00 00 0E 04 04 00 BF 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:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_GetFieldsCounters done [10:08:55]requested_item shift.num is exist - process it [10:08:55]requested_item shift.opened is exist - process it [10:08:55]req_shift_opened [10:08:55]FM_GetShiftState [10:08:55]SAM_PROTO_GetShiftState [10:08:55]wFMCommunicate request_size=4 [10:08:55]MH_SAM_APDU [10:08:55]CAPDU: 80 13 01 00 [10:08:55]Write to MH i2c: E2 08 00 9C 1A 80 13 01 00 00 00 00 00 33 [10:08:55]Write i2c OK [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 [10:08:55]MH_I2C_Read... [10:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:55]Read from MH i2c: E2 0E 00 [10:08:55]MH_I2C_Read... [10:08:55]Read from MH i2c: E2 0E 00 9C 1A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 91 [10:08:55]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:08:55]wFMCommunicate OK [10:08:55]SAM_PROTO_GetShiftState done [10:08:55]FM_GetShiftState done [10:08:55]req_shift_opened done [10:08:55]requested_item shift.open_date is exist - process it [10:08:55]req_shift_open_date [10:08:55]req_shift_open_date done [10:08:55]produce_requested_data done [10:08:55]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52710,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [10:08:55]process_action_free close_receipt [10:08:55]json_value_free [10:08:55]json_value_free done [10:08:55]process_json_proto returns [10:08:55]Send response to host [10:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52710,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [10:08:55]free response buf [10:08:55]execute_script done [10:08:55]execute_script returns [10:08:55]free content buf [10:08:55]Sock 7.Close socket [10:08:55]Sock 7.Thread stoped [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]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:45]accept exits with 9 [10:13:45]New connection [10:13:45]New thread 3067293028 created [10:13:45]Thread 3067149668 joined [10:13:45]Waiting for new connection... [10:13:45] Sock 9.Parse request [10:13:45]Sock 9.Check first char [10:13:45]Sock 9.First char is OK [10:13:45]request: POST /json_proto HTTP/1.0 [10:13:45]Method: POST [10:13:45]URL: /json_proto [10:13:45]Method is POST - this is cgi request [10:13:45]url: /json_proto [10:13:45]query_string will be loaded in cgi processing [10:13:45]execute_cgi json_proto POST (null) [10:13:45]execute_cgi path=json_proto method=POST [10:13:45]POST find Content-Length [10:13:45]Host: 172.17.60.7:8080 [10:13:45]Content-Length: 655 [10:13:45]Content-Type: application/json [10:13:45] [10:13:45]POST finish read [10:13:45]Found Content-Length = 655 [10:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122841", "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" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:45]execute_script... [10:13: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)122841", "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" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:45]POST & json_proto [10:13:45]process_json_proto [10:13:45]json parsed OK: [10:13:45]protocol is kg_v1.0 [10:13:45]action value=close_receipt [10:13:45]process_action close_receipt [10:13:45]cmd_close_receipt [10:13:45]MH_GetDate [10:13:45]Write to MH i2c: F0 00 00 9D 1A A6 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: F0 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: F0 09 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: F0 09 00 9D 1A 00 5E E0 B9 66 63 9B 67 64 D5 [10:13:45]GetLastDocTimeStamp 1723457336 [10:13:45]current date 1723457630 [10:13:45]FM_GetShiftState [10:13:45]SAM_PROTO_GetShiftState [10:13:45]wFMCommunicate request_size=4 [10:13:45]MH_SAM_APDU [10:13:45]CAPDU: 80 13 01 00 [10:13:45]Write to MH i2c: E2 08 00 9E 1A 80 13 01 00 00 00 00 00 35 [10:13:45]Write i2c OK [10:13:45]MH_I2C_Read... [10:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:45]Read from MH i2c: E2 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 0E 00 [10:13:45]MH_I2C_Read... [10:13:45]Read from MH i2c: E2 0E 00 9E 1A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 93 [10:13:45]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:13:45]wFMCommunicate OK [10:13:45]SAM_PROTO_GetShiftState done [10:13:45]FM_GetShiftState done [10:13:45]opened in 1723422684 [10:13:45]opened+sec_in_day 1723509084 [10:13:45]quantity*price = 8500 [10:13:45]sum+1 = 8501 [10:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 29 12.08.2024 10:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52711 ФПД: 106714154803694 /tax-web-control/client/api/v1/ticket?date=20240812T101350&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52711&fm=106714154803694&tin=02508201610067®Number=0000000000090834&sum=8500 0 [10:13:46]StoreToDocumentArchive [10:13:46]shift 447 fd 52711 [10:13:46]save to /storage/0447/doc_00052711 [10:13:46]save last doc name /storage/0447/doc_00052711 to /storage/kkm_last_doc_name [10:13:46]save OK [10:13:46]Clear old archive folders... [10:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:13:46]tlvbuf is B6FA81A0 [10:13:46]SAM_PROTO_ClearQueue [10:13:46]wFMCommunicate request_size=4 [10:13:46]MH_SAM_APDU [10:13:46]CAPDU: 80 09 00 00 [10:13:46]Write to MH i2c: E2 08 00 AB 1A 80 09 00 00 00 00 00 00 37 [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:46]Read from MH i2c: E2 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 AB 1A 00 90 00 39 [10:13:46]RAPDU: 90 00 [10:13:46]wFMCommunicate OK [10:13:46]SAM_PROTO_ClearQueue done [10:13:46]KKMCreateOFDPacket [10:13:46]OFDProtocolAddRootSTLVToBuf [10:13:46]FM_MakeSignedData [10:13:46]FM_MakeSignedData [10:13:46]SAM_PROTO_SignData [10:13:46]wFMCommunicate request_size=4 [10:13:46]MH_SAM_APDU [10:13:46]CAPDU: 80 0D 01 02 [10:13:46]Write to MH i2c: E2 08 00 AC 1A 80 0D 01 02 00 00 00 00 3F [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:46]Read from MH i2c: E2 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 [10:13:46]MH_I2C_Read... [10:13:46]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [10:13:46]RAPDU: 90 00 [10:13:46]wFMCommunicate OK [10:13:46]wFMCommunicate request_size=255 [10:13:46]MH_SAM_APDU [10:13:46]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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E E0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:13:46]Write to MH i2c: E2 02 01 AD 1A 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E E0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 5D [10:13:46]Write i2c OK [10:13:46]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]wFMCommunicate request_size=53 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E7 CD 00 00 35 04 06 00 61 0E 53 4A 21 EE [10:13:47]Write to MH i2c: E2 38 00 AE 1A 80 0D 02 02 30 00 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E7 CD 00 00 35 04 06 00 61 0E 53 4A 21 EE 00 00 05 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [10:13:47]RAPDU: 90 00 [10:13:47]wFMCommunicate OK [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 0D 03 02 [10:13:47]Write to MH i2c: E2 08 00 AF 1A 80 0D 03 02 00 00 00 00 44 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 0B 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 0B 00 AF 1A 00 6D DE E7 F2 96 DF 3F 0F 90 00 2C [10:13:47]RAPDU: 6D DE E7 F2 96 DF 3F 0F 90 00 [10:13:47]wFMCommunicate OK [10:13:47]SAM_PROTO_SignData done [10:13:47]FM_MakeSignedData done [10:13:47]CreateOFDProtocolMessage [10:13:47]wFMCommunicate request_size=4 [10:13:47]MH_SAM_APDU [10:13:47]CAPDU: 80 11 00 00 [10:13:47]Write to MH i2c: E2 08 00 B0 1A 80 11 00 00 00 00 00 00 44 [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:47]Read from MH i2c: E2 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 17 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: E2 17 00 B0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 97 [10:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:13:47]wFMCommunicate OK [10:13:47]CreateOFDProtocolMessage done [10:13:47]OFDSenderStorePacket 52711 [10:13:47]StoreOFDPacket docnum=52711 [10:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3A 01 00 00 A8 E8 32 01 47 6A 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E E0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E7 CD 00 00 35 04 06 00 61 0E 53 4A 21 EE 6D DE E7 F2 96 DF 3F 0F [10:13:47]CheckFolder [10:13:47]dirname=/storage/ofd_packets [10:13:47]CheckFolder done [10:13:47]ProducePacketName [10:13:47]name=ofd_packets/00052711 [10:13:47]NVStorageSaveData ofd_packets/00052711 [10:13:47]File name is /storage/ofd_packets/00052711 [10:13:47]Write 344 bytes [10:13:47]NVStorageSaveData done [10:13:47]OFDSenderStorePacket done [10:13:47]KKMCreateOFDPacket done [10:13:47]NVStorageSaveData kkm_last_timestamp [10:13:47]File name is /storage/kkm_last_timestamp [10:13:47]Write 4 bytes [10:13:47]NVStorageSaveData done [10:13:47]OFD Sender: Processing packet 52711 [packets to send 55, broken 54] [10:13:47]ProducePacketName [10:13:47]name=ofd_packets/00052711 [10:13:47]OFD Sender: To server: pG, [10:13:47]CommunicateWithHost lk.salyk.kg:30040 [10:13:47]ConnectInit lk.salyk.kg [10:13:47]ExternCall_PrintAddStr [10:13:47]wPrintStart [10:13:47]Write to MH i2c: 01 00 00 B1 1A CB [10:13:47]Write i2c OK [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: 01 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: 01 07 00 [10:13:47]MH_I2C_Read... [10:13:47]Read from MH i2c: 01 07 00 B1 1A 00 00 00 00 00 FF 0F E0 [10:13:47]RasterBufferAndPrint [10:13:47]line Счет N : (3)122841 [10:13:47]line ИНН: 02508201610067 [10:13:47]line Контрольно-Кассовый Чек [10:13:47]line ПРОДАЖА [10:13:47]line Товар: 4600682557456 [10:13:47]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:13:47]line 1.000 * 85.00 [10:13:47]line = 85.00 [10:13:47]line НДС 12% НСП 1% [10:13:47]line > о реализуемом товаре [10:13:47]line ИТОГО: 85.00 [10:13:47]line НСП 1% : 0.75 [10:13:47]line НДС 12% : 9.03 [10:13:47]line Наличными: 85.00 [10:13:47]line Безнал.: 0.00 [10:13:47]line Место: АЗС № 54 "Партнер Нефть" [10:13:47]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [10:13:47]line СНО: Общий режим [10:13:47]line Чек 29 12.08.2024 10:13 [10:13:47]line Смена: 447 ФФД: 1.0 [10:13:47]line ЗНМ: 0300000007 [10:13:47]line РНМ: 0000000000090834 [10:13:47]line Версия ККМ: 001 [10:13:47]line ФМ: 0000000000874715 [10:13:47]line ФД: 52711 [10:13:47]line ФПД: 106714154803694 [10:13:47]line /tax-web-control/client/api/v1/ticket?date=20240812T101350&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52711&fm=106714154803694&tin=02508201610067®Number=0000000000090834&sum=8500 [10:13:47]line 0 [10:13:47]Connected sock=11 [10:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3A 01 00 00 A8 E8 32 01 47 6A 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5E E0 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E7 CD 00 00 35 04 06 00 61 0E 53 4A 21 EE 6D DE E7 F2 96 DF 3F 0F [10:13:47]written 0, free lines is 4095 [10:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 94 EB 47 00 3E BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E7 CD 00 00 F4 03 04 00 F7 87 B9 66 B6 04 01 00 00 DE 99 18 1B 05 0E EA 4D [10:13:47]CommunicateWithHost err = 0 [10:13:47]CheckOFDResponse [10:13:47]1017 (14) - 77093643461234 [10:13:47]1041 (16) - 0000000000874715 [10:13:47]1040 (4) - 52711 [10:13:47]1012 (4) - 12.08.2024 03:56 [10:13:47]1206 (1) - 0 [10:13:47]OFD Sender: Remove packet 52711 [10:13:47]ProducePacketName [10:13:47]name=ofd_packets/00052711 [10:13:47]NVStorageDeleteData [10:13:48]Write to MH i2c: 01 00 00 D9 1A F3 [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: 01 07 00 D9 1A 00 00 00 00 00 CD 0C D3 [10:13:48]RasterBufferAndPrint [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]line [10:13:48]written 0, free lines is 3281 [10:13:48]MH_Cut [10:13:48]Write to MH i2c: D1 01 00 E0 1A 01 CC [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 01 00 [10:13:48]MH_I2C_Read... [10:13:48]Read from MH i2c: D1 01 00 E0 1A 00 CB [10:13:48]Write to MH i2c: 01 00 00 E1 1A FB [10:13:48]Write i2c OK [10:13:48]MH_I2C_Read... [10:13:48]OFD Sender: No OFD packet to send [10:13:48]*** Cut start [10:13:48]*** Purtial cut [10:13:48]*** Stage 1: CUTSNS_PIN = 1 [10:13:49]Read from MH i2c: 01 [10:13:49]MH_I2C_Read... [10:13:49]*** Stop cut motor [10:13:49]*** Cut end [10:13:49]Read from MH i2c: 01 07 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: 01 07 00 E1 1A 00 00 00 00 00 FF 0F 10 [10:13:49]process_action close_receipt done [10:13:49]requested_data is exist [10:13:49]produce_requested_data [10:13:49]requested_item fm.sn is exist - process it [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 11 00 00 [10:13:49]Write to MH i2c: E2 08 00 E2 1A 80 11 00 00 00 00 00 00 76 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 17 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 17 00 E2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C9 [10:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:13:49]wFMCommunicate OK [10:13:49]requested_item fd.num is exist - process it [10:13:49]SAM_PROTO_GetFieldsCounters [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 13 00 00 [10:13:49]Write to MH i2c: E2 08 00 E3 1A 80 13 00 00 00 00 00 00 79 [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 62 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 62 00 E3 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E7 CD 00 00 0E 04 04 00 BF 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 64 [10:13: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E7 CD 00 00 0E 04 04 00 BF 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:13:49]wFMCommunicate OK [10:13:49]SAM_PROTO_GetFieldsCounters done [10:13:49]requested_item shift.num is exist - process it [10:13:49]requested_item shift.opened is exist - process it [10:13:49]req_shift_opened [10:13:49]FM_GetShiftState [10:13:49]SAM_PROTO_GetShiftState [10:13:49]wFMCommunicate request_size=4 [10:13:49]MH_SAM_APDU [10:13:49]CAPDU: 80 13 01 00 [10:13:49]Write to MH i2c: E2 08 00 E4 1A 80 13 01 00 00 00 00 00 7B [10:13:49]Write i2c OK [10:13:49]MH_I2C_Read... [10:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:49]Read from MH i2c: E2 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 0E 00 [10:13:49]MH_I2C_Read... [10:13:49]Read from MH i2c: E2 0E 00 E4 1A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D9 [10:13:49]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:13:49]wFMCommunicate OK [10:13:49]SAM_PROTO_GetShiftState done [10:13:49]FM_GetShiftState done [10:13:49]req_shift_opened done [10:13:49]requested_item shift.open_date is exist - process it [10:13:49]req_shift_open_date [10:13:49]req_shift_open_date done [10:13:49]produce_requested_data done [10:13:49]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52711,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [10:13:49]process_action_free close_receipt [10:13:49]json_value_free [10:13:49]json_value_free done [10:13:49]process_json_proto returns [10:13:49]Send response to host [10:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52711,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [10:13:49]free response buf [10:13:49]execute_script done [10:13:49]execute_script returns [10:13:49]free content buf [10:13:49]Sock 9.Close socket [10:13:49]Sock 9.Thread stoped [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:42]accept exits with 7 [10:20:42]New connection [10:20:42]New thread 3067149668 created [10:20:42]Thread 3067293028 joined [10:20:42]Waiting for new connection... [10:20:42] Sock 7.Parse request [10:20:42]Sock 7.Check first char [10:20:42]Sock 7.First char is OK [10:20:42]request: POST /json_proto HTTP/1.0 [10:20:42]Method: POST [10:20:42]URL: /json_proto [10:20:42]Method is POST - this is cgi request [10:20:42]url: /json_proto [10:20:42]query_string will be loaded in cgi processing [10:20:42]execute_cgi json_proto POST (null) [10:20:42]execute_cgi path=json_proto method=POST [10:20:42]POST find Content-Length [10:20:42]Host: 172.17.60.7:8080 [10:20:42]Content-Length: 886 [10:20:42]Content-Type: application/json [10:20:42] [10:20:42]POST finish read [10:20:42]Found Content-Length = 886 [10:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122842", "tax_sys" : 0, "items" : [ { "code": "2000039260010", "name": "\u041C\u0430\u0444\u0444\u0438\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 80\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 1.000, "sum" : 115.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" ] } } [10:20:42]execute_script... [10:20: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)122842", "tax_sys" : 0, "items" : [ { "code": "2000039260010", "name": "\u041C\u0430\u0444\u0444\u0438\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 80\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 1.000, "sum" : 115.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" ] } } [10:20:42]POST & json_proto [10:20:42]process_json_proto [10:20:42]json parsed OK: [10:20:42]protocol is kg_v1.0 [10:20:42]action value=close_receipt [10:20:42]process_action close_receipt [10:20:42]cmd_close_receipt [10:20:42]MH_GetDate [10:20:42]Write to MH i2c: F0 00 00 E5 1A EE [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: F0 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: F0 09 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: F0 09 00 E5 1A 00 FF E1 B9 66 63 9B 67 64 BF [10:20:42]GetLastDocTimeStamp 1723457630 [10:20:42]current date 1723458047 [10:20:42]FM_GetShiftState [10:20:42]SAM_PROTO_GetShiftState [10:20:42]wFMCommunicate request_size=4 [10:20:42]MH_SAM_APDU [10:20:42]CAPDU: 80 13 01 00 [10:20:42]Write to MH i2c: E2 08 00 E6 1A 80 13 01 00 00 00 00 00 7D [10:20:42]Write i2c OK [10:20:42]MH_I2C_Read... [10:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:42]Read from MH i2c: E2 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 0E 00 [10:20:42]MH_I2C_Read... [10:20:42]Read from MH i2c: E2 0E 00 E6 1A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 DB [10:20:42]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:20:42]wFMCommunicate OK [10:20:42]SAM_PROTO_GetShiftState done [10:20:42]FM_GetShiftState done [10:20:42]opened in 1723422684 [10:20:42]opened+sec_in_day 1723509084 [10:20:42]quantity*price = 7500 [10:20:42]sum+1 = 7501 [10:20:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 30 12.08.2024 10:20 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52712 ФПД: 221474970104997 /tax-web-control/client/api/v1/ticket?date=20240812T102047&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52712&fm=221474970104997&tin=02508201610067®Number=0000000000090834&sum=19000 0 [10:20:43]StoreToDocumentArchive [10:20:43]shift 447 fd 52712 [10:20:43]save to /storage/0447/doc_00052712 [10:20:43]save last doc name /storage/0447/doc_00052712 to /storage/kkm_last_doc_name [10:20:43]save OK [10:20:43]Clear old archive folders... [10:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=378 [10:20:43]tlvbuf is B6FAB420 [10:20:43]SAM_PROTO_ClearQueue [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 09 00 00 [10:20:43]Write to MH i2c: E2 08 00 F3 1A 80 09 00 00 00 00 00 00 7F [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 F3 1A 00 90 00 81 [10:20:43]RAPDU: 90 00 [10:20:43]wFMCommunicate OK [10:20:43]SAM_PROTO_ClearQueue done [10:20:43]KKMCreateOFDPacket [10:20:43]OFDProtocolAddRootSTLVToBuf [10:20:43]FM_MakeSignedData [10:20:43]FM_MakeSignedData [10:20:43]SAM_PROTO_SignData [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 0D 01 02 [10:20:43]Write to MH i2c: E2 08 00 F4 1A 80 0D 01 02 00 00 00 00 87 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 03 00 F4 1A 00 90 00 82 [10:20:43]RAPDU: 90 00 [10:20:43]wFMCommunicate OK [10:20:43]wFMCommunicate request_size=255 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 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 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 [10:20:44]Write to MH i2c: E2 02 01 F5 1A 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 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 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 00 00 97 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 F5 1A 00 90 00 83 [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]wFMCommunicate request_size=137 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 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 1E 00 00 00 F4 03 04 00 FF E1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E8 CD 00 00 35 04 06 00 C9 6E 28 EB 74 A5 [10:20:44]Write to MH i2c: E2 8C 00 F6 1A 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 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 1E 00 00 00 F4 03 04 00 FF E1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E8 CD 00 00 35 04 06 00 C9 6E 28 EB 74 A5 00 00 1D [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 03 02 [10:20:44]Write to MH i2c: E2 08 00 F7 1A 80 0D 03 02 00 00 00 00 8C [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0B 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0B 00 F7 1A 00 19 A9 BD 6E BD EB 79 5E 90 00 F9 [10:20:44]RAPDU: 19 A9 BD 6E BD EB 79 5E 90 00 [10:20:44]wFMCommunicate OK [10:20:44]SAM_PROTO_SignData done [10:20:44]FM_MakeSignedData done [10:20:44]CreateOFDProtocolMessage [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 11 00 00 [10:20:44]Write to MH i2c: E2 08 00 F8 1A 80 11 00 00 00 00 00 00 8C [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 17 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 17 00 F8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 DF [10:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:20:44]wFMCommunicate OK [10:20:44]CreateOFDProtocolMessage done [10:20:44]OFDSenderStorePacket 52712 [10:20:44]StoreOFDPacket docnum=52712 [10:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8E 01 00 00 EE 08 86 01 F2 C0 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 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 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 E1 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 1E 00 00 00 F4 03 04 00 FF E1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E8 CD 00 00 35 04 06 00 C9 6E 28 EB 74 A5 19 A9 BD 6E BD EB 79 5E [10:20:44]CheckFolder [10:20:44]dirname=/storage/ofd_packets [10:20:44]CheckFolder done [10:20:44]ProducePacketName [10:20:44]name=ofd_packets/00052712 [10:20:44]NVStorageSaveData ofd_packets/00052712 [10:20:44]File name is /storage/ofd_packets/00052712 [10:20:44]Write 428 bytes [10:20:44]NVStorageSaveData done [10:20:44]OFDSenderStorePacket done [10:20:44]KKMCreateOFDPacket done [10:20:44]NVStorageSaveData kkm_last_timestamp [10:20:44]File name is /storage/kkm_last_timestamp [10:20:44]Write 4 bytes [10:20:44]NVStorageSaveData done [10:20:44]ExternCall_PrintAddStr [10:20:44]wPrintStart [10:20:44]Write to MH i2c: 01 00 00 F9 1A 13 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 F9 1A 00 00 00 00 00 FF 0F 28 [10:20:44]RasterBufferAndPrint [10:20:44]line Счет N : (3)122842 [10:20:44]line ИНН: 02508201610067 [10:20:44]line Контрольно-Кассовый Чек [10:20:44]line ПРОДАЖА [10:20:44]line Товар: 2000039260010 [10:20:44]line Маффин шоколад 80г [10:20:44]line 1.000 * 75.00 [10:20:44]line = 75.00 [10:20:44]line НДС 12% НСП 1% [10:20:44]line > о реализуемом товаре [10:20:44]line Товар: 2000036240010 [10:20:44]line Кофе Латте (GABB TRADE) [10:20:44]line 1.000 * 115.00 [10:20:44]line = 115.00 [10:20:44]line НДС 12% НСП 1% [10:20:44]line > о реализуемом товаре [10:20:44]line ИТОГО: 190.00 [10:20:44]line НСП 1% : 1.68 [10:20:44]line НДС 12% : 20.17 [10:20:44]line Наличными: 190.00 [10:20:44]line Безнал.: 0.00 [10:20:44]line Место: АЗС № 54 "Партнер Нефть" [10:20:44]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [10:20:44]line СНО: Общий режим [10:20:44]line Чек 30 12.08.2024 10:20 [10:20:44]line Смена: 447 ФФД: 1.0 [10:20:44]line ЗНМ: 0300000007 [10:20:44]line РНМ: 0000000000090834 [10:20:44]line Версия ККМ: 001 [10:20:44]line ФМ: 0000000000874715 [10:20:44]line ФД: 52712 [10:20:44]line ФПД: 221474970104997 [10:20:44]line /tax-web-control/client/api/v1/ticket?date=20240812T102047&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52712&fm=221474970104997&tin=02508201610067®Number=0000000000090834&sum=19000 [10:20:44]line 0 [10:20:44]OFD Sender: Processing packet 52712 [packets to send 55, broken 54] [10:20:44]ProducePacketName [10:20:44]name=ofd_packets/00052712 [10:20:44]OFD Sender: To server: pG, [10:20:44]CommunicateWithHost lk.salyk.kg:30040 [10:20:44]ConnectInit lk.salyk.kg [10:20:44]written 0, free lines is 4095 [10:20:45]Connected sock=10 [10:20:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8E 01 00 00 EE 08 86 01 F2 C0 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 39 32 36 30 30 31 30 06 04 20 00 D0 9C D0 B0 D1 84 D1 84 D0 B8 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 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 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 E1 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 1E 00 00 00 F4 03 04 00 FF E1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E8 CD 00 00 35 04 06 00 C9 6E 28 EB 74 A5 19 A9 BD 6E BD EB 79 5E [10:20:45]Write to MH i2c: 01 00 00 26 1B 41 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 6F 0C C3 [10:20:45]RasterBufferAndPrint [10:20:45]line [10:20:45]line [10:20:45]line [10:20:45]line [10:20:45]line [10:20:45]written 0, free lines is 3188 [10:20:45]MH_Cut [10:20:45]Write to MH i2c: D1 01 00 2D 1B 01 1A [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: D1 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: D1 01 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: D1 01 00 2D 1B 00 19 [10:20:45]Write to MH i2c: 01 00 00 2E 1B 49 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 D2 31 47 00 60 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E8 CD 00 00 F4 03 04 00 98 89 B9 66 B6 04 01 00 00 90 80 44 18 23 18 2A 49 [10:20:45]CommunicateWithHost err = 0 [10:20:45]CheckOFDResponse [10:20:45]1017 (14) - 77093643461234 [10:20:45]1041 (16) - 0000000000874715 [10:20:45]1040 (4) - 52712 [10:20:45]1012 (4) - 12.08.2024 04:03 [10:20:45]1206 (1) - 0 [10:20:45]OFD Sender: Remove packet 52712 [10:20:45]ProducePacketName [10:20:45]name=ofd_packets/00052712 [10:20:45]NVStorageDeleteData [10:20:45]OFD Sender: No OFD packet to send [10:20:46]*** Cut start [10:20:46]*** Purtial cut [10:20:46]*** Stage 1: CUTSNS_PIN = 1 [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]*** Stop cut motor [10:20:46]*** Cut end [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 FF 0F 5E [10:20:46]process_action close_receipt done [10:20:46]requested_data is exist [10:20:46]produce_requested_data [10:20:46]requested_item fm.sn is exist - process it [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 11 00 00 [10:20:46]Write to MH i2c: E2 08 00 2F 1B 80 11 00 00 00 00 00 00 C4 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 2F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 17 [10:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:20:46]wFMCommunicate OK [10:20:46]requested_item fd.num is exist - process it [10:20:46]SAM_PROTO_GetFieldsCounters [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 13 00 00 [10:20:46]Write to MH i2c: E2 08 00 30 1B 80 13 00 00 00 00 00 00 C7 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 62 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 62 00 30 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E8 CD 00 00 0E 04 04 00 BF 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 B6 [10:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E8 CD 00 00 0E 04 04 00 BF 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:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_GetFieldsCounters done [10:20:46]requested_item shift.num is exist - process it [10:20:46]requested_item shift.opened is exist - process it [10:20:46]req_shift_opened [10:20:46]FM_GetShiftState [10:20:46]SAM_PROTO_GetShiftState [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 13 01 00 [10:20:46]Write to MH i2c: E2 08 00 31 1B 80 13 01 00 00 00 00 00 C9 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0E 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0E 00 31 1B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 27 [10:20:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_GetShiftState done [10:20:46]FM_GetShiftState done [10:20:46]req_shift_opened done [10:20:46]requested_item shift.open_date is exist - process it [10:20:46]req_shift_open_date [10:20:46]req_shift_open_date done [10:20:46]produce_requested_data done [10:20:46]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52712,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [10:20:46]process_action_free close_receipt [10:20:46]json_value_free [10:20:46]json_value_free done [10:20:46]process_json_proto returns [10:20:46]Send response to host [10:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52712,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [10:20:46]free response buf [10:20:46]execute_script done [10:20:46]execute_script returns [10:20:46]free content buf [10:20:46]Sock 7.Close socket [10:20:46]Sock 7.Thread stoped [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22: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:30]accept exits with 9 [10:30:30]New connection [10:30:30]New thread 3067293028 created [10:30:30]Thread 3067149668 joined [10:30:30]Waiting for new connection... [10:30:30] Sock 9.Parse request [10:30:30]Sock 9.Check first char [10:30:30]Sock 9.First char is OK [10:30:30]request: POST /json_proto HTTP/1.0 [10:30:30]Method: POST [10:30:30]URL: /json_proto [10:30:30]Method is POST - this is cgi request [10:30:30]url: /json_proto [10:30:30]query_string will be loaded in cgi processing [10:30:30]execute_cgi json_proto POST (null) [10:30:30]execute_cgi path=json_proto method=POST [10:30:30]POST find Content-Length [10:30:30]Host: 172.17.60.7:8080 [10:30:30]Content-Length: 1945 [10:30:30]Content-Type: application/json [10:30:30] [10:30:30]POST finish read [10:30:30]Found Content-Length = 1945 [10:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122843", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 552.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:30]execute_script... [10:30:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122843", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 552.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:30]POST & json_proto [10:30:30]process_json_proto [10:30:30]json parsed OK: [10:30:30]protocol is kg_v1.0 [10:30:30]action value=close_receipt [10:30:30]process_action close_receipt [10:30:30]cmd_close_receipt [10:30:30]MH_GetDate [10:30:30]Write to MH i2c: F0 00 00 32 1B 3C [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: F0 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: F0 09 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: F0 09 00 32 1B 00 4B E4 B9 66 63 9B 67 64 5C [10:30:30]GetLastDocTimeStamp 1723458047 [10:30:30]current date 1723458635 [10:30:30]FM_GetShiftState [10:30:30]SAM_PROTO_GetShiftState [10:30:30]wFMCommunicate request_size=4 [10:30:30]MH_SAM_APDU [10:30:30]CAPDU: 80 13 01 00 [10:30:30]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:30]Read from MH i2c: E2 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 0E 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 29 [10:30:30]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:30:30]wFMCommunicate OK [10:30:30]SAM_PROTO_GetShiftState done [10:30:30]FM_GetShiftState done [10:30:30]opened in 1723422684 [10:30:30]opened+sec_in_day 1723509084 [10:30:30]quantity*price = 17000 [10:30:30]sum+1 = 17001 [10:30:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 82.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400655 Семечки ДЖИНН 70г синий 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 552.00 НСП 1% : 4.88 НДС 12% : 58.62 Наличными: 0.00 Безнал.: 552.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 31 12.08.2024 10:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52713 ФПД: 160082041006507 /tax-web-control/client/api/v1/ticket?date=20240812T103035&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52713&fm=160082041006507&tin=02508201610067®Number=0000000000090834&sum=55200 0 [10:30:31]StoreToDocumentArchive [10:30:31]shift 447 fd 52713 [10:30:31]save to /storage/0447/doc_00052713 [10:30:31]save last doc name /storage/0447/doc_00052713 to /storage/kkm_last_doc_name [10:30:31]save OK [10:30:31]Clear old archive folders... [10:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=758 [10:30:31]tlvbuf is 012B6680 [10:30:31]SAM_PROTO_ClearQueue [10:30:31]wFMCommunicate request_size=4 [10:30:31]MH_SAM_APDU [10:30:31]CAPDU: 80 09 00 00 [10:30:31]Write to MH i2c: E2 08 00 40 1B 80 09 00 00 00 00 00 00 CD [10:30:31]Write i2c OK [10:30:31]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [10:30:32]RAPDU: 90 00 [10:30:32]wFMCommunicate OK [10:30:32]SAM_PROTO_ClearQueue done [10:30:32]KKMCreateOFDPacket [10:30:32]OFDProtocolAddRootSTLVToBuf [10:30:32]FM_MakeSignedData [10:30:32]FM_MakeSignedData [10:30:32]SAM_PROTO_SignData [10:30:32]wFMCommunicate request_size=4 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 0D 01 02 [10:30:32]Write to MH i2c: E2 08 00 41 1B 80 0D 01 02 00 00 00 00 D5 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 41 1B 00 90 00 D0 [10:30:32]RAPDU: 90 00 [10:30:32]wFMCommunicate OK [10:30:32]wFMCommunicate request_size=255 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 0D 02 02 FA 03 00 F6 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 [10:30:32]Write to MH i2c: E2 02 01 42 1B 80 0D 02 02 FA 00 03 00 F6 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 00 00 34 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [10:30:32]RAPDU: 90 00 [10:30:32]wFMCommunicate OK [10:30:32]wFMCommunicate request_size=255 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 0D 02 02 FA 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [10:30:32]Write to MH i2c: E2 02 01 43 1B 80 0D 02 02 FA 00 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 DA [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [10:30:32]RAPDU: 90 00 [10:30:32]wFMCommunicate OK [10:30:32]wFMCommunicate request_size=255 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 0D 02 02 FA 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 A0 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B E4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E9 CD [10:30:32]Write to MH i2c: E2 02 01 44 1B 80 0D 02 02 FA 00 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 A0 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B E4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E9 CD 00 00 69 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 44 1B 00 90 00 D3 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=17 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 91 98 01 30 69 AB [10:30:33]Write to MH i2c: E2 14 00 45 1B 80 0D 02 02 0C 00 00 00 35 04 06 00 91 98 01 30 69 AB 00 00 9F [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 03 02 [10:30:33]Write to MH i2c: E2 08 00 46 1B 80 0D 03 02 00 00 00 00 DC [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0B 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0B 00 46 1B 00 6F 3B 56 12 2D B3 84 E6 90 00 39 [10:30:33]RAPDU: 6F 3B 56 12 2D B3 84 E6 90 00 [10:30:33]wFMCommunicate OK [10:30:33]SAM_PROTO_SignData done [10:30:33]FM_MakeSignedData done [10:30:33]CreateOFDProtocolMessage [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 11 00 00 [10:30:33]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 17 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 2F [10:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:30:33]wFMCommunicate OK [10:30:33]CreateOFDProtocolMessage done [10:30:33]OFDSenderStorePacket 52713 [10:30:33]StoreOFDPacket docnum=52713 [10:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0A 03 00 00 B1 5F 02 03 CD B0 5A 03 01 00 03 00 F6 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B E4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E9 CD 00 00 35 04 06 00 91 98 01 30 69 AB 6F 3B 56 12 2D B3 84 E6 [10:30:33]CheckFolder [10:30:33]dirname=/storage/ofd_packets [10:30:33]CheckFolder done [10:30:33]ProducePacketName [10:30:33]name=ofd_packets/00052713 [10:30:33]NVStorageSaveData ofd_packets/00052713 [10:30:33]File name is /storage/ofd_packets/00052713 [10:30:33]Write 808 bytes [10:30:33]NVStorageSaveData done [10:30:33]OFDSenderStorePacket done [10:30:33]KKMCreateOFDPacket done [10:30:33]NVStorageSaveData kkm_last_timestamp [10:30:33]File name is /storage/kkm_last_timestamp [10:30:33]Write 4 bytes [10:30:33]NVStorageSaveData done [10:30:33]ExternCall_PrintAddStr [10:30:33]wPrintStart [10:30:33]Write to MH i2c: 01 00 00 48 1B 63 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 07 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 07 00 48 1B 00 00 00 00 00 FF 0F 78 [10:30:33]RasterBufferAndPrint [10:30:33]line Счет N : (3)122843 [10:30:33]line ИНН: 02508201610067 [10:30:33]line Контрольно-Кассовый Чек [10:30:33]line ПРОДАЖА [10:30:33]line Товар: 4870001571030 [10:30:33]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [10:30:33]line 2.000 * 85.00 [10:30:33]line = 170.00 [10:30:33]line НДС 12% НСП 1% [10:30:33]line > о реализуемом товаре [10:30:33]line Товар: 4700000481453 [10:30:33]line Напиток энерг Nitro Max 0,45 ж/б [10:30:33]line 1.000 * 82.00 [10:30:33]line = 82.00 [10:30:33]line НДС 12% НСП 1% [10:30:33]line > о реализуемом товаре [10:30:33]line Товар: 4630007400655 [10:30:33]line Семечки ДЖИНН 70г синий [10:30:33]line 1.000 * 70.00 [10:30:33]line = 70.00 [10:30:33]line НДС 12% НСП 1% [10:30:33]line > о реализуемом товаре [10:30:33]line Товар: 48745000 [10:30:33]line Сигареты Winston Purple Mix [10:30:33]line 1.000 * 135.00 [10:30:33]line = 135.00 [10:30:33]line НДС 12% НСП 1% [10:30:33]line > о реализуемом товаре [10:30:33]line Товар: 4700000480050 [10:30:33]line Напиток Nitro Energy эн green ж/б 0,45л [10:30:33]line 1.000 * 95.00 [10:30:33]line = 95.00 [10:30:33]line НДС 12% НСП 1% [10:30:33]line > о реализуемом товаре [10:30:33]line ИТОГО: 552.00 [10:30:33]line НСП 1% : 4.88 [10:30:33]line НДС 12% : 58.62 [10:30:33]line Наличными: 0.00 [10:30:33]line Безнал.: 552.00 [10:30:33]line Место: АЗС № 54 "Партнер Нефть" [10:30:33]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [10:30:33]line СНО: Общий режим [10:30:33]line Чек 31 12.08.2024 10:30 [10:30:33]line Смена: 447 ФФД: 1.0 [10:30:33]line ЗНМ: 0300000007 [10:30:33]line РНМ: 0000000000090834 [10:30:33]line Версия ККМ: 001 [10:30:33]line Платежная система: О! деньги [10:30:33]line ФМ: 0000000000874715 [10:30:33]line ФД: 52713 [10:30:33]line ФПД: 160082041006507 [10:30:33]line /tax-web-control/client/api/v1/ticket?date=20240812T103035&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52713&fm=160082041006507&tin=02508201610067®Number=0000000000090834&sum=55200 [10:30:33]OFD Sender: Processing packet 52713 [packets to send 55, broken 54] [10:30:33]ProducePacketName [10:30:33]name=ofd_packets/00052713 [10:30:33]OFD Sender: To server: pG, [10:30:33]CommunicateWithHost lk.salyk.kg:30040 [10:30:33]ConnectInit lk.salyk.kg [10:30:33]line 0 [10:30:33]written 0, free lines is 4095 [10:30:33]Connected sock=10 [10:30:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0A 03 00 00 B1 5F 02 03 CD B0 5A 03 01 00 03 00 F6 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 4B E4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E9 CD 00 00 35 04 06 00 91 98 01 30 69 AB 6F 3B 56 12 2D B3 84 E6 [10:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 AF F4 47 00 57 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 E9 CD 00 00 F4 03 04 00 E5 8B B9 66 B6 04 01 00 00 C1 8B 4B 93 DE AA 90 D1 [10:30:34]CommunicateWithHost err = 0 [10:30:34]CheckOFDResponse [10:30:34]1017 (14) - 77093643461234 [10:30:34]1041 (16) - 0000000000874715 [10:30:34]1040 (4) - 52713 [10:30:34]1012 (4) - 12.08.2024 04:13 [10:30:34]1206 (1) - 0 [10:30:34]OFD Sender: Remove packet 52713 [10:30:34]ProducePacketName [10:30:34]name=ofd_packets/00052713 [10:30:34]NVStorageDeleteData [10:30:34]Write to MH i2c: 01 00 00 8C 1B A7 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 F6 0A AE [10:30:34]RasterBufferAndPrint [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]written 0, free lines is 2815 [10:30:34]MH_Cut [10:30:34]Write to MH i2c: D1 01 00 93 1B 01 80 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 01 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 01 00 93 1B 00 7F [10:30:34]Write to MH i2c: 01 00 00 94 1B AF [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]OFD Sender: No OFD packet to send [10:30:35]*** Cut start [10:30:35]*** Purtial cut [10:30:35]*** Stage 1: CUTSNS_PIN = 1 [10:30:36]Read from MH i2c: 01 [10:30:36]MH_I2C_Read... [10:30:36]*** Stop cut motor [10:30:36]*** Cut end [10:30:36]Read from MH i2c: 01 07 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: 01 07 00 94 1B 00 00 00 00 00 FF 0F C4 [10:30:36]process_action close_receipt done [10:30:36]requested_data is exist [10:30:36]produce_requested_data [10:30:36]requested_item fm.sn is exist - process it [10:30:36]wFMCommunicate request_size=4 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 11 00 00 [10:30:36]Write to MH i2c: E2 08 00 95 1B 80 11 00 00 00 00 00 00 2A [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 17 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 17 00 95 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 7D [10:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:30:36]wFMCommunicate OK [10:30:36]requested_item fd.num is exist - process it [10:30:36]SAM_PROTO_GetFieldsCounters [10:30:36]wFMCommunicate request_size=4 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 13 00 00 [10:30:36]Write to MH i2c: E2 08 00 96 1B 80 13 00 00 00 00 00 00 2D [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 62 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 62 00 96 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E9 CD 00 00 0E 04 04 00 BF 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 20 [10:30: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 E9 CD 00 00 0E 04 04 00 BF 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:30:36]wFMCommunicate OK [10:30:36]SAM_PROTO_GetFieldsCounters done [10:30:36]requested_item shift.num is exist - process it [10:30:36]requested_item shift.opened is exist - process it [10:30:36]req_shift_opened [10:30:36]FM_GetShiftState [10:30:36]SAM_PROTO_GetShiftState [10:30:36]wFMCommunicate request_size=4 [10:30:36]MH_SAM_APDU [10:30:36]CAPDU: 80 13 01 00 [10:30:36]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [10:30:36]Write i2c OK [10:30:36]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 0E 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 8D [10:30:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:30:36]wFMCommunicate OK [10:30:36]SAM_PROTO_GetShiftState done [10:30:36]FM_GetShiftState done [10:30:36]req_shift_opened done [10:30:36]requested_item shift.open_date is exist - process it [10:30:36]req_shift_open_date [10:30:36]req_shift_open_date done [10:30:36]produce_requested_data done [10:30:36]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52713,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [10:30:36]process_action_free close_receipt [10:30:36]json_value_free [10:30:36]json_value_free done [10:30:36]process_json_proto returns [10:30:36]Send response to host [10:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52713,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [10:30:36]free response buf [10:30:36]execute_script done [10:30:36]execute_script returns [10:30:36]free content buf [10:30:36]Sock 9.Close socket [10:30:36]Sock 9.Thread stoped [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [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:36]accept exits with 7 [10:35:36]New connection [10:35:36]New thread 3067149668 created [10:35:36]Thread 3067293028 joined [10:35:36]Waiting for new connection... [10:35:36] Sock 7.Parse request [10:35:36]Sock 7.Check first char [10:35:36]Sock 7.First char is OK [10:35:36]request: POST /json_proto HTTP/1.0 [10:35:36]Method: POST [10:35:36]URL: /json_proto [10:35:36]Method is POST - this is cgi request [10:35:36]url: /json_proto [10:35:36]query_string will be loaded in cgi processing [10:35:36]execute_cgi json_proto POST (null) [10:35:36]execute_cgi path=json_proto method=POST [10:35:36]POST find Content-Length [10:35:36]Host: 172.17.60.7:8080 [10:35:36]Content-Length: 633 [10:35:36]Content-Type: application/json [10:35:36] [10:35:36]POST finish read [10:35:36]Found Content-Length = 633 [10:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122844", "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:35:36]execute_script... [10:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122844", "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:35:36]POST & json_proto [10:35:36]process_json_proto [10:35:36]json parsed OK: [10:35:36]protocol is kg_v1.0 [10:35:36]action value=close_receipt [10:35:36]process_action close_receipt [10:35:36]cmd_close_receipt [10:35:36]MH_GetDate [10:35:36]Write to MH i2c: F0 00 00 98 1B A2 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: F0 09 00 98 1B 00 7D E5 B9 66 63 9B 67 64 F5 [10:35:36]GetLastDocTimeStamp 1723458635 [10:35:36]current date 1723458941 [10:35:36]FM_GetShiftState [10:35:36]SAM_PROTO_GetShiftState [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 13 01 00 [10:35:36]Write to MH i2c: E2 08 00 99 1B 80 13 01 00 00 00 00 00 31 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 0E 00 99 1B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 8F [10:35:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:35:36]wFMCommunicate OK [10:35:36]SAM_PROTO_GetShiftState done [10:35:36]FM_GetShiftState done [10:35:36]opened in 1723422684 [10:35:36]opened+sec_in_day 1723509084 [10:35:36]quantity*price = 7500 [10:35:36]sum+1 = 7501 [10:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 32 12.08.2024 10:35 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52714 ФПД: 234584764167097 /tax-web-control/client/api/v1/ticket?date=20240812T103541&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52714&fm=234584764167097&tin=02508201610067®Number=0000000000090834&sum=7500 0 [10:35:37]StoreToDocumentArchive [10:35:37]shift 447 fd 52714 [10:35:37]save to /storage/0447/doc_00052714 [10:35:37]save last doc name /storage/0447/doc_00052714 to /storage/kkm_last_doc_name [10:35:37]save OK [10:35:37]Clear old archive folders... [10:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:35:37]tlvbuf is B6DFB3B0 [10:35:37]SAM_PROTO_ClearQueue [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 09 00 00 [10:35:37]Write to MH i2c: E2 08 00 A6 1B 80 09 00 00 00 00 00 00 33 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_ClearQueue done [10:35:37]KKMCreateOFDPacket [10:35:37]OFDProtocolAddRootSTLVToBuf [10:35:37]FM_MakeSignedData [10:35:37]FM_MakeSignedData [10:35:37]SAM_PROTO_SignData [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 0D 01 02 [10:35:37]Write to MH i2c: E2 08 00 A7 1B 80 0D 01 02 00 00 00 00 3B [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [10:35:37]RAPDU: 90 00 [10:35:37]wFMCommunicate OK [10:35:37]wFMCommunicate request_size=255 [10:35:37]MH_SAM_APDU [10:35:37]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 20 00 00 00 F4 03 04 00 7D E5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [10:35:37]Write to MH i2c: E2 02 01 A8 1B 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 20 00 00 00 F4 03 04 00 7D E5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 F6 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 A8 1B 00 90 00 37 [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=27 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 02 02 16 34 37 31 35 10 04 04 00 EA CD 00 00 35 04 06 00 D5 5A 85 89 B3 B9 [10:35:38]Write to MH i2c: E2 1E 00 A9 1B 80 0D 02 02 16 00 34 37 31 35 10 04 04 00 EA CD 00 00 35 04 06 00 D5 5A 85 89 B3 B9 00 00 F2 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 03 00 A9 1B 00 90 00 38 [10:35:38]RAPDU: 90 00 [10:35:38]wFMCommunicate OK [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 0D 03 02 [10:35:38]Write to MH i2c: E2 08 00 AA 1B 80 0D 03 02 00 00 00 00 40 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0B 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 0B 00 AA 1B 00 FB 4C E7 BF 94 35 E0 7E 90 00 55 [10:35:38]RAPDU: FB 4C E7 BF 94 35 E0 7E 90 00 [10:35:38]wFMCommunicate OK [10:35:38]SAM_PROTO_SignData done [10:35:38]FM_MakeSignedData done [10:35:38]CreateOFDProtocolMessage [10:35:38]wFMCommunicate request_size=4 [10:35:38]MH_SAM_APDU [10:35:38]CAPDU: 80 11 00 00 [10:35:38]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:38]Read from MH i2c: E2 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: E2 17 00 AB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 93 [10:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:35:38]wFMCommunicate OK [10:35:38]CreateOFDProtocolMessage done [10:35:38]OFDSenderStorePacket 52714 [10:35:38]StoreOFDPacket docnum=52714 [10:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 20 01 00 00 68 86 18 01 41 65 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 20 00 00 00 F4 03 04 00 7D E5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EA CD 00 00 35 04 06 00 D5 5A 85 89 B3 B9 FB 4C E7 BF 94 35 E0 7E [10:35:38]CheckFolder [10:35:38]dirname=/storage/ofd_packets [10:35:38]CheckFolder done [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00052714 [10:35:38]NVStorageSaveData ofd_packets/00052714 [10:35:38]File name is /storage/ofd_packets/00052714 [10:35:38]Write 318 bytes [10:35:38]NVStorageSaveData done [10:35:38]OFDSenderStorePacket done [10:35:38]KKMCreateOFDPacket done [10:35:38]NVStorageSaveData kkm_last_timestamp [10:35:38]File name is /storage/kkm_last_timestamp [10:35:38]Write 4 bytes [10:35:38]NVStorageSaveData done [10:35:38]ExternCall_PrintAddStr [10:35:38]wPrintStart [10:35:38]Write to MH i2c: 01 00 00 AC 1B C7 [10:35:38]Write i2c OK [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 [10:35:38]MH_I2C_Read... [10:35:38]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [10:35:38]RasterBufferAndPrint [10:35:38]line Счет N : (3)122844 [10:35:38]line ИНН: 02508201610067 [10:35:38]line Контрольно-Кассовый Чек [10:35:38]line ПРОДАЖА [10:35:38]line Товар: 40822938 [10:35:38]line Напиток Фанта 0,5л [10:35:38]line 1.000 * 75.00 [10:35:38]line = 75.00 [10:35:38]line НДС 12% НСП 1% [10:35:38]line > о реализуемом товаре [10:35:38]line ИТОГО: 75.00 [10:35:38]line НСП 1% : 0.66 [10:35:38]line НДС 12% : 7.96 [10:35:38]line Наличными: 75.00 [10:35:38]line Безнал.: 0.00 [10:35:38]line Место: АЗС № 54 "Партнер Нефть" [10:35:38]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [10:35:38]line СНО: Общий режим [10:35:38]line Чек 32 12.08.2024 10:35 [10:35:38]line Смена: 447 ФФД: 1.0 [10:35:38]line ЗНМ: 0300000007 [10:35:38]line РНМ: 0000000000090834 [10:35:38]line Версия ККМ: 001 [10:35:38]line ФМ: 0000000000874715 [10:35:38]line ФД: 52714 [10:35:38]line ФПД: 234584764167097 [10:35:38]line /tax-web-control/client/api/v1/ticket?date=20240812T103541&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52714&fm=234584764167097&tin=02508201610067®Number=0000000000090834&sum=7500 [10:35:38]OFD Sender: Processing packet 52714 [packets to send 55, broken 54] [10:35:38]ProducePacketName [10:35:38]name=ofd_packets/00052714 [10:35:38]OFD Sender: To server: pG, [10:35:38]CommunicateWithHost lk.salyk.kg:30040 [10:35:38]ConnectInit lk.salyk.kg [10:35:38]line 0 [10:35:38]written 0, free lines is 4095 [10:35:38]Connected sock=10 [10:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 20 01 00 00 68 86 18 01 41 65 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 20 00 00 00 F4 03 04 00 7D E5 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EA CD 00 00 35 04 06 00 D5 5A 85 89 B3 B9 FB 4C E7 BF 94 35 E0 7E [10:35:39]Write to MH i2c: 01 00 00 D3 1B EE [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 DC 0C DD [10:35:39]RasterBufferAndPrint [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]line [10:35:39]written 0, free lines is 3297 [10:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 77 0E 47 00 AC 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EA CD 00 00 F4 03 04 00 16 8D B9 66 B6 04 01 00 00 A1 87 16 DD A1 75 C9 BF [10:35:39]CommunicateWithHost err = 0 [10:35:39]CheckOFDResponse [10:35:39]1017 (14) - 77093643461234 [10:35:39]1041 (16) - 0000000000874715 [10:35:39]1040 (4) - 52714 [10:35:39]1012 (4) - 12.08.2024 04:18 [10:35:39]1206 (1) - 0 [10:35:39]OFD Sender: Remove packet 52714 [10:35:39]ProducePacketName [10:35:39]name=ofd_packets/00052714 [10:35:39]NVStorageDeleteData [10:35:39]MH_Cut [10:35:39]Write to MH i2c: D1 01 00 DA 1B 01 C7 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: D1 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: D1 01 00 [10:35:39]MH_I2C_Read... [10:35:39]Read from MH i2c: D1 01 00 DA 1B 00 C6 [10:35:39]Write to MH i2c: 01 00 00 DB 1B F6 [10:35:39]Write i2c OK [10:35:39]MH_I2C_Read... [10:35:39]OFD Sender: No OFD packet to send [10:35:39]*** Cut start [10:35:39]*** Purtial cut [10:35:39]*** Stage 1: CUTSNS_PIN = 1 [10:35:40]Read from MH i2c: 01 [10:35:40]MH_I2C_Read... [10:35:40]*** Stop cut motor [10:35:40]*** Cut end [10:35:40]Read from MH i2c: 01 07 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 FF 0F 0B [10:35:40]process_action close_receipt done [10:35:40]requested_data is exist [10:35:40]produce_requested_data [10:35:40]requested_item fm.sn is exist - process it [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 11 00 00 [10:35:40]Write to MH i2c: E2 08 00 DC 1B 80 11 00 00 00 00 00 00 71 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 17 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 17 00 DC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C4 [10:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:35:40]wFMCommunicate OK [10:35:40]requested_item fd.num is exist - process it [10:35:40]SAM_PROTO_GetFieldsCounters [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 13 00 00 [10:35:40]Write to MH i2c: E2 08 00 DD 1B 80 13 00 00 00 00 00 00 74 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 62 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 62 00 DD 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EA CD 00 00 0E 04 04 00 BF 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 6B [10:35: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EA CD 00 00 0E 04 04 00 BF 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:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetFieldsCounters done [10:35:40]requested_item shift.num is exist - process it [10:35:40]requested_item shift.opened is exist - process it [10:35:40]req_shift_opened [10:35:40]FM_GetShiftState [10:35:40]SAM_PROTO_GetShiftState [10:35:40]wFMCommunicate request_size=4 [10:35:40]MH_SAM_APDU [10:35:40]CAPDU: 80 13 01 00 [10:35:40]Write to MH i2c: E2 08 00 DE 1B 80 13 01 00 00 00 00 00 76 [10:35:40]Write i2c OK [10:35:40]MH_I2C_Read... [10:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:40]Read from MH i2c: E2 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 [10:35:40]MH_I2C_Read... [10:35:40]Read from MH i2c: E2 0E 00 DE 1B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D4 [10:35:40]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:35:40]wFMCommunicate OK [10:35:40]SAM_PROTO_GetShiftState done [10:35:40]FM_GetShiftState done [10:35:40]req_shift_opened done [10:35:40]requested_item shift.open_date is exist - process it [10:35:40]req_shift_open_date [10:35:40]req_shift_open_date done [10:35:40]produce_requested_data done [10:35:40]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52714,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [10:35:40]process_action_free close_receipt [10:35:40]json_value_free [10:35:40]json_value_free done [10:35:40]process_json_proto returns [10:35:40]Send response to host [10:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52714,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [10:35:40]free response buf [10:35:40]execute_script done [10:35:40]execute_script returns [10:35:40]free content buf [10:35:40]Sock 7.Close socket [10:35:40]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:26]accept exits with 9 [10:44:26]New connection [10:44:26]New thread 3067293028 created [10:44:26]Thread 3067149668 joined [10:44:26]Waiting for new connection... [10:44:26] Sock 9.Parse request [10:44:26]Sock 9.Check first char [10:44:26]Sock 9.First char is OK [10:44:26]request: POST /json_proto HTTP/1.0 [10:44:26]Method: POST [10:44:26]URL: /json_proto [10:44:26]Method is POST - this is cgi request [10:44:26]url: /json_proto [10:44:26]query_string will be loaded in cgi processing [10:44:26]execute_cgi json_proto POST (null) [10:44:26]execute_cgi path=json_proto method=POST [10:44:26]POST find Content-Length [10:44:26]Host: 172.17.60.7:8080 [10:44:26]Content-Length: 770 [10:44:26]Content-Type: application/json [10:44:26] [10:44:26]POST finish read [10:44:26]Found Content-Length = 770 [10:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122845", "tax_sys" : 0, "items" : [ { "code": "4700040113703", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u042D\u0441\u043A\u0438\u043C\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 \u0413\u043D", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:26]execute_script... [10:44: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)122845", "tax_sys" : 0, "items" : [ { "code": "4700040113703", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u042D\u0441\u043A\u0438\u043C\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 \u0413\u043D", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:26]POST & json_proto [10:44:26]process_json_proto [10:44:26]json parsed OK: [10:44:26]protocol is kg_v1.0 [10:44:26]action value=close_receipt [10:44:26]process_action close_receipt [10:44:26]cmd_close_receipt [10:44:26]MH_GetDate [10:44:26]Write to MH i2c: F0 00 00 DF 1B E9 [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: F0 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: F0 09 00 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: F0 09 00 DF 1B 00 8F E7 B9 66 63 9B 67 64 50 [10:44:26]GetLastDocTimeStamp 1723458941 [10:44:26]current date 1723459471 [10:44:26]FM_GetShiftState [10:44:26]SAM_PROTO_GetShiftState [10:44:26]wFMCommunicate request_size=4 [10:44:26]MH_SAM_APDU [10:44:26]CAPDU: 80 13 01 00 [10:44:26]Write to MH i2c: E2 08 00 E0 1B 80 13 01 00 00 00 00 00 78 [10:44:26]Write i2c OK [10:44:26]MH_I2C_Read... [10:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:26]Read from MH i2c: E2 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 0E 00 [10:44:26]MH_I2C_Read... [10:44:26]Read from MH i2c: E2 0E 00 E0 1B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D6 [10:44:26]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:44:26]wFMCommunicate OK [10:44:26]SAM_PROTO_GetShiftState done [10:44:26]FM_GetShiftState done [10:44:26]opened in 1723422684 [10:44:26]opened+sec_in_day 1723509084 [10:44:26]quantity*price = 4000 [10:44:26]sum+1 = 4001 [10:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 33 12.08.2024 10:44 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52715 ФПД: 109404832631130 /tax-web-control/client/api/v1/ticket?date=20240812T104431&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52715&fm=109404832631130&tin=02508201610067®Number=0000000000090834&sum=4000 0 [10:44:27]StoreToDocumentArchive [10:44:27]shift 447 fd 52715 [10:44:27]save to /storage/0447/doc_00052715 [10:44:27]save last doc name /storage/0447/doc_00052715 to /storage/kkm_last_doc_name [10:44:27]save OK [10:44:27]Clear old archive folders... [10:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=317 [10:44:27]tlvbuf is 01278A20 [10:44:27]SAM_PROTO_ClearQueue [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 09 00 00 [10:44:27]Write to MH i2c: E2 08 00 ED 1B 80 09 00 00 00 00 00 00 7A [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 ED 1B 00 90 00 7C [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]SAM_PROTO_ClearQueue done [10:44:27]KKMCreateOFDPacket [10:44:27]OFDProtocolAddRootSTLVToBuf [10:44:27]FM_MakeSignedData [10:44:27]FM_MakeSignedData [10:44:27]SAM_PROTO_SignData [10:44:27]wFMCommunicate request_size=4 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 0D 01 02 [10:44:27]Write to MH i2c: E2 08 00 EE 1B 80 0D 01 02 00 00 00 00 82 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:27]Read from MH i2c: E2 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 [10:44:27]MH_I2C_Read... [10:44:27]Read from MH i2c: E2 03 00 EE 1B 00 90 00 7D [10:44:27]RAPDU: 90 00 [10:44:27]wFMCommunicate OK [10:44:27]wFMCommunicate request_size=255 [10:44:27]MH_SAM_APDU [10:44:27]CAPDU: 80 0D 02 02 FA 03 00 3D 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 33 37 30 33 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 93 D0 BD 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8F E7 B9 66 [10:44:27]Write to MH i2c: E2 02 01 EF 1B 80 0D 02 02 FA 00 03 00 3D 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 33 37 30 33 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 93 D0 BD 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8F E7 B9 66 00 00 F7 [10:44:27]Write i2c OK [10:44:27]MH_I2C_Read... [10:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:28]Read from MH i2c: E2 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 03 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [10:44:28]RAPDU: 90 00 [10:44:28]wFMCommunicate OK [10:44:28]wFMCommunicate request_size=76 [10:44:28]MH_SAM_APDU [10:44:28]CAPDU: 80 0D 02 02 47 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EB CD 00 00 35 04 06 00 63 80 CC 2F 89 5A [10:44:28]Write to MH i2c: E2 4F 00 F0 1B 80 0D 02 02 47 00 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EB CD 00 00 35 04 06 00 63 80 CC 2F 89 5A 00 00 F6 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:28]Read from MH i2c: E2 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 03 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 03 00 F0 1B 00 90 00 7F [10:44:28]RAPDU: 90 00 [10:44:28]wFMCommunicate OK [10:44:28]wFMCommunicate request_size=4 [10:44:28]MH_SAM_APDU [10:44:28]CAPDU: 80 0D 03 02 [10:44:28]Write to MH i2c: E2 08 00 F1 1B 80 0D 03 02 00 00 00 00 87 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:28]Read from MH i2c: E2 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 0B 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 0B 00 F1 1B 00 2D 40 D0 8D 90 35 96 10 90 00 BD [10:44:28]RAPDU: 2D 40 D0 8D 90 35 96 10 90 00 [10:44:28]wFMCommunicate OK [10:44:28]SAM_PROTO_SignData done [10:44:28]FM_MakeSignedData done [10:44:28]CreateOFDProtocolMessage [10:44:28]wFMCommunicate request_size=4 [10:44:28]MH_SAM_APDU [10:44:28]CAPDU: 80 11 00 00 [10:44:28]Write to MH i2c: E2 08 00 F2 1B 80 11 00 00 00 00 00 00 87 [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:28]Read from MH i2c: E2 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 17 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 17 00 F2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 DA [10:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:44:28]wFMCommunicate OK [10:44:28]CreateOFDProtocolMessage done [10:44:28]OFDSenderStorePacket 52715 [10:44:28]StoreOFDPacket docnum=52715 [10:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 51 01 00 00 AF 7D 49 01 6D 7B 5A 03 01 00 03 00 3D 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 33 37 30 33 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 93 D0 BD 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8F E7 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EB CD 00 00 35 04 06 00 63 80 CC 2F 89 5A 2D 40 D0 8D 90 35 96 10 [10:44:28]CheckFolder [10:44:28]dirname=/storage/ofd_packets [10:44:28]CheckFolder done [10:44:28]ProducePacketName [10:44:28]name=ofd_packets/00052715 [10:44:28]NVStorageSaveData ofd_packets/00052715 [10:44:28]File name is /storage/ofd_packets/00052715 [10:44:28]Write 367 bytes [10:44:28]NVStorageSaveData done [10:44:28]OFDSenderStorePacket done [10:44:28]KKMCreateOFDPacket done [10:44:28]NVStorageSaveData kkm_last_timestamp [10:44:28]File name is /storage/kkm_last_timestamp [10:44:28]Write 4 bytes [10:44:28]NVStorageSaveData done [10:44:28]ExternCall_PrintAddStr [10:44:28]wPrintStart [10:44:28]Write to MH i2c: 01 00 00 F3 1B 0E [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: 01 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: 01 07 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: 01 07 00 F3 1B 00 00 00 00 00 FF 0F 23 [10:44:28]RasterBufferAndPrint [10:44:28]line Счет N : (3)122845 [10:44:28]line ИНН: 02508201610067 [10:44:28]line Контрольно-Кассовый Чек [10:44:28]line ПРОДАЖА [10:44:28]line Товар: 4700040113703 [10:44:28]line Мороженое Эскимо в шоколадной глазури Гн [10:44:28]line 1.000 * 40.00 [10:44:28]line = 40.00 [10:44:28]line НДС 12% НСП 1% [10:44:28]line > о реализуемом товаре [10:44:28]line ИТОГО: 40.00 [10:44:28]line НСП 1% : 0.35 [10:44:28]line НДС 12% : 4.25 [10:44:28]line Наличными: 40.00 [10:44:28]line Безнал.: 0.00 [10:44:28]line Место: АЗС № 54 "Партнер Нефть" [10:44:28]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [10:44:28]line СНО: Общий режим [10:44:28]line Чек 33 12.08.2024 10:44 [10:44:28]line Смена: 447 ФФД: 1.0 [10:44:28]line ЗНМ: 0300000007 [10:44:28]line РНМ: 0000000000090834 [10:44:28]line Версия ККМ: 001 [10:44:28]line ФМ: 0000000000874715 [10:44:28]line ФД: 52715 [10:44:28]line ФПД: 109404832631130 [10:44:28]line /tax-web-control/client/api/v1/ticket?date=20240812T104431&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52715&fm=109404832631130&tin=02508201610067®Number=0000000000090834&sum=4000 [10:44:28]line 0 [10:44:28]OFD Sender: Processing packet 52715 [packets to send 55, broken 54] [10:44:28]ProducePacketName [10:44:28]name=ofd_packets/00052715 [10:44:28]OFD Sender: To server: pG, [10:44:28]CommunicateWithHost lk.salyk.kg:30040 [10:44:28]ConnectInit lk.salyk.kg [10:44:28]written 0, free lines is 4095 [10:44:28]Connected sock=10 [10:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 51 01 00 00 AF 7D 49 01 6D 7B 5A 03 01 00 03 00 3D 01 1E 04 01 00 01 23 04 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 33 37 30 33 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 93 D0 BD 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8F E7 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EB CD 00 00 35 04 06 00 63 80 CC 2F 89 5A 2D 40 D0 8D 90 35 96 10 [10:44:29]Write to MH i2c: 01 00 00 1B 1C 37 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 1B 1C 00 00 00 00 00 BF 0C 09 [10:44:29]RasterBufferAndPrint [10:44:29]line [10:44:29]line [10:44:29]line [10:44:29]line [10:44:29]line [10:44:29]written 0, free lines is 3268 [10:44:29]MH_Cut [10:44:29]Write to MH i2c: D1 01 00 22 1C 01 10 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: D1 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: D1 01 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: D1 01 00 22 1C 00 0F [10:44:29]Write to MH i2c: 01 00 00 23 1C 3F [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 D7 B9 47 00 BE 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EB CD 00 00 F4 03 04 00 28 8F B9 66 B6 04 01 00 00 22 A5 5E EC 08 A5 BC BA [10:44:29]CommunicateWithHost err = 0 [10:44:29]CheckOFDResponse [10:44:29]1017 (14) - 77093643461234 [10:44:29]1041 (16) - 0000000000874715 [10:44:29]1040 (4) - 52715 [10:44:29]1012 (4) - 12.08.2024 04:27 [10:44:29]1206 (1) - 0 [10:44:29]OFD Sender: Remove packet 52715 [10:44:29]ProducePacketName [10:44:29]name=ofd_packets/00052715 [10:44:29]NVStorageDeleteData [10:44:29]OFD Sender: No OFD packet to send [10:44:30]*** Cut start [10:44:30]*** Purtial cut [10:44:30]*** Stage 1: CUTSNS_PIN = 1 [10:44:30]Read from MH i2c: 01 [10:44:30]MH_I2C_Read... [10:44:30]*** Stop cut motor [10:44:30]*** Cut end [10:44:30]Read from MH i2c: 01 07 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 07 00 23 1C 00 00 00 00 00 FF 0F 54 [10:44:30]process_action close_receipt done [10:44:30]requested_data is exist [10:44:30]produce_requested_data [10:44:30]requested_item fm.sn is exist - process it [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 11 00 00 [10:44:30]Write to MH i2c: E2 08 00 24 1C 80 11 00 00 00 00 00 00 BA [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 17 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 17 00 24 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 0D [10:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [10:44:30]wFMCommunicate OK [10:44:30]requested_item fd.num is exist - process it [10:44:30]SAM_PROTO_GetFieldsCounters [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 13 00 00 [10:44:30]Write to MH i2c: E2 08 00 25 1C 80 13 00 00 00 00 00 00 BD [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 62 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 62 00 25 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EB CD 00 00 0E 04 04 00 BF 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 B8 [10:44: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EB CD 00 00 0E 04 04 00 BF 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 [10:44:30]wFMCommunicate OK [10:44:30]SAM_PROTO_GetFieldsCounters done [10:44:30]requested_item shift.num is exist - process it [10:44:30]requested_item shift.opened is exist - process it [10:44:30]req_shift_opened [10:44:30]FM_GetShiftState [10:44:30]SAM_PROTO_GetShiftState [10:44:30]wFMCommunicate request_size=4 [10:44:30]MH_SAM_APDU [10:44:30]CAPDU: 80 13 01 00 [10:44:30]Write to MH i2c: E2 08 00 26 1C 80 13 01 00 00 00 00 00 BF [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:30]Read from MH i2c: E2 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 0E 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: E2 0E 00 26 1C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 1D [10:44:30]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [10:44:30]wFMCommunicate OK [10:44:30]SAM_PROTO_GetShiftState done [10:44:30]FM_GetShiftState done [10:44:30]req_shift_opened done [10:44:30]requested_item shift.open_date is exist - process it [10:44:30]req_shift_open_date [10:44:30]req_shift_open_date done [10:44:30]produce_requested_data done [10:44:30]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52715,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [10:44:30]process_action_free close_receipt [10:44:30]json_value_free [10:44:30]json_value_free done [10:44:30]process_json_proto returns [10:44:30]Send response to host [10:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52715,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [10:44:30]free response buf [10:44:30]execute_script done [10:44:30]execute_script returns [10:44:30]free content buf [10:44:30]Sock 9.Close socket [10:44:30]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04: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:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:03]accept exits with 7 [11:09:03]New connection [11:09:03]New thread 3067149668 created [11:09:03] Sock 7.Parse request [11:09:03]Thread 3067293028 joined [11:09:03]Sock 7.Check first char [11:09:03]Waiting for new connection... [11:09:03]Sock 7.First char is OK [11:09:03]request: POST /json_proto HTTP/1.0 [11:09:03]Method: POST [11:09:03]URL: /json_proto [11:09:03]Method is POST - this is cgi request [11:09:03]url: /json_proto [11:09:03]query_string will be loaded in cgi processing [11:09:03]execute_cgi json_proto POST (null) [11:09:03]execute_cgi path=json_proto method=POST [11:09:03]POST find Content-Length [11:09:03]Host: 172.17.60.7:8080 [11:09:03]Content-Length: 1377 [11:09:03]Content-Type: application/json [11:09:03] [11:09:03]POST finish read [11:09:03]Found Content-Length = 1377 [11:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122846", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47012455", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 Chicken Nuggets \u0441 \u043A\u0443\u0440\u0438\u043D\u043E\u0439 \u043A\u043E\u0442\u043B\u0435\u0442", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:03]execute_script... [11:09: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)122846", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47012455", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 Chicken Nuggets \u0441 \u043A\u0443\u0440\u0438\u043D\u043E\u0439 \u043A\u043E\u0442\u043B\u0435\u0442", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:03]POST & json_proto [11:09:03]process_json_proto [11:09:03]json parsed OK: [11:09:03]protocol is kg_v1.0 [11:09:03]action value=close_receipt [11:09:03]process_action close_receipt [11:09:03]cmd_close_receipt [11:09:03]MH_GetDate [11:09:03]Write to MH i2c: F0 00 00 27 1C 32 [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: F0 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: F0 09 00 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: F0 09 00 27 1C 00 54 ED B9 66 63 9B 67 64 64 [11:09:03]GetLastDocTimeStamp 1723459471 [11:09:03]current date 1723460948 [11:09:03]FM_GetShiftState [11:09:03]SAM_PROTO_GetShiftState [11:09:03]wFMCommunicate request_size=4 [11:09:03]MH_SAM_APDU [11:09:03]CAPDU: 80 13 01 00 [11:09:03]Write to MH i2c: E2 08 00 28 1C 80 13 01 00 00 00 00 00 C1 [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:03]Read from MH i2c: E2 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: E2 0E 00 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: E2 0E 00 28 1C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 1F [11:09:03]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:09:03]wFMCommunicate OK [11:09:03]SAM_PROTO_GetShiftState done [11:09:03]FM_GetShiftState done [11:09:03]opened in 1723422684 [11:09:03]opened+sec_in_day 1723509084 [11:09:03]quantity*price = 11100 [11:09:04]sum+1 = 11101 [11:09:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47012455 Сэндвич Chicken Nuggets с куриной котлет 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.14 Наличными: 0.00 Безнал.: 199.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 34 12.08.2024 11:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874715 ФД: 52716 ФПД: 275118030396472 /tax-web-control/client/api/v1/ticket?date=20240812T110909&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52716&fm=275118030396472&tin=02508201610067®Number=0000000000090834&sum=19900 0 [11:09:04]StoreToDocumentArchive [11:09:04]shift 447 fd 52716 [11:09:04]save to /storage/0447/doc_00052716 [11:09:04]save last doc name /storage/0447/doc_00052716 to /storage/kkm_last_doc_name [11:09:04]save OK [11:09:04]Clear old archive folders... [11:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=502 [11:09:04]tlvbuf is B6DFB190 [11:09:04]SAM_PROTO_ClearQueue [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 09 00 00 [11:09:04]Write to MH i2c: E2 08 00 35 1C 80 09 00 00 00 00 00 00 C3 [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 35 1C 00 90 00 C5 [11:09:05]RAPDU: 90 00 [11:09:05]wFMCommunicate OK [11:09:05]SAM_PROTO_ClearQueue done [11:09:05]KKMCreateOFDPacket [11:09:05]OFDProtocolAddRootSTLVToBuf [11:09:05]FM_MakeSignedData [11:09:05]FM_MakeSignedData [11:09:05]SAM_PROTO_SignData [11:09:05]wFMCommunicate request_size=4 [11:09:05]MH_SAM_APDU [11:09:05]CAPDU: 80 0D 01 02 [11:09:05]Write to MH i2c: E2 08 00 36 1C 80 0D 01 02 00 00 00 00 CB [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 36 1C 00 90 00 C6 [11:09:05]RAPDU: 90 00 [11:09:05]wFMCommunicate OK [11:09:05]wFMCommunicate request_size=255 [11:09:05]MH_SAM_APDU [11:09:05]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 08 00 34 37 30 31 32 34 35 35 06 04 3D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 43 68 69 63 6B 65 6E 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 BE D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 [11:09:05]Write to MH i2c: E2 02 01 37 1C 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 08 00 34 37 30 31 32 34 35 35 06 04 3D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 43 68 69 63 6B 65 6E 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 BE D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 00 00 FB [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 37 1C 00 90 00 C7 [11:09:05]RAPDU: 90 00 [11:09:05]wFMCommunicate OK [11:09:05]wFMCommunicate request_size=255 [11:09:05]MH_SAM_APDU [11:09:05]CAPDU: 80 0D 02 02 FA 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 ED B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EC CD 00 00 35 04 06 00 [11:09:05]Write to MH i2c: E2 02 01 38 1C 80 0D 02 02 FA 00 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 ED B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EC CD 00 00 35 04 06 00 00 00 2C [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 38 1C 00 90 00 C8 [11:09:05]RAPDU: 90 00 [11:09:05]wFMCommunicate OK [11:09:05]wFMCommunicate request_size=11 [11:09:05]MH_SAM_APDU [11:09:05]CAPDU: 80 0D 02 02 06 FA 37 E8 79 1C 38 [11:09:05]Write to MH i2c: E2 0E 00 39 1C 80 0D 02 02 06 00 FA 37 E8 79 1C 38 00 00 C1 [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 39 1C 00 90 00 C9 [11:09:06]RAPDU: 90 00 [11:09:06]wFMCommunicate OK [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 0D 03 02 [11:09:06]Write to MH i2c: E2 08 00 3A 1C 80 0D 03 02 00 00 00 00 D1 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 0B 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 0B 00 3A 1C 00 F3 5E 70 D9 23 E1 02 FF 90 00 71 [11:09:06]RAPDU: F3 5E 70 D9 23 E1 02 FF 90 00 [11:09:06]wFMCommunicate OK [11:09:06]SAM_PROTO_SignData done [11:09:06]FM_MakeSignedData done [11:09:06]CreateOFDProtocolMessage [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 11 00 00 [11:09:06]Write to MH i2c: E2 08 00 3B 1C 80 11 00 00 00 00 00 00 D1 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]OFD Sender: No OFD packet to send [11:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 17 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 17 00 3B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 24 [11:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:09:06]wFMCommunicate OK [11:09:06]CreateOFDProtocolMessage done [11:09:06]OFDSenderStorePacket 52716 [11:09:06]StoreOFDPacket docnum=52716 [11:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0A 02 00 00 55 01 02 02 37 B9 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 08 00 34 37 30 31 32 34 35 35 06 04 3D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 43 68 69 63 6B 65 6E 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 BE D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 ED B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EC CD 00 00 35 04 06 00 FA 37 E8 79 1C 38 F3 5E 70 D9 23 E1 02 FF [11:09:06]CheckFolder [11:09:06]dirname=/storage/ofd_packets [11:09:06]CheckFolder done [11:09:06]ProducePacketName [11:09:06]name=ofd_packets/00052716 [11:09:06]NVStorageSaveData ofd_packets/00052716 [11:09:06]File name is /storage/ofd_packets/00052716 [11:09:06]Write 552 bytes [11:09:06]NVStorageSaveData done [11:09:06]OFDSenderStorePacket done [11:09:06]KKMCreateOFDPacket done [11:09:06]NVStorageSaveData kkm_last_timestamp [11:09:06]File name is /storage/kkm_last_timestamp [11:09:06]Write 4 bytes [11:09:06]NVStorageSaveData done [11:09:06]ExternCall_PrintAddStr [11:09:06]wPrintStart [11:09:06]Write to MH i2c: 01 00 00 3C 1C 58 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 07 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 07 00 3C 1C 00 00 00 00 00 FF 0F 6D [11:09:06]RasterBufferAndPrint [11:09:06]line Счет N : (3)122846 [11:09:06]line ИНН: 02508201610067 [11:09:06]line Контрольно-Кассовый Чек [11:09:06]line ПРОДАЖА [11:09:06]line Товар: 4870001570071 [11:09:06]line Напиток Pepsi 1л [11:09:06]line 1.000 * 111.00 [11:09:06]line = 111.00 [11:09:06]line НДС 12% НСП 1% [11:09:06]line > о реализуемом товаре [11:09:06]line Товар: 47012455 [11:09:06]line Сэндвич Chicken Nuggets с куриной котлет [11:09:06]line 1.000 * 80.00 [11:09:06]line = 80.00 [11:09:06]line НДС 12% НСП 1% [11:09:06]line > о реализуемом товаре [11:09:06]line Товар: 2000031750019 [11:09:06]line Пакет Партнер Нефть [11:09:06]line 2.000 * 4.00 [11:09:06]line = 8.00 [11:09:06]line НДС 12% НСП 1% [11:09:06]line > о реализуемом товаре [11:09:06]line ИТОГО: 199.00 [11:09:06]line НСП 1% : 1.76 [11:09:06]line НДС 12% : 21.14 [11:09:06]line Наличными: 0.00 [11:09:06]line Безнал.: 199.00 [11:09:06]line Место: АЗС № 54 "Партнер Нефть" [11:09:06]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [11:09:06]line СНО: Общий режим [11:09:06]line Чек 34 12.08.2024 11:09 [11:09:06]line Смена: 447 ФФД: 1.0 [11:09:06]line ЗНМ: 0300000007 [11:09:06]line РНМ: 0000000000090834 [11:09:06]line Версия ККМ: 001 [11:09:06]line Платежная система: Бакай Банк [11:09:06]line ФМ: 0000000000874715 [11:09:06]line ФД: 52716 [11:09:06]line ФПД: 275118030396472 [11:09:06]line /tax-web-control/client/api/v1/ticket?date=20240812T110909&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52716&fm=275118030396472&tin=02508201610067®Number=0000000000090834&sum=19900 [11:09:06]line 0 [11:09:06]written 0, free lines is 4095 [11:09:06]OFD Sender: Processing packet 52716 [packets to send 55, broken 54] [11:09:06]ProducePacketName [11:09:06]name=ofd_packets/00052716 [11:09:06]OFD Sender: To server: pG, [11:09:06]CommunicateWithHost lk.salyk.kg:30040 [11:09:06]ConnectInit lk.salyk.kg [11:09:06]Connected sock=10 [11:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0A 02 00 00 55 01 02 02 37 B9 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 08 00 34 37 30 31 32 34 35 35 06 04 3D 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 43 68 69 63 6B 65 6E 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 BE D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 ED B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EC CD 00 00 35 04 06 00 FA 37 E8 79 1C 38 F3 5E 70 D9 23 E1 02 FF [11:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B5 A5 47 00 D8 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EC CD 00 00 F4 03 04 00 EE 94 B9 66 B6 04 01 00 00 A5 55 C5 F6 0B E0 66 06 [11:09:06]CommunicateWithHost err = 0 [11:09:06]CheckOFDResponse [11:09:06]1017 (14) - 77093643461234 [11:09:06]1041 (16) - 0000000000874715 [11:09:06]1040 (4) - 52716 [11:09:06]1012 (4) - 12.08.2024 04:51 [11:09:06]1206 (1) - 0 [11:09:06]OFD Sender: Remove packet 52716 [11:09:06]ProducePacketName [11:09:06]name=ofd_packets/00052716 [11:09:06]NVStorageDeleteData [11:09:06]Write to MH i2c: 01 00 00 72 1C 8E [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 07 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 07 00 72 1C 00 00 00 00 00 DB 0B 7B [11:09:06]RasterBufferAndPrint [11:09:06]line [11:09:06]line [11:09:06]line [11:09:06]line [11:09:06]line [11:09:06]written 0, free lines is 3040 [11:09:06]MH_Cut [11:09:06]Write to MH i2c: D1 01 00 79 1C 01 67 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: D1 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: D1 01 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: D1 01 00 79 1C 00 66 [11:09:06]Write to MH i2c: 01 00 00 7A 1C 96 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:07]OFD Sender: No OFD packet to send [11:09:07]*** Cut start [11:09:07]*** Purtial cut [11:09:07]*** Stage 1: CUTSNS_PIN = 1 [11:09:08]Read from MH i2c: 01 [11:09:08]MH_I2C_Read... [11:09:08]*** Stop cut motor [11:09:08]*** Cut end [11:09:08]Read from MH i2c: 01 07 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: 01 07 00 7A 1C 00 00 00 00 00 FF 0F AB [11:09:08]process_action close_receipt done [11:09:08]requested_data is exist [11:09:08]produce_requested_data [11:09:08]requested_item fm.sn is exist - process it [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 11 00 00 [11:09:08]Write to MH i2c: E2 08 00 7B 1C 80 11 00 00 00 00 00 00 11 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 7B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 64 [11:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:09:08]wFMCommunicate OK [11:09:08]requested_item fd.num is exist - process it [11:09:08]SAM_PROTO_GetFieldsCounters [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 13 00 00 [11:09:08]Write to MH i2c: E2 08 00 7C 1C 80 13 00 00 00 00 00 00 14 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 62 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 62 00 7C 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EC CD 00 00 0E 04 04 00 BF 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 13 [11:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EC CD 00 00 0E 04 04 00 BF 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:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_GetFieldsCounters done [11:09:08]requested_item shift.num is exist - process it [11:09:08]requested_item shift.opened is exist - process it [11:09:08]req_shift_opened [11:09:08]FM_GetShiftState [11:09:08]SAM_PROTO_GetShiftState [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 13 01 00 [11:09:08]Write to MH i2c: E2 08 00 7D 1C 80 13 01 00 00 00 00 00 16 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 0E 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 0E 00 7D 1C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 74 [11:09:08]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_GetShiftState done [11:09:08]FM_GetShiftState done [11:09:08]req_shift_opened done [11:09:08]requested_item shift.open_date is exist - process it [11:09:08]req_shift_open_date [11:09:08]req_shift_open_date done [11:09:08]produce_requested_data done [11:09:08]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52716,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [11:09:08]process_action_free close_receipt [11:09:08]json_value_free [11:09:08]json_value_free done [11:09:08]process_json_proto returns [11:09:08]Send response to host [11:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52716,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [11:09:08]free response buf [11:09:08]execute_script done [11:09:08]execute_script returns [11:09:08]free content buf [11:09:08]Sock 7.Close socket [11:09:08]Sock 7.Thread stoped [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:26]accept exits with 9 [11:13:26]New connection [11:13:26]New thread 3067293028 created [11:13:26]Thread 3067149668 joined [11:13:26]Waiting for new connection... [11:13:26] Sock 9.Parse request [11:13:26]Sock 9.Check first char [11:13:26]Sock 9.First char is OK [11:13:26]request: POST /json_proto HTTP/1.0 [11:13:26]Method: POST [11:13:26]URL: /json_proto [11:13:26]Method is POST - this is cgi request [11:13:26]url: /json_proto [11:13:26]query_string will be loaded in cgi processing [11:13:26]execute_cgi json_proto POST (null) [11:13:26]execute_cgi path=json_proto method=POST [11:13:26]POST find Content-Length [11:13:26]Host: 172.17.60.7:8080 [11:13:26]Content-Length: 1022 [11:13:26]Content-Type: application/json [11:13:26] [11:13:26]POST finish read [11:13:26]Found Content-Length = 1022 [11:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122847", "tax_sys" : 0, "items" : [ { "code": "47000674", "name": "\u0421\u0435\u043D\u0434\u0432\u0438\u0447 Kav-Kev \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:26]execute_script... [11:13: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)122847", "tax_sys" : 0, "items" : [ { "code": "47000674", "name": "\u0421\u0435\u043D\u0434\u0432\u0438\u0447 Kav-Kev \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:26]POST & json_proto [11:13:26]process_json_proto [11:13:26]json parsed OK: [11:13:26]protocol is kg_v1.0 [11:13:26]action value=close_receipt [11:13:26]process_action close_receipt [11:13:26]cmd_close_receipt [11:13:26]MH_GetDate [11:13:26]Write to MH i2c: F0 00 00 7E 1C 89 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 09 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 09 00 7E 1C 00 5B EE B9 66 63 9B 67 64 C3 [11:13:26]GetLastDocTimeStamp 1723460949 [11:13:26]current date 1723461211 [11:13:26]FM_GetShiftState [11:13:26]SAM_PROTO_GetShiftState [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 13 01 00 [11:13:26]Write to MH i2c: E2 08 00 7F 1C 80 13 01 00 00 00 00 00 18 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0E 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0E 00 7F 1C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 76 [11:13:26]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_GetShiftState done [11:13:26]FM_GetShiftState done [11:13:26]opened in 1723422684 [11:13:26]opened+sec_in_day 1723509084 [11:13:26]quantity*price = 8500 [11:13:26]sum+1 = 8501 [11:13:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 35 12.08.2024 11:13 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52717 ФПД: 9833660212270 /tax-web-control/client/api/v1/ticket?date=20240812T111331&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52717&fm=9833660212270&tin=02508201610067®Number=0000000000090834&sum=20500 0 [11:13:27]StoreToDocumentArchive [11:13:27]shift 447 fd 52717 [11:13:27]save to /storage/0447/doc_00052717 [11:13:27]save last doc name /storage/0447/doc_00052717 to /storage/kkm_last_doc_name [11:13:27]save OK [11:13:27]Clear old archive folders... [11:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=422 [11:13:27]tlvbuf is B6FAB380 [11:13:27]SAM_PROTO_ClearQueue [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 09 00 00 [11:13:27]Write to MH i2c: E2 08 00 8C 1C 80 09 00 00 00 00 00 00 1A [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 8C 1C 00 90 00 1C [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_ClearQueue done [11:13:27]KKMCreateOFDPacket [11:13:27]OFDProtocolAddRootSTLVToBuf [11:13:27]FM_MakeSignedData [11:13:27]FM_MakeSignedData [11:13:27]SAM_PROTO_SignData [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 01 02 [11:13:27]Write to MH i2c: E2 08 00 8D 1C 80 0D 01 02 00 00 00 00 22 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 8D 1C 00 90 00 1D [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=255 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 [11:13:27]Write to MH i2c: E2 02 01 8E 1C 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 00 00 03 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 8E 1C 00 90 00 1E [11:13:28]RAPDU: 90 00 [11:13:28]wFMCommunicate OK [11:13:28]wFMCommunicate request_size=181 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B EE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 ED CD 00 00 35 04 06 00 08 F1 93 D2 E4 2E [11:13:28]Write to MH i2c: E2 B8 00 8F 1C 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B EE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 ED CD 00 00 35 04 06 00 08 F1 93 D2 E4 2E 00 00 FF [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 03 00 8F 1C 00 90 00 1F [11:13:28]RAPDU: 90 00 [11:13:28]wFMCommunicate OK [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 0D 03 02 [11:13:28]Write to MH i2c: E2 08 00 90 1C 80 0D 03 02 00 00 00 00 27 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0B 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0B 00 90 1C 00 F8 D4 30 29 69 D1 F0 95 90 00 0C [11:13:28]RAPDU: F8 D4 30 29 69 D1 F0 95 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_SignData done [11:13:28]FM_MakeSignedData done [11:13:28]CreateOFDProtocolMessage [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 11 00 00 [11:13:28]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 7A [11:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:13:28]wFMCommunicate OK [11:13:28]CreateOFDProtocolMessage done [11:13:28]OFDSenderStorePacket 52717 [11:13:28]StoreOFDPacket docnum=52717 [11:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 BA 01 00 00 56 D8 B2 01 E0 25 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B EE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 ED CD 00 00 35 04 06 00 08 F1 93 D2 E4 2E F8 D4 30 29 69 D1 F0 95 [11:13:28]CheckFolder [11:13:28]dirname=/storage/ofd_packets [11:13:28]CheckFolder done [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00052717 [11:13:28]NVStorageSaveData ofd_packets/00052717 [11:13:28]File name is /storage/ofd_packets/00052717 [11:13:28]Write 472 bytes [11:13:28]NVStorageSaveData done [11:13:28]OFDSenderStorePacket done [11:13:28]KKMCreateOFDPacket done [11:13:28]NVStorageSaveData kkm_last_timestamp [11:13:28]File name is /storage/kkm_last_timestamp [11:13:28]Write 4 bytes [11:13:28]NVStorageSaveData done [11:13:28]ExternCall_PrintAddStr [11:13:28]wPrintStart [11:13:28]Write to MH i2c: 01 00 00 92 1C AE [11:13:28]OFD Sender: Processing packet 52717 [packets to send 55, broken 54] [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00052717 [11:13:28]OFD Sender: To server: pG, [11:13:28]CommunicateWithHost lk.salyk.kg:30040 [11:13:28]ConnectInit lk.salyk.kg [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 92 1C 00 00 00 00 00 FF 0F C3 [11:13:28]RasterBufferAndPrint [11:13:28]line Счет N : (3)122847 [11:13:28]line ИНН: 02508201610067 [11:13:28]line Контрольно-Кассовый Чек [11:13:28]line ПРОДАЖА [11:13:28]line Товар: 47000674 [11:13:28]line Сендвич Kav-Kev большой с кетчупом [11:13:28]line 1.000 * 85.00 [11:13:28]line = 85.00 [11:13:28]line НДС 12% НСП 1% [11:13:28]line > о реализуемом товаре [11:13:28]line Товар: 5449000189356 [11:13:28]line Холодный чай Fuse манго ананас 1л [11:13:28]line 1.000 * 120.00 [11:13:28]line = 120.00 [11:13:28]line НДС 12% НСП 1% [11:13:28]line > о реализуемом товаре [11:13:28]line ИТОГО: 205.00 [11:13:28]line НСП 1% : 1.81 [11:13:28]line НДС 12% : 21.77 [11:13:28]line Наличными: 205.00 [11:13:28]line Безнал.: 0.00 [11:13:28]line Место: АЗС № 54 "Партнер Нефть" [11:13:28]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [11:13:28]line СНО: Общий режим [11:13:28]line Чек 35 12.08.2024 11:13 [11:13:28]line Смена: 447 ФФД: 1.0 [11:13:28]line ЗНМ: 0300000007 [11:13:28]line РНМ: 0000000000090834 [11:13:28]line Версия ККМ: 001 [11:13:28]line ФМ: 0000000000874715 [11:13:28]line ФД: 52717 [11:13:28]line ФПД: 9833660212270 [11:13:28]line /tax-web-control/client/api/v1/ticket?date=20240812T111331&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52717&fm=9833660212270&tin=02508201610067®Number=0000000000090834&sum=20500 [11:13:28]line 0 [11:13:28]written 0, free lines is 4095 [11:13:29]Connected sock=10 [11:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 BA 01 00 00 56 D8 B2 01 E0 25 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 08 00 34 37 30 30 30 36 37 34 06 04 39 00 D0 A1 D0 B5 D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 4B 61 76 2D 4B 65 76 20 D0 B1 D0 BE D0 BB D1 8C D1 88 D0 BE D0 B9 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 5B EE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 ED CD 00 00 35 04 06 00 08 F1 93 D2 E4 2E F8 D4 30 29 69 D1 F0 95 [11:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 E8 9D 47 00 F1 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 ED CD 00 00 F4 03 04 00 F4 95 B9 66 B6 04 01 00 00 00 EB 82 9C 59 14 55 8D [11:13:29]CommunicateWithHost err = 0 [11:13:29]CheckOFDResponse [11:13:29]1017 (14) - 77093643461234 [11:13:29]1041 (16) - 0000000000874715 [11:13:29]1040 (4) - 52717 [11:13:29]1012 (4) - 12.08.2024 04:56 [11:13:29]1206 (1) - 0 [11:13:29]OFD Sender: Remove packet 52717 [11:13:29]ProducePacketName [11:13:29]name=ofd_packets/00052717 [11:13:29]NVStorageDeleteData [11:13:29]Write to MH i2c: 01 00 00 C1 1C DD [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 61 0C 51 [11:13:29]RasterBufferAndPrint [11:13:29]line [11:13:29]line [11:13:29]line [11:13:29]line [11:13:29]line [11:13:29]written 0, free lines is 3174 [11:13:29]MH_Cut [11:13:29]Write to MH i2c: D1 01 00 C8 1C 01 B6 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: D1 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: D1 01 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: D1 01 00 C8 1C 00 B5 [11:13:29]Write to MH i2c: 01 00 00 C9 1C E5 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]OFD Sender: No OFD packet to send [11:13:30]*** Cut start [11:13:30]*** Purtial cut [11:13:30]*** Stage 1: CUTSNS_PIN = 1 [11:13:30]Read from MH i2c: 01 [11:13:30]MH_I2C_Read... [11:13:30]*** Stop cut motor [11:13:30]*** Cut end [11:13:30]Read from MH i2c: 01 07 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 C9 1C 00 00 00 00 00 FF 0F FA [11:13:30]process_action close_receipt done [11:13:30]requested_data is exist [11:13:30]produce_requested_data [11:13:30]requested_item fm.sn is exist - process it [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 11 00 00 [11:13:30]Write to MH i2c: E2 08 00 CA 1C 80 11 00 00 00 00 00 00 60 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 17 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 17 00 CA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B3 [11:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:13:30]wFMCommunicate OK [11:13:30]requested_item fd.num is exist - process it [11:13:30]SAM_PROTO_GetFieldsCounters [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 13 00 00 [11:13:30]Write to MH i2c: E2 08 00 CB 1C 80 13 00 00 00 00 00 00 63 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 62 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 62 00 CB 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 ED CD 00 00 0E 04 04 00 BF 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 66 [11:13: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 ED CD 00 00 0E 04 04 00 BF 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:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetFieldsCounters done [11:13:30]requested_item shift.num is exist - process it [11:13:30]requested_item shift.opened is exist - process it [11:13:30]req_shift_opened [11:13:30]FM_GetShiftState [11:13:30]SAM_PROTO_GetShiftState [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 13 01 00 [11:13:30]Write to MH i2c: E2 08 00 CC 1C 80 13 01 00 00 00 00 00 65 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:30]Read from MH i2c: E2 0E 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 CC 1C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C3 [11:13:30]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetShiftState done [11:13:30]FM_GetShiftState done [11:13:30]req_shift_opened done [11:13:30]requested_item shift.open_date is exist - process it [11:13:30]req_shift_open_date [11:13:30]req_shift_open_date done [11:13:30]produce_requested_data done [11:13:30]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52717,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [11:13:30]process_action_free close_receipt [11:13:30]json_value_free [11:13:30]json_value_free done [11:13:30]process_json_proto returns [11:13:30]Send response to host [11:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52717,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [11:13:30]free response buf [11:13:30]execute_script done [11:13:30]execute_script returns [11:13:30]free content buf [11:13:30]Sock 9.Close socket [11:13:30]Sock 9.Thread stoped [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:47]accept exits with 7 [11:25:47]New connection [11:25:47]New thread 3067149668 created [11:25:47]Thread 3067293028 joined [11:25:47]Waiting for new connection... [11:25:47] Sock 7.Parse request [11:25:47]Sock 7.Check first char [11:25:47]Sock 7.First char is OK [11:25:47]request: POST /json_proto HTTP/1.0 [11:25:47]Method: POST [11:25:47]URL: /json_proto [11:25:47]Method is POST - this is cgi request [11:25:47]url: /json_proto [11:25:47]query_string will be loaded in cgi processing [11:25:47]execute_cgi json_proto POST (null) [11:25:47]execute_cgi path=json_proto method=POST [11:25:47]POST find Content-Length [11:25:47]Host: 172.17.60.7:8080 [11:25:47]Content-Length: 957 [11:25:47]Content-Type: application/json [11:25:47] [11:25:47]POST finish read [11:25:47]Found Content-Length = 957 [11:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122848", "tax_sys" : 0, "items" : [ { "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:47]execute_script... [11:25: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)122848", "tax_sys" : 0, "items" : [ { "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": "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 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:47]POST & json_proto [11:25:47]process_json_proto [11:25:47]json parsed OK: [11:25:47]protocol is kg_v1.0 [11:25:47]action value=close_receipt [11:25:47]process_action close_receipt [11:25:47]cmd_close_receipt [11:25:47]MH_GetDate [11:25:47]Write to MH i2c: F0 00 00 CD 1C D8 [11:25:47]Write i2c OK [11:25:47]MH_I2C_Read... [11:25:47]Read from MH i2c: F0 [11:25:47]MH_I2C_Read... [11:25:47]Read from MH i2c: F0 09 00 [11:25:47]MH_I2C_Read... [11:25:47]Read from MH i2c: F0 09 00 CD 1C 00 40 F1 B9 66 63 9B 67 64 FA [11:25:47]GetLastDocTimeStamp 1723461211 [11:25:47]current date 1723461952 [11:25:47]FM_GetShiftState [11:25:47]SAM_PROTO_GetShiftState [11:25:47]wFMCommunicate request_size=4 [11:25:47]MH_SAM_APDU [11:25:47]CAPDU: 80 13 01 00 [11:25:47]Write to MH i2c: E2 08 00 CE 1C 80 13 01 00 00 00 00 00 67 [11:25:47]Write i2c OK [11:25:47]MH_I2C_Read... [11:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:47]Read from MH i2c: E2 [11:25:47]MH_I2C_Read... [11:25:47]Read from MH i2c: E2 0E 00 [11:25:47]MH_I2C_Read... [11:25:47]Read from MH i2c: E2 0E 00 CE 1C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C5 [11:25:47]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:25:47]wFMCommunicate OK [11:25:47]SAM_PROTO_GetShiftState done [11:25:47]FM_GetShiftState done [11:25:47]opened in 1723422684 [11:25:47]opened+sec_in_day 1723509084 [11:25:47]quantity*price = 10000 [11:25:47]sum+1 = 10001 [11:25:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 36 12.08.2024 11:25 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52718 ФПД: 260264700528509 /tax-web-control/client/api/v1/ticket?date=20240812T112552&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52718&fm=260264700528509&tin=02508201610067®Number=0000000000090834&sum=22500 0 [11:25:48]StoreToDocumentArchive [11:25:48]shift 447 fd 52718 [11:25:48]save to /storage/0447/doc_00052718 [11:25:48]save last doc name /storage/0447/doc_00052718 to /storage/kkm_last_doc_name [11:25:48]save OK [11:25:48]Clear old archive folders... [11:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=399 [11:25:48]tlvbuf is B6F2D970 [11:25:48]SAM_PROTO_ClearQueue [11:25:48]wFMCommunicate request_size=4 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 09 00 00 [11:25:48]Write to MH i2c: E2 08 00 DB 1C 80 09 00 00 00 00 00 00 69 [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:48]Read from MH i2c: E2 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 [11:25:48]MH_I2C_Read... [11:25:48]Read from MH i2c: E2 03 00 DB 1C 00 90 00 6B [11:25:48]RAPDU: 90 00 [11:25:48]wFMCommunicate OK [11:25:48]SAM_PROTO_ClearQueue done [11:25:48]KKMCreateOFDPacket [11:25:48]OFDProtocolAddRootSTLVToBuf [11:25:48]FM_MakeSignedData [11:25:48]FM_MakeSignedData [11:25:48]SAM_PROTO_SignData [11:25:48]wFMCommunicate request_size=4 [11:25:48]MH_SAM_APDU [11:25:48]CAPDU: 80 0D 01 02 [11:25:48]Write to MH i2c: E2 08 00 DC 1C 80 0D 01 02 00 00 00 00 71 [11:25:48]Write i2c OK [11:25:48]MH_I2C_Read... [11:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:49]Read from MH i2c: E2 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 03 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 03 00 DC 1C 00 90 00 6C [11:25:49]RAPDU: 90 00 [11:25:49]wFMCommunicate OK [11:25:49]wFMCommunicate request_size=255 [11:25:49]MH_SAM_APDU [11:25:49]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 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 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 FC 03 06 00 E4 57 00 00 00 00 EB 03 [11:25:49]Write to MH i2c: E2 02 01 DD 1C 80 0D 02 02 FA 00 03 00 8F 01 1E 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 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 FC 03 06 00 E4 57 00 00 00 00 EB 03 00 00 A3 [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:49]Read from MH i2c: E2 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 03 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 03 00 DD 1C 00 90 00 6D [11:25:49]RAPDU: 90 00 [11:25:49]wFMCommunicate OK [11:25:49]wFMCommunicate request_size=158 [11:25:49]MH_SAM_APDU [11:25:49]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 F1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EE CD 00 00 35 04 06 00 EC B5 99 05 C7 7D [11:25:49]Write to MH i2c: E2 A1 00 DE 1C 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 F1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EE CD 00 00 35 04 06 00 EC B5 99 05 C7 7D 00 00 C6 [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:49]Read from MH i2c: E2 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 03 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 03 00 DE 1C 00 90 00 6E [11:25:49]RAPDU: 90 00 [11:25:49]wFMCommunicate OK [11:25:49]wFMCommunicate request_size=4 [11:25:49]MH_SAM_APDU [11:25:49]CAPDU: 80 0D 03 02 [11:25:49]Write to MH i2c: E2 08 00 DF 1C 80 0D 03 02 00 00 00 00 76 [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:49]Read from MH i2c: E2 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 0B 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 0B 00 DF 1C 00 6F CB 0D 6C 51 4D 37 18 90 00 17 [11:25:49]RAPDU: 6F CB 0D 6C 51 4D 37 18 90 00 [11:25:49]wFMCommunicate OK [11:25:49]SAM_PROTO_SignData done [11:25:49]FM_MakeSignedData done [11:25:49]CreateOFDProtocolMessage [11:25:49]wFMCommunicate request_size=4 [11:25:49]MH_SAM_APDU [11:25:49]CAPDU: 80 11 00 00 [11:25:49]Write to MH i2c: E2 08 00 E0 1C 80 11 00 00 00 00 00 00 76 [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:49]Read from MH i2c: E2 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 17 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: E2 17 00 E0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C9 [11:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:25:49]wFMCommunicate OK [11:25:49]CreateOFDProtocolMessage done [11:25:49]OFDSenderStorePacket 52718 [11:25:49]StoreOFDPacket docnum=52718 [11:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A3 01 00 00 A2 B7 9B 01 71 6A 5A 03 01 00 03 00 8F 01 1E 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 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 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 F1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EE CD 00 00 35 04 06 00 EC B5 99 05 C7 7D 6F CB 0D 6C 51 4D 37 18 [11:25:49]CheckFolder [11:25:49]dirname=/storage/ofd_packets [11:25:49]CheckFolder done [11:25:49]ProducePacketName [11:25:49]name=ofd_packets/00052718 [11:25:49]NVStorageSaveData ofd_packets/00052718 [11:25:49]File name is /storage/ofd_packets/00052718 [11:25:49]Write 449 bytes [11:25:49]NVStorageSaveData done [11:25:49]OFDSenderStorePacket done [11:25:49]KKMCreateOFDPacket done [11:25:49]NVStorageSaveData kkm_last_timestamp [11:25:49]File name is /storage/kkm_last_timestamp [11:25:49]Write 4 bytes [11:25:49]NVStorageSaveData done [11:25:49]ExternCall_PrintAddStr [11:25:49]wPrintStart [11:25:49]Write to MH i2c: 01 00 00 E1 1C FD [11:25:49]Write i2c OK [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: 01 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: 01 07 00 [11:25:49]MH_I2C_Read... [11:25:49]Read from MH i2c: 01 07 00 E1 1C 00 00 00 00 00 FF 0F 12 [11:25:49]RasterBufferAndPrint [11:25:49]line Счет N : (3)122848 [11:25:49]line ИНН: 02508201610067 [11:25:49]line Контрольно-Кассовый Чек [11:25:49]line ПРОДАЖА [11:25:49]line Товар: 4870002328398 [11:25:49]line Вода ASU пит н.газ мята ПЭТ 1л [11:25:49]line 1.000 * 100.00 [11:25:49]line = 100.00 [11:25:49]line НДС 12% НСП 1% [11:25:49]line > о реализуемом товаре [11:25:49]line Товар: 5449000054227 [11:25:49]line Напиток Кока-Кола 1л [11:25:49]line 1.000 * 125.00 [11:25:49]line = 125.00 [11:25:49]line НДС 12% НСП 1% [11:25:49]line > о реализуемом товаре [11:25:49]line ИТОГО: 225.00 [11:25:49]line НСП 1% : 1.99 [11:25:49]line НДС 12% : 23.89 [11:25:49]line Наличными: 225.00 [11:25:49]line Безнал.: 0.00 [11:25:49]line Место: АЗС № 54 "Партнер Нефть" [11:25:49]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [11:25:49]line СНО: Общий режим [11:25:49]line Чек 36 12.08.2024 11:25 [11:25:49]line Смена: 447 ФФД: 1.0 [11:25:49]line ЗНМ: 0300000007 [11:25:49]line РНМ: 0000000000090834 [11:25:49]line Версия ККМ: 001 [11:25:49]line ФМ: 0000000000874715 [11:25:49]line ФД: 52718 [11:25:49]line ФПД: 260264700528509 [11:25:49]line /tax-web-control/client/api/v1/ticket?date=20240812T112552&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52718&fm=260264700528509&tin=02508201610067®Number=0000000000090834&sum=22500 [11:25:49]line 0 [11:25:49]OFD Sender: Processing packet 52718 [packets to send 55, broken 54] [11:25:49]ProducePacketName [11:25:49]name=ofd_packets/00052718 [11:25:49]OFD Sender: To server: pG, [11:25:49]CommunicateWithHost lk.salyk.kg:30040 [11:25:49]ConnectInit lk.salyk.kg [11:25:49]written 0, free lines is 4095 [11:25:50]Connected sock=10 [11:25:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A3 01 00 00 A2 B7 9B 01 71 6A 5A 03 01 00 03 00 8F 01 1E 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 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 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 40 F1 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EE CD 00 00 35 04 06 00 EC B5 99 05 C7 7D 6F CB 0D 6C 51 4D 37 18 [11:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 82 CB 47 00 8F 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EE CD 00 00 F4 03 04 00 D9 98 B9 66 B6 04 01 00 00 A3 4D 82 EC D3 47 55 98 [11:25:50]CommunicateWithHost err = 0 [11:25:50]CheckOFDResponse [11:25:50]1017 (14) - 77093643461234 [11:25:50]1041 (16) - 0000000000874715 [11:25:50]1040 (4) - 52718 [11:25:50]1012 (4) - 12.08.2024 05:08 [11:25:50]1206 (1) - 0 [11:25:50]OFD Sender: Remove packet 52718 [11:25:50]ProducePacketName [11:25:50]name=ofd_packets/00052718 [11:25:50]NVStorageDeleteData [11:25:50]Write to MH i2c: 01 00 00 0F 1D 2C [11:25:50]Write i2c OK [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: 01 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: 01 07 00 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: 01 07 00 0F 1D 00 00 00 00 00 64 0C A3 [11:25:50]RasterBufferAndPrint [11:25:50]line [11:25:50]line [11:25:50]line [11:25:50]line [11:25:50]line [11:25:50]written 0, free lines is 3178 [11:25:50]MH_Cut [11:25:50]Write to MH i2c: D1 01 00 16 1D 01 05 [11:25:50]Write i2c OK [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: D1 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: D1 01 00 [11:25:50]MH_I2C_Read... [11:25:50]Read from MH i2c: D1 01 00 16 1D 00 04 [11:25:50]Write to MH i2c: 01 00 00 17 1D 34 [11:25:50]Write i2c OK [11:25:50]MH_I2C_Read... [11:25:50]OFD Sender: No OFD packet to send [11:25:51]*** Cut start [11:25:51]*** Purtial cut [11:25:51]*** Stage 1: CUTSNS_PIN = 1 [11:25:51]Read from MH i2c: 01 [11:25:51]MH_I2C_Read... [11:25:51]*** Stop cut motor [11:25:51]*** Cut end [11:25:51]Read from MH i2c: 01 07 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: 01 07 00 17 1D 00 00 00 00 00 FF 0F 49 [11:25:51]process_action close_receipt done [11:25:51]requested_data is exist [11:25:51]produce_requested_data [11:25:51]requested_item fm.sn is exist - process it [11:25:51]wFMCommunicate request_size=4 [11:25:51]MH_SAM_APDU [11:25:51]CAPDU: 80 11 00 00 [11:25:51]Write to MH i2c: E2 08 00 18 1D 80 11 00 00 00 00 00 00 AF [11:25:51]Write i2c OK [11:25:51]MH_I2C_Read... [11:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:51]Read from MH i2c: E2 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 17 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 17 00 18 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 02 [11:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:25:51]wFMCommunicate OK [11:25:51]requested_item fd.num is exist - process it [11:25:51]SAM_PROTO_GetFieldsCounters [11:25:51]wFMCommunicate request_size=4 [11:25:51]MH_SAM_APDU [11:25:51]CAPDU: 80 13 00 00 [11:25:51]Write to MH i2c: E2 08 00 19 1D 80 13 00 00 00 00 00 00 B2 [11:25:51]Write i2c OK [11:25:51]MH_I2C_Read... [11:25:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:51]Read from MH i2c: E2 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 62 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 62 00 19 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EE CD 00 00 0E 04 04 00 BF 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 B9 [11:25:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EE CD 00 00 0E 04 04 00 BF 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:25:51]wFMCommunicate OK [11:25:51]SAM_PROTO_GetFieldsCounters done [11:25:51]requested_item shift.num is exist - process it [11:25:51]requested_item shift.opened is exist - process it [11:25:51]req_shift_opened [11:25:51]FM_GetShiftState [11:25:51]SAM_PROTO_GetShiftState [11:25:51]wFMCommunicate request_size=4 [11:25:51]MH_SAM_APDU [11:25:51]CAPDU: 80 13 01 00 [11:25:51]Write to MH i2c: E2 08 00 1A 1D 80 13 01 00 00 00 00 00 B4 [11:25:51]Write i2c OK [11:25:51]MH_I2C_Read... [11:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:51]Read from MH i2c: E2 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 0E 00 [11:25:51]MH_I2C_Read... [11:25:51]Read from MH i2c: E2 0E 00 1A 1D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 12 [11:25:51]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:25:51]wFMCommunicate OK [11:25:51]SAM_PROTO_GetShiftState done [11:25:51]FM_GetShiftState done [11:25:51]req_shift_opened done [11:25:51]requested_item shift.open_date is exist - process it [11:25:51]req_shift_open_date [11:25:51]req_shift_open_date done [11:25:51]produce_requested_data done [11:25:51]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52718,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [11:25:51]process_action_free close_receipt [11:25:51]json_value_free [11:25:51]json_value_free done [11:25:51]process_json_proto returns [11:25:51]Send response to host [11:25:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52718,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [11:25:51]free response buf [11:25:51]execute_script done [11:25:51]execute_script returns [11:25:51]free content buf [11:25:51]Sock 7.Close socket [11:25:51]Sock 7.Thread stoped [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:44]accept exits with 9 [11:29:44]New connection [11:29:44]New thread 3067293028 created [11:29:44]Thread 3067149668 joined [11:29:44]Waiting for new connection... [11:29:44] Sock 9.Parse request [11:29:44]Sock 9.Check first char [11:29:44]Sock 9.First char is OK [11:29:44]request: POST /json_proto HTTP/1.0 [11:29:44]Method: POST [11:29:44]URL: /json_proto [11:29:44]Method is POST - this is cgi request [11:29:44]url: /json_proto [11:29:44]query_string will be loaded in cgi processing [11:29:44]execute_cgi json_proto POST (null) [11:29:44]execute_cgi path=json_proto method=POST [11:29:44]POST find Content-Length [11:29:44]Host: 172.17.60.7:8080 [11:29:44]Content-Length: 1062 [11:29:44]Content-Type: application/json [11:29:44] [11:29:44]POST finish read [11:29:44]Found Content-Length = 1062 [11:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122849", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:44]execute_script... [11:29: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)122849", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 290.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:44]POST & json_proto [11:29:44]process_json_proto [11:29:44]json parsed OK: [11:29:44]protocol is kg_v1.0 [11:29:44]action value=close_receipt [11:29:44]process_action close_receipt [11:29:44]cmd_close_receipt [11:29:44]MH_GetDate [11:29:44]Write to MH i2c: F0 00 00 1B 1D 27 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 09 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: F0 09 00 1B 1D 00 2D F2 B9 66 63 9B 67 64 37 [11:29:44]GetLastDocTimeStamp 1723461952 [11:29:44]current date 1723462189 [11:29:44]FM_GetShiftState [11:29:44]SAM_PROTO_GetShiftState [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 13 01 00 [11:29:44]Write to MH i2c: E2 08 00 1C 1D 80 13 01 00 00 00 00 00 B6 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 0E 00 1C 1D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 14 [11:29:44]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:29:44]wFMCommunicate OK [11:29:44]SAM_PROTO_GetShiftState done [11:29:44]FM_GetShiftState done [11:29:44]opened in 1723422684 [11:29:44]opened+sec_in_day 1723509084 [11:29:44]quantity*price = 15500 [11:29:44]sum+1 = 15501 [11:29:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.56 НДС 12% : 30.80 Наличными: 0.00 Безнал.: 290.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 37 12.08.2024 11:29 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52719 ФПД: 204822267230481 /tax-web-control/client/api/v1/ticket?date=20240812T112949&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52719&fm=204822267230481&tin=02508201610067®Number=0000000000090834&sum=29000 0 [11:29:45]StoreToDocumentArchive [11:29:45]shift 447 fd 52719 [11:29:45]save to /storage/0447/doc_00052719 [11:29:45]save last doc name /storage/0447/doc_00052719 to /storage/kkm_last_doc_name [11:29:45]save OK [11:29:45]Clear old archive folders... [11:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=382 [11:29:45]tlvbuf is B6EFBBA0 [11:29:45]SAM_PROTO_ClearQueue [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 09 00 00 [11:29:45]Write to MH i2c: E2 08 00 29 1D 80 09 00 00 00 00 00 00 B8 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 29 1D 00 90 00 BA [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]SAM_PROTO_ClearQueue done [11:29:45]KKMCreateOFDPacket [11:29:45]OFDProtocolAddRootSTLVToBuf [11:29:45]FM_MakeSignedData [11:29:45]FM_MakeSignedData [11:29:45]SAM_PROTO_SignData [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 01 02 [11:29:45]Write to MH i2c: E2 08 00 2A 1D 80 0D 01 02 00 00 00 00 C0 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 2A 1D 00 90 00 BB [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=255 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 [11:29:45]Write to MH i2c: E2 02 01 2B 1D 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 01 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:46]OFD Sender: No OFD packet to send [11:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [11:29:46]RAPDU: 90 00 [11:29:46]wFMCommunicate OK [11:29:46]wFMCommunicate request_size=141 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EF CD 00 00 35 04 06 00 BA 48 E6 7A F9 11 [11:29:46]Write to MH i2c: E2 90 00 2C 1D 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EF CD 00 00 35 04 06 00 BA 48 E6 7A F9 11 00 00 17 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 2C 1D 00 90 00 BD [11:29:46]RAPDU: 90 00 [11:29:46]wFMCommunicate OK [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 0D 03 02 [11:29:46]Write to MH i2c: E2 08 00 2D 1D 80 0D 03 02 00 00 00 00 C5 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0B 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0B 00 2D 1D 00 8D C2 DA AA 19 2B 14 AE 90 00 9F [11:29:46]RAPDU: 8D C2 DA AA 19 2B 14 AE 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_SignData done [11:29:46]FM_MakeSignedData done [11:29:46]CreateOFDProtocolMessage [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 11 00 00 [11:29:46]Write to MH i2c: E2 08 00 2E 1D 80 11 00 00 00 00 00 00 C5 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 17 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 17 00 2E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 18 [11:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:29:46]wFMCommunicate OK [11:29:46]CreateOFDProtocolMessage done [11:29:46]OFDSenderStorePacket 52719 [11:29:46]StoreOFDPacket docnum=52719 [11:29:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 92 01 00 00 1D 27 8A 01 03 A9 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EF CD 00 00 35 04 06 00 BA 48 E6 7A F9 11 8D C2 DA AA 19 2B 14 AE [11:29:46]CheckFolder [11:29:46]dirname=/storage/ofd_packets [11:29:46]CheckFolder done [11:29:46]ProducePacketName [11:29:46]name=ofd_packets/00052719 [11:29:46]NVStorageSaveData ofd_packets/00052719 [11:29:46]File name is /storage/ofd_packets/00052719 [11:29:46]Write 432 bytes [11:29:46]NVStorageSaveData done [11:29:46]OFDSenderStorePacket done [11:29:46]KKMCreateOFDPacket done [11:29:46]NVStorageSaveData kkm_last_timestamp [11:29:46]File name is /storage/kkm_last_timestamp [11:29:46]Write 4 bytes [11:29:46]NVStorageSaveData done [11:29:46]ExternCall_PrintAddStr [11:29:46]wPrintStart [11:29:46]Write to MH i2c: 01 00 00 2F 1D 4C [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]OFD Sender: Processing packet 52719 [packets to send 55, broken 54] [11:29:46]Read from MH i2c: ProducePacketName [11:29:46]01 name=ofd_packets/00052719 [11:29:46] [11:29:46]MH_I2C_Read... [11:29:46]OFD Sender: To server: pG, [11:29:46]CommunicateWithHost lk.salyk.kg:30040 [11:29:46]Read from MH i2c: ConnectInit lk.salyk.kg [11:29:46]01 07 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 2F 1D 00 00 00 00 00 FF 0F 61 [11:29:46]RasterBufferAndPrint [11:29:46]line Счет N : (3)122849 [11:29:46]line ИНН: 02508201610067 [11:29:46]line Контрольно-Кассовый Чек [11:29:46]line ПРОДАЖА [11:29:46]line Товар: 5449000000439 [11:29:46]line Напиток Кока-Кола 1,5л [11:29:46]line 1.000 * 155.00 [11:29:46]line = 155.00 [11:29:46]line НДС 12% НСП 1% [11:29:46]line > о реализуемом товаре [11:29:46]line Товар: 48745000 [11:29:46]line Сигареты Winston Purple Mix [11:29:46]line 1.000 * 135.00 [11:29:46]line = 135.00 [11:29:46]line НДС 12% НСП 1% [11:29:46]line > о реализуемом товаре [11:29:46]line ИТОГО: 290.00 [11:29:46]line НСП 1% : 2.56 [11:29:46]line НДС 12% : 30.80 [11:29:46]line Наличными: 0.00 [11:29:46]line Безнал.: 290.00 [11:29:46]line Место: АЗС № 54 "Партнер Нефть" [11:29:46]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [11:29:46]line СНО: Общий режим [11:29:46]line Чек 37 12.08.2024 11:29 [11:29:46]line Смена: 447 ФФД: 1.0 [11:29:46]line ЗНМ: 0300000007 [11:29:46]line РНМ: 0000000000090834 [11:29:46]line Версия ККМ: 001 [11:29:46]line Платежная система: О! деньги [11:29:46]line ФМ: 0000000000874715 [11:29:46]line ФД: 52719 [11:29:46]line ФПД: 204822267230481 [11:29:46]line /tax-web-control/client/api/v1/ticket?date=20240812T112949&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52719&fm=204822267230481&tin=02508201610067®Number=0000000000090834&sum=29000 [11:29:46]line 0 [11:29:46]written 0, free lines is 4095 [11:29:46]Connected sock=12 [11:29:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 92 01 00 00 1D 27 8A 01 03 A9 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 71 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EF CD 00 00 35 04 06 00 BA 48 E6 7A F9 11 8D C2 DA AA 19 2B 14 AE [11:29:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 5C CE 47 00 2C 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 EF CD 00 00 F4 03 04 00 C6 99 B9 66 B6 04 01 00 00 2B 9E DD 71 CB 5B E0 12 [11:29:47]CommunicateWithHost err = 0 [11:29:47]CheckOFDResponse [11:29:47]1017 (14) - 77093643461234 [11:29:47]1041 (16) - 0000000000874715 [11:29:47]1040 (4) - 52719 [11:29:47]1012 (4) - 12.08.2024 05:12 [11:29:47]1206 (1) - 0 [11:29:47]OFD Sender: Remove packet 52719 [11:29:47]ProducePacketName [11:29:47]name=ofd_packets/00052719 [11:29:47]NVStorageDeleteData [11:29:47]Write to MH i2c: 01 00 00 5E 1D 7B [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 5E 1D 00 00 00 00 00 4D 0C DB [11:29:47]RasterBufferAndPrint [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]written 0, free lines is 3154 [11:29:47]MH_Cut [11:29:47]Write to MH i2c: D1 01 00 65 1D 01 54 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 01 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 01 00 65 1D 00 53 [11:29:47]Write to MH i2c: 01 00 00 66 1D 83 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]OFD Sender: No OFD packet to send [11:29:48]*** Cut start [11:29:48]*** Purtial cut [11:29:48]*** Stage 1: CUTSNS_PIN = 1 [11:29:48]Read from MH i2c: 01 [11:29:48]MH_I2C_Read... [11:29:48]*** Stop cut motor [11:29:48]*** Cut end [11:29:48]Read from MH i2c: 01 07 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 FF 0F 98 [11:29:48]process_action close_receipt done [11:29:48]requested_data is exist [11:29:48]produce_requested_data [11:29:48]requested_item fm.sn is exist - process it [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 11 00 00 [11:29:48]Write to MH i2c: E2 08 00 67 1D 80 11 00 00 00 00 00 00 FE [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 17 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 17 00 67 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 51 [11:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:29:48]wFMCommunicate OK [11:29:48]requested_item fd.num is exist - process it [11:29:48]SAM_PROTO_GetFieldsCounters [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 13 00 00 [11:29:48]Write to MH i2c: E2 08 00 68 1D 80 13 00 00 00 00 00 00 01 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 62 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 62 00 68 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EF CD 00 00 0E 04 04 00 BF 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 0C [11:29: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 EF CD 00 00 0E 04 04 00 BF 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:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_GetFieldsCounters done [11:29:48]requested_item shift.num is exist - process it [11:29:48]requested_item shift.opened is exist - process it [11:29:48]req_shift_opened [11:29:48]FM_GetShiftState [11:29:48]SAM_PROTO_GetShiftState [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 13 01 00 [11:29:48]Write to MH i2c: E2 08 00 69 1D 80 13 01 00 00 00 00 00 03 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:48]Read from MH i2c: E2 0E 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0E 00 69 1D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 61 [11:29:48]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_GetShiftState done [11:29:48]FM_GetShiftState done [11:29:48]req_shift_opened done [11:29:48]requested_item shift.open_date is exist - process it [11:29:48]req_shift_open_date [11:29:48]req_shift_open_date done [11:29:48]produce_requested_data done [11:29:48]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52719,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [11:29:48]process_action_free close_receipt [11:29:48]json_value_free [11:29:48]json_value_free done [11:29:48]process_json_proto returns [11:29:48]Send response to host [11:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52719,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [11:29:48]free response buf [11:29:48]execute_script done [11:29:48]execute_script returns [11:29:48]free content buf [11:29:48]Sock 9.Close socket [11:29:48]Sock 9.Thread stoped [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:00]accept exits with 7 [11:33:00]New connection [11:33:00]New thread 3067149668 created [11:33:00]Thread 3067293028 joined [11:33:00]Waiting for new connection... [11:33:00] Sock 7.Parse request [11:33:00]Sock 7.Check first char [11:33:00]Sock 7.First char is OK [11:33:00]request: POST /json_proto HTTP/1.0 [11:33:00]Method: POST [11:33:00]URL: /json_proto [11:33:00]Method is POST - this is cgi request [11:33:00]url: /json_proto [11:33:00]query_string will be loaded in cgi processing [11:33:00]execute_cgi json_proto POST (null) [11:33:00]execute_cgi path=json_proto method=POST [11:33:00]POST find Content-Length [11:33:00]Host: 172.17.60.7:8080 [11:33:00]Content-Length: 865 [11:33:00]Content-Type: application/json [11:33:00] [11:33:00]POST finish read [11:33:00]Found Content-Length = 865 [11:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122850", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:00]execute_script... [11:33: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)122850", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:00]POST & json_proto [11:33:00]process_json_proto [11:33:00]json parsed OK: [11:33:00]protocol is kg_v1.0 [11:33:00]action value=close_receipt [11:33:00]process_action close_receipt [11:33:00]cmd_close_receipt [11:33:00]MH_GetDate [11:33:00]Write to MH i2c: F0 00 00 6A 1D 76 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: F0 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: F0 09 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: F0 09 00 6A 1D 00 F1 F2 B9 66 63 9B 67 64 4A [11:33:00]GetLastDocTimeStamp 1723462189 [11:33:00]current date 1723462385 [11:33:00]FM_GetShiftState [11:33:00]SAM_PROTO_GetShiftState [11:33:00]wFMCommunicate request_size=4 [11:33:00]MH_SAM_APDU [11:33:00]CAPDU: 80 13 01 00 [11:33:00]Write to MH i2c: E2 08 00 6B 1D 80 13 01 00 00 00 00 00 05 [11:33:00]Write i2c OK [11:33:00]MH_I2C_Read... [11:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:00]Read from MH i2c: E2 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 0E 00 [11:33:00]MH_I2C_Read... [11:33:00]Read from MH i2c: E2 0E 00 6B 1D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 63 [11:33:00]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:33:00]wFMCommunicate OK [11:33:00]SAM_PROTO_GetShiftState done [11:33:00]FM_GetShiftState done [11:33:00]opened in 1723422684 [11:33:00]opened+sec_in_day 1723509084 [11:33:00]quantity*price = 9500 [11:33:00]sum+1 = 9501 [11:33:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 38 12.08.2024 11:33 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52720 ФПД: 25852586085419 /tax-web-control/client/api/v1/ticket?date=20240812T113305&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52720&fm=25852586085419&tin=02508201610067®Number=0000000000090834&sum=9500 0 [11:33:01]StoreToDocumentArchive [11:33:01]shift 447 fd 52720 [11:33:01]save to /storage/0447/doc_00052720 [11:33:01]save last doc name /storage/0447/doc_00052720 to /storage/kkm_last_doc_name [11:33:01]save OK [11:33:01]Clear old archive folders... [11:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:33:01]tlvbuf is B6EFB710 [11:33:01]SAM_PROTO_ClearQueue [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 09 00 00 [11:33:01]Write to MH i2c: E2 08 00 78 1D 80 09 00 00 00 00 00 00 07 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_ClearQueue done [11:33:01]KKMCreateOFDPacket [11:33:01]OFDProtocolAddRootSTLVToBuf [11:33:01]FM_MakeSignedData [11:33:01]FM_MakeSignedData [11:33:01]SAM_PROTO_SignData [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 01 02 [11:33:01]Write to MH i2c: E2 08 00 79 1D 80 0D 01 02 00 00 00 00 0F [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=255 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F1 F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 [11:33:01]Write to MH i2c: E2 02 01 7A 1D 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F1 F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 00 00 19 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 7A 1D 00 90 00 0B [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=61 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F0 CD 00 00 35 04 06 00 17 83 46 35 CC 2B [11:33:01]Write to MH i2c: E2 40 00 7B 1D 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F0 CD 00 00 35 04 06 00 17 83 46 35 CC 2B 00 00 0F [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [11:33:01]RAPDU: 90 00 [11:33:01]wFMCommunicate OK [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 0D 03 02 [11:33:01]Write to MH i2c: E2 08 00 7C 1D 80 0D 03 02 00 00 00 00 14 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0B 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 0B 00 7C 1D 00 AB 5B 75 FF 56 D4 65 26 90 00 44 [11:33:01]RAPDU: AB 5B 75 FF 56 D4 65 26 90 00 [11:33:01]wFMCommunicate OK [11:33:01]SAM_PROTO_SignData done [11:33:01]FM_MakeSignedData done [11:33:01]CreateOFDProtocolMessage [11:33:01]wFMCommunicate request_size=4 [11:33:01]MH_SAM_APDU [11:33:01]CAPDU: 80 11 00 00 [11:33:01]Write to MH i2c: E2 08 00 7D 1D 80 11 00 00 00 00 00 00 14 [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:01]Read from MH i2c: E2 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: E2 17 00 7D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 67 [11:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:33:01]wFMCommunicate OK [11:33:01]CreateOFDProtocolMessage done [11:33:01]OFDSenderStorePacket 52720 [11:33:01]StoreOFDPacket docnum=52720 [11:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 6C F2 3A 01 EE 06 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F1 F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F0 CD 00 00 35 04 06 00 17 83 46 35 CC 2B AB 5B 75 FF 56 D4 65 26 [11:33:01]CheckFolder [11:33:01]dirname=/storage/ofd_packets [11:33:01]CheckFolder done [11:33:01]ProducePacketName [11:33:01]name=ofd_packets/00052720 [11:33:01]NVStorageSaveData ofd_packets/00052720 [11:33:01]File name is /storage/ofd_packets/00052720 [11:33:01]Write 352 bytes [11:33:01]NVStorageSaveData done [11:33:01]OFDSenderStorePacket done [11:33:01]KKMCreateOFDPacket done [11:33:01]NVStorageSaveData kkm_last_timestamp [11:33:01]File name is /storage/kkm_last_timestamp [11:33:01]Write 4 bytes [11:33:01]NVStorageSaveData done [11:33:01]ExternCall_PrintAddStr [11:33:01]wPrintStart [11:33:01]Write to MH i2c: 01 00 00 7E 1D 9B [11:33:01]Write i2c OK [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 [11:33:01]MH_I2C_Read... [11:33:01]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 FF 0F B0 [11:33:01]RasterBufferAndPrint [11:33:01]line Счет N : (3)122850 [11:33:01]line ИНН: 02508201610067 [11:33:01]line Контрольно-Кассовый Чек [11:33:01]line ПРОДАЖА [11:33:01]line Товар: 4700000482740 [11:33:01]line Напиток Nitro Fr газ апельсин ж/б 0,45л [11:33:01]line 1.000 * 95.00 [11:33:01]line = 95.00 [11:33:01]line НДС 12% НСП 1% [11:33:01]line > о реализуемом товаре [11:33:01]line ИТОГО: 95.00 [11:33:01]line НСП 1% : 0.84 [11:33:01]line НДС 12% : 10.09 [11:33:01]line Наличными: 0.00 [11:33:01]line Безнал.: 95.00 [11:33:01]line Место: АЗС № 54 "Партнер Нефть" [11:33:01]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [11:33:01]line СНО: Общий режим [11:33:01]line Чек 38 12.08.2024 11:33 [11:33:01]line Смена: 447 ФФД: 1.0 [11:33:01]line ЗНМ: 0300000007 [11:33:01]line РНМ: 0000000000090834 [11:33:01]line Версия ККМ: 001 [11:33:01]line Платежная система: О! деньги [11:33:01]line ФМ: 0000000000874715 [11:33:01]line ФД: 52720 [11:33:01]line ФПД: 25852586085419 [11:33:01]line /tax-web-control/client/api/v1/ticket?date=20240812T113305&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52720&fm=25852586085419&tin=02508201610067®Number=0000000000090834&sum=9500 [11:33:02]OFD Sender: Processing packet 52720 [packets to send 55, broken 54] [11:33:02]ProducePacketName [11:33:02]name=ofd_packets/00052720 [11:33:02]OFD Sender: To server: pG, [11:33:02]CommunicateWithHost lk.salyk.kg:30040 [11:33:02]ConnectInit lk.salyk.kg [11:33:02]line 0 [11:33:02]written 0, free lines is 4095 [11:33:02]Connected sock=10 [11:33:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 6C F2 3A 01 EE 06 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F1 F2 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F0 CD 00 00 35 04 06 00 17 83 46 35 CC 2B AB 5B 75 FF 56 D4 65 26 [11:33:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B3 6A 47 00 EC 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F0 CD 00 00 F4 03 04 00 8A 9A B9 66 B6 04 01 00 00 32 BD 81 84 77 80 43 D0 [11:33:02]CommunicateWithHost err = 0 [11:33:02]CheckOFDResponse [11:33:02]1017 (14) - 77093643461234 [11:33:02]1041 (16) - 0000000000874715 [11:33:02]1040 (4) - 52720 [11:33:02]1012 (4) - 12.08.2024 05:15 [11:33:02]1206 (1) - 0 [11:33:02]OFD Sender: Remove packet 52720 [11:33:02]ProducePacketName [11:33:02]name=ofd_packets/00052720 [11:33:02]NVStorageDeleteData [11:33:02]Write to MH i2c: 01 00 00 A8 1D C5 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: 01 07 00 A8 1D 00 00 00 00 00 A7 0C 7F [11:33:02]RasterBufferAndPrint [11:33:02]line [11:33:02]line [11:33:02]line [11:33:02]line [11:33:02]line [11:33:02]written 0, free lines is 3243 [11:33:02]MH_Cut [11:33:02]Write to MH i2c: D1 01 00 AF 1D 01 9E [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: D1 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: D1 01 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: D1 01 00 AF 1D 00 9D [11:33:02]Write to MH i2c: 01 00 00 B0 1D CD [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:03]OFD Sender: No OFD packet to send [11:33:03]*** Cut start [11:33:03]*** Purtial cut [11:33:03]*** Stage 1: CUTSNS_PIN = 1 [11:33:03]Read from MH i2c: 01 [11:33:03]MH_I2C_Read... [11:33:03]*** Stop cut motor [11:33:03]*** Cut end [11:33:03]Read from MH i2c: 01 07 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: 01 07 00 B0 1D 00 00 00 00 00 FF 0F E2 [11:33:03]process_action close_receipt done [11:33:03]requested_data is exist [11:33:03]produce_requested_data [11:33:03]requested_item fm.sn is exist - process it [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 11 00 00 [11:33:03]Write to MH i2c: E2 08 00 B1 1D 80 11 00 00 00 00 00 00 48 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 17 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 17 00 B1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9B [11:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:33:04]wFMCommunicate OK [11:33:04]requested_item fd.num is exist - process it [11:33:04]SAM_PROTO_GetFieldsCounters [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 13 00 00 [11:33:04]Write to MH i2c: E2 08 00 B2 1D 80 13 00 00 00 00 00 00 4B [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 62 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 62 00 B2 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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F0 CD 00 00 0E 04 04 00 BF 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 5A [11:33: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F0 CD 00 00 0E 04 04 00 BF 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 [11:33:04]wFMCommunicate OK [11:33:04]SAM_PROTO_GetFieldsCounters done [11:33:04]requested_item shift.num is exist - process it [11:33:04]requested_item shift.opened is exist - process it [11:33:04]req_shift_opened [11:33:04]FM_GetShiftState [11:33:04]SAM_PROTO_GetShiftState [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 13 01 00 [11:33:04]Write to MH i2c: E2 08 00 B3 1D 80 13 01 00 00 00 00 00 4D [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0E 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0E 00 B3 1D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AB [11:33:04]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:33:04]wFMCommunicate OK [11:33:04]SAM_PROTO_GetShiftState done [11:33:04]FM_GetShiftState done [11:33:04]req_shift_opened done [11:33:04]requested_item shift.open_date is exist - process it [11:33:04]req_shift_open_date [11:33:04]req_shift_open_date done [11:33:04]produce_requested_data done [11:33:04]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52720,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [11:33:04]process_action_free close_receipt [11:33:04]json_value_free [11:33:04]json_value_free done [11:33:04]process_json_proto returns [11:33:04]Send response to host [11:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52720,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [11:33:04]free response buf [11:33:04]execute_script done [11:33:04]execute_script returns [11:33:04]free content buf [11:33:04]Sock 7.Close socket [11:33:04]Sock 7.Thread stoped [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:47]accept exits with 9 [11:38:47]New connection [11:38:47]New thread 3067293028 created [11:38:47]Thread 3067149668 joined [11:38:47]Waiting for new connection... [11:38:47] Sock 9.Parse request [11:38:47]Sock 9.Check first char [11:38:47]Sock 9.First char is OK [11:38:47]request: POST /json_proto HTTP/1.0 [11:38:47]Method: POST [11:38:47]URL: /json_proto [11:38:47]Method is POST - this is cgi request [11:38:47]url: /json_proto [11:38:47]query_string will be loaded in cgi processing [11:38:47]execute_cgi json_proto POST (null) [11:38:47]execute_cgi path=json_proto method=POST [11:38:47]POST find Content-Length [11:38:47]Host: 172.17.60.7:8080 [11:38:47]Content-Length: 1057 [11:38:47]Content-Type: application/json [11:38:47] [11:38:47]POST finish read [11:38:47]Found Content-Length = 1057 [11:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122851", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:47]execute_script... [11:38: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)122851", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:47]POST & json_proto [11:38:47]process_json_proto [11:38:47]json parsed OK: [11:38:47]protocol is kg_v1.0 [11:38:47]action value=close_receipt [11:38:47]process_action close_receipt [11:38:47]cmd_close_receipt [11:38:47]MH_GetDate [11:38:47]Write to MH i2c: F0 00 00 B4 1D C0 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: F0 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: F0 09 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: F0 09 00 B4 1D 00 4C F4 B9 66 63 9B 67 64 F1 [11:38:47]GetLastDocTimeStamp 1723462385 [11:38:47]current date 1723462732 [11:38:47]FM_GetShiftState [11:38:47]SAM_PROTO_GetShiftState [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 13 01 00 [11:38:47]Write to MH i2c: E2 08 00 B5 1D 80 13 01 00 00 00 00 00 4F [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 0E 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 0E 00 B5 1D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AD [11:38:47]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:38:47]wFMCommunicate OK [11:38:47]SAM_PROTO_GetShiftState done [11:38:47]FM_GetShiftState done [11:38:47]opened in 1723422684 [11:38:47]opened+sec_in_day 1723509084 [11:38:47]quantity*price = 9500 [11:38:47]sum+1 = 9501 [11:38:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.43 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 39 12.08.2024 11:38 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52721 ФПД: 60318057575750 /tax-web-control/client/api/v1/ticket?date=20240812T113852&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52721&fm=60318057575750&tin=02508201610067®Number=0000000000090834&sum=23000 0 [11:38:48]StoreToDocumentArchive [11:38:48]shift 447 fd 52721 [11:38:48]save to /storage/0447/doc_00052721 [11:38:48]save last doc name /storage/0447/doc_00052721 to /storage/kkm_last_doc_name [11:38:48]save OK [11:38:48]Clear old archive folders... [11:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=395 [11:38:48]tlvbuf is 01296700 [11:38:48]SAM_PROTO_ClearQueue [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 09 00 00 [11:38:48]Write to MH i2c: E2 08 00 C2 1D 80 09 00 00 00 00 00 00 51 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 03 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 03 00 C2 1D 00 90 00 53 [11:38:48]RAPDU: 90 00 [11:38:48]wFMCommunicate OK [11:38:48]SAM_PROTO_ClearQueue done [11:38:48]KKMCreateOFDPacket [11:38:48]OFDProtocolAddRootSTLVToBuf [11:38:48]FM_MakeSignedData [11:38:48]FM_MakeSignedData [11:38:48]SAM_PROTO_SignData [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 0D 01 02 [11:38:48]Write to MH i2c: E2 08 00 C3 1D 80 0D 01 02 00 00 00 00 59 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 03 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 03 00 C3 1D 00 90 00 54 [11:38:48]RAPDU: 90 00 [11:38:48]wFMCommunicate OK [11:38:48]wFMCommunicate request_size=255 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 [11:38:48]Write to MH i2c: E2 02 01 C4 1D 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 00 00 3F [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 03 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 03 00 C4 1D 00 90 00 55 [11:38:49]RAPDU: 90 00 [11:38:49]wFMCommunicate OK [11:38:49]wFMCommunicate request_size=154 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 0D 02 02 95 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 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4C F4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F1 CD 00 00 35 04 06 00 36 DB E4 65 35 46 [11:38:49]Write to MH i2c: E2 9D 00 C5 1D 80 0D 02 02 95 00 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 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4C F4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F1 CD 00 00 35 04 06 00 36 DB E4 65 35 46 00 00 25 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 03 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 03 00 C5 1D 00 90 00 56 [11:38:49]RAPDU: 90 00 [11:38:49]wFMCommunicate OK [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 0D 03 02 [11:38:49]Write to MH i2c: E2 08 00 C6 1D 80 0D 03 02 00 00 00 00 5E [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0B 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0B 00 C6 1D 00 03 8E FE B3 E5 56 40 30 90 00 4C [11:38:49]RAPDU: 03 8E FE B3 E5 56 40 30 90 00 [11:38:49]wFMCommunicate OK [11:38:49]SAM_PROTO_SignData done [11:38:49]FM_MakeSignedData done [11:38:49]CreateOFDProtocolMessage [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 11 00 00 [11:38:49]Write to MH i2c: E2 08 00 C7 1D 80 11 00 00 00 00 00 00 5E [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 17 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 17 00 C7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B1 [11:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:38:49]wFMCommunicate OK [11:38:49]CreateOFDProtocolMessage done [11:38:49]OFDSenderStorePacket 52721 [11:38:49]StoreOFDPacket docnum=52721 [11:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 9F 01 00 00 26 C5 97 01 7D 70 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4C F4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F1 CD 00 00 35 04 06 00 36 DB E4 65 35 46 03 8E FE B3 E5 56 40 30 [11:38:49]CheckFolder [11:38:49]dirname=/storage/ofd_packets [11:38:49]CheckFolder done [11:38:49]ProducePacketName [11:38:49]name=ofd_packets/00052721 [11:38:49]NVStorageSaveData ofd_packets/00052721 [11:38:49]File name is /storage/ofd_packets/00052721 [11:38:49]Write 445 bytes [11:38:49]NVStorageSaveData done [11:38:49]OFDSenderStorePacket done [11:38:49]KKMCreateOFDPacket done [11:38:49]NVStorageSaveData kkm_last_timestamp [11:38:49]File name is /storage/kkm_last_timestamp [11:38:49]Write 4 bytes [11:38:49]NVStorageSaveData done [11:38:49]ExternCall_PrintAddStr [11:38:49]wPrintStart [11:38:49]Write to MH i2c: 01 00 00 C8 1D E5 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: 01 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: 01 07 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: 01 07 00 C8 1D 00 00 00 00 00 FF 0F FA [11:38:49]RasterBufferAndPrint [11:38:49]line Счет N : (3)122851 [11:38:49]line ИНН: 02508201610067 [11:38:49]line Контрольно-Кассовый Чек [11:38:49]line ПРОДАЖА [11:38:49]line Товар: 4700000480050 [11:38:49]line Напиток Nitro Energy эн green ж/б 0,45л [11:38:49]line 1.000 * 95.00 [11:38:49]line = 95.00 [11:38:49]line НДС 12% НСП 1% [11:38:49]line > о реализуемом товаре [11:38:49]line Товар: 48745000 [11:38:49]line Сигареты Winston Purple Mix [11:38:49]line 1.000 * 135.00 [11:38:49]line = 135.00 [11:38:49]line НДС 12% НСП 1% [11:38:49]line > о реализуемом товаре [11:38:49]line ИТОГО: 230.00 [11:38:49]line НСП 1% : 2.03 [11:38:49]line НДС 12% : 24.43 [11:38:49]line Наличными: 0.00 [11:38:49]line Безнал.: 230.00 [11:38:49]line Место: АЗС № 54 "Партнер Нефть" [11:38:49]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [11:38:49]line СНО: Общий режим [11:38:49]line Чек 39 12.08.2024 11:38 [11:38:49]line Смена: 447 ФФД: 1.0 [11:38:49]line ЗНМ: 0300000007 [11:38:49]line РНМ: 0000000000090834 [11:38:49]line Версия ККМ: 001 [11:38:49]line Платежная система: О! деньги [11:38:49]line ФМ: 0000000000874715 [11:38:49]line ФД: 52721 [11:38:49]line ФПД: 60318057575750 [11:38:49]line /tax-web-control/client/api/v1/ticket?date=20240812T113852&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52721&fm=60318057575750&tin=02508201610067®Number=0000000000090834&sum=23000 [11:38:49]line 0 [11:38:49]written 0, free lines is 4095 [11:38:49]OFD Sender: Processing packet 52721 [packets to send 55, broken 54] [11:38:49]ProducePacketName [11:38:49]name=ofd_packets/00052721 [11:38:49]OFD Sender: To server: pG, [11:38:49]CommunicateWithHost lk.salyk.kg:30040 [11:38:49]ConnectInit lk.salyk.kg [11:38:49]Connected sock=10 [11:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 9F 01 00 00 26 C5 97 01 7D 70 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4C F4 B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F1 CD 00 00 35 04 06 00 36 DB E4 65 35 46 03 8E FE B3 E5 56 40 30 [11:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 29 1E 47 00 58 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F1 CD 00 00 F4 03 04 00 E5 9B B9 66 B6 04 01 00 00 B0 45 5A 30 E0 51 CE E1 [11:38:50]CommunicateWithHost err = 0 [11:38:50]CheckOFDResponse [11:38:50]1017 (14) - 77093643461234 [11:38:50]1041 (16) - 0000000000874715 [11:38:50]1040 (4) - 52721 [11:38:50]1012 (4) - 12.08.2024 05:21 [11:38:50]1206 (1) - 0 [11:38:50]OFD Sender: Remove packet 52721 [11:38:50]ProducePacketName [11:38:50]name=ofd_packets/00052721 [11:38:50]NVStorageDeleteData [11:38:50]Write to MH i2c: 01 00 00 F8 1D 15 [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: 01 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: 01 07 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: 01 07 00 F8 1D 00 00 00 00 00 37 0C 5F [11:38:50]RasterBufferAndPrint [11:38:50]line [11:38:50]line [11:38:50]line [11:38:50]line [11:38:50]line [11:38:50]written 0, free lines is 3132 [11:38:50]MH_Cut [11:38:50]Write to MH i2c: D1 01 00 FF 1D 01 EE [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: D1 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: D1 01 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: D1 01 00 FF 1D 00 ED [11:38:50]Write to MH i2c: 01 00 00 00 1E 1E [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]OFD Sender: No OFD packet to send [11:38:51]*** Cut start [11:38:51]*** Purtial cut [11:38:51]*** Stage 1: CUTSNS_PIN = 1 [11:38:51]Read from MH i2c: 01 [11:38:51]MH_I2C_Read... [11:38:51]*** Stop cut motor [11:38:51]*** Cut end [11:38:51]Read from MH i2c: 01 07 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 00 1E 00 00 00 00 00 FF 0F 33 [11:38:51]process_action close_receipt done [11:38:51]requested_data is exist [11:38:51]produce_requested_data [11:38:51]requested_item fm.sn is exist - process it [11:38:51]wFMCommunicate request_size=4 [11:38:51]MH_SAM_APDU [11:38:51]CAPDU: 80 11 00 00 [11:38:51]Write to MH i2c: E2 08 00 01 1E 80 11 00 00 00 00 00 00 99 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 17 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 17 00 01 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 EC [11:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [11:38:51]wFMCommunicate OK [11:38:51]requested_item fd.num is exist - process it [11:38:51]SAM_PROTO_GetFieldsCounters [11:38:51]wFMCommunicate request_size=4 [11:38:51]MH_SAM_APDU [11:38:51]CAPDU: 80 13 00 00 [11:38:51]Write to MH i2c: E2 08 00 02 1E 80 13 00 00 00 00 00 00 9C [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 62 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 62 00 02 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F1 CD 00 00 0E 04 04 00 BF 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 AF [11:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F1 CD 00 00 0E 04 04 00 BF 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 [11:38:51]wFMCommunicate OK [11:38:51]SAM_PROTO_GetFieldsCounters done [11:38:51]requested_item shift.num is exist - process it [11:38:51]requested_item shift.opened is exist - process it [11:38:51]req_shift_opened [11:38:51]FM_GetShiftState [11:38:51]SAM_PROTO_GetShiftState [11:38:51]wFMCommunicate request_size=4 [11:38:51]MH_SAM_APDU [11:38:51]CAPDU: 80 13 01 00 [11:38:51]Write to MH i2c: E2 08 00 03 1E 80 13 01 00 00 00 00 00 9E [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:51]Read from MH i2c: E2 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 0E 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: E2 0E 00 03 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 FC [11:38:51]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [11:38:51]wFMCommunicate OK [11:38:51]SAM_PROTO_GetShiftState done [11:38:51]FM_GetShiftState done [11:38:51]req_shift_opened done [11:38:51]requested_item shift.open_date is exist - process it [11:38:51]req_shift_open_date [11:38:51]req_shift_open_date done [11:38:51]produce_requested_data done [11:38:51]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52721,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [11:38:51]process_action_free close_receipt [11:38:51]json_value_free [11:38:51]json_value_free done [11:38:51]process_json_proto returns [11:38:51]Send response to host [11:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52721,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [11:38:51]free response buf [11:38:51]execute_script done [11:38:51]execute_script returns [11:38:51]free content buf [11:38:51]Sock 9.Close socket [11:38:51]Sock 9.Thread stoped [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]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:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]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:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:55]accept exits with 7 [12:20:55]New connection [12:20:55]New thread 3067149668 created [12:20:55]Thread 3067293028 joined [12:20:55]Waiting for new connection... [12:20:55] Sock 7.Parse request [12:20:55]Sock 7.Check first char [12:20:55]Sock 7.First char is OK [12:20:55]request: POST /json_proto HTTP/1.0 [12:20:55]Method: POST [12:20:55]URL: /json_proto [12:20:55]Method is POST - this is cgi request [12:20:55]url: /json_proto [12:20:55]query_string will be loaded in cgi processing [12:20:55]execute_cgi json_proto POST (null) [12:20:55]execute_cgi path=json_proto method=POST [12:20:55]POST find Content-Length [12:20:55]Host: 172.17.60.7:8080 [12:20:55]Content-Length: 1021 [12:20:55]Content-Type: application/json [12:20:55] [12:20:55]POST finish read [12:20:55]Found Content-Length = 1021 [12:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122852", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:55]execute_script... [12:20: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)122852", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:55]POST & json_proto [12:20:55]process_json_proto [12:20:55]json parsed OK: [12:20:55]protocol is kg_v1.0 [12:20:55]action value=close_receipt [12:20:55]process_action close_receipt [12:20:55]cmd_close_receipt [12:20:55]MH_GetDate [12:20:55]Write to MH i2c: F0 00 00 04 1E 11 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: F0 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: F0 09 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: F0 09 00 04 1E 00 2C FE B9 66 63 9B 67 64 2C [12:20:55]GetLastDocTimeStamp 1723462732 [12:20:55]current date 1723465260 [12:20:55]FM_GetShiftState [12:20:55]SAM_PROTO_GetShiftState [12:20:55]wFMCommunicate request_size=4 [12:20:55]MH_SAM_APDU [12:20:55]CAPDU: 80 13 01 00 [12:20:55]Write to MH i2c: E2 08 00 05 1E 80 13 01 00 00 00 00 00 A0 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:55]Read from MH i2c: E2 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 0E 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 0E 00 05 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 FE [12:20:55]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [12:20:55]wFMCommunicate OK [12:20:55]SAM_PROTO_GetShiftState done [12:20:55]FM_GetShiftState done [12:20:55]opened in 1723422684 [12:20:55]opened+sec_in_day 1723509084 [12:20:55]quantity*price = 17500 [12:20:55]sum+1 = 17501 [12:20:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 0.00 Безнал.: 315.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 40 12.08.2024 12:21 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52722 ФПД: 166539465372649 /tax-web-control/client/api/v1/ticket?date=20240812T122100&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52722&fm=166539465372649&tin=02508201610067®Number=0000000000090834&sum=31500 0 [12:20:56]StoreToDocumentArchive [12:20:56]shift 447 fd 52722 [12:20:56]save to /storage/0447/doc_00052722 [12:20:56]save last doc name /storage/0447/doc_00052722 to /storage/kkm_last_doc_name [12:20:56]save OK [12:20:56]Clear old archive folders... [12:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=373 [12:20:56]tlvbuf is B6FABCE0 [12:20:56]SAM_PROTO_ClearQueue [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 09 00 00 [12:20:56]Write to MH i2c: E2 08 00 12 1E 80 09 00 00 00 00 00 00 A2 [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 03 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [12:20:56]RAPDU: 90 00 [12:20:56]wFMCommunicate OK [12:20:56]SAM_PROTO_ClearQueue done [12:20:56]KKMCreateOFDPacket [12:20:56]OFDProtocolAddRootSTLVToBuf [12:20:56]FM_MakeSignedData [12:20:56]FM_MakeSignedData [12:20:56]SAM_PROTO_SignData [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 0D 01 02 [12:20:56]Write to MH i2c: E2 08 00 13 1E 80 0D 01 02 00 00 00 00 AA [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 03 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [12:20:56]RAPDU: 90 00 [12:20:56]wFMCommunicate OK [12:20:56]wFMCommunicate request_size=255 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 [12:20:56]Write to MH i2c: E2 02 01 14 1E 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 00 00 6C [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [12:20:57]RAPDU: 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=132 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2C FE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F2 CD 00 00 35 04 06 00 97 77 7D AC B3 E9 [12:20:57]Write to MH i2c: E2 87 00 15 1E 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2C FE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F2 CD 00 00 35 04 06 00 97 77 7D AC B3 E9 00 00 4D [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [12:20:57]RAPDU: 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 0D 03 02 [12:20:57]Write to MH i2c: E2 08 00 16 1E 80 0D 03 02 00 00 00 00 AF [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0B 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0B 00 16 1E 00 87 D8 85 81 14 EA E0 53 90 00 46 [12:20:57]RAPDU: 87 D8 85 81 14 EA E0 53 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_SignData done [12:20:57]FM_MakeSignedData done [12:20:57]CreateOFDProtocolMessage [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 11 00 00 [12:20:57]Write to MH i2c: E2 08 00 17 1E 80 11 00 00 00 00 00 00 AF [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 17 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 17 00 17 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 02 [12:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [12:20:57]wFMCommunicate OK [12:20:57]CreateOFDProtocolMessage done [12:20:57]OFDSenderStorePacket 52722 [12:20:57]StoreOFDPacket docnum=52722 [12:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 89 01 00 00 B9 01 81 01 EB 77 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2C FE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F2 CD 00 00 35 04 06 00 97 77 7D AC B3 E9 87 D8 85 81 14 EA E0 53 [12:20:57]CheckFolder [12:20:57]dirname=/storage/ofd_packets [12:20:57]CheckFolder done [12:20:57]ProducePacketName [12:20:57]name=ofd_packets/00052722 [12:20:57]NVStorageSaveData ofd_packets/00052722 [12:20:57]File name is /storage/ofd_packets/00052722 [12:20:57]Write 423 bytes [12:20:57]NVStorageSaveData done [12:20:57]OFDSenderStorePacket done [12:20:57]KKMCreateOFDPacket done [12:20:57]NVStorageSaveData kkm_last_timestamp [12:20:57]File name is /storage/kkm_last_timestamp [12:20:57]Write 4 bytes [12:20:57]NVStorageSaveData done [12:20:57]ExternCall_PrintAddStr [12:20:57]wPrintStart [12:20:57]Write to MH i2c: 01 00 00 18 1E 36 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 [12:20:57]MH_I2C_Read... [12:20:57]OFD Sender: Processing packet 52722 [packets to send 55, broken 54] [12:20:57]ProducePacketName [12:20:57]name=ofd_packets/00052722 [12:20:57]OFD Sender: To server: pG, [12:20:57]CommunicateWithHost lk.salyk.kg:30040 [12:20:57]ConnectInit lk.salyk.kg [12:20:57]Read from MH i2c: 01 07 00 18 1E 00 00 00 00 00 FF 0F 4B [12:20:57]RasterBufferAndPrint [12:20:57]line Счет N : (3)122852 [12:20:57]line ИНН: 02508201610067 [12:20:57]line Контрольно-Кассовый Чек [12:20:57]line ПРОДАЖА [12:20:57]line Товар: 4870002329487 [12:20:57]line Напиток Pepsi 1,5л [12:20:57]line 1.000 * 175.00 [12:20:57]line = 175.00 [12:20:57]line НДС 12% НСП 1% [12:20:57]line > о реализуемом товаре [12:20:57]line Товар: 48743587 [12:20:57]line Сигареты Winston XStyle Silver [12:20:57]line 1.000 * 140.00 [12:20:57]line = 140.00 [12:20:57]line НДС 12% НСП 1% [12:20:57]line > о реализуемом товаре [12:20:57]line ИТОГО: 315.00 [12:20:57]line НСП 1% : 2.79 [12:20:57]line НДС 12% : 33.45 [12:20:57]line Наличными: 0.00 [12:20:57]line Безнал.: 315.00 [12:20:57]line Место: АЗС № 54 "Партнер Нефть" [12:20:57]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [12:20:57]line СНО: Общий режим [12:20:57]line Чек 40 12.08.2024 12:21 [12:20:57]line Смена: 447 ФФД: 1.0 [12:20:57]line ЗНМ: 0300000007 [12:20:57]line РНМ: 0000000000090834 [12:20:57]line Версия ККМ: 001 [12:20:57]line Платежная система: О! деньги [12:20:57]line ФМ: 0000000000874715 [12:20:57]line ФД: 52722 [12:20:57]line ФПД: 166539465372649 [12:20:57]line /tax-web-control/client/api/v1/ticket?date=20240812T122100&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52722&fm=166539465372649&tin=02508201610067®Number=0000000000090834&sum=31500 [12:20:57]line 0 [12:20:57]written 0, free lines is 4095 [12:20:57]Connected sock=10 [12:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 89 01 00 00 B9 01 81 01 EB 77 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 2C FE B9 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F2 CD 00 00 35 04 06 00 97 77 7D AC B3 E9 87 D8 85 81 14 EA E0 53 [12:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 D3 81 47 00 4F EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F2 CD 00 00 F4 03 04 00 C5 A5 B9 66 B6 04 01 00 00 46 CC A2 A4 67 AF B2 36 [12:20:58]CommunicateWithHost err = 0 [12:20:58]CheckOFDResponse [12:20:58]1017 (14) - 77093643461234 [12:20:58]1041 (16) - 0000000000874715 [12:20:58]1040 (4) - 52722 [12:20:58]1012 (4) - 12.08.2024 06:03 [12:20:58]1206 (1) - 0 [12:20:58]OFD Sender: Remove packet 52722 [12:20:58]ProducePacketName [12:20:58]name=ofd_packets/00052722 [12:20:58]NVStorageDeleteData [12:20:58]Write to MH i2c: 01 00 00 48 1E 66 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 07 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: 01 07 00 48 1E 00 00 00 00 00 59 0C D2 [12:20:58]RasterBufferAndPrint [12:20:58]line [12:20:58]line [12:20:58]line [12:20:58]line [12:20:58]line [12:20:58]written 0, free lines is 3168 [12:20:58]MH_Cut [12:20:58]Write to MH i2c: D1 01 00 4F 1E 01 3F [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: D1 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: D1 01 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: D1 01 00 4F 1E 00 3E [12:20:58]Write to MH i2c: 01 00 00 50 1E 6E [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]OFD Sender: No OFD packet to send [12:20:59]*** Cut start [12:20:59]*** Purtial cut [12:20:59]*** Stage 1: CUTSNS_PIN = 1 [12:20:59]Read from MH i2c: 01 [12:20:59]MH_I2C_Read... [12:20:59]*** Stop cut motor [12:20:59]*** Cut end [12:20:59]Read from MH i2c: 01 07 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 FF 0F 83 [12:20:59]process_action close_receipt done [12:20:59]requested_data is exist [12:20:59]produce_requested_data [12:20:59]requested_item fm.sn is exist - process it [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 11 00 00 [12:20:59]Write to MH i2c: E2 08 00 51 1E 80 11 00 00 00 00 00 00 E9 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 17 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 17 00 51 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 3C [12:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [12:20:59]wFMCommunicate OK [12:20:59]requested_item fd.num is exist - process it [12:20:59]SAM_PROTO_GetFieldsCounters [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 13 00 00 [12:20:59]Write to MH i2c: E2 08 00 52 1E 80 13 00 00 00 00 00 00 EC [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 62 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 62 00 52 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F2 CD 00 00 0E 04 04 00 BF 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 03 [12:20: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F2 CD 00 00 0E 04 04 00 BF 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:20:59]wFMCommunicate OK [12:20:59]SAM_PROTO_GetFieldsCounters done [12:20:59]requested_item shift.num is exist - process it [12:20:59]requested_item shift.opened is exist - process it [12:20:59]req_shift_opened [12:20:59]FM_GetShiftState [12:20:59]SAM_PROTO_GetShiftState [12:20:59]wFMCommunicate request_size=4 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 13 01 00 [12:20:59]Write to MH i2c: E2 08 00 53 1E 80 13 01 00 00 00 00 00 EE [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 0E 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 0E 00 53 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 4C [12:20:59]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [12:20:59]wFMCommunicate OK [12:20:59]SAM_PROTO_GetShiftState done [12:20:59]FM_GetShiftState done [12:20:59]req_shift_opened done [12:20:59]requested_item shift.open_date is exist - process it [12:20:59]req_shift_open_date [12:20:59]req_shift_open_date done [12:20:59]produce_requested_data done [12:20:59]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52722,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [12:20:59]process_action_free close_receipt [12:20:59]json_value_free [12:20:59]json_value_free done [12:20:59]process_json_proto returns [12:20:59]Send response to host [12:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52722,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [12:20:59]free response buf [12:20:59]execute_script done [12:20:59]execute_script returns [12:20:59]free content buf [12:20:59]Sock 7.Close socket [12:20:59]Sock 7.Thread stoped [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]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:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25: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:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:17]accept exits with 9 [12:34:17]New connection [12:34:17]New thread 3067293028 created [12:34:17]Thread 3067149668 joined [12:34:17]Waiting for new connection... [12:34:17] Sock 9.Parse request [12:34:17]Sock 9.Check first char [12:34:17]Sock 9.First char is OK [12:34:17]request: POST /json_proto HTTP/1.0 [12:34:17]Method: POST [12:34:17]URL: /json_proto [12:34:17]Method is POST - this is cgi request [12:34:17]url: /json_proto [12:34:17]query_string will be loaded in cgi processing [12:34:17]execute_cgi json_proto POST (null) [12:34:17]execute_cgi path=json_proto method=POST [12:34:17]POST find Content-Length [12:34:17]Host: 172.17.60.7:8080 [12:34:17]Content-Length: 1775 [12:34:17]Content-Type: application/json [12:34:17] [12:34:17]POST finish read [12:34:17]Found Content-Length = 1775 [12:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122853", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040111969", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u042D\u0441\u043A\u0438\u043C\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 \u041A\u0430", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 507.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:17]execute_script... [12:34: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)122853", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040111969", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u042D\u0441\u043A\u0438\u043C\u043E \u0432 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u043E\u0439 \u0433\u043B\u0430\u0437\u0443\u0440\u0438 \u041A\u0430", "price" : 40.00, "quantity" : 2.000, "sum" : 80.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 507.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:18]POST & json_proto [12:34:18]process_json_proto [12:34:18]json parsed OK: [12:34:18]protocol is kg_v1.0 [12:34:18]action value=close_receipt [12:34:18]process_action close_receipt [12:34:18]cmd_close_receipt [12:34:18]MH_GetDate [12:34:18]Write to MH i2c: F0 00 00 54 1E 61 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: F0 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: F0 09 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: F0 09 00 54 1E 00 4F 01 BA 66 63 9B 67 64 A3 [12:34:18]GetLastDocTimeStamp 1723465260 [12:34:18]current date 1723466063 [12:34:18]FM_GetShiftState [12:34:18]SAM_PROTO_GetShiftState [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 13 01 00 [12:34:18]Write to MH i2c: E2 08 00 55 1E 80 13 01 00 00 00 00 00 F0 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 0E 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 0E 00 55 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 4E [12:34:18]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [12:34:18]wFMCommunicate OK [12:34:18]SAM_PROTO_GetShiftState done [12:34:18]FM_GetShiftState done [12:34:18]opened in 1723422684 [12:34:18]opened+sec_in_day 1723509084 [12:34:18]quantity*price = 15600 [12:34:18]sum+1 = 15601 [12:34:18]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040111969 Мороженое Эскимо в шоколадной глазури Ка 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 507.00 НСП 1% : 4.49 НДС 12% : 53.84 Наличными: 0.00 Безнал.: 507.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 41 12.08.2024 12:34 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52723 ФПД: 113140808967791 /tax-web-control/client/api/v1/ticket?date=20240812T123423&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52723&fm=113140808967791&tin=02508201610067®Number=0000000000090834&sum=50700 0 [12:34:19]StoreToDocumentArchive [12:34:19]shift 447 fd 52723 [12:34:19]save to /storage/0447/doc_00052723 [12:34:19]save last doc name /storage/0447/doc_00052723 to /storage/kkm_last_doc_name [12:34:19]save OK [12:34:19]Clear old archive folders... [12:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=661 [12:34:19]tlvbuf is 012D3CB0 [12:34:19]SAM_PROTO_ClearQueue [12:34:19]wFMCommunicate request_size=4 [12:34:19]MH_SAM_APDU [12:34:19]CAPDU: 80 09 00 00 [12:34:19]Write to MH i2c: E2 08 00 62 1E 80 09 00 00 00 00 00 00 F2 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:19]Read from MH i2c: E2 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 03 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [12:34:19]RAPDU: 90 00 [12:34:19]wFMCommunicate OK [12:34:19]SAM_PROTO_ClearQueue done [12:34:19]KKMCreateOFDPacket [12:34:19]OFDProtocolAddRootSTLVToBuf [12:34:19]FM_MakeSignedData [12:34:19]FM_MakeSignedData [12:34:19]SAM_PROTO_SignData [12:34:19]wFMCommunicate request_size=4 [12:34:19]MH_SAM_APDU [12:34:19]CAPDU: 80 0D 01 02 [12:34:19]Write to MH i2c: E2 08 00 63 1E 80 0D 01 02 00 00 00 00 FA [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]OFD Sender: No OFD packet to send [12:34:19]Read from MH i2c: E2 [12:34:19]MH_I2C_Read... [12:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:19]Read from MH i2c: E2 03 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 03 00 63 1E 00 90 00 F5 [12:34:19]RAPDU: 90 00 [12:34:19]wFMCommunicate OK [12:34:19]wFMCommunicate request_size=255 [12:34:19]MH_SAM_APDU [12:34:19]CAPDU: 80 0D 02 02 FA 03 00 95 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 [12:34:19]Write to MH i2c: E2 02 01 64 1E 80 0D 02 02 FA 00 03 00 95 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 00 00 F0 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:19]Read from MH i2c: E2 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 03 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 03 00 64 1E 00 90 00 F6 [12:34:19]RAPDU: 90 00 [12:34:19]wFMCommunicate OK [12:34:19]wFMCommunicate request_size=255 [12:34:19]MH_SAM_APDU [12:34:19]CAPDU: 80 0D 02 02 FA D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 31 39 36 39 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 9A D0 B0 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 [12:34:19]Write to MH i2c: E2 02 01 65 1E 80 0D 02 02 FA 00 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 31 39 36 39 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 9A D0 B0 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 00 00 9F [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:20]Read from MH i2c: E2 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 03 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [12:34:20]RAPDU: 90 00 [12:34:20]wFMCommunicate OK [12:34:20]wFMCommunicate request_size=170 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 0D 02 02 A5 FC 03 06 00 0C C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C C6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4F 01 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F3 CD 00 00 35 04 06 00 66 E6 A5 BA 66 6F [12:34:20]Write to MH i2c: E2 AD 00 66 1E 80 0D 02 02 A5 00 FC 03 06 00 0C C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C C6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4F 01 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F3 CD 00 00 35 04 06 00 66 E6 A5 BA 66 6F 00 00 A5 [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:20]Read from MH i2c: E2 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 03 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [12:34:20]RAPDU: 90 00 [12:34:20]wFMCommunicate OK [12:34:20]wFMCommunicate request_size=4 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 0D 03 02 [12:34:20]Write to MH i2c: E2 08 00 67 1E 80 0D 03 02 00 00 00 00 00 [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:20]Read from MH i2c: E2 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 0B 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 0B 00 67 1E 00 85 10 5D 54 5F 40 C4 55 90 00 FF [12:34:20]RAPDU: 85 10 5D 54 5F 40 C4 55 90 00 [12:34:20]wFMCommunicate OK [12:34:20]SAM_PROTO_SignData done [12:34:20]FM_MakeSignedData done [12:34:20]CreateOFDProtocolMessage [12:34:20]wFMCommunicate request_size=4 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 11 00 00 [12:34:20]Write to MH i2c: E2 08 00 68 1E 80 11 00 00 00 00 00 00 00 [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:20]Read from MH i2c: E2 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 17 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 17 00 68 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 53 [12:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [12:34:20]wFMCommunicate OK [12:34:20]CreateOFDProtocolMessage done [12:34:20]OFDSenderStorePacket 52723 [12:34:20]StoreOFDPacket docnum=52723 [12:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A9 02 00 00 FD B1 A1 02 E9 D4 5A 03 01 00 03 00 95 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 31 39 36 39 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 9A D0 B0 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 0C C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C C6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4F 01 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F3 CD 00 00 35 04 06 00 66 E6 A5 BA 66 6F 85 10 5D 54 5F 40 C4 55 [12:34:20]CheckFolder [12:34:20]dirname=/storage/ofd_packets [12:34:20]CheckFolder done [12:34:20]ProducePacketName [12:34:20]name=ofd_packets/00052723 [12:34:20]NVStorageSaveData ofd_packets/00052723 [12:34:20]File name is /storage/ofd_packets/00052723 [12:34:20]Write 711 bytes [12:34:20]NVStorageSaveData done [12:34:20]OFDSenderStorePacket done [12:34:20]KKMCreateOFDPacket done [12:34:20]NVStorageSaveData kkm_last_timestamp [12:34:20]File name is /storage/kkm_last_timestamp [12:34:20]Write 4 bytes [12:34:20]NVStorageSaveData done [12:34:20]ExternCall_PrintAddStr [12:34:20]wPrintStart [12:34:20]Write to MH i2c: 01 00 00 69 1E 87 [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: 01 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: 01 07 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: 01 07 00 69 1E 00 00 00 00 00 FF 0F 9C [12:34:20]RasterBufferAndPrint [12:34:20]line Счет N : (3)122853 [12:34:20]line ИНН: 02508201610067 [12:34:20]line Контрольно-Кассовый Чек [12:34:20]line ПРОДАЖА [12:34:20]line Товар: 4700000480517 [12:34:20]line Пиво Живое 1л ПЭТ [12:34:20]line 1.000 * 156.00 [12:34:20]line = 156.00 [12:34:20]line НДС 12% НСП 1% [12:34:20]line > о реализуемом товаре [12:34:20]line Товар: 48741958 [12:34:20]line Сигареты Parliament Aqua Blue [12:34:20]line 1.000 * 151.00 [12:34:20]line = 151.00 [12:34:20]line НДС 12% НСП 1% [12:34:20]line > о реализуемом товаре [12:34:20]line Товар: 5449000027474 [12:34:20]line Напиток FuzeTea зел чай манго,ромашка 1л [12:34:20]line 1.000 * 120.00 [12:34:20]line = 120.00 [12:34:20]line НДС 12% НСП 1% [12:34:20]line > о реализуемом товаре [12:34:20]line Товар: 4700040111969 [12:34:20]line Мороженое Эскимо в шоколадной глазури Ка [12:34:20]line 2.000 * 40.00 [12:34:20]line = 80.00 [12:34:20]line НДС 12% НСП 1% [12:34:20]line > о реализуемом товаре [12:34:20]line ИТОГО: 507.00 [12:34:20]line НСП 1% : 4.49 [12:34:20]line НДС 12% : 53.84 [12:34:20]line Наличными: 0.00 [12:34:20]line Безнал.: 507.00 [12:34:20]line Место: АЗС № 54 "Партнер Нефть" [12:34:20]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [12:34:20]line СНО: Общий режим [12:34:20]line Чек 41 12.08.2024 12:34 [12:34:20]line Смена: 447 ФФД: 1.0 [12:34:20]line ЗНМ: 0300000007 [12:34:20]line РНМ: 0000000000090834 [12:34:20]line Версия ККМ: 001 [12:34:20]line Платежная система: О! деньги [12:34:20]line ФМ: 0000000000874715 [12:34:20]line ФД: 52723 [12:34:20]line ФПД: 113140808967791 [12:34:20]line /tax-web-control/client/api/v1/ticket?date=20240812T123423&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52723&fm=113140808967791&tin=02508201610067®Number=0000000000090834&sum=50700 [12:34:20]OFD Sender: Processing packet 52723 [packets to send 55, broken 54] [12:34:20]ProducePacketName [12:34:20]name=ofd_packets/00052723 [12:34:20]OFD Sender: To server: pG, [12:34:20]CommunicateWithHost lk.salyk.kg:30040 [12:34:20]ConnectInit lk.salyk.kg [12:34:20]line 0 [12:34:20]written 0, free lines is 4095 [12:34:20]Connected sock=10 [12:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A9 02 00 00 FD B1 A1 02 E9 D4 5A 03 01 00 03 00 95 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8F 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 31 39 36 39 06 04 4B 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 B2 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D0 BE D0 B9 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D0 B8 20 D0 9A D0 B0 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 0C C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C C6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4F 01 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F3 CD 00 00 35 04 06 00 66 E6 A5 BA 66 6F 85 10 5D 54 5F 40 C4 55 [12:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 DA 5F 47 00 1A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F3 CD 00 00 F4 03 04 00 E8 A8 B9 66 B6 04 01 00 00 40 EC C7 96 D2 81 D1 95 [12:34:21]CommunicateWithHost err = 0 [12:34:21]CheckOFDResponse [12:34:21]1017 (14) - 77093643461234 [12:34:21]1041 (16) - 0000000000874715 [12:34:21]1040 (4) - 52723 [12:34:21]1012 (4) - 12.08.2024 06:17 [12:34:21]1206 (1) - 0 [12:34:21]OFD Sender: Remove packet 52723 [12:34:21]ProducePacketName [12:34:21]name=ofd_packets/00052723 [12:34:21]NVStorageDeleteData [12:34:21]Write to MH i2c: 01 00 00 A7 1E C5 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: 01 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: 01 07 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: 01 07 00 A7 1E 00 00 00 00 00 5D 0B 34 [12:34:21]RasterBufferAndPrint [12:34:21]line [12:34:21]line [12:34:21]line [12:34:21]line [12:34:21]line [12:34:21]written 0, free lines is 2919 [12:34:21]MH_Cut [12:34:21]Write to MH i2c: D1 01 00 AE 1E 01 9E [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: D1 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: D1 01 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: D1 01 00 AE 1E 00 9D [12:34:21]Write to MH i2c: 01 00 00 AF 1E CD [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]OFD Sender: No OFD packet to send [12:34:22]*** Cut start [12:34:22]*** Purtial cut [12:34:22]*** Stage 1: CUTSNS_PIN = 1 [12:34:22]Read from MH i2c: 01 [12:34:22]MH_I2C_Read... [12:34:22]*** Stop cut motor [12:34:22]*** Cut end [12:34:22]Read from MH i2c: 01 07 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [12:34:22]process_action close_receipt done [12:34:22]requested_data is exist [12:34:22]produce_requested_data [12:34:22]requested_item fm.sn is exist - process it [12:34:22]wFMCommunicate request_size=4 [12:34:22]MH_SAM_APDU [12:34:22]CAPDU: 80 11 00 00 [12:34:22]Write to MH i2c: E2 08 00 B0 1E 80 11 00 00 00 00 00 00 48 [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:22]Read from MH i2c: E2 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 17 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 17 00 B0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9B [12:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [12:34:22]wFMCommunicate OK [12:34:22]requested_item fd.num is exist - process it [12:34:22]SAM_PROTO_GetFieldsCounters [12:34:22]wFMCommunicate request_size=4 [12:34:22]MH_SAM_APDU [12:34:22]CAPDU: 80 13 00 00 [12:34:22]Write to MH i2c: E2 08 00 B1 1E 80 13 00 00 00 00 00 00 4B [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:23]Read from MH i2c: E2 [12:34:23]MH_I2C_Read... [12:34:23]Read from MH i2c: E2 62 00 [12:34:23]MH_I2C_Read... [12:34:23]Read from MH i2c: E2 62 00 B1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F3 CD 00 00 0E 04 04 00 BF 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 66 [12:34:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F3 CD 00 00 0E 04 04 00 BF 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:34:23]wFMCommunicate OK [12:34:23]SAM_PROTO_GetFieldsCounters done [12:34:23]requested_item shift.num is exist - process it [12:34:23]requested_item shift.opened is exist - process it [12:34:23]req_shift_opened [12:34:23]FM_GetShiftState [12:34:23]SAM_PROTO_GetShiftState [12:34:23]wFMCommunicate request_size=4 [12:34:23]MH_SAM_APDU [12:34:23]CAPDU: 80 13 01 00 [12:34:23]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [12:34:23]Write i2c OK [12:34:23]MH_I2C_Read... [12:34:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:23]Read from MH i2c: E2 [12:34:23]MH_I2C_Read... [12:34:23]Read from MH i2c: E2 0E 00 [12:34:23]MH_I2C_Read... [12:34:23]Read from MH i2c: E2 0E 00 B2 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AB [12:34:23]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [12:34:23]wFMCommunicate OK [12:34:23]SAM_PROTO_GetShiftState done [12:34:23]FM_GetShiftState done [12:34:23]req_shift_opened done [12:34:23]requested_item shift.open_date is exist - process it [12:34:23]req_shift_open_date [12:34:23]req_shift_open_date done [12:34:23]produce_requested_data done [12:34:23]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52723,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [12:34:23]process_action_free close_receipt [12:34:23]json_value_free [12:34:23]json_value_free done [12:34:23]process_json_proto returns [12:34:23]Send response to host [12:34:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52723,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [12:34:23]free response buf [12:34:23]execute_script done [12:34:23]execute_script returns [12:34:23]free content buf [12:34:23]Sock 9.Close socket [12:34:23]Sock 9.Thread stoped [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:46]accept exits with 7 [12:43:46]New connection [12:43:46]New thread 3067149668 created [12:43:46]Thread 3067293028 joined [12:43:46]Waiting for new connection... [12:43:46] Sock 7.Parse request [12:43:46]Sock 7.Check first char [12:43:46]Sock 7.First char is OK [12:43:46]request: POST /json_proto HTTP/1.0 [12:43:46]Method: POST [12:43:46]URL: /json_proto [12:43:46]Method is POST - this is cgi request [12:43:46]url: /json_proto [12:43:46]query_string will be loaded in cgi processing [12:43:46]execute_cgi json_proto POST (null) [12:43:46]execute_cgi path=json_proto method=POST [12:43:46]POST find Content-Length [12:43:46]Host: 172.17.60.7:8080 [12:43:46]Content-Length: 780 [12:43:46]Content-Type: application/json [12:43:46] [12:43:46]POST finish read [12:43:46]Found Content-Length = 780 [12:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122854", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:46]execute_script... [12:43: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)122854", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:46]POST & json_proto [12:43:46]process_json_proto [12:43:46]json parsed OK: [12:43:46]protocol is kg_v1.0 [12:43:46]action value=close_receipt [12:43:46]process_action close_receipt [12:43:46]cmd_close_receipt [12:43:46]MH_GetDate [12:43:46]Write to MH i2c: F0 00 00 B3 1E C0 [12:43:46]Write i2c OK [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: F0 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: F0 09 00 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: F0 09 00 B3 1E 00 87 03 BA 66 63 9B 67 64 3C [12:43:46]GetLastDocTimeStamp 1723466063 [12:43:46]current date 1723466631 [12:43:46]FM_GetShiftState [12:43:46]SAM_PROTO_GetShiftState [12:43:46]wFMCommunicate request_size=4 [12:43:46]MH_SAM_APDU [12:43:46]CAPDU: 80 13 01 00 [12:43:46]Write to MH i2c: E2 08 00 B4 1E 80 13 01 00 00 00 00 00 4F [12:43:46]Write i2c OK [12:43:46]MH_I2C_Read... [12:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:46]Read from MH i2c: E2 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: E2 0E 00 [12:43:46]MH_I2C_Read... [12:43:46]Read from MH i2c: E2 0E 00 B4 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AD [12:43:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [12:43:46]wFMCommunicate OK [12:43:46]SAM_PROTO_GetShiftState done [12:43:46]FM_GetShiftState done [12:43:46]opened in 1723422684 [12:43:46]opened+sec_in_day 1723509084 [12:43:46]quantity*price = 11100 [12:43:46]sum+1 = 11101 [12:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 42 12.08.2024 12:43 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52724 ФПД: 1608273896910 /tax-web-control/client/api/v1/ticket?date=20240812T124351&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52724&fm=1608273896910&tin=02508201610067®Number=0000000000090834&sum=11100 0 [12:43:47]StoreToDocumentArchive [12:43:47]shift 447 fd 52724 [12:43:47]save to /storage/0447/doc_00052724 [12:43:47]save last doc name /storage/0447/doc_00052724 to /storage/kkm_last_doc_name [12:43:47]save OK [12:43:47]Clear old archive folders... [12:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=266 [12:43:47]tlvbuf is 012D95B0 [12:43:47]SAM_PROTO_ClearQueue [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 09 00 00 [12:43:47]Write to MH i2c: E2 08 00 C1 1E 80 09 00 00 00 00 00 00 51 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]SAM_PROTO_ClearQueue done [12:43:47]KKMCreateOFDPacket [12:43:47]OFDProtocolAddRootSTLVToBuf [12:43:47]FM_MakeSignedData [12:43:47]FM_MakeSignedData [12:43:47]SAM_PROTO_SignData [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 01 02 [12:43:47]Write to MH i2c: E2 08 00 C2 1E 80 0D 01 02 00 00 00 00 59 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]wFMCommunicate request_size=255 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 03 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 [12:43:47]Write to MH i2c: E2 02 01 C3 1E 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 03 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 00 00 05 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]wFMCommunicate request_size=25 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 02 02 14 31 35 10 04 04 00 F4 CD 00 00 35 04 06 00 01 76 74 98 25 CE [12:43:47]Write to MH i2c: E2 1C 00 C4 1E 80 0D 02 02 14 00 31 35 10 04 04 00 F4 CD 00 00 35 04 06 00 01 76 74 98 25 CE 00 00 78 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [12:43:47]RAPDU: 90 00 [12:43:47]wFMCommunicate OK [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 0D 03 02 [12:43:47]Write to MH i2c: E2 08 00 C5 1E 80 0D 03 02 00 00 00 00 5E [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:48]Read from MH i2c: E2 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 0B 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 0B 00 C5 1E 00 8E 17 32 F1 BA 34 F2 F6 90 00 FD [12:43:48]RAPDU: 8E 17 32 F1 BA 34 F2 F6 90 00 [12:43:48]wFMCommunicate OK [12:43:48]SAM_PROTO_SignData done [12:43:48]FM_MakeSignedData done [12:43:48]CreateOFDProtocolMessage [12:43:48]wFMCommunicate request_size=4 [12:43:48]MH_SAM_APDU [12:43:48]CAPDU: 80 11 00 00 [12:43:48]Write to MH i2c: E2 08 00 C6 1E 80 11 00 00 00 00 00 00 5E [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:48]Read from MH i2c: E2 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 17 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: E2 17 00 C6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B1 [12:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [12:43:48]wFMCommunicate OK [12:43:48]CreateOFDProtocolMessage done [12:43:48]OFDSenderStorePacket 52724 [12:43:48]StoreOFDPacket docnum=52724 [12:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1E 01 00 00 7B D5 16 01 6F 8C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 03 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F4 CD 00 00 35 04 06 00 01 76 74 98 25 CE 8E 17 32 F1 BA 34 F2 F6 [12:43:48]CheckFolder [12:43:48]dirname=/storage/ofd_packets [12:43:48]CheckFolder done [12:43:48]ProducePacketName [12:43:48]name=ofd_packets/00052724 [12:43:48]NVStorageSaveData ofd_packets/00052724 [12:43:48]File name is /storage/ofd_packets/00052724 [12:43:48]Write 316 bytes [12:43:48]NVStorageSaveData done [12:43:48]OFDSenderStorePacket done [12:43:48]KKMCreateOFDPacket done [12:43:48]NVStorageSaveData kkm_last_timestamp [12:43:48]File name is /storage/kkm_last_timestamp [12:43:48]Write 4 bytes [12:43:48]NVStorageSaveData done [12:43:48]ExternCall_PrintAddStr [12:43:48]wPrintStart [12:43:48]Write to MH i2c: 01 00 00 C7 1E E5 [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 07 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 FF 0F FA [12:43:48]RasterBufferAndPrint [12:43:48]line Счет N : (3)122854 [12:43:48]line ИНН: 02508201610067 [12:43:48]line Контрольно-Кассовый Чек [12:43:48]line ПРОДАЖА [12:43:48]line Товар: 4870001570071 [12:43:48]line Напиток Pepsi 1л [12:43:48]line 1.000 * 111.00 [12:43:48]line = 111.00 [12:43:48]line НДС 12% НСП 1% [12:43:48]line > о реализуемом товаре [12:43:48]line ИТОГО: 111.00 [12:43:48]line НСП 1% : 0.98 [12:43:48]line НДС 12% : 11.79 [12:43:48]line Наличными: 0.00 [12:43:48]line Безнал.: 111.00 [12:43:48]line Место: АЗС № 54 "Партнер Нефть" [12:43:48]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [12:43:48]line СНО: Общий режим [12:43:48]line Чек 42 12.08.2024 12:43 [12:43:48]line Смена: 447 ФФД: 1.0 [12:43:48]line ЗНМ: 0300000007 [12:43:48]line РНМ: 0000000000090834 [12:43:48]line Версия ККМ: 001 [12:43:48]line Платежная система: О! деньги [12:43:48]line ФМ: 0000000000874715 [12:43:48]line ФД: 52724 [12:43:48]line ФПД: 1608273896910 [12:43:48]line /tax-web-control/client/api/v1/ticket?date=20240812T124351&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52724&fm=1608273896910&tin=02508201610067®Number=0000000000090834&sum=11100 [12:43:48]line 0 [12:43:48]OFD Sender: Processing packet 52724 [packets to send 55, broken 54] [12:43:48]ProducePacketName [12:43:48]name=ofd_packets/00052724 [12:43:48]OFD Sender: To server: pG, [12:43:48]CommunicateWithHost lk.salyk.kg:30040 [12:43:48]ConnectInit lk.salyk.kg [12:43:48]written 0, free lines is 4095 [12:43:48]Connected sock=10 [12:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1E 01 00 00 7B D5 16 01 6F 8C 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 03 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F4 CD 00 00 35 04 06 00 01 76 74 98 25 CE 8E 17 32 F1 BA 34 F2 F6 [12:43:48]Write to MH i2c: 01 00 00 F0 1E 0E [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 07 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 BD 0C DE [12:43:48]RasterBufferAndPrint [12:43:48]line [12:43:48]line [12:43:48]line [12:43:48]line [12:43:48]line [12:43:48]written 0, free lines is 3268 [12:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B2 68 47 00 4D A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F4 CD 00 00 F4 03 04 00 20 AB B9 66 B6 04 01 00 00 3C 64 92 09 B5 C3 4A B6 [12:43:48]CommunicateWithHost err = 0 [12:43:48]CheckOFDResponse [12:43:48]1017 (14) - 77093643461234 [12:43:48]1041 (16) - 0000000000874715 [12:43:48]1040 (4) - 52724 [12:43:48]1012 (4) - 12.08.2024 06:26 [12:43:48]1206 (1) - 0 [12:43:48]OFD Sender: Remove packet 52724 [12:43:48]ProducePacketName [12:43:48]name=ofd_packets/00052724 [12:43:48]NVStorageDeleteData [12:43:48]MH_Cut [12:43:48]Write to MH i2c: D1 01 00 F7 1E 01 E7 [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: D1 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: D1 01 00 [12:43:48]MH_I2C_Read... [12:43:48]Read from MH i2c: D1 01 00 F7 1E 00 E6 [12:43:48]Write to MH i2c: 01 00 00 F8 1E 16 [12:43:48]Write i2c OK [12:43:48]MH_I2C_Read... [12:43:49]OFD Sender: No OFD packet to send [12:43:49]*** Cut start [12:43:49]*** Purtial cut [12:43:49]*** Stage 1: CUTSNS_PIN = 1 [12:43:50]Read from MH i2c: 01 [12:43:50]MH_I2C_Read... [12:43:50]*** Stop cut motor [12:43:50]*** Cut end [12:43:50]Read from MH i2c: 01 07 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: 01 07 00 F8 1E 00 00 00 00 00 FF 0F 2B [12:43:50]process_action close_receipt done [12:43:50]requested_data is exist [12:43:50]produce_requested_data [12:43:50]requested_item fm.sn is exist - process it [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 11 00 00 [12:43:50]Write to MH i2c: E2 08 00 F9 1E 80 11 00 00 00 00 00 00 91 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 17 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 17 00 F9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 E4 [12:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [12:43:50]wFMCommunicate OK [12:43:50]requested_item fd.num is exist - process it [12:43:50]SAM_PROTO_GetFieldsCounters [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 13 00 00 [12:43:50]Write to MH i2c: E2 08 00 FA 1E 80 13 00 00 00 00 00 00 94 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 62 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 62 00 FA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F4 CD 00 00 0E 04 04 00 BF 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 B3 [12:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F4 CD 00 00 0E 04 04 00 BF 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:43:50]wFMCommunicate OK [12:43:50]SAM_PROTO_GetFieldsCounters done [12:43:50]requested_item shift.num is exist - process it [12:43:50]requested_item shift.opened is exist - process it [12:43:50]req_shift_opened [12:43:50]FM_GetShiftState [12:43:50]SAM_PROTO_GetShiftState [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 13 01 00 [12:43:50]Write to MH i2c: E2 08 00 FB 1E 80 13 01 00 00 00 00 00 96 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 0E 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 0E 00 FB 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 F4 [12:43:50]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [12:43:50]wFMCommunicate OK [12:43:50]SAM_PROTO_GetShiftState done [12:43:50]FM_GetShiftState done [12:43:50]req_shift_opened done [12:43:50]requested_item shift.open_date is exist - process it [12:43:50]req_shift_open_date [12:43:50]req_shift_open_date done [12:43:50]produce_requested_data done [12:43:50]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52724,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [12:43:50]process_action_free close_receipt [12:43:50]json_value_free [12:43:50]json_value_free done [12:43:50]process_json_proto returns [12:43:50]Send response to host [12:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52724,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [12:43:50]free response buf [12:43:50]execute_script done [12:43:50]execute_script returns [12:43:50]free content buf [12:43:50]Sock 7.Close socket [12:43:50]Sock 7.Thread stoped [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:21]recv_with_timeout no data received [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:47]accept exits with 9 [13:09:47]New connection [13:09:47]New thread 3067293028 created [13:09:47]Thread 3067149668 joined [13:09:47]Waiting for new connection... [13:09:47] Sock 9.Parse request [13:09:47]Sock 9.Check first char [13:09:47]Sock 9.First char is OK [13:09:47]request: POST /json_proto HTTP/1.0 [13:09:47]Method: POST [13:09:47]URL: /json_proto [13:09:47]Method is POST - this is cgi request [13:09:47]url: /json_proto [13:09:47]query_string will be loaded in cgi processing [13:09:47]execute_cgi json_proto POST (null) [13:09:47]execute_cgi path=json_proto method=POST [13:09:47]POST find Content-Length [13:09:47]Host: 172.17.60.7:8080 [13:09:47]Content-Length: 1623 [13:09:47]Content-Type: application/json [13:09:47] [13:09:47]POST finish read [13:09:47]Found Content-Length = 1623 [13:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122855", "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" : 155.00, "quantity" : 1.000, "sum" : 155.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": "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": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 570.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]execute_script... [13:09: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)122855", "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" : 155.00, "quantity" : 1.000, "sum" : 155.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": "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": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 570.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]POST & json_proto [13:09:47]process_json_proto [13:09:47]json parsed OK: [13:09:47]protocol is kg_v1.0 [13:09:47]action value=close_receipt [13:09:47]process_action close_receipt [13:09:47]cmd_close_receipt [13:09:47]MH_GetDate [13:09:47]Write to MH i2c: F0 00 00 FC 1E 09 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 FC 1E 00 A0 09 BA 66 63 9B 67 64 A4 [13:09:47]GetLastDocTimeStamp 1723466631 [13:09:47]current date 1723468192 [13:09:47]FM_GetShiftState [13:09:47]SAM_PROTO_GetShiftState [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:47]CAPDU: 80 13 01 00 [13:09:47]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:47]Read from MH i2c: E2 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 0E 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 F6 [13:09:47]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:09:47]wFMCommunicate OK [13:09:47]SAM_PROTO_GetShiftState done [13:09:47]FM_GetShiftState done [13:09:47]opened in 1723422684 [13:09:47]opened+sec_in_day 1723509084 [13:09:47]quantity*price = 15500 [13:09:47]sum+1 = 15501 [13:09:47]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% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 570.00 НСП 1% : 5.04 НДС 12% : 60.53 Наличными: 0.00 Безнал.: 570.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 43 12.08.2024 13:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52725 ФПД: 107697649844326 /tax-web-control/client/api/v1/ticket?date=20240812T130952&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52725&fm=107697649844326&tin=02508201610067®Number=0000000000090834&sum=57000 0 [13:09:48]StoreToDocumentArchive [13:09:48]shift 447 fd 52725 [13:09:48]save to /storage/0447/doc_00052725 [13:09:48]save last doc name /storage/0447/doc_00052725 to /storage/kkm_last_doc_name [13:09:48]save OK [13:09:48]Clear old archive folders... [13:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=617 [13:09:48]tlvbuf is 012D40C0 [13:09:48]SAM_PROTO_ClearQueue [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 09 00 00 [13:09:48]Write to MH i2c: E2 08 00 0A 1F 80 09 00 00 00 00 00 00 9B [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_ClearQueue done [13:09:48]KKMCreateOFDPacket [13:09:48]OFDProtocolAddRootSTLVToBuf [13:09:48]FM_MakeSignedData [13:09:48]FM_MakeSignedData [13:09:48]SAM_PROTO_SignData [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 01 02 [13:09:48]Write to MH i2c: E2 08 00 0B 1F 80 0D 01 02 00 00 00 00 A3 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=255 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 02 02 FA 03 00 69 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 [13:09:48]Write to MH i2c: E2 02 01 0C 1F 80 0D 02 02 FA 00 03 00 69 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 00 00 B2 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=255 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 02 02 FA 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 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 [13:09:48]Write to MH i2c: E2 02 01 0D 1F 80 0D 02 02 FA 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 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 00 00 AD [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=126 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 02 02 79 06 00 A5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 DE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A0 09 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F5 CD 00 00 35 04 06 00 61 F3 50 29 80 66 [13:09:49]Write to MH i2c: E2 81 00 0E 1F 80 0D 02 02 79 00 06 00 A5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 DE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A0 09 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F5 CD 00 00 35 04 06 00 61 F3 50 29 80 66 00 00 43 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 03 02 [13:09:49]Write to MH i2c: E2 08 00 0F 1F 80 0D 03 02 00 00 00 00 A9 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0B 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0B 00 0F 1F 00 48 4C 7E C8 75 86 E9 3B 90 00 A3 [13:09:49]RAPDU: 48 4C 7E C8 75 86 E9 3B 90 00 [13:09:49]wFMCommunicate OK [13:09:49]SAM_PROTO_SignData done [13:09:49]FM_MakeSignedData done [13:09:49]CreateOFDProtocolMessage [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 11 00 00 [13:09:49]Write to MH i2c: E2 08 00 10 1F 80 11 00 00 00 00 00 00 A9 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 17 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 17 00 10 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 FC [13:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:09:49]wFMCommunicate OK [13:09:49]CreateOFDProtocolMessage done [13:09:49]OFDSenderStorePacket 52725 [13:09:49]StoreOFDPacket docnum=52725 [13:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 7D 02 00 00 51 4B 75 02 49 FB 5A 03 01 00 03 00 69 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 DE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A0 09 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F5 CD 00 00 35 04 06 00 61 F3 50 29 80 66 48 4C 7E C8 75 86 E9 3B [13:09:49]CheckFolder [13:09:49]dirname=/storage/ofd_packets [13:09:49]CheckFolder done [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00052725 [13:09:49]NVStorageSaveData ofd_packets/00052725 [13:09:49]File name is /storage/ofd_packets/00052725 [13:09:49]Write 667 bytes [13:09:49]NVStorageSaveData done [13:09:49]OFDSenderStorePacket done [13:09:49]KKMCreateOFDPacket done [13:09:49]NVStorageSaveData kkm_last_timestamp [13:09:49]File name is /storage/kkm_last_timestamp [13:09:49]Write 4 bytes [13:09:49]NVStorageSaveData done [13:09:49]ExternCall_PrintAddStr [13:09:49]wPrintStart [13:09:49]Write to MH i2c: 01 00 00 11 1F 30 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 11 1F 00 00 00 00 00 FF 0F 45 [13:09:49]RasterBufferAndPrint [13:09:49]line Счет N : (3)122855 [13:09:49]line ИНН: 02508201610067 [13:09:49]line Контрольно-Кассовый Чек [13:09:49]line ПРОДАЖА [13:09:49]line Товар: 5449000176448 [13:09:49]line Сок Piko Pulpy апельсин ПЭТ 1л [13:09:49]line 1.000 * 155.00 [13:09:49]line = 155.00 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line Товар: 4700000160358 [13:09:49]line Вода Легенда 1л [13:09:49]line 2.000 * 50.00 [13:09:49]line = 100.00 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line Товар: 5449000054227 [13:09:49]line Напиток Кока-Кола 1л [13:09:49]line 1.000 * 125.00 [13:09:49]line = 125.00 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line Товар: 4700000480050 [13:09:49]line Напиток Nitro Energy эн green ж/б 0,45л [13:09:49]line 2.000 * 95.00 [13:09:49]line = 190.00 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line ИТОГО: 570.00 [13:09:49]line НСП 1% : 5.04 [13:09:49]line НДС 12% : 60.53 [13:09:49]line Наличными: 0.00 [13:09:49]line Безнал.: 570.00 [13:09:49]line Место: АЗС № 54 "Партнер Нефть" [13:09:49]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [13:09:49]line СНО: Общий режим [13:09:49]line Чек 43 12.08.2024 13:09 [13:09:49]line Смена: 447 ФФД: 1.0 [13:09:49]line ЗНМ: 0300000007 [13:09:49]line РНМ: 0000000000090834 [13:09:49]line Версия ККМ: 001 [13:09:49]line Платежная система: О! деньги [13:09:49]line ФМ: 0000000000874715 [13:09:49]line ФД: 52725 [13:09:49]line ФПД: 107697649844326 [13:09:49]line /tax-web-control/client/api/v1/ticket?date=20240812T130952&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52725&fm=107697649844326&tin=02508201610067®Number=0000000000090834&sum=57000 [13:09:49]line 0 [13:09:49]OFD Sender: Processing packet 52725 [packets to send 55, broken 54] [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00052725 [13:09:49]OFD Sender: To server: pG, [13:09:49]CommunicateWithHost lk.salyk.kg:30040 [13:09:49]ConnectInit lk.salyk.kg [13:09:49]written 0, free lines is 4095 [13:09:50]Connected sock=10 [13:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 7D 02 00 00 51 4B 75 02 49 FB 5A 03 01 00 03 00 69 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 DE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A0 09 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F5 CD 00 00 35 04 06 00 61 F3 50 29 80 66 48 4C 7E C8 75 86 E9 3B [13:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 FC 7A 47 00 CA 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 34 37 31 35 10 04 04 00 F5 CD 00 00 F4 03 04 00 3A B1 B9 66 B6 04 01 00 00 B0 11 D5 2A 2E 00 CB D9 [13:09:50]CommunicateWithHost err = 0 [13:09:50]CheckOFDResponse [13:09:50]1017 (14) - 77093643461234 [13:09:50]1041 (16) - 0000000000874715 [13:09:50]1040 (4) - 52725 [13:09:50]1012 (4) - 12.08.2024 06:52 [13:09:50]1206 (1) - 0 [13:09:50]OFD Sender: Remove packet 52725 [13:09:50]ProducePacketName [13:09:50]name=ofd_packets/00052725 [13:09:50]NVStorageDeleteData [13:09:50]Write to MH i2c: 01 00 00 4E 1F 6D [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: 01 07 00 4E 1F 00 00 00 00 00 79 0B F8 [13:09:50]RasterBufferAndPrint [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]line [13:09:50]written 0, free lines is 2945 [13:09:50]MH_Cut [13:09:50]Write to MH i2c: D1 01 00 55 1F 01 46 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: D1 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: D1 01 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: D1 01 00 55 1F 00 45 [13:09:50]Write to MH i2c: 01 00 00 56 1F 75 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]OFD Sender: No OFD packet to send [13:09:51]*** Cut start [13:09:51]*** Purtial cut [13:09:51]*** Stage 1: CUTSNS_PIN = 1 [13:09:51]Read from MH i2c: 01 [13:09:51]MH_I2C_Read... [13:09:51]*** Stop cut motor [13:09:51]*** Cut end [13:09:51]Read from MH i2c: 01 07 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 56 1F 00 00 00 00 00 FF 0F 8A [13:09:51]process_action close_receipt done [13:09:51]requested_data is exist [13:09:51]produce_requested_data [13:09:51]requested_item fm.sn is exist - process it [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 11 00 00 [13:09:51]Write to MH i2c: E2 08 00 57 1F 80 11 00 00 00 00 00 00 F0 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:52]Read from MH i2c: E2 17 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 17 00 57 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 43 [13:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:09:52]wFMCommunicate OK [13:09:52]requested_item fd.num is exist - process it [13:09:52]SAM_PROTO_GetFieldsCounters [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 13 00 00 [13:09:52]Write to MH i2c: E2 08 00 58 1F 80 13 00 00 00 00 00 00 F3 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 62 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 62 00 58 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F5 CD 00 00 0E 04 04 00 BF 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 16 [13:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F5 CD 00 00 0E 04 04 00 BF 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 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_GetFieldsCounters done [13:09:52]requested_item shift.num is exist - process it [13:09:52]requested_item shift.opened is exist - process it [13:09:52]req_shift_opened [13:09:52]FM_GetShiftState [13:09:52]SAM_PROTO_GetShiftState [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 13 01 00 [13:09:52]Write to MH i2c: E2 08 00 59 1F 80 13 01 00 00 00 00 00 F5 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0E 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 0E 00 59 1F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 53 [13:09:52]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_GetShiftState done [13:09:52]FM_GetShiftState done [13:09:52]req_shift_opened done [13:09:52]requested_item shift.open_date is exist - process it [13:09:52]req_shift_open_date [13:09:52]req_shift_open_date done [13:09:52]produce_requested_data done [13:09:52]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52725,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [13:09:52]process_action_free close_receipt [13:09:52]json_value_free [13:09:52]json_value_free done [13:09:52]process_json_proto returns [13:09:52]Send response to host [13:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52725,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [13:09:52]free response buf [13:09:52]execute_script done [13:09:52]execute_script returns [13:09:52]free content buf [13:09:52]Sock 9.Close socket [13:09:52]Sock 9.Thread stoped [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]accept exits with 7 [13:23:01]New connection [13:23:01]New thread 3067149668 created [13:23:01]Thread 3067293028 joined [13:23:01]Waiting for new connection... [13:23:01] Sock 7.Parse request [13:23:01]Sock 7.Check first char [13:23:01]Sock 7.First char is OK [13:23:01]request: POST /json_proto HTTP/1.0 [13:23:01]Method: POST [13:23:01]URL: /json_proto [13:23:01]Method is POST - this is cgi request [13:23:01]url: /json_proto [13:23:01]query_string will be loaded in cgi processing [13:23:01]execute_cgi json_proto POST (null) [13:23:01]execute_cgi path=json_proto method=POST [13:23:01]POST find Content-Length [13:23:01]Host: 172.17.60.7:8080 [13:23:01]Content-Length: 1638 [13:23:01]Content-Type: application/json [13:23:01] [13:23:01]POST finish read [13:23:01]Found Content-Length = 1638 [13:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122856", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040115271", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0441\u043B\u0438\u0432\u043E\u0447\u043D\u043E\u0435", "price" : 30.00, "quantity" : 1.000, "sum" : 30.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:01]execute_script... [13:23: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)122856", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040115271", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0441\u043B\u0438\u0432\u043E\u0447\u043D\u043E\u0435", "price" : 30.00, "quantity" : 1.000, "sum" : 30.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:01]POST & json_proto [13:23:01]process_json_proto [13:23:01]json parsed OK: [13:23:01]protocol is kg_v1.0 [13:23:01]action value=close_receipt [13:23:01]process_action close_receipt [13:23:01]cmd_close_receipt [13:23:01]MH_GetDate [13:23:01]Write to MH i2c: F0 00 00 5A 1F 68 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: F0 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: F0 09 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: F0 09 00 5A 1F 00 BA 0C BA 66 63 9B 67 64 20 [13:23:01]GetLastDocTimeStamp 1723468192 [13:23:01]current date 1723468986 [13:23:01]FM_GetShiftState [13:23:01]SAM_PROTO_GetShiftState [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 13 01 00 [13:23:01]Write to MH i2c: E2 08 00 5B 1F 80 13 01 00 00 00 00 00 F7 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0E 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 0E 00 5B 1F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 55 [13:23:01]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:23:01]wFMCommunicate OK [13:23:01]SAM_PROTO_GetShiftState done [13:23:01]FM_GetShiftState done [13:23:01]opened in 1723422684 [13:23:01]opened+sec_in_day 1723509084 [13:23:01]quantity*price = 7500 [13:23:01]sum+1 = 7501 [13:23:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040115271 Мороженое сливочное 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 0.00 Безнал.: 310.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 44 12.08.2024 13:23 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52726 ФПД: 151780762736033 /tax-web-control/client/api/v1/ticket?date=20240812T132306&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52726&fm=151780762736033&tin=02508201610067®Number=0000000000090834&sum=31000 0 [13:23:02]StoreToDocumentArchive [13:23:02]shift 447 fd 52726 [13:23:02]save to /storage/0447/doc_00052726 [13:23:02]save last doc name /storage/0447/doc_00052726 to /storage/kkm_last_doc_name [13:23:02]save OK [13:23:02]Clear old archive folders... [13:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=600 [13:23:02]tlvbuf is B6EFB670 [13:23:02]SAM_PROTO_ClearQueue [13:23:02]wFMCommunicate request_size=4 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 09 00 00 [13:23:02]Write to MH i2c: E2 08 00 68 1F 80 09 00 00 00 00 00 00 F9 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 68 1F 00 90 00 FB [13:23:02]RAPDU: 90 00 [13:23:02]wFMCommunicate OK [13:23:02]SAM_PROTO_ClearQueue done [13:23:02]KKMCreateOFDPacket [13:23:02]OFDProtocolAddRootSTLVToBuf [13:23:02]FM_MakeSignedData [13:23:02]FM_MakeSignedData [13:23:02]SAM_PROTO_SignData [13:23:02]wFMCommunicate request_size=4 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 0D 01 02 [13:23:02]Write to MH i2c: E2 08 00 69 1F 80 0D 01 02 00 00 00 00 01 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 69 1F 00 90 00 FC [13:23:02]RAPDU: 90 00 [13:23:02]wFMCommunicate OK [13:23:02]wFMCommunicate request_size=255 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 0D 02 02 FA 03 00 58 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 [13:23:02]Write to MH i2c: E2 02 01 6A 1F 80 0D 02 02 FA 00 03 00 58 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 00 00 FB [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 6A 1F 00 90 00 FD [13:23:02]RAPDU: 90 00 [13:23:02]wFMCommunicate OK [13:23:02]wFMCommunicate request_size=255 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 0D 02 02 FA 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 30 2C 35 D0 BB 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 23 04 69 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 35 32 37 31 06 04 25 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 [13:23:02]Write to MH i2c: E2 02 01 6B 1F 80 0D 02 02 FA 00 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 30 2C 35 D0 BB 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 23 04 69 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 35 32 37 31 06 04 25 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 00 24 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 03 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 03 00 6B 1F 00 90 00 FE [13:23:03]RAPDU: 90 00 [13:23:03]wFMCommunicate OK [13:23:03]wFMCommunicate request_size=109 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 0D 02 02 68 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BA 0C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F6 CD 00 00 35 04 06 00 8A 0B 36 72 55 A1 [13:23:03]Write to MH i2c: E2 70 00 6C 1F 80 0D 02 02 68 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BA 0C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F6 CD 00 00 35 04 06 00 8A 0B 36 72 55 A1 00 00 56 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 03 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 03 00 6C 1F 00 90 00 FF [13:23:03]RAPDU: 90 00 [13:23:03]wFMCommunicate OK [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 0D 03 02 [13:23:03]Write to MH i2c: E2 08 00 6D 1F 80 0D 03 02 00 00 00 00 07 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0B 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0B 00 6D 1F 00 3C FE 5E 18 B4 65 4A 8D 90 00 A8 [13:23:03]RAPDU: 3C FE 5E 18 B4 65 4A 8D 90 00 [13:23:03]wFMCommunicate OK [13:23:03]SAM_PROTO_SignData done [13:23:03]FM_MakeSignedData done [13:23:03]CreateOFDProtocolMessage [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 11 00 00 [13:23:03]Write to MH i2c: E2 08 00 6E 1F 80 11 00 00 00 00 00 00 07 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 6E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 5A [13:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:23:03]wFMCommunicate OK [13:23:03]CreateOFDProtocolMessage done [13:23:03]OFDSenderStorePacket 52726 [13:23:03]StoreOFDPacket docnum=52726 [13:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 6C 02 00 00 0D 81 64 02 3B 21 5A 03 01 00 03 00 58 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 30 2C 35 D0 BB 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 23 04 69 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 35 32 37 31 06 04 25 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BA 0C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F6 CD 00 00 35 04 06 00 8A 0B 36 72 55 A1 3C FE 5E 18 B4 65 4A 8D [13:23:03]CheckFolder [13:23:03]dirname=/storage/ofd_packets [13:23:03]CheckFolder done [13:23:03]ProducePacketName [13:23:03]name=ofd_packets/00052726 [13:23:03]NVStorageSaveData ofd_packets/00052726 [13:23:03]File name is /storage/ofd_packets/00052726 [13:23:03]Write 650 bytes [13:23:03]NVStorageSaveData done [13:23:03]OFDSenderStorePacket done [13:23:03]KKMCreateOFDPacket done [13:23:03]NVStorageSaveData kkm_last_timestamp [13:23:03]File name is /storage/kkm_last_timestamp [13:23:03]Write 4 bytes [13:23:03]NVStorageSaveData done [13:23:03]ExternCall_PrintAddStr [13:23:03]wPrintStart [13:23:03]Write to MH i2c: 01 00 00 6F 1F 8E [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: 01 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: 01 07 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: 01 07 00 6F 1F 00 00 00 00 00 FF 0F A3 [13:23:03]RasterBufferAndPrint [13:23:03]line Счет N : (3)122856 [13:23:03]line ИНН: 02508201610067 [13:23:03]line Контрольно-Кассовый Чек [13:23:03]line ПРОДАЖА [13:23:03]line Товар: 54491472 [13:23:03]line Напиток Кока-Кола 0,5л [13:23:03]line 1.000 * 75.00 [13:23:03]line = 75.00 [13:23:03]line НДС 12% НСП 1% [13:23:03]line > о реализуемом товаре [13:23:03]line Товар: 5449000054227 [13:23:03]line Напиток Кока-Кола 1л [13:23:03]line 1.000 * 125.00 [13:23:03]line = 125.00 [13:23:03]line НДС 12% НСП 1% [13:23:03]line > о реализуемом товаре [13:23:03]line Товар: 4700000310036 [13:23:03]line Вода Жалалабат 27 0,5л [13:23:03]line 2.000 * 40.00 [13:23:03]line = 80.00 [13:23:03]line НДС 12% НСП 1% [13:23:03]line > о реализуемом товаре [13:23:03]line Товар: 4700040115271 [13:23:03]line Мороженое сливочное [13:23:03]line 1.000 * 30.00 [13:23:03]line = 30.00 [13:23:03]line НДС 12% НСП 1% [13:23:03]line > о реализуемом товаре [13:23:03]line ИТОГО: 310.00 [13:23:03]line НСП 1% : 2.74 [13:23:03]line НДС 12% : 32.92 [13:23:03]line Наличными: 0.00 [13:23:03]line Безнал.: 310.00 [13:23:03]line Место: АЗС № 54 "Партнер Нефть" [13:23:03]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [13:23:03]line СНО: Общий режим [13:23:03]line Чек 44 12.08.2024 13:23 [13:23:03]line Смена: 447 ФФД: 1.0 [13:23:03]line ЗНМ: 0300000007 [13:23:03]line РНМ: 0000000000090834 [13:23:03]line Версия ККМ: 001 [13:23:03]line Платежная система: О! деньги [13:23:03]line ФМ: 0000000000874715 [13:23:03]line ФД: 52726 [13:23:03]line ФПД: 151780762736033 [13:23:03]line /tax-web-control/client/api/v1/ticket?date=20240812T132306&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52726&fm=151780762736033&tin=02508201610067®Number=0000000000090834&sum=31000 [13:23:03]line 0 [13:23:03]OFD Sender: Processing packet 52726 [packets to send 55, broken 54] [13:23:03]ProducePacketName [13:23:03]name=ofd_packets/00052726 [13:23:03]OFD Sender: To server: pG, [13:23:03]CommunicateWithHost lk.salyk.kg:30040 [13:23:03]ConnectInit lk.salyk.kg [13:23:03]written 0, free lines is 4095 [13:23:03]Connected sock=10 [13:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 6C 02 00 00 0D 81 64 02 3B 21 5A 03 01 00 03 00 58 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 30 2C 35 D0 BB 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 23 04 69 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 35 32 37 31 06 04 25 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D1 81 D0 BB D0 B8 D0 B2 D0 BE D1 87 D0 BD D0 BE D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BA 0C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F6 CD 00 00 35 04 06 00 8A 0B 36 72 55 A1 3C FE 5E 18 B4 65 4A 8D [13:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 8F 35 47 00 78 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 34 37 31 35 10 04 04 00 F6 CD 00 00 F4 03 04 00 54 B4 B9 66 B6 04 01 00 00 62 BA 42 E0 50 A0 A3 F9 [13:23:04]CommunicateWithHost err = 0 [13:23:04]CheckOFDResponse [13:23:04]1017 (14) - 77093643461234 [13:23:04]1041 (16) - 0000000000874715 [13:23:04]1040 (4) - 52726 [13:23:04]1012 (4) - 12.08.2024 07:05 [13:23:04]1206 (1) - 0 [13:23:04]OFD Sender: Remove packet 52726 [13:23:04]ProducePacketName [13:23:04]name=ofd_packets/00052726 [13:23:04]NVStorageDeleteData [13:23:04]Write to MH i2c: 01 00 00 AA 1F C9 [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: 01 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: 01 07 00 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: 01 07 00 AA 1F 00 00 00 00 00 A9 0B 84 [13:23:04]RasterBufferAndPrint [13:23:04]line [13:23:04]line [13:23:04]line [13:23:04]line [13:23:04]line [13:23:04]written 0, free lines is 2993 [13:23:04]MH_Cut [13:23:04]Write to MH i2c: D1 01 00 B1 1F 01 A2 [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: D1 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: D1 01 00 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: D1 01 00 B1 1F 00 A1 [13:23:04]Write to MH i2c: 01 00 00 B2 1F D1 [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:04]OFD Sender: No OFD packet to send [13:23:05]*** Cut start [13:23:05]*** Purtial cut [13:23:05]*** Stage 1: CUTSNS_PIN = 1 [13:23:05]Read from MH i2c: 01 [13:23:05]MH_I2C_Read... [13:23:05]*** Stop cut motor [13:23:05]*** Cut end [13:23:05]Read from MH i2c: 01 07 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 07 00 B2 1F 00 00 00 00 00 FF 0F E6 [13:23:05]process_action close_receipt done [13:23:05]requested_data is exist [13:23:05]produce_requested_data [13:23:05]requested_item fm.sn is exist - process it [13:23:05]wFMCommunicate request_size=4 [13:23:05]MH_SAM_APDU [13:23:05]CAPDU: 80 11 00 00 [13:23:05]Write to MH i2c: E2 08 00 B3 1F 80 11 00 00 00 00 00 00 4C [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:05]Read from MH i2c: E2 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 17 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 17 00 B3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9F [13:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:23:05]wFMCommunicate OK [13:23:05]requested_item fd.num is exist - process it [13:23:05]SAM_PROTO_GetFieldsCounters [13:23:05]wFMCommunicate request_size=4 [13:23:05]MH_SAM_APDU [13:23:05]CAPDU: 80 13 00 00 [13:23:05]Write to MH i2c: E2 08 00 B4 1F 80 13 00 00 00 00 00 00 4F [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:05]Read from MH i2c: E2 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 62 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 62 00 B4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F6 CD 00 00 0E 04 04 00 BF 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 76 [13:23: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F6 CD 00 00 0E 04 04 00 BF 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:23:06]wFMCommunicate OK [13:23:06]SAM_PROTO_GetFieldsCounters done [13:23:06]requested_item shift.num is exist - process it [13:23:06]requested_item shift.opened is exist - process it [13:23:06]req_shift_opened [13:23:06]FM_GetShiftState [13:23:06]SAM_PROTO_GetShiftState [13:23:06]wFMCommunicate request_size=4 [13:23:06]MH_SAM_APDU [13:23:06]CAPDU: 80 13 01 00 [13:23:06]Write to MH i2c: E2 08 00 B5 1F 80 13 01 00 00 00 00 00 51 [13:23:06]Write i2c OK [13:23:06]MH_I2C_Read... [13:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:06]Read from MH i2c: E2 [13:23:06]MH_I2C_Read... [13:23:06]Read from MH i2c: E2 0E 00 [13:23:06]MH_I2C_Read... [13:23:06]Read from MH i2c: E2 0E 00 B5 1F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AF [13:23:06]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:23:06]wFMCommunicate OK [13:23:06]SAM_PROTO_GetShiftState done [13:23:06]FM_GetShiftState done [13:23:06]req_shift_opened done [13:23:06]requested_item shift.open_date is exist - process it [13:23:06]req_shift_open_date [13:23:06]req_shift_open_date done [13:23:06]produce_requested_data done [13:23:06]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52726,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [13:23:06]process_action_free close_receipt [13:23:06]json_value_free [13:23:06]json_value_free done [13:23:06]process_json_proto returns [13:23:06]Send response to host [13:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52726,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [13:23:06]free response buf [13:23:06]execute_script done [13:23:06]execute_script returns [13:23:06]free content buf [13:23:06]Sock 7.Close socket [13:23:06]Sock 7.Thread stoped [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [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:28]accept exits with 9 [13:37:28]New connection [13:37:28]New thread 3067293028 created [13:37:28]Thread 3067149668 joined [13:37:28]Waiting for new connection... [13:37:28] Sock 9.Parse request [13:37:28]Sock 9.Check first char [13:37:28]Sock 9.First char is OK [13:37:28]request: POST /json_proto HTTP/1.0 [13:37:28]Method: POST [13:37:28]URL: /json_proto [13:37:28]Method is POST - this is cgi request [13:37:28]url: /json_proto [13:37:28]query_string will be loaded in cgi processing [13:37:28]execute_cgi json_proto POST (null) [13:37:28]execute_cgi path=json_proto method=POST [13:37:28]POST find Content-Length [13:37:28]Host: 172.17.60.7:8080 [13:37:28]Content-Length: 1062 [13:37:28]Content-Type: application/json [13:37:28] [13:37:28]POST finish read [13:37:28]Found Content-Length = 1062 [13:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122857", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:28]execute_script... [13:37: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)122857", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:28]POST & json_proto [13:37:28]process_json_proto [13:37:28]json parsed OK: [13:37:28]protocol is kg_v1.0 [13:37:28]action value=close_receipt [13:37:28]process_action close_receipt [13:37:28]cmd_close_receipt [13:37:28]MH_GetDate [13:37:28]Write to MH i2c: F0 00 00 B6 1F C4 [13:37:28]Write i2c OK [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: F0 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: F0 09 00 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: F0 09 00 B6 1F 00 1D 10 BA 66 63 9B 67 64 E3 [13:37:28]GetLastDocTimeStamp 1723468986 [13:37:28]current date 1723469853 [13:37:28]FM_GetShiftState [13:37:28]SAM_PROTO_GetShiftState [13:37:28]wFMCommunicate request_size=4 [13:37:28]MH_SAM_APDU [13:37:28]CAPDU: 80 13 01 00 [13:37:28]Write to MH i2c: E2 08 00 B7 1F 80 13 01 00 00 00 00 00 53 [13:37:28]Write i2c OK [13:37:28]MH_I2C_Read... [13:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:28]Read from MH i2c: E2 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: E2 0E 00 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: E2 0E 00 B7 1F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 B1 [13:37:28]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:37:28]wFMCommunicate OK [13:37:28]SAM_PROTO_GetShiftState done [13:37:28]FM_GetShiftState done [13:37:28]opened in 1723422684 [13:37:28]opened+sec_in_day 1723509084 [13:37:28]quantity*price = 4000 [13:37:28]sum+1 = 4001 [13:37:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.70 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 45 12.08.2024 13:37 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52727 ФПД: 141956651380573 /tax-web-control/client/api/v1/ticket?date=20240812T133733&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52727&fm=141956651380573&tin=02508201610067®Number=0000000000090834&sum=8000 0 [13:37:29]StoreToDocumentArchive [13:37:29]shift 447 fd 52727 [13:37:29]save to /storage/0447/doc_00052727 [13:37:29]save last doc name /storage/0447/doc_00052727 to /storage/kkm_last_doc_name [13:37:29]save OK [13:37:29]Clear old archive folders... [13:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=379 [13:37:29]tlvbuf is 01278B90 [13:37:29]SAM_PROTO_ClearQueue [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 09 00 00 [13:37:29]Write to MH i2c: E2 08 00 C4 1F 80 09 00 00 00 00 00 00 55 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 C4 1F 00 90 00 57 [13:37:29]RAPDU: 90 00 [13:37:29]wFMCommunicate OK [13:37:29]SAM_PROTO_ClearQueue done [13:37:29]KKMCreateOFDPacket [13:37:29]OFDProtocolAddRootSTLVToBuf [13:37:29]FM_MakeSignedData [13:37:29]FM_MakeSignedData [13:37:29]SAM_PROTO_SignData [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 0D 01 02 [13:37:29]Write to MH i2c: E2 08 00 C5 1F 80 0D 01 02 00 00 00 00 5D [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [13:37:29]RAPDU: 90 00 [13:37:29]wFMCommunicate OK [13:37:29]wFMCommunicate request_size=255 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 30 2C 35 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 [13:37:29]Write to MH i2c: E2 02 01 C6 1F 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 30 2C 35 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 00 33 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [13:37:30]RAPDU: 90 00 [13:37:30]wFMCommunicate OK [13:37:30]wFMCommunicate request_size=138 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 1D 10 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F7 CD 00 00 35 04 06 00 81 1B DB C7 6F 5D [13:37:30]Write to MH i2c: E2 8D 00 C7 1F 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 1D 10 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F7 CD 00 00 35 04 06 00 81 1B DB C7 6F 5D 00 00 52 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [13:37:30]RAPDU: 90 00 [13:37:30]wFMCommunicate OK [13:37:30]wFMCommunicate request_size=4 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 0D 03 02 [13:37:30]Write to MH i2c: E2 08 00 C8 1F 80 0D 03 02 00 00 00 00 62 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 0B 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 0B 00 C8 1F 00 33 FA 2B E6 B6 90 34 3A 90 00 55 [13:37:30]RAPDU: 33 FA 2B E6 B6 90 34 3A 90 00 [13:37:30]wFMCommunicate OK [13:37:30]SAM_PROTO_SignData done [13:37:30]FM_MakeSignedData done [13:37:30]CreateOFDProtocolMessage [13:37:30]wFMCommunicate request_size=4 [13:37:30]MH_SAM_APDU [13:37:30]CAPDU: 80 11 00 00 [13:37:30]Write to MH i2c: E2 08 00 C9 1F 80 11 00 00 00 00 00 00 62 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:30]Read from MH i2c: E2 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 17 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: E2 17 00 C9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B5 [13:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:37:30]wFMCommunicate OK [13:37:30]CreateOFDProtocolMessage done [13:37:30]OFDSenderStorePacket 52727 [13:37:30]StoreOFDPacket docnum=52727 [13:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8F 01 00 00 0D B6 87 01 F9 8A 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 30 2C 35 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 1D 10 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F7 CD 00 00 35 04 06 00 81 1B DB C7 6F 5D 33 FA 2B E6 B6 90 34 3A [13:37:30]CheckFolder [13:37:30]dirname=/storage/ofd_packets [13:37:30]CheckFolder done [13:37:30]ProducePacketName [13:37:30]name=ofd_packets/00052727 [13:37:30]NVStorageSaveData ofd_packets/00052727 [13:37:30]File name is /storage/ofd_packets/00052727 [13:37:30]Write 429 bytes [13:37:30]NVStorageSaveData done [13:37:30]OFDSenderStorePacket done [13:37:30]KKMCreateOFDPacket done [13:37:30]NVStorageSaveData kkm_last_timestamp [13:37:30]File name is /storage/kkm_last_timestamp [13:37:30]Write 4 bytes [13:37:30]NVStorageSaveData done [13:37:30]ExternCall_PrintAddStr [13:37:30]wPrintStart [13:37:30]Write to MH i2c: 01 00 00 CA 1F E9 [13:37:30]OFD Sender: Processing packet 52727 [packets to send 55, broken 54] [13:37:30]ProducePacketName [13:37:30]name=ofd_packets/00052727 [13:37:30]OFD Sender: To server: pG, [13:37:30]CommunicateWithHost lk.salyk.kg:30040 [13:37:30]Write i2c OK [13:37:30]ConnectInit lk.salyk.kg [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 07 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 07 00 CA 1F 00 00 00 00 00 FF 0F FE [13:37:30]RasterBufferAndPrint [13:37:30]line Счет N : (3)122857 [13:37:30]line ИНН: 02508201610067 [13:37:30]line Контрольно-Кассовый Чек [13:37:30]line ПРОДАЖА [13:37:30]line Товар: 4700000160211 [13:37:30]line Вода Легенда 0,5л [13:37:30]line 1.000 * 40.00 [13:37:30]line = 40.00 [13:37:30]line НДС 12% НСП 1% [13:37:30]line > о реализуемом товаре [13:37:30]line Товар: 4700000310036 [13:37:30]line Вода Жалалабат 27 0,5л [13:37:30]line 1.000 * 40.00 [13:37:30]line = 40.00 [13:37:30]line НДС 12% НСП 1% [13:37:30]line > о реализуемом товаре [13:37:30]line ИТОГО: 80.00 [13:37:30]line НСП 1% : 0.70 [13:37:30]line НДС 12% : 8.50 [13:37:30]line Наличными: 0.00 [13:37:30]line Безнал.: 80.00 [13:37:30]line Место: АЗС № 54 "Партнер Нефть" [13:37:30]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [13:37:30]line СНО: Общий режим [13:37:30]line Чек 45 12.08.2024 13:37 [13:37:30]line Смена: 447 ФФД: 1.0 [13:37:30]line ЗНМ: 0300000007 [13:37:30]line РНМ: 0000000000090834 [13:37:30]line Версия ККМ: 001 [13:37:30]line Платежная система: О! деньги [13:37:30]line ФМ: 0000000000874715 [13:37:30]line ФД: 52727 [13:37:30]line ФПД: 141956651380573 [13:37:30]line /tax-web-control/client/api/v1/ticket?date=20240812T133733&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52727&fm=141956651380573&tin=02508201610067®Number=0000000000090834&sum=8000 [13:37:30]line 0 [13:37:30]written 0, free lines is 4095 [13:37:30]Connected sock=10 [13:37:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8F 01 00 00 0D B6 87 01 F9 8A 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 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 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 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 30 2C 35 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 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 1D 10 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F7 CD 00 00 35 04 06 00 81 1B DB C7 6F 5D 33 FA 2B E6 B6 90 34 3A [13:37:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 24 FB 47 00 2B 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F7 CD 00 00 F4 03 04 00 B6 B7 B9 66 B6 04 01 00 00 C4 FD 81 68 E2 1E B5 03 [13:37:31]CommunicateWithHost err = 0 [13:37:31]CheckOFDResponse [13:37:31]1017 (14) - 77093643461234 [13:37:31]1041 (16) - 0000000000874715 [13:37:31]1040 (4) - 52727 [13:37:31]1012 (4) - 12.08.2024 07:20 [13:37:31]1206 (1) - 0 [13:37:31]OFD Sender: Remove packet 52727 [13:37:31]ProducePacketName [13:37:31]name=ofd_packets/00052727 [13:37:31]NVStorageDeleteData [13:37:31]Write to MH i2c: 01 00 00 F9 1F 18 [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 07 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 07 00 F9 1F 00 00 00 00 00 6A 0C 95 [13:37:31]RasterBufferAndPrint [13:37:31]line [13:37:31]line [13:37:31]line [13:37:31]line [13:37:31]line [13:37:31]written 0, free lines is 3184 [13:37:31]MH_Cut [13:37:31]Write to MH i2c: D1 01 00 00 20 01 F2 [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: D1 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: D1 01 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: D1 01 00 00 20 00 F1 [13:37:31]Write to MH i2c: 01 00 00 01 20 21 [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]OFD Sender: No OFD packet to send [13:37:32]*** Cut start [13:37:32]*** Purtial cut [13:37:32]*** Stage 1: CUTSNS_PIN = 1 [13:37:32]Read from MH i2c: 01 [13:37:32]MH_I2C_Read... [13:37:32]*** Stop cut motor [13:37:32]*** Cut end [13:37:32]Read from MH i2c: 01 07 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: 01 07 00 01 20 00 00 00 00 00 FF 0F 36 [13:37:32]process_action close_receipt done [13:37:32]requested_data is exist [13:37:32]produce_requested_data [13:37:32]requested_item fm.sn is exist - process it [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 11 00 00 [13:37:32]Write to MH i2c: E2 08 00 02 20 80 11 00 00 00 00 00 00 9C [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 17 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 17 00 02 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 EF [13:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:37:32]wFMCommunicate OK [13:37:32]requested_item fd.num is exist - process it [13:37:32]SAM_PROTO_GetFieldsCounters [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 13 00 00 [13:37:32]Write to MH i2c: E2 08 00 03 20 80 13 00 00 00 00 00 00 9F [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 62 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 62 00 03 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F7 CD 00 00 0E 04 04 00 BF 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 CA [13:37: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F7 CD 00 00 0E 04 04 00 BF 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:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetFieldsCounters done [13:37:32]requested_item shift.num is exist - process it [13:37:32]requested_item shift.opened is exist - process it [13:37:32]req_shift_opened [13:37:32]FM_GetShiftState [13:37:32]SAM_PROTO_GetShiftState [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 13 01 00 [13:37:32]Write to MH i2c: E2 08 00 04 20 80 13 01 00 00 00 00 00 A1 [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 04 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 FF [13:37:32]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetShiftState done [13:37:32]FM_GetShiftState done [13:37:32]req_shift_opened done [13:37:32]requested_item shift.open_date is exist - process it [13:37:32]req_shift_open_date [13:37:32]req_shift_open_date done [13:37:32]produce_requested_data done [13:37:32]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52727,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [13:37:32]process_action_free close_receipt [13:37:32]json_value_free [13:37:32]json_value_free done [13:37:32]process_json_proto returns [13:37:32]Send response to host [13:37:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52727,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [13:37:32]free response buf [13:37:32]execute_script done [13:37:32]execute_script returns [13:37:32]free content buf [13:37:32]Sock 9.Close socket [13:37:32]Sock 9.Thread stoped [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:16]accept exits with 7 [13:48:16]New connection [13:48:16]New thread 3067149668 created [13:48:16]Thread 3067293028 joined [13:48:16]Waiting for new connection... [13:48:16] Sock 7.Parse request [13:48:16]Sock 7.Check first char [13:48:16]Sock 7.First char is OK [13:48:16]request: POST /json_proto HTTP/1.0 [13:48:16]Method: POST [13:48:16]URL: /json_proto [13:48:16]Method is POST - this is cgi request [13:48:16]url: /json_proto [13:48:16]query_string will be loaded in cgi processing [13:48:16]execute_cgi json_proto POST (null) [13:48:16]execute_cgi path=json_proto method=POST [13:48:16]POST find Content-Length [13:48:16]Host: 172.17.60.7:8080 [13:48:16]Content-Length: 1019 [13:48:16]Content-Type: application/json [13:48:16] [13:48:16]POST finish read [13:48:16]Found Content-Length = 1019 [13:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122858", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.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" : 140.00, "quantity" : 1.000, "sum" : 140.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:16]execute_script... [13:48: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)122858", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.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" : 140.00, "quantity" : 1.000, "sum" : 140.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:16]POST & json_proto [13:48:16]process_json_proto [13:48:16]json parsed OK: [13:48:16]protocol is kg_v1.0 [13:48:16]action value=close_receipt [13:48:16]process_action close_receipt [13:48:16]cmd_close_receipt [13:48:16]MH_GetDate [13:48:16]Write to MH i2c: F0 00 00 05 20 14 [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 09 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 09 00 05 20 00 A5 12 BA 66 63 9B 67 64 BD [13:48:16]GetLastDocTimeStamp 1723469853 [13:48:16]current date 1723470501 [13:48:16]FM_GetShiftState [13:48:16]SAM_PROTO_GetShiftState [13:48:16]wFMCommunicate request_size=4 [13:48:16]MH_SAM_APDU [13:48:16]CAPDU: 80 13 01 00 [13:48:16]Write to MH i2c: E2 08 00 06 20 80 13 01 00 00 00 00 00 A3 [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:16]Read from MH i2c: E2 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 0E 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 0E 00 06 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 01 [13:48:16]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:48:16]wFMCommunicate OK [13:48:16]SAM_PROTO_GetShiftState done [13:48:16]FM_GetShiftState done [13:48:16]opened in 1723422684 [13:48:16]opened+sec_in_day 1723509084 [13:48:16]quantity*price = 17500 [13:48:16]sum+1 = 17501 [13:48:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 0.00 Безнал.: 315.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 46 12.08.2024 13:48 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52728 ФПД: 19992997160388 /tax-web-control/client/api/v1/ticket?date=20240812T134821&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52728&fm=19992997160388&tin=02508201610067®Number=0000000000090834&sum=31500 0 [13:48:17]StoreToDocumentArchive [13:48:17]shift 447 fd 52728 [13:48:17]save to /storage/0447/doc_00052728 [13:48:17]save last doc name /storage/0447/doc_00052728 to /storage/kkm_last_doc_name [13:48:17]save OK [13:48:17]Clear old archive folders... [13:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=371 [13:48:17]tlvbuf is 0126E5C0 [13:48:17]SAM_PROTO_ClearQueue [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 09 00 00 [13:48:17]Write to MH i2c: E2 08 00 13 20 80 09 00 00 00 00 00 00 A5 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]SAM_PROTO_ClearQueue done [13:48:17]KKMCreateOFDPacket [13:48:17]OFDProtocolAddRootSTLVToBuf [13:48:17]FM_MakeSignedData [13:48:17]FM_MakeSignedData [13:48:17]SAM_PROTO_SignData [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 0D 01 02 [13:48:17]Write to MH i2c: E2 08 00 14 20 80 0D 01 02 00 00 00 00 AD [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]wFMCommunicate request_size=255 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 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 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 [13:48:17]Write to MH i2c: E2 02 01 15 20 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 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 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 78 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 15 20 00 90 00 A9 [13:48:18]RAPDU: 90 00 [13:48:18]wFMCommunicate OK [13:48:18]wFMCommunicate request_size=130 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 12 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F8 CD 00 00 35 04 06 00 12 2E FB 7E 65 C4 [13:48:18]Write to MH i2c: E2 85 00 16 20 80 0D 02 02 7D 00 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 12 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F8 CD 00 00 35 04 06 00 12 2E FB 7E 65 C4 00 00 F1 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 16 20 00 90 00 AA [13:48:18]RAPDU: 90 00 [13:48:18]wFMCommunicate OK [13:48:18]wFMCommunicate request_size=4 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 0D 03 02 [13:48:18]Write to MH i2c: E2 08 00 17 20 80 0D 03 02 00 00 00 00 B2 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0B 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0B 00 17 20 00 6E E7 02 18 B3 7B F5 E2 90 00 27 [13:48:18]RAPDU: 6E E7 02 18 B3 7B F5 E2 90 00 [13:48:18]wFMCommunicate OK [13:48:18]SAM_PROTO_SignData done [13:48:18]FM_MakeSignedData done [13:48:18]CreateOFDProtocolMessage [13:48:18]wFMCommunicate request_size=4 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 11 00 00 [13:48:18]Write to MH i2c: E2 08 00 18 20 80 11 00 00 00 00 00 00 B2 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 17 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 17 00 18 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 05 [13:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:48:18]wFMCommunicate OK [13:48:18]CreateOFDProtocolMessage done [13:48:18]OFDSenderStorePacket 52728 [13:48:18]StoreOFDPacket docnum=52728 [13:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 87 01 00 00 19 FF 7F 01 E2 A9 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 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 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 12 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F8 CD 00 00 35 04 06 00 12 2E FB 7E 65 C4 6E E7 02 18 B3 7B F5 E2 [13:48:18]CheckFolder [13:48:18]dirname=/storage/ofd_packets [13:48:18]CheckFolder done [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00052728 [13:48:18]NVStorageSaveData ofd_packets/00052728 [13:48:18]File name is /storage/ofd_packets/00052728 [13:48:18]Write 421 bytes [13:48:18]NVStorageSaveData done [13:48:18]OFDSenderStorePacket done [13:48:18]KKMCreateOFDPacket done [13:48:18]NVStorageSaveData kkm_last_timestamp [13:48:18]File name is /storage/kkm_last_timestamp [13:48:18]Write 4 bytes [13:48:18]NVStorageSaveData done [13:48:18]ExternCall_PrintAddStr [13:48:18]wPrintStart [13:48:18]Write to MH i2c: 01 00 00 19 20 39 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 [13:48:18]MH_I2C_Read... [13:48:18]OFD Sender: Processing packet 52728 [packets to send 55, broken 54] [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00052728 [13:48:18]OFD Sender: To server: pG, [13:48:18]CommunicateWithHost lk.salyk.kg:30040 [13:48:18]ConnectInit lk.salyk.kg [13:48:18]Read from MH i2c: 01 07 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 FF 0F 4E [13:48:18]RasterBufferAndPrint [13:48:18]line Счет N : (3)122858 [13:48:18]line ИНН: 02508201610067 [13:48:18]line Контрольно-Кассовый Чек [13:48:18]line ПРОДАЖА [13:48:18]line Товар: 4870002329487 [13:48:18]line Напиток Pepsi 1,5л [13:48:18]line 1.000 * 175.00 [13:48:18]line = 175.00 [13:48:18]line НДС 12% НСП 1% [13:48:18]line > о реализуемом товаре [13:48:18]line Товар: 48743570 [13:48:18]line Сигареты Winston XStyle Blue [13:48:18]line 1.000 * 140.00 [13:48:18]line = 140.00 [13:48:18]line НДС 12% НСП 1% [13:48:18]line > о реализуемом товаре [13:48:18]line ИТОГО: 315.00 [13:48:18]line НСП 1% : 2.79 [13:48:18]line НДС 12% : 33.45 [13:48:18]line Наличными: 0.00 [13:48:18]line Безнал.: 315.00 [13:48:18]line Место: АЗС № 54 "Партнер Нефть" [13:48:18]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [13:48:18]line СНО: Общий режим [13:48:18]line Чек 46 12.08.2024 13:48 [13:48:18]line Смена: 447 ФФД: 1.0 [13:48:18]line ЗНМ: 0300000007 [13:48:18]line РНМ: 0000000000090834 [13:48:18]line Версия ККМ: 001 [13:48:18]line Платежная система: О! деньги [13:48:18]line ФМ: 0000000000874715 [13:48:18]line ФД: 52728 [13:48:18]line ФПД: 19992997160388 [13:48:18]line /tax-web-control/client/api/v1/ticket?date=20240812T134821&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52728&fm=19992997160388&tin=02508201610067®Number=0000000000090834&sum=31500 [13:48:18]line 0 [13:48:18]written 0, free lines is 4095 [13:48:18]Connected sock=9 [13:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 87 01 00 00 19 FF 7F 01 E2 A9 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 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 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 7B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A5 12 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F8 CD 00 00 35 04 06 00 12 2E FB 7E 65 C4 6E E7 02 18 B3 7B F5 E2 [13:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 A3 CE 47 00 7A D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F8 CD 00 00 F4 03 04 00 3E BA B9 66 B6 04 01 00 00 96 E9 C9 19 DC 46 7D E3 [13:48:19]CommunicateWithHost err = 0 [13:48:19]CheckOFDResponse [13:48:19]1017 (14) - 77093643461234 [13:48:19]1041 (16) - 0000000000874715 [13:48:19]1040 (4) - 52728 [13:48:19]1012 (4) - 12.08.2024 07:31 [13:48:19]1206 (1) - 0 [13:48:19]OFD Sender: Remove packet 52728 [13:48:19]ProducePacketName [13:48:19]name=ofd_packets/00052728 [13:48:19]NVStorageDeleteData [13:48:19]Write to MH i2c: 01 00 00 48 20 68 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 07 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 07 00 48 20 00 00 00 00 00 71 0C EC [13:48:19]RasterBufferAndPrint [13:48:19]line [13:48:19]line [13:48:19]line [13:48:19]line [13:48:19]line [13:48:19]written 0, free lines is 3191 [13:48:19]MH_Cut [13:48:19]Write to MH i2c: D1 01 00 4F 20 01 41 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: D1 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: D1 01 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: D1 01 00 4F 20 00 40 [13:48:19]Write to MH i2c: 01 00 00 50 20 70 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]OFD Sender: No OFD packet to send [13:48:20]*** Cut start [13:48:20]*** Purtial cut [13:48:20]*** Stage 1: CUTSNS_PIN = 1 [13:48:20]Read from MH i2c: 01 [13:48:20]MH_I2C_Read... [13:48:20]*** Stop cut motor [13:48:20]*** Cut end [13:48:20]Read from MH i2c: 01 07 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 50 20 00 00 00 00 00 FF 0F 85 [13:48:20]process_action close_receipt done [13:48:20]requested_data is exist [13:48:20]produce_requested_data [13:48:20]requested_item fm.sn is exist - process it [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 11 00 00 [13:48:20]Write to MH i2c: E2 08 00 51 20 80 11 00 00 00 00 00 00 EB [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 51 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 3E [13:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [13:48:20]wFMCommunicate OK [13:48:20]requested_item fd.num is exist - process it [13:48:20]SAM_PROTO_GetFieldsCounters [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 13 00 00 [13:48:20]Write to MH i2c: E2 08 00 52 20 80 13 00 00 00 00 00 00 EE [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 62 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 62 00 52 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F8 CD 00 00 0E 04 04 00 BF 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 1D [13:48: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F8 CD 00 00 0E 04 04 00 BF 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:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_GetFieldsCounters done [13:48:20]requested_item shift.num is exist - process it [13:48:20]requested_item shift.opened is exist - process it [13:48:20]req_shift_opened [13:48:20]FM_GetShiftState [13:48:20]SAM_PROTO_GetShiftState [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 13 01 00 [13:48:20]Write to MH i2c: E2 08 00 53 20 80 13 01 00 00 00 00 00 F0 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0E 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0E 00 53 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 4E [13:48:20]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_GetShiftState done [13:48:20]FM_GetShiftState done [13:48:20]req_shift_opened done [13:48:20]requested_item shift.open_date is exist - process it [13:48:20]req_shift_open_date [13:48:20]req_shift_open_date done [13:48:20]produce_requested_data done [13:48:20]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52728,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [13:48:20]process_action_free close_receipt [13:48:20]json_value_free [13:48:20]json_value_free done [13:48:20]process_json_proto returns [13:48:20]Send response to host [13:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52728,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [13:48:20]free response buf [13:48:20]execute_script done [13:48:20]execute_script returns [13:48:20]free content buf [13:48:20]Sock 7.Close socket [13:48:20]Sock 7.Thread stoped [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:09]accept exits with 10 [14:05:09]New connection [14:05:09]New thread 3067293028 created [14:05:09]Thread 3067149668 joined [14:05:09]Waiting for new connection... [14:05:09] Sock 10.Parse request [14:05:09]Sock 10.Check first char [14:05:09]Sock 10.First char is OK [14:05:09]request: POST /json_proto HTTP/1.0 [14:05:09]Method: POST [14:05:09]URL: /json_proto [14:05:09]Method is POST - this is cgi request [14:05:09]url: /json_proto [14:05:09]query_string will be loaded in cgi processing [14:05:09]execute_cgi json_proto POST (null) [14:05:09]execute_cgi path=json_proto method=POST [14:05:09]POST find Content-Length [14:05:09]Host: 172.17.60.7:8080 [14:05:09]Content-Length: 797 [14:05:09]Content-Type: application/json [14:05:09] [14:05:09]POST finish read [14:05:09]Found Content-Length = 797 [14:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122859", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:09]execute_script... [14:05:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122859", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:09]POST & json_proto [14:05:09]process_json_proto [14:05:09]json parsed OK: [14:05:09]protocol is kg_v1.0 [14:05:09]action value=close_receipt [14:05:09]process_action close_receipt [14:05:09]cmd_close_receipt [14:05:09]MH_GetDate [14:05:09]Write to MH i2c: F0 00 00 54 20 63 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: F0 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: F0 09 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: F0 09 00 54 20 00 9A 16 BA 66 63 9B 67 64 05 [14:05:09]GetLastDocTimeStamp 1723470501 [14:05:09]current date 1723471514 [14:05:09]FM_GetShiftState [14:05:09]SAM_PROTO_GetShiftState [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 13 01 00 [14:05:09]Write to MH i2c: E2 08 00 55 20 80 13 01 00 00 00 00 00 F2 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 0E 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 0E 00 55 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 50 [14:05:09]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:05:09]wFMCommunicate OK [14:05:09]SAM_PROTO_GetShiftState done [14:05:09]FM_GetShiftState done [14:05:09]opened in 1723422684 [14:05:09]opened+sec_in_day 1723509084 [14:05:09]quantity*price = 15000 [14:05:09]sum+1 = 15001 [14:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 47 12.08.2024 14:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52729 ФПД: 164991164557113 /tax-web-control/client/api/v1/ticket?date=20240812T140514&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52729&fm=164991164557113&tin=02508201610067®Number=0000000000090834&sum=15000 0 [14:05:10]StoreToDocumentArchive [14:05:10]shift 447 fd 52729 [14:05:10]save to /storage/0447/doc_00052729 [14:05:10]save last doc name /storage/0447/doc_00052729 to /storage/kkm_last_doc_name [14:05:10]save OK [14:05:10]Clear old archive folders... [14:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=283 [14:05:10]tlvbuf is 01291B80 [14:05:10]SAM_PROTO_ClearQueue [14:05:10]wFMCommunicate request_size=4 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 09 00 00 [14:05:10]Write to MH i2c: E2 08 00 62 20 80 09 00 00 00 00 00 00 F4 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 62 20 00 90 00 F6 [14:05:10]RAPDU: 90 00 [14:05:10]wFMCommunicate OK [14:05:10]SAM_PROTO_ClearQueue done [14:05:10]KKMCreateOFDPacket [14:05:10]OFDProtocolAddRootSTLVToBuf [14:05:10]FM_MakeSignedData [14:05:10]FM_MakeSignedData [14:05:10]SAM_PROTO_SignData [14:05:10]wFMCommunicate request_size=4 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 0D 01 02 [14:05:10]Write to MH i2c: E2 08 00 63 20 80 0D 01 02 00 00 00 00 FC [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 63 20 00 90 00 F7 [14:05:10]RAPDU: 90 00 [14:05:10]wFMCommunicate OK [14:05:10]wFMCommunicate request_size=255 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 9A 16 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 [14:05:10]Write to MH i2c: E2 02 01 64 20 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 9A 16 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 00 00 09 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]OFD Sender: No OFD packet to send [14:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 64 20 00 90 00 F8 [14:05:10]RAPDU: 90 00 [14:05:10]wFMCommunicate OK [14:05:10]wFMCommunicate request_size=42 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F9 CD 00 00 35 04 06 00 96 0E FF C1 27 39 [14:05:10]Write to MH i2c: E2 2D 00 65 20 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F9 CD 00 00 35 04 06 00 96 0E FF C1 27 39 00 00 5E [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 03 00 65 20 00 90 00 F9 [14:05:10]RAPDU: 90 00 [14:05:10]wFMCommunicate OK [14:05:10]wFMCommunicate request_size=4 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 0D 03 02 [14:05:10]Write to MH i2c: E2 08 00 66 20 80 0D 03 02 00 00 00 00 01 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 0B 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 0B 00 66 20 00 E3 D8 A5 85 9E 72 46 A3 90 00 E0 [14:05:10]RAPDU: E3 D8 A5 85 9E 72 46 A3 90 00 [14:05:10]wFMCommunicate OK [14:05:10]SAM_PROTO_SignData done [14:05:10]FM_MakeSignedData done [14:05:10]CreateOFDProtocolMessage [14:05:10]wFMCommunicate request_size=4 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 11 00 00 [14:05:10]Write to MH i2c: E2 08 00 67 20 80 11 00 00 00 00 00 00 01 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 17 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 17 00 67 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 54 [14:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:05:10]wFMCommunicate OK [14:05:10]CreateOFDProtocolMessage done [14:05:10]OFDSenderStorePacket 52729 [14:05:10]StoreOFDPacket docnum=52729 [14:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2F 01 00 00 13 52 27 01 FE B9 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 9A 16 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F9 CD 00 00 35 04 06 00 96 0E FF C1 27 39 E3 D8 A5 85 9E 72 46 A3 [14:05:10]CheckFolder [14:05:10]dirname=/storage/ofd_packets [14:05:10]CheckFolder done [14:05:10]ProducePacketName [14:05:10]name=ofd_packets/00052729 [14:05:10]NVStorageSaveData ofd_packets/00052729 [14:05:10]File name is /storage/ofd_packets/00052729 [14:05:10]Write 333 bytes [14:05:10]NVStorageSaveData done [14:05:10]OFDSenderStorePacket done [14:05:10]KKMCreateOFDPacket done [14:05:10]NVStorageSaveData kkm_last_timestamp [14:05:10]File name is /storage/kkm_last_timestamp [14:05:10]Write 4 bytes [14:05:10]NVStorageSaveData done [14:05:10]ExternCall_PrintAddStr [14:05:10]wPrintStart [14:05:10]Write to MH i2c: 01 00 00 68 20 88 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 07 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: 01 07 00 68 20 00 00 00 00 00 FF 0F 9D [14:05:10]RasterBufferAndPrint [14:05:10]line Счет N : (3)122859 [14:05:10]line ИНН: 02508201610067 [14:05:10]line Контрольно-Кассовый Чек [14:05:10]line ПРОДАЖА [14:05:10]line Товар: 4640030092567 [14:05:10]line Сигареты Esse Exchange Summer Red [14:05:10]line 1.000 * 150.00 [14:05:10]line = 150.00 [14:05:10]line НДС 12% НСП 1% [14:05:10]line > о реализуемом товаре [14:05:10]line ИТОГО: 150.00 [14:05:10]line НСП 1% : 1.33 [14:05:10]line НДС 12% : 15.93 [14:05:10]line Наличными: 0.00 [14:05:10]line Безнал.: 150.00 [14:05:10]line Место: АЗС № 54 "Партнер Нефть" [14:05:10]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [14:05:10]line СНО: Общий режим [14:05:10]line Чек 47 12.08.2024 14:05 [14:05:10]line Смена: 447 ФФД: 1.0 [14:05:10]line ЗНМ: 0300000007 [14:05:10]line РНМ: 0000000000090834 [14:05:10]line Версия ККМ: 001 [14:05:10]line Платежная система: О! деньги [14:05:10]line ФМ: 0000000000874715 [14:05:10]line ФД: 52729 [14:05:10]line ФПД: 164991164557113 [14:05:11]line /tax-web-control/client/api/v1/ticket?date=20240812T140514&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52729&fm=164991164557113&tin=02508201610067®Number=0000000000090834&sum=15000 [14:05:11]line 0 [14:05:11]OFD Sender: Processing packet 52729 [packets to send 55, broken 54] [14:05:11]ProducePacketName [14:05:11]name=ofd_packets/00052729 [14:05:11]OFD Sender: To server: pG, [14:05:11]CommunicateWithHost lk.salyk.kg:30040 [14:05:11]ConnectInit lk.salyk.kg [14:05:11]written 0, free lines is 4095 [14:05:11]Connected sock=9 [14:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2F 01 00 00 13 52 27 01 FE B9 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 9A 16 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F9 CD 00 00 35 04 06 00 96 0E FF C1 27 39 E3 D8 A5 85 9E 72 46 A3 [14:05:11]Write to MH i2c: 01 00 00 92 20 B2 [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: 01 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: 01 07 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: 01 07 00 92 20 00 00 00 00 00 A9 0C 6E [14:05:11]RasterBufferAndPrint [14:05:11]line [14:05:11]line [14:05:11]line [14:05:11]line [14:05:11]line [14:05:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 93 31 47 00 51 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 F9 CD 00 00 F4 03 04 00 33 BE B9 66 B6 04 01 00 00 28 6C 6B 34 C4 99 B5 B9 [14:05:11]CommunicateWithHost err = 0 [14:05:11]CheckOFDResponse [14:05:11]1017 (14) - 77093643461234 [14:05:11]1041 (16) - 0000000000874715 [14:05:11]1040 (4) - 52729 [14:05:11]1012 (4) - 12.08.2024 07:48 [14:05:11]1206 (1) - 0 [14:05:11]OFD Sender: Remove packet 52729 [14:05:11]ProducePacketName [14:05:11]name=ofd_packets/00052729 [14:05:11]NVStorageDeleteData [14:05:11]written 0, free lines is 3246 [14:05:11]MH_Cut [14:05:11]Write to MH i2c: D1 01 00 99 20 01 8B [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: D1 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: D1 01 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: D1 01 00 99 20 00 8A [14:05:11]Write to MH i2c: 01 00 00 9A 20 BA [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:12]OFD Sender: No OFD packet to send [14:05:12]*** Cut start [14:05:12]*** Purtial cut [14:05:12]*** Stage 1: CUTSNS_PIN = 1 [14:05:12]Read from MH i2c: 01 [14:05:12]MH_I2C_Read... [14:05:12]*** Stop cut motor [14:05:12]*** Cut end [14:05:12]Read from MH i2c: 01 07 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 9A 20 00 00 00 00 00 FF 0F CF [14:05:12]process_action close_receipt done [14:05:12]requested_data is exist [14:05:12]produce_requested_data [14:05:12]requested_item fm.sn is exist - process it [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 11 00 00 [14:05:12]Write to MH i2c: E2 08 00 9B 20 80 11 00 00 00 00 00 00 35 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 9B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 88 [14:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:05:12]wFMCommunicate OK [14:05:12]requested_item fd.num is exist - process it [14:05:12]SAM_PROTO_GetFieldsCounters [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 13 00 00 [14:05:12]Write to MH i2c: E2 08 00 9C 20 80 13 00 00 00 00 00 00 38 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 62 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 62 00 9C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F9 CD 00 00 0E 04 04 00 BF 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 6B [14:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 F9 CD 00 00 0E 04 04 00 BF 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 [14:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_GetFieldsCounters done [14:05:13]requested_item shift.num is exist - process it [14:05:13]requested_item shift.opened is exist - process it [14:05:13]req_shift_opened [14:05:13]FM_GetShiftState [14:05:13]SAM_PROTO_GetShiftState [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 13 01 00 [14:05:13]Write to MH i2c: E2 08 00 9D 20 80 13 01 00 00 00 00 00 3A [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0E 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0E 00 9D 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 98 [14:05:13]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_GetShiftState done [14:05:13]FM_GetShiftState done [14:05:13]req_shift_opened done [14:05:13]requested_item shift.open_date is exist - process it [14:05:13]req_shift_open_date [14:05:13]req_shift_open_date done [14:05:13]produce_requested_data done [14:05:13]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52729,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [14:05:13]process_action_free close_receipt [14:05:13]json_value_free [14:05:13]json_value_free done [14:05:13]process_json_proto returns [14:05:13]Send response to host [14:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52729,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [14:05:13]free response buf [14:05:13]execute_script done [14:05:13]execute_script returns [14:05:13]free content buf [14:05:13]Sock 10.Close socket [14:05:13]Sock 10.Thread stoped [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:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [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:44]ConnectInit Can't connect to host [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:46]accept exits with 7 [14:24:46]New connection [14:24:46]New thread 3067149668 created [14:24:46]Thread 3067293028 joined [14:24:46]Waiting for new connection... [14:24:46] Sock 7.Parse request [14:24:46]Sock 7.Check first char [14:24:46]Sock 7.First char is OK [14:24:46]request: POST /json_proto HTTP/1.0 [14:24:46]Method: POST [14:24:46]URL: /json_proto [14:24:46]Method is POST - this is cgi request [14:24:46]url: /json_proto [14:24:46]query_string will be loaded in cgi processing [14:24:46]execute_cgi json_proto POST (null) [14:24:46]execute_cgi path=json_proto method=POST [14:24:46]POST find Content-Length [14:24:46]Host: 172.17.60.7:8080 [14:24:46]Content-Length: 1334 [14:24:46]Content-Type: application/json [14:24:46] [14:24:46]POST finish read [14:24:46]Found Content-Length = 1334 [14:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122860", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 465.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:46]execute_script... [14:24: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)122860", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 465.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:46]POST & json_proto [14:24:46]process_json_proto [14:24:46]json parsed OK: [14:24:46]protocol is kg_v1.0 [14:24:46]action value=close_receipt [14:24:46]process_action close_receipt [14:24:46]cmd_close_receipt [14:24:46]MH_GetDate [14:24:46]Write to MH i2c: F0 00 00 9E 20 AD [14:24:46]Write i2c OK [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: F0 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: F0 09 00 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: F0 09 00 9E 20 00 34 1B BA 66 63 9B 67 64 EE [14:24:46]GetLastDocTimeStamp 1723471514 [14:24:46]current date 1723472692 [14:24:46]FM_GetShiftState [14:24:46]SAM_PROTO_GetShiftState [14:24:46]wFMCommunicate request_size=4 [14:24:46]MH_SAM_APDU [14:24:46]CAPDU: 80 13 01 00 [14:24:46]Write to MH i2c: E2 08 00 9F 20 80 13 01 00 00 00 00 00 3C [14:24:46]Write i2c OK [14:24:46]MH_I2C_Read... [14:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:46]Read from MH i2c: E2 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 0E 00 [14:24:46]MH_I2C_Read... [14:24:46]Read from MH i2c: E2 0E 00 9F 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 9A [14:24:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:24:46]wFMCommunicate OK [14:24:46]SAM_PROTO_GetShiftState done [14:24:46]FM_GetShiftState done [14:24:46]opened in 1723422684 [14:24:46]opened+sec_in_day 1723509084 [14:24:46]quantity*price = 20500 [14:24:46]sum+1 = 20501 [14:24:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 465.00 НСП 1% : 4.11 НДС 12% : 49.38 Наличными: 0.00 Безнал.: 465.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 48 12.08.2024 14:24 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52730 ФПД: 235492286273764 /tax-web-control/client/api/v1/ticket?date=20240812T142452&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52730&fm=235492286273764&tin=02508201610067®Number=0000000000090834&sum=46500 0 [14:24:47]StoreToDocumentArchive [14:24:47]shift 447 fd 52730 [14:24:47]save to /storage/0447/doc_00052730 [14:24:47]save last doc name /storage/0447/doc_00052730 to /storage/kkm_last_doc_name [14:24:47]save OK [14:24:47]Clear old archive folders... [14:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=488 [14:24:47]tlvbuf is B6FAB6E0 [14:24:47]SAM_PROTO_ClearQueue [14:24:47]wFMCommunicate request_size=4 [14:24:47]MH_SAM_APDU [14:24:47]CAPDU: 80 09 00 00 [14:24:47]Write to MH i2c: E2 08 00 AC 20 80 09 00 00 00 00 00 00 3E [14:24:47]Write i2c OK [14:24:47]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 AC 20 00 90 00 40 [14:24:48]RAPDU: 90 00 [14:24:48]wFMCommunicate OK [14:24:48]SAM_PROTO_ClearQueue done [14:24:48]KKMCreateOFDPacket [14:24:48]OFDProtocolAddRootSTLVToBuf [14:24:48]FM_MakeSignedData [14:24:48]FM_MakeSignedData [14:24:48]SAM_PROTO_SignData [14:24:48]wFMCommunicate request_size=4 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 0D 01 02 [14:24:48]Write to MH i2c: E2 08 00 AD 20 80 0D 01 02 00 00 00 00 46 [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 AD 20 00 90 00 41 [14:24:48]RAPDU: 90 00 [14:24:48]wFMCommunicate OK [14:24:48]wFMCommunicate request_size=255 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 0D 02 02 FA 03 00 E8 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 [14:24:48]Write to MH i2c: E2 02 01 AE 20 80 0D 02 02 FA 00 03 00 E8 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 00 00 FD [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]OFD Sender: No OFD packet to send [14:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 AE 20 00 90 00 42 [14:24:48]RAPDU: 90 00 [14:24:48]wFMCommunicate OK [14:24:48]wFMCommunicate request_size=247 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 0D 02 02 F2 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 34 1B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FA CD 00 00 35 04 06 00 D6 2D D2 12 18 E4 [14:24:48]Write to MH i2c: E2 FA 00 AF 20 80 0D 02 02 F2 00 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 34 1B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FA CD 00 00 35 04 06 00 D6 2D D2 12 18 E4 00 00 BC [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 03 00 AF 20 00 90 00 43 [14:24:48]RAPDU: 90 00 [14:24:48]wFMCommunicate OK [14:24:48]wFMCommunicate request_size=4 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 0D 03 02 [14:24:48]Write to MH i2c: E2 08 00 B0 20 80 0D 03 02 00 00 00 00 4B [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:48]Read from MH i2c: E2 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 0B 00 [14:24:48]MH_I2C_Read... [14:24:48]Read from MH i2c: E2 0B 00 B0 20 00 54 0B 1A F5 28 28 FB 6D 90 00 72 [14:24:48]RAPDU: 54 0B 1A F5 28 28 FB 6D 90 00 [14:24:48]wFMCommunicate OK [14:24:48]SAM_PROTO_SignData done [14:24:48]FM_MakeSignedData done [14:24:48]CreateOFDProtocolMessage [14:24:48]wFMCommunicate request_size=4 [14:24:48]MH_SAM_APDU [14:24:48]CAPDU: 80 11 00 00 [14:24:48]Write to MH i2c: E2 08 00 B1 20 80 11 00 00 00 00 00 00 4B [14:24:48]Write i2c OK [14:24:48]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 [14:24:49]MH_I2C_Read... [14:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:49]Read from MH i2c: E2 17 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: E2 17 00 B1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9E [14:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:24:49]wFMCommunicate OK [14:24:49]CreateOFDProtocolMessage done [14:24:49]OFDSenderStorePacket 52730 [14:24:49]StoreOFDPacket docnum=52730 [14:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 FC 01 00 00 06 F2 F4 01 39 A2 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 34 1B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FA CD 00 00 35 04 06 00 D6 2D D2 12 18 E4 54 0B 1A F5 28 28 FB 6D [14:24:49]CheckFolder [14:24:49]dirname=/storage/ofd_packets [14:24:49]CheckFolder done [14:24:49]ProducePacketName [14:24:49]name=ofd_packets/00052730 [14:24:49]NVStorageSaveData ofd_packets/00052730 [14:24:49]File name is /storage/ofd_packets/00052730 [14:24:49]Write 538 bytes [14:24:49]NVStorageSaveData done [14:24:49]OFDSenderStorePacket done [14:24:49]KKMCreateOFDPacket done [14:24:49]NVStorageSaveData kkm_last_timestamp [14:24:49]File name is /storage/kkm_last_timestamp [14:24:49]Write 4 bytes [14:24:49]NVStorageSaveData done [14:24:49]ExternCall_PrintAddStr [14:24:49]wPrintStart [14:24:49]Write to MH i2c: 01 00 00 B2 20 D2 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 B2 20 00 00 00 00 00 FF 0F E7 [14:24:49]RasterBufferAndPrint [14:24:49]line Счет N : (3)122860 [14:24:49]line ИНН: 02508201610067 [14:24:49]line Контрольно-Кассовый Чек [14:24:49]line ПРОДАЖА [14:24:49]line Товар: 5449000000286 [14:24:49]line Напиток Кока-Кола 2л [14:24:49]line 1.000 * 205.00 [14:24:49]line = 205.00 [14:24:49]line НДС 12% НСП 1% [14:24:49]line > о реализуемом товаре [14:24:49]line Товар: 5449000054227 [14:24:49]line Напиток Кока-Кола 1л [14:24:49]line 1.000 * 125.00 [14:24:49]line = 125.00 [14:24:49]line НДС 12% НСП 1% [14:24:49]line > о реализуемом товаре [14:24:49]line Товар: 48745000 [14:24:49]line Сигареты Winston Purple Mix [14:24:49]line 1.000 * 135.00 [14:24:49]line = 135.00 [14:24:49]line НДС 12% НСП 1% [14:24:49]line > о реализуемом товаре [14:24:49]line ИТОГО: 465.00 [14:24:49]line НСП 1% : 4.11 [14:24:49]line НДС 12% : 49.38 [14:24:49]line Наличными: 0.00 [14:24:49]line Безнал.: 465.00 [14:24:49]line Место: АЗС № 54 "Партнер Нефть" [14:24:49]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [14:24:49]line СНО: Общий режим [14:24:49]line Чек 48 12.08.2024 14:24 [14:24:49]line Смена: 447 ФФД: 1.0 [14:24:49]line ЗНМ: 0300000007 [14:24:49]line РНМ: 0000000000090834 [14:24:49]line Версия ККМ: 001 [14:24:49]line Платежная система: О! деньги [14:24:49]line ФМ: 0000000000874715 [14:24:49]line ФД: 52730 [14:24:49]line ФПД: 235492286273764 [14:24:49]line /tax-web-control/client/api/v1/ticket?date=20240812T142452&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52730&fm=235492286273764&tin=02508201610067®Number=0000000000090834&sum=46500 [14:24:49]line 0 [14:24:49]OFD Sender: Processing packet 52730 [packets to send 55, broken 54] [14:24:49]ProducePacketName [14:24:49]name=ofd_packets/00052730 [14:24:49]OFD Sender: To server: pG, [14:24:49]CommunicateWithHost lk.salyk.kg:30040 [14:24:49]ConnectInit lk.salyk.kg [14:24:49]written 0, free lines is 4095 [14:24:49]Connected sock=10 [14:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 FC 01 00 00 06 F2 F4 01 39 A2 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 B5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 34 1B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FA CD 00 00 35 04 06 00 D6 2D D2 12 18 E4 54 0B 1A F5 28 28 FB 6D [14:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F7 82 47 00 F8 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 34 37 31 35 10 04 04 00 FA CD 00 00 F4 03 04 00 CD C2 B9 66 B6 04 01 00 00 6C 74 7C 41 B5 0F FE 26 [14:24:49]CommunicateWithHost err = 0 [14:24:49]CheckOFDResponse [14:24:49]1017 (14) - 77093643461234 [14:24:49]1041 (16) - 0000000000874715 [14:24:49]1040 (4) - 52730 [14:24:49]1012 (4) - 12.08.2024 08:07 [14:24:49]1206 (1) - 0 [14:24:49]OFD Sender: Remove packet 52730 [14:24:49]ProducePacketName [14:24:49]name=ofd_packets/00052730 [14:24:49]NVStorageDeleteData [14:24:49]Write to MH i2c: 01 00 00 E7 20 07 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: 01 07 00 E7 20 00 00 00 00 00 08 0C 22 [14:24:49]RasterBufferAndPrint [14:24:49]line [14:24:49]line [14:24:49]line [14:24:49]line [14:24:49]line [14:24:49]written 0, free lines is 3085 [14:24:49]MH_Cut [14:24:49]Write to MH i2c: D1 01 00 EE 20 01 E0 [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: D1 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: D1 01 00 [14:24:49]MH_I2C_Read... [14:24:49]Read from MH i2c: D1 01 00 EE 20 00 DF [14:24:49]Write to MH i2c: 01 00 00 EF 20 0F [14:24:49]Write i2c OK [14:24:49]MH_I2C_Read... [14:24:50]OFD Sender: No OFD packet to send [14:24:50]*** Cut start [14:24:50]*** Purtial cut [14:24:50]*** Stage 1: CUTSNS_PIN = 1 [14:24:50]Read from MH i2c: 01 [14:24:50]MH_I2C_Read... [14:24:50]*** Stop cut motor [14:24:50]*** Cut end [14:24:50]Read from MH i2c: 01 07 00 [14:24:50]MH_I2C_Read... [14:24:50]Read from MH i2c: 01 07 00 EF 20 00 00 00 00 00 FF 0F 24 [14:24:50]process_action close_receipt done [14:24:50]requested_data is exist [14:24:50]produce_requested_data [14:24:50]requested_item fm.sn is exist - process it [14:24:50]wFMCommunicate request_size=4 [14:24:50]MH_SAM_APDU [14:24:50]CAPDU: 80 11 00 00 [14:24:50]Write to MH i2c: E2 08 00 F0 20 80 11 00 00 00 00 00 00 8A [14:24:50]Write i2c OK [14:24:50]MH_I2C_Read... [14:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:51]Read from MH i2c: E2 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 17 00 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 17 00 F0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 DD [14:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:24:51]wFMCommunicate OK [14:24:51]requested_item fd.num is exist - process it [14:24:51]SAM_PROTO_GetFieldsCounters [14:24:51]wFMCommunicate request_size=4 [14:24:51]MH_SAM_APDU [14:24:51]CAPDU: 80 13 00 00 [14:24:51]Write to MH i2c: E2 08 00 F1 20 80 13 00 00 00 00 00 00 8D [14:24:51]Write i2c OK [14:24:51]MH_I2C_Read... [14:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:51]Read from MH i2c: E2 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 62 00 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 62 00 F1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FA CD 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [14:24:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FA CD 00 00 0E 04 04 00 BF 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 [14:24:51]wFMCommunicate OK [14:24:51]SAM_PROTO_GetFieldsCounters done [14:24:51]requested_item shift.num is exist - process it [14:24:51]requested_item shift.opened is exist - process it [14:24:51]req_shift_opened [14:24:51]FM_GetShiftState [14:24:51]SAM_PROTO_GetShiftState [14:24:51]wFMCommunicate request_size=4 [14:24:51]MH_SAM_APDU [14:24:51]CAPDU: 80 13 01 00 [14:24:51]Write to MH i2c: E2 08 00 F2 20 80 13 01 00 00 00 00 00 8F [14:24:51]Write i2c OK [14:24:51]MH_I2C_Read... [14:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:51]Read from MH i2c: E2 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 0E 00 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 0E 00 F2 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 ED [14:24:51]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:24:51]wFMCommunicate OK [14:24:51]SAM_PROTO_GetShiftState done [14:24:51]FM_GetShiftState done [14:24:51]req_shift_opened done [14:24:51]requested_item shift.open_date is exist - process it [14:24:51]req_shift_open_date [14:24:51]req_shift_open_date done [14:24:51]produce_requested_data done [14:24:51]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52730,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [14:24:51]process_action_free close_receipt [14:24:51]json_value_free [14:24:51]json_value_free done [14:24:51]process_json_proto returns [14:24:51]Send response to host [14:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52730,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [14:24:51]free response buf [14:24:51]execute_script done [14:24:51]execute_script returns [14:24:51]free content buf [14:24:51]Sock 7.Close socket [14:24:51]Sock 7.Thread stoped [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:36]accept exits with 9 [14:36:36]New connection [14:36:36]New thread 3067293028 created [14:36:36]Thread 3067149668 joined [14:36:36]Waiting for new connection... [14:36:36] Sock 9.Parse request [14:36:36]Sock 9.Check first char [14:36:36]Sock 9.First char is OK [14:36:36]request: POST /json_proto HTTP/1.0 [14:36:36]Method: POST [14:36:36]URL: /json_proto [14:36:36]Method is POST - this is cgi request [14:36:36]url: /json_proto [14:36:36]query_string will be loaded in cgi processing [14:36:36]execute_cgi json_proto POST (null) [14:36:36]execute_cgi path=json_proto method=POST [14:36:36]POST find Content-Length [14:36:36]Host: 172.17.60.7:8080 [14:36:36]Content-Length: 798 [14:36:36]Content-Type: application/json [14:36:36] [14:36:36]POST finish read [14:36:36]Found Content-Length = 798 [14:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122861", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:36]execute_script... [14:36:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122861", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:36]POST & json_proto [14:36:36]process_json_proto [14:36:36]json parsed OK: [14:36:36]protocol is kg_v1.0 [14:36:36]action value=close_receipt [14:36:36]process_action close_receipt [14:36:36]cmd_close_receipt [14:36:36]MH_GetDate [14:36:36]Write to MH i2c: F0 00 00 F3 20 02 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 09 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 09 00 F3 20 00 F9 1D BA 66 63 9B 67 64 0A [14:36:36]GetLastDocTimeStamp 1723472692 [14:36:36]current date 1723473401 [14:36:36]FM_GetShiftState [14:36:36]SAM_PROTO_GetShiftState [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 01 00 [14:36:36]Write to MH i2c: E2 08 00 F4 20 80 13 01 00 00 00 00 00 91 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 F4 20 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 EF [14:36:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetShiftState done [14:36:36]FM_GetShiftState done [14:36:36]opened in 1723422684 [14:36:36]opened+sec_in_day 1723509084 [14:36:36]quantity*price = 6000 [14:36:36]sum+1 = 6001 [14:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 49 12.08.2024 14:36 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52731 ФПД: 135228834390232 /tax-web-control/client/api/v1/ticket?date=20240812T143641&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52731&fm=135228834390232&tin=02508201610067®Number=0000000000090834&sum=6000 0 [14:36:37]StoreToDocumentArchive [14:36:37]shift 447 fd 52731 [14:36:37]save to /storage/0447/doc_00052731 [14:36:37]save last doc name /storage/0447/doc_00052731 to /storage/kkm_last_doc_name [14:36:37]save OK [14:36:37]Clear old archive folders... [14:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:36:37]tlvbuf is 012FED80 [14:36:37]SAM_PROTO_ClearQueue [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 09 00 00 [14:36:37]Write to MH i2c: E2 08 00 01 21 80 09 00 00 00 00 00 00 94 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 01 21 00 90 00 96 [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_ClearQueue done [14:36:37]KKMCreateOFDPacket [14:36:37]OFDProtocolAddRootSTLVToBuf [14:36:37]FM_MakeSignedData [14:36:37]FM_MakeSignedData [14:36:37]SAM_PROTO_SignData [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 01 02 [14:36:37]Write to MH i2c: E2 08 00 02 21 80 0D 01 02 00 00 00 00 9C [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 02 21 00 90 00 97 [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]wFMCommunicate request_size=255 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F9 1D BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:36:37]Write to MH i2c: E2 02 01 03 21 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F9 1D BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 F1 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 03 21 00 90 00 98 [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]wFMCommunicate request_size=30 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 02 02 19 30 38 37 34 37 31 35 10 04 04 00 FB CD 00 00 35 04 06 00 7A FD 6A A3 20 D8 [14:36:37]Write to MH i2c: E2 21 00 04 21 80 0D 02 02 19 00 30 38 37 34 37 31 35 10 04 04 00 FB CD 00 00 35 04 06 00 7A FD 6A A3 20 D8 00 00 DC [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 04 21 00 90 00 99 [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 03 02 [14:36:37]Write to MH i2c: E2 08 00 05 21 80 0D 03 02 00 00 00 00 A1 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0B 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0B 00 05 21 00 41 28 CA 60 D0 BD 16 EE 90 00 C6 [14:36:37]RAPDU: 41 28 CA 60 D0 BD 16 EE 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_SignData done [14:36:37]FM_MakeSignedData done [14:36:37]CreateOFDProtocolMessage [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 11 00 00 [14:36:37]Write to MH i2c: E2 08 00 06 21 80 11 00 00 00 00 00 00 A1 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 17 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 17 00 06 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 F4 [14:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:36:38]wFMCommunicate OK [14:36:38]CreateOFDProtocolMessage done [14:36:38]OFDSenderStorePacket 52731 [14:36:38]StoreOFDPacket docnum=52731 [14:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 0F 42 1B 01 36 7F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F9 1D BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FB CD 00 00 35 04 06 00 7A FD 6A A3 20 D8 41 28 CA 60 D0 BD 16 EE [14:36:38]CheckFolder [14:36:38]dirname=/storage/ofd_packets [14:36:38]CheckFolder done [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00052731 [14:36:38]NVStorageSaveData ofd_packets/00052731 [14:36:38]File name is /storage/ofd_packets/00052731 [14:36:38]Write 321 bytes [14:36:38]NVStorageSaveData done [14:36:38]OFDSenderStorePacket done [14:36:38]KKMCreateOFDPacket done [14:36:38]NVStorageSaveData kkm_last_timestamp [14:36:38]File name is /storage/kkm_last_timestamp [14:36:38]Write 4 bytes [14:36:38]NVStorageSaveData done [14:36:38]ExternCall_PrintAddStr [14:36:38]wPrintStart [14:36:38]Write to MH i2c: 01 00 00 07 21 28 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 07 21 00 00 00 00 00 FF 0F 3D [14:36:38]RasterBufferAndPrint [14:36:38]line Счет N : (3)122861 [14:36:38]line ИНН: 02508201610067 [14:36:38]line Контрольно-Кассовый Чек [14:36:38]line ПРОДАЖА [14:36:38]line Товар: 4700000160204 [14:36:38]line Вода Легенда 1,5л [14:36:38]line 1.000 * 60.00 [14:36:38]line = 60.00 [14:36:38]line НДС 12% НСП 1% [14:36:38]line > о реализуемом товаре [14:36:38]line ИТОГО: 60.00 [14:36:38]line НСП 1% : 0.53 [14:36:38]line НДС 12% : 6.37 [14:36:38]line Наличными: 0.00 [14:36:38]line Безнал.: 60.00 [14:36:38]line Место: АЗС № 54 "Партнер Нефть" [14:36:38]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [14:36:38]line СНО: Общий режим [14:36:38]line Чек 49 12.08.2024 14:36 [14:36:38]line Смена: 447 ФФД: 1.0 [14:36:38]line ЗНМ: 0300000007 [14:36:38]line РНМ: 0000000000090834 [14:36:38]line Версия ККМ: 001 [14:36:38]line Платежная система: О! деньги [14:36:38]line ФМ: 0000000000874715 [14:36:38]line ФД: 52731 [14:36:38]line ФПД: 135228834390232 [14:36:38]line /tax-web-control/client/api/v1/ticket?date=20240812T143641&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52731&fm=135228834390232&tin=02508201610067®Number=0000000000090834&sum=6000 [14:36:38]line 0 [14:36:38]OFD Sender: Processing packet 52731 [packets to send 55, broken 54] [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00052731 [14:36:38]OFD Sender: To server: pG, [14:36:38]CommunicateWithHost lk.salyk.kg:30040 [14:36:38]ConnectInit lk.salyk.kg [14:36:38]written 0, free lines is 4095 [14:36:38]Connected sock=10 [14:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 0F 42 1B 01 36 7F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 F9 1D BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FB CD 00 00 35 04 06 00 7A FD 6A A3 20 D8 41 28 CA 60 D0 BD 16 EE [14:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F4 DE 47 00 F3 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FB CD 00 00 F4 03 04 00 92 C5 B9 66 B6 04 01 00 00 49 93 D7 22 81 D3 18 56 [14:36:38]CommunicateWithHost err = 0 [14:36:38]CheckOFDResponse [14:36:38]1017 (14) - 77093643461234 [14:36:38]1041 (16) - 0000000000874715 [14:36:38]1040 (4) - 52731 [14:36:38]1012 (4) - 12.08.2024 08:19 [14:36:38]1206 (1) - 0 [14:36:38]OFD Sender: Remove packet 52731 [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00052731 [14:36:38]NVStorageDeleteData [14:36:38]Write to MH i2c: 01 00 00 30 21 51 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 30 21 00 00 00 00 00 D3 0C 37 [14:36:38]RasterBufferAndPrint [14:36:38]line [14:36:38]line [14:36:38]line [14:36:38]line [14:36:38]line [14:36:38]written 0, free lines is 3288 [14:36:38]MH_Cut [14:36:38]Write to MH i2c: D1 01 00 37 21 01 2A [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: D1 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: D1 01 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: D1 01 00 37 21 00 29 [14:36:38]Write to MH i2c: 01 00 00 38 21 59 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:39]OFD Sender: No OFD packet to send [14:36:39]*** Cut start [14:36:39]*** Purtial cut [14:36:39]*** Stage 1: CUTSNS_PIN = 1 [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]*** Stop cut motor [14:36:39]*** Cut end [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 38 21 00 00 00 00 00 FF 0F 6E [14:36:39]process_action close_receipt done [14:36:39]requested_data is exist [14:36:39]produce_requested_data [14:36:39]requested_item fm.sn is exist - process it [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 11 00 00 [14:36:39]Write to MH i2c: E2 08 00 39 21 80 11 00 00 00 00 00 00 D4 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 39 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 27 [14:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:36:40]wFMCommunicate OK [14:36:40]requested_item fd.num is exist - process it [14:36:40]SAM_PROTO_GetFieldsCounters [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 13 00 00 [14:36:40]Write to MH i2c: E2 08 00 3A 21 80 13 00 00 00 00 00 00 D7 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 62 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 62 00 3A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FB CD 00 00 0E 04 04 00 BF 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 12 [14:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FB CD 00 00 0E 04 04 00 BF 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:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_GetFieldsCounters done [14:36:40]requested_item shift.num is exist - process it [14:36:40]requested_item shift.opened is exist - process it [14:36:40]req_shift_opened [14:36:40]FM_GetShiftState [14:36:40]SAM_PROTO_GetShiftState [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 13 01 00 [14:36:40]Write to MH i2c: E2 08 00 3B 21 80 13 01 00 00 00 00 00 D9 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0E 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0E 00 3B 21 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 37 [14:36:40]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_GetShiftState done [14:36:40]FM_GetShiftState done [14:36:40]req_shift_opened done [14:36:40]requested_item shift.open_date is exist - process it [14:36:40]req_shift_open_date [14:36:40]req_shift_open_date done [14:36:40]produce_requested_data done [14:36:40]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52731,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [14:36:40]process_action_free close_receipt [14:36:40]json_value_free [14:36:40]json_value_free done [14:36:40]process_json_proto returns [14:36:40]Send response to host [14:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52731,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [14:36:40]free response buf [14:36:40]execute_script done [14:36:40]execute_script returns [14:36:40]free content buf [14:36:40]Sock 9.Close socket [14:36:40]Sock 9.Thread stoped [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40: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:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:34]accept exits with 7 [14:49:34]New connection [14:49:34]New thread 3067149668 created [14:49:34]Thread 3067293028 joined [14:49:34]Waiting for new connection... [14:49:34] Sock 7.Parse request [14:49:34]Sock 7.Check first char [14:49:34]Sock 7.First char is OK [14:49:34]request: POST /json_proto HTTP/1.0 [14:49:34]Method: POST [14:49:34]URL: /json_proto [14:49:34]Method is POST - this is cgi request [14:49:34]url: /json_proto [14:49:34]query_string will be loaded in cgi processing [14:49:34]execute_cgi json_proto POST (null) [14:49:34]execute_cgi path=json_proto method=POST [14:49:34]POST find Content-Length [14:49:34]Host: 172.17.60.7:8080 [14:49:34]Content-Length: 628 [14:49:34]Content-Type: application/json [14:49:34] [14:49:34]POST finish read [14:49:34]Found Content-Length = 628 [14:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122862", "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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:34]execute_script... [14:49: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)122862", "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 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:34]POST & json_proto [14:49:34]process_json_proto [14:49:34]json parsed OK: [14:49:34]protocol is kg_v1.0 [14:49:34]action value=close_receipt [14:49:34]process_action close_receipt [14:49:34]cmd_close_receipt [14:49:34]MH_GetDate [14:49:34]Write to MH i2c: F0 00 00 3C 21 4C [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: F0 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: F0 09 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: F0 09 00 3C 21 00 03 21 BA 66 63 9B 67 64 62 [14:49:34]GetLastDocTimeStamp 1723473401 [14:49:34]current date 1723474179 [14:49:34]FM_GetShiftState [14:49:34]SAM_PROTO_GetShiftState [14:49:34]wFMCommunicate request_size=4 [14:49:34]MH_SAM_APDU [14:49:34]CAPDU: 80 13 01 00 [14:49:34]Write to MH i2c: E2 08 00 3D 21 80 13 01 00 00 00 00 00 DB [14:49:34]Write i2c OK [14:49:34]MH_I2C_Read... [14:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:34]Read from MH i2c: E2 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 0E 00 [14:49:34]MH_I2C_Read... [14:49:34]Read from MH i2c: E2 0E 00 3D 21 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 39 [14:49:34]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:49:34]wFMCommunicate OK [14:49:34]SAM_PROTO_GetShiftState done [14:49:34]FM_GetShiftState done [14:49:34]opened in 1723422684 [14:49:34]opened+sec_in_day 1723509084 [14:49:34]quantity*price = 13000 [14:49:34]sum+1 = 13001 [14:49:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 50 12.08.2024 14:49 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52732 ФПД: 216562987894842 /tax-web-control/client/api/v1/ticket?date=20240812T144939&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52732&fm=216562987894842&tin=02508201610067®Number=0000000000090834&sum=13000 0 [14:49:35]StoreToDocumentArchive [14:49:35]shift 447 fd 52732 [14:49:35]save to /storage/0447/doc_00052732 [14:49:35]save last doc name /storage/0447/doc_00052732 to /storage/kkm_last_doc_name [14:49:35]save OK [14:49:35]Clear old archive folders... [14:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:49:35]tlvbuf is B6FAB280 [14:49:35]SAM_PROTO_ClearQueue [14:49:35]wFMCommunicate request_size=4 [14:49:35]MH_SAM_APDU [14:49:35]CAPDU: 80 09 00 00 [14:49:35]Write to MH i2c: E2 08 00 4A 21 80 09 00 00 00 00 00 00 DD [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 4A 21 00 90 00 DF [14:49:35]RAPDU: 90 00 [14:49:35]wFMCommunicate OK [14:49:35]SAM_PROTO_ClearQueue done [14:49:35]KKMCreateOFDPacket [14:49:35]OFDProtocolAddRootSTLVToBuf [14:49:35]FM_MakeSignedData [14:49:35]FM_MakeSignedData [14:49:35]SAM_PROTO_SignData [14:49:35]wFMCommunicate request_size=4 [14:49:35]MH_SAM_APDU [14:49:35]CAPDU: 80 0D 01 02 [14:49:35]Write to MH i2c: E2 08 00 4B 21 80 0D 01 02 00 00 00 00 E5 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 4B 21 00 90 00 E0 [14:49:35]RAPDU: 90 00 [14:49:35]wFMCommunicate OK [14:49:35]wFMCommunicate request_size=255 [14:49:35]MH_SAM_APDU [14:49:35]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 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 32 00 00 00 F4 03 04 00 03 21 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 [14:49:35]Write to MH i2c: E2 02 01 4C 21 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 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 32 00 00 00 F4 03 04 00 03 21 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 00 00 35 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 4C 21 00 90 00 E1 [14:49:35]RAPDU: 90 00 [14:49:35]wFMCommunicate OK [14:49:35]wFMCommunicate request_size=35 [14:49:35]MH_SAM_APDU [14:49:35]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FC CD 00 00 35 04 06 00 C4 F6 7F F7 08 3A [14:49:35]Write to MH i2c: E2 26 00 4D 21 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FC CD 00 00 35 04 06 00 C4 F6 7F F7 08 3A 00 00 16 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 03 00 4D 21 00 90 00 E2 [14:49:35]RAPDU: 90 00 [14:49:35]wFMCommunicate OK [14:49:35]wFMCommunicate request_size=4 [14:49:35]MH_SAM_APDU [14:49:35]CAPDU: 80 0D 03 02 [14:49:35]Write to MH i2c: E2 08 00 4E 21 80 0D 03 02 00 00 00 00 EA [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 0B 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 0B 00 4E 21 00 F6 1C 75 82 42 D4 61 05 90 00 70 [14:49:35]RAPDU: F6 1C 75 82 42 D4 61 05 90 00 [14:49:35]wFMCommunicate OK [14:49:35]SAM_PROTO_SignData done [14:49:35]FM_MakeSignedData done [14:49:35]CreateOFDProtocolMessage [14:49:35]wFMCommunicate request_size=4 [14:49:35]MH_SAM_APDU [14:49:35]CAPDU: 80 11 00 00 [14:49:35]Write to MH i2c: E2 08 00 4F 21 80 11 00 00 00 00 00 00 EA [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:35]Read from MH i2c: E2 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 17 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: E2 17 00 4F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 3D [14:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:49:35]wFMCommunicate OK [14:49:35]CreateOFDProtocolMessage done [14:49:35]OFDSenderStorePacket 52732 [14:49:35]StoreOFDPacket docnum=52732 [14:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 28 01 00 00 53 2A 20 01 AD EF 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 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 32 00 00 00 F4 03 04 00 03 21 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FC CD 00 00 35 04 06 00 C4 F6 7F F7 08 3A F6 1C 75 82 42 D4 61 05 [14:49:35]CheckFolder [14:49:35]dirname=/storage/ofd_packets [14:49:35]CheckFolder done [14:49:35]ProducePacketName [14:49:35]name=ofd_packets/00052732 [14:49:35]NVStorageSaveData ofd_packets/00052732 [14:49:35]File name is /storage/ofd_packets/00052732 [14:49:35]Write 326 bytes [14:49:35]NVStorageSaveData done [14:49:35]OFDSenderStorePacket done [14:49:35]KKMCreateOFDPacket done [14:49:35]NVStorageSaveData kkm_last_timestamp [14:49:35]File name is /storage/kkm_last_timestamp [14:49:35]Write 4 bytes [14:49:35]NVStorageSaveData done [14:49:35]ExternCall_PrintAddStr [14:49:35]wPrintStart [14:49:35]Write to MH i2c: 01 00 00 50 21 71 [14:49:35]Write i2c OK [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: 01 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: 01 07 00 [14:49:35]MH_I2C_Read... [14:49:35]Read from MH i2c: 01 07 00 50 21 00 00 00 00 00 FF 0F 86 [14:49:35]RasterBufferAndPrint [14:49:35]line Счет N : (3)122862 [14:49:35]line ИНН: 02508201610067 [14:49:35]line Контрольно-Кассовый Чек [14:49:35]line ПРОДАЖА [14:49:35]line Товар: 2000036230011 [14:49:35]line Кофе Латте XL(GABB TRADE) [14:49:35]line 1.000 * 130.00 [14:49:35]line = 130.00 [14:49:35]line НДС 12% НСП 1% [14:49:35]line > о реализуемом товаре [14:49:35]line ИТОГО: 130.00 [14:49:35]line НСП 1% : 1.15 [14:49:35]line НДС 12% : 13.80 [14:49:35]line Наличными: 130.00 [14:49:35]line Безнал.: 0.00 [14:49:35]line Место: АЗС № 54 "Партнер Нефть" [14:49:35]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [14:49:35]line СНО: Общий режим [14:49:35]line Чек 50 12.08.2024 14:49 [14:49:35]line Смена: 447 ФФД: 1.0 [14:49:35]line ЗНМ: 0300000007 [14:49:35]line РНМ: 0000000000090834 [14:49:35]line Версия ККМ: 001 [14:49:35]line ФМ: 0000000000874715 [14:49:35]line ФД: 52732 [14:49:35]line ФПД: 216562987894842 [14:49:36]line /tax-web-control/client/api/v1/ticket?date=20240812T144939&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52732&fm=216562987894842&tin=02508201610067®Number=0000000000090834&sum=13000 [14:49:36]line 0 [14:49:36]OFD Sender: Processing packet 52732 [packets to send 55, broken 54] [14:49:36]ProducePacketName [14:49:36]name=ofd_packets/00052732 [14:49:36]OFD Sender: To server: pG, [14:49:36]CommunicateWithHost lk.salyk.kg:30040 [14:49:36]ConnectInit lk.salyk.kg [14:49:36]written 0, free lines is 4095 [14:49:36]Connected sock=10 [14:49:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 28 01 00 00 53 2A 20 01 AD EF 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 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 32 00 00 00 F4 03 04 00 03 21 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FC CD 00 00 35 04 06 00 C4 F6 7F F7 08 3A F6 1C 75 82 42 D4 61 05 [14:49:36]Write to MH i2c: 01 00 00 77 21 98 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 07 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 07 00 77 21 00 00 00 00 00 FE 0C A9 [14:49:36]RasterBufferAndPrint [14:49:36]line [14:49:36]line [14:49:36]line [14:49:36]line [14:49:36]line [14:49:36]written 0, free lines is 3333 [14:49:36]MH_Cut [14:49:36]Write to MH i2c: D1 01 00 7E 21 01 71 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: D1 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: D1 01 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: D1 01 00 7E 21 00 70 [14:49:36]Write to MH i2c: 01 00 00 7F 21 A0 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 4A 18 47 00 CC 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FC CD 00 00 F4 03 04 00 9C C8 B9 66 B6 04 01 00 00 8E E2 15 43 C1 1F F3 F7 [14:49:36]CommunicateWithHost err = 0 [14:49:36]CheckOFDResponse [14:49:36]1017 (14) - 77093643461234 [14:49:36]1041 (16) - 0000000000874715 [14:49:36]1040 (4) - 52732 [14:49:36]1012 (4) - 12.08.2024 08:32 [14:49:36]1206 (1) - 0 [14:49:36]OFD Sender: Remove packet 52732 [14:49:36]ProducePacketName [14:49:36]name=ofd_packets/00052732 [14:49:36]NVStorageDeleteData [14:49:37]OFD Sender: No OFD packet to send [14:49:37]*** Cut start [14:49:37]*** Purtial cut [14:49:37]*** Stage 1: CUTSNS_PIN = 1 [14:49:37]Read from MH i2c: 01 [14:49:37]MH_I2C_Read... [14:49:37]*** Stop cut motor [14:49:37]*** Cut end [14:49:37]Read from MH i2c: 01 07 00 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: 01 07 00 7F 21 00 00 00 00 00 FF 0F B5 [14:49:37]process_action close_receipt done [14:49:37]requested_data is exist [14:49:37]produce_requested_data [14:49:37]requested_item fm.sn is exist - process it [14:49:37]wFMCommunicate request_size=4 [14:49:37]MH_SAM_APDU [14:49:37]CAPDU: 80 11 00 00 [14:49:37]Write to MH i2c: E2 08 00 80 21 80 11 00 00 00 00 00 00 1B [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:37]Read from MH i2c: E2 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: E2 17 00 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: E2 17 00 80 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 6E [14:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [14:49:37]wFMCommunicate OK [14:49:37]requested_item fd.num is exist - process it [14:49:37]SAM_PROTO_GetFieldsCounters [14:49:37]wFMCommunicate request_size=4 [14:49:37]MH_SAM_APDU [14:49:37]CAPDU: 80 13 00 00 [14:49:37]Write to MH i2c: E2 08 00 81 21 80 13 00 00 00 00 00 00 1E [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:37]Read from MH i2c: E2 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: E2 62 00 [14:49:37]MH_I2C_Read... [14:49:37]Read from MH i2c: E2 62 00 81 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FC CD 00 00 0E 04 04 00 BF 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 5D [14:49: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FC CD 00 00 0E 04 04 00 BF 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:49:37]wFMCommunicate OK [14:49:37]SAM_PROTO_GetFieldsCounters done [14:49:37]requested_item shift.num is exist - process it [14:49:37]requested_item shift.opened is exist - process it [14:49:37]req_shift_opened [14:49:37]FM_GetShiftState [14:49:37]SAM_PROTO_GetShiftState [14:49:37]wFMCommunicate request_size=4 [14:49:37]MH_SAM_APDU [14:49:37]CAPDU: 80 13 01 00 [14:49:37]Write to MH i2c: E2 08 00 82 21 80 13 01 00 00 00 00 00 20 [14:49:37]Write i2c OK [14:49:37]MH_I2C_Read... [14:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:38]Read from MH i2c: E2 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 0E 00 [14:49:38]MH_I2C_Read... [14:49:38]Read from MH i2c: E2 0E 00 82 21 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 7E [14:49:38]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [14:49:38]wFMCommunicate OK [14:49:38]SAM_PROTO_GetShiftState done [14:49:38]FM_GetShiftState done [14:49:38]req_shift_opened done [14:49:38]requested_item shift.open_date is exist - process it [14:49:38]req_shift_open_date [14:49:38]req_shift_open_date done [14:49:38]produce_requested_data done [14:49:38]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52732,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [14:49:38]process_action_free close_receipt [14:49:38]json_value_free [14:49:38]json_value_free done [14:49:38]process_json_proto returns [14:49:38]Send response to host [14:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52732,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [14:49:38]free response buf [14:49:38]execute_script done [14:49:38]execute_script returns [14:49:38]free content buf [14:49:38]Sock 7.Close socket [14:49:38]Sock 7.Thread stoped [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01: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:12]accept exits with 9 [15:03:12]New connection [15:03:12]New thread 3067293028 created [15:03:12]Thread 3067149668 joined [15:03:12]Waiting for new connection... [15:03:12] Sock 9.Parse request [15:03:12]Sock 9.Check first char [15:03:12]Sock 9.First char is OK [15:03:12]request: POST /json_proto HTTP/1.0 [15:03:12]Method: POST [15:03:12]URL: /json_proto [15:03:12]Method is POST - this is cgi request [15:03:12]url: /json_proto [15:03:12]query_string will be loaded in cgi processing [15:03:12]execute_cgi json_proto POST (null) [15:03:12]execute_cgi path=json_proto method=POST [15:03:12]POST find Content-Length [15:03:12]Host: 172.17.60.7:8080 [15:03:12]Content-Length: 883 [15:03:12]Content-Type: application/json [15:03:12] [15:03:12]POST finish read [15:03:12]Found Content-Length = 883 [15:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122865", "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" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:12]execute_script... [15:03:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122865", "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" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:12]POST & json_proto [15:03:12]process_json_proto [15:03:12]json parsed OK: [15:03:12]protocol is kg_v1.0 [15:03:12]action value=close_receipt [15:03:12]process_action close_receipt [15:03:12]cmd_close_receipt [15:03:12]MH_GetDate [15:03:12]Write to MH i2c: F0 00 00 83 21 93 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: F0 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: F0 09 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: F0 09 00 83 21 00 35 24 BA 66 63 9B 67 64 DE [15:03:12]GetLastDocTimeStamp 1723474179 [15:03:12]current date 1723474997 [15:03:12]FM_GetShiftState [15:03:12]SAM_PROTO_GetShiftState [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 13 01 00 [15:03:12]Write to MH i2c: E2 08 00 84 21 80 13 01 00 00 00 00 00 22 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0E 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0E 00 84 21 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 80 [15:03:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:03:12]wFMCommunicate OK [15:03:12]SAM_PROTO_GetShiftState done [15:03:12]FM_GetShiftState done [15:03:12]opened in 1723422684 [15:03:12]opened+sec_in_day 1723509084 [15:03:12]quantity*price = 24000 [15:03:12]sum+1 = 24001 [15:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 0.00 Безнал.: 240.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 51 12.08.2024 15:03 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874715 ФД: 52733 ФПД: 98281585424912 /tax-web-control/client/api/v1/ticket?date=20240812T150317&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52733&fm=98281585424912&tin=02508201610067®Number=0000000000090834&sum=24000 0 [15:03:13]StoreToDocumentArchive [15:03:13]shift 447 fd 52733 [15:03:13]save to /storage/0447/doc_00052733 [15:03:13]save last doc name /storage/0447/doc_00052733 to /storage/kkm_last_doc_name [15:03:13]save OK [15:03:13]Clear old archive folders... [15:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=298 [15:03:13]tlvbuf is 01269BE0 [15:03:13]SAM_PROTO_ClearQueue [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 09 00 00 [15:03:13]Write to MH i2c: E2 08 00 91 21 80 09 00 00 00 00 00 00 24 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 91 21 00 90 00 26 [15:03:13]RAPDU: 90 00 [15:03:13]wFMCommunicate OK [15:03:13]SAM_PROTO_ClearQueue done [15:03:13]KKMCreateOFDPacket [15:03:13]OFDProtocolAddRootSTLVToBuf [15:03:13]FM_MakeSignedData [15:03:13]FM_MakeSignedData [15:03:13]SAM_PROTO_SignData [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 0D 01 02 [15:03:13]Write to MH i2c: E2 08 00 92 21 80 0D 01 02 00 00 00 00 2C [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [15:03:13]RAPDU: 90 00 [15:03:13]wFMCommunicate OK [15:03:13]wFMCommunicate request_size=255 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 0D 02 02 FA 03 00 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [15:03:13]Write to MH i2c: E2 02 01 93 21 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 19 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 93 21 00 90 00 28 [15:03:13]RAPDU: 90 00 [15:03:13]wFMCommunicate OK [15:03:13]wFMCommunicate request_size=57 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FD CD 00 00 35 04 06 00 59 62 F6 FC BA 10 [15:03:13]Write to MH i2c: E2 3C 00 94 21 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FD CD 00 00 35 04 06 00 59 62 F6 FC BA 10 00 00 2C [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 94 21 00 90 00 29 [15:03:13]RAPDU: 90 00 [15:03:13]wFMCommunicate OK [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 0D 03 02 [15:03:13]Write to MH i2c: E2 08 00 95 21 80 0D 03 02 00 00 00 00 31 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 0B 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 0B 00 95 21 00 04 F5 7B D9 CA 94 E6 4E 90 00 11 [15:03:13]RAPDU: 04 F5 7B D9 CA 94 E6 4E 90 00 [15:03:13]wFMCommunicate OK [15:03:13]SAM_PROTO_SignData done [15:03:13]FM_MakeSignedData done [15:03:13]CreateOFDProtocolMessage [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 11 00 00 [15:03:13]Write to MH i2c: E2 08 00 96 21 80 11 00 00 00 00 00 00 31 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:14]Read from MH i2c: E2 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 17 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 17 00 96 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 84 [15:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:03:14]wFMCommunicate OK [15:03:14]CreateOFDProtocolMessage done [15:03:14]OFDSenderStorePacket 52733 [15:03:14]StoreOFDPacket docnum=52733 [15:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3E 01 00 00 E2 A3 36 01 D1 E5 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FD CD 00 00 35 04 06 00 59 62 F6 FC BA 10 04 F5 7B D9 CA 94 E6 4E [15:03:14]CheckFolder [15:03:14]dirname=/storage/ofd_packets [15:03:14]CheckFolder done [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00052733 [15:03:14]NVStorageSaveData ofd_packets/00052733 [15:03:14]File name is /storage/ofd_packets/00052733 [15:03:14]Write 348 bytes [15:03:14]NVStorageSaveData done [15:03:14]OFDSenderStorePacket done [15:03:14]KKMCreateOFDPacket done [15:03:14]NVStorageSaveData kkm_last_timestamp [15:03:14]File name is /storage/kkm_last_timestamp [15:03:14]Write 4 bytes [15:03:14]NVStorageSaveData done [15:03:14]ExternCall_PrintAddStr [15:03:14]wPrintStart [15:03:14]Write to MH i2c: 01 00 00 97 21 B8 [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 07 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 07 00 97 21 00 00 00 00 00 FF 0F CD [15:03:14]RasterBufferAndPrint [15:03:14]line Счет N : (3)122865 [15:03:14]line ИНН: 02508201610067 [15:03:14]line Контрольно-Кассовый Чек [15:03:14]line ПРОДАЖА [15:03:14]line Товар: 5449000189356 [15:03:14]line Холодный чай Fuse манго ананас 1л [15:03:14]line 2.000 * 120.00 [15:03:14]line = 240.00 [15:03:14]line НДС 12% НСП 1% [15:03:14]line > о реализуемом товаре [15:03:14]line ИТОГО: 240.00 [15:03:14]line НСП 1% : 2.12 [15:03:14]line НДС 12% : 25.49 [15:03:14]line Наличными: 0.00 [15:03:14]line Безнал.: 240.00 [15:03:14]line Место: АЗС № 54 "Партнер Нефть" [15:03:14]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [15:03:14]line СНО: Общий режим [15:03:14]line Чек 51 12.08.2024 15:03 [15:03:14]line Смена: 447 ФФД: 1.0 [15:03:14]line ЗНМ: 0300000007 [15:03:14]line РНМ: 0000000000090834 [15:03:14]line Версия ККМ: 001 [15:03:14]line Платежная система: Бакай Банк [15:03:14]line ФМ: 0000000000874715 [15:03:14]line ФД: 52733 [15:03:14]line ФПД: 98281585424912 [15:03:14]line /tax-web-control/client/api/v1/ticket?date=20240812T150317&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52733&fm=98281585424912&tin=02508201610067®Number=0000000000090834&sum=24000 [15:03:14]line 0 [15:03:14]OFD Sender: Processing packet 52733 [packets to send 55, broken 54] [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00052733 [15:03:14]OFD Sender: To server: pG, [15:03:14]CommunicateWithHost lk.salyk.kg:30040 [15:03:14]written 0, free lines is 4095 [15:03:14]ConnectInit lk.salyk.kg [15:03:14]Connected sock=10 [15:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3E 01 00 00 E2 A3 36 01 D1 E5 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 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 35 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FD CD 00 00 35 04 06 00 59 62 F6 FC BA 10 04 F5 7B D9 CA 94 E6 4E [15:03:14]Write to MH i2c: 01 00 00 C1 21 E2 [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 07 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 07 00 C1 21 00 00 00 00 00 A5 0C 9A [15:03:14]RasterBufferAndPrint [15:03:14]line [15:03:14]line [15:03:14]line [15:03:14]line [15:03:14]line [15:03:14]written 0, free lines is 3243 [15:03:14]MH_Cut [15:03:14]Write to MH i2c: D1 01 00 C8 21 01 BB [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: D1 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: D1 01 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: D1 01 00 C8 21 00 BA [15:03:14]Write to MH i2c: 01 00 00 C9 21 EA [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 95 4C 47 00 EB 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 34 37 31 35 10 04 04 00 FD CD 00 00 F4 03 04 00 CE CB B9 66 B6 04 01 00 00 40 86 C0 3D 07 E5 62 15 [15:03:14]CommunicateWithHost err = 0 [15:03:14]CheckOFDResponse [15:03:14]1017 (14) - 77093643461234 [15:03:14]1041 (16) - 0000000000874715 [15:03:14]1040 (4) - 52733 [15:03:14]1012 (4) - 12.08.2024 08:46 [15:03:14]1206 (1) - 0 [15:03:14]OFD Sender: Remove packet 52733 [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00052733 [15:03:14]NVStorageDeleteData [15:03:15]OFD Sender: No OFD packet to send [15:03:15]*** Cut start [15:03:15]*** Purtial cut [15:03:15]*** Stage 1: CUTSNS_PIN = 1 [15:03:15]Read from MH i2c: 01 [15:03:15]MH_I2C_Read... [15:03:15]*** Stop cut motor [15:03:15]*** Cut end [15:03:15]Read from MH i2c: 01 07 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: 01 07 00 C9 21 00 00 00 00 00 FF 0F FF [15:03:15]process_action close_receipt done [15:03:15]requested_data is exist [15:03:15]produce_requested_data [15:03:15]requested_item fm.sn is exist - process it [15:03:15]wFMCommunicate request_size=4 [15:03:15]MH_SAM_APDU [15:03:15]CAPDU: 80 11 00 00 [15:03:15]Write to MH i2c: E2 08 00 CA 21 80 11 00 00 00 00 00 00 65 [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 17 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 17 00 CA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B8 [15:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:03:16]wFMCommunicate OK [15:03:16]requested_item fd.num is exist - process it [15:03:16]SAM_PROTO_GetFieldsCounters [15:03:16]wFMCommunicate request_size=4 [15:03:16]MH_SAM_APDU [15:03:16]CAPDU: 80 13 00 00 [15:03:16]Write to MH i2c: E2 08 00 CB 21 80 13 00 00 00 00 00 00 68 [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 62 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 62 00 CB 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FD CD 00 00 0E 04 04 00 BF 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 AB [15:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FD CD 00 00 0E 04 04 00 BF 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 [15:03:16]wFMCommunicate OK [15:03:16]SAM_PROTO_GetFieldsCounters done [15:03:16]requested_item shift.num is exist - process it [15:03:16]requested_item shift.opened is exist - process it [15:03:16]req_shift_opened [15:03:16]FM_GetShiftState [15:03:16]SAM_PROTO_GetShiftState [15:03:16]wFMCommunicate request_size=4 [15:03:16]MH_SAM_APDU [15:03:16]CAPDU: 80 13 01 00 [15:03:16]Write to MH i2c: E2 08 00 CC 21 80 13 01 00 00 00 00 00 6A [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 0E 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 0E 00 CC 21 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C8 [15:03:16]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:03:16]wFMCommunicate OK [15:03:16]SAM_PROTO_GetShiftState done [15:03:16]FM_GetShiftState done [15:03:16]req_shift_opened done [15:03:16]requested_item shift.open_date is exist - process it [15:03:16]req_shift_open_date [15:03:16]req_shift_open_date done [15:03:16]produce_requested_data done [15:03:16]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52733,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [15:03:16]process_action_free close_receipt [15:03:16]json_value_free [15:03:16]json_value_free done [15:03:16]process_json_proto returns [15:03:16]Send response to host [15:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52733,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [15:03:16]free response buf [15:03:16]execute_script done [15:03:16]execute_script returns [15:03:16]free content buf [15:03:16]Sock 9.Close socket [15:03:16]Sock 9.Thread stoped [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]accept exits with 7 [15:04:40]New connection [15:04:40]New thread 3067149668 created [15:04:40]Thread 3067293028 joined [15:04:40]Waiting for new connection... [15:04:40] Sock 7.Parse request [15:04:40]Sock 7.Check first char [15:04:40]Sock 7.First char is OK [15:04:40]request: POST /json_proto HTTP/1.0 [15:04:40]Method: POST [15:04:40]URL: /json_proto [15:04:40]Method is POST - this is cgi request [15:04:40]url: /json_proto [15:04:40]query_string will be loaded in cgi processing [15:04:40]execute_cgi json_proto POST (null) [15:04:40]execute_cgi path=json_proto method=POST [15:04:40]POST find Content-Length [15:04:40]Host: 172.17.60.7:8080 [15:04:40]Content-Length: 614 [15:04:40]Content-Type: application/json [15:04:40] [15:04:40]POST finish read [15:04:40]Found Content-Length = 614 [15:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122866", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:40]execute_script... [15:04: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)122866", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:40]POST & json_proto [15:04:40]process_json_proto [15:04:40]json parsed OK: [15:04:40]protocol is kg_v1.0 [15:04:40]action value=close_receipt [15:04:40]process_action close_receipt [15:04:40]cmd_close_receipt [15:04:40]MH_GetDate [15:04:40]Write to MH i2c: F0 00 00 CD 21 DD [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: F0 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: F0 09 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: F0 09 00 CD 21 00 8D 24 BA 66 63 9B 67 64 80 [15:04:40]GetLastDocTimeStamp 1723474997 [15:04:40]current date 1723475085 [15:04:40]FM_GetShiftState [15:04:40]SAM_PROTO_GetShiftState [15:04:40]wFMCommunicate request_size=4 [15:04:40]MH_SAM_APDU [15:04:40]CAPDU: 80 13 01 00 [15:04:40]Write to MH i2c: E2 08 00 CE 21 80 13 01 00 00 00 00 00 6C [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:40]Read from MH i2c: E2 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 0E 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 0E 00 CE 21 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CA [15:04:40]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:04:40]wFMCommunicate OK [15:04:40]SAM_PROTO_GetShiftState done [15:04:40]FM_GetShiftState done [15:04:40]opened in 1723422684 [15:04:40]opened+sec_in_day 1723509084 [15:04:40]quantity*price = 11100 [15:04:40]sum+1 = 11101 [15:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 52 12.08.2024 15:04 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52734 ФПД: 92251535565866 /tax-web-control/client/api/v1/ticket?date=20240812T150445&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52734&fm=92251535565866&tin=02508201610067®Number=0000000000090834&sum=11100 0 [15:04:41]StoreToDocumentArchive [15:04:41]shift 447 fd 52734 [15:04:41]save to /storage/0447/doc_00052734 [15:04:41]save last doc name /storage/0447/doc_00052734 to /storage/kkm_last_doc_name [15:04:41]save OK [15:04:41]Clear old archive folders... [15:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:04:41]tlvbuf is 0126E270 [15:04:41]SAM_PROTO_ClearQueue [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 09 00 00 [15:04:41]Write to MH i2c: E2 08 00 DB 21 80 09 00 00 00 00 00 00 6E [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 DB 21 00 90 00 70 [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_ClearQueue done [15:04:41]KKMCreateOFDPacket [15:04:41]OFDProtocolAddRootSTLVToBuf [15:04:41]FM_MakeSignedData [15:04:41]FM_MakeSignedData [15:04:41]SAM_PROTO_SignData [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 01 02 [15:04:41]Write to MH i2c: E2 08 00 DC 21 80 0D 01 02 00 00 00 00 76 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 DC 21 00 90 00 71 [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]wFMCommunicate request_size=255 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8D 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 [15:04:41]Write to MH i2c: E2 02 01 DD 21 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8D 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 00 00 53 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 DD 21 00 90 00 72 [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]wFMCommunicate request_size=25 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 02 02 14 31 35 10 04 04 00 FE CD 00 00 35 04 06 00 53 E6 FC 01 E4 2A [15:04:41]Write to MH i2c: E2 1C 00 DE 21 80 0D 02 02 14 00 31 35 10 04 04 00 FE CD 00 00 35 04 06 00 53 E6 FC 01 E4 2A 00 00 6D [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 03 00 DE 21 00 90 00 73 [15:04:41]RAPDU: 90 00 [15:04:41]wFMCommunicate OK [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 0D 03 02 [15:04:41]Write to MH i2c: E2 08 00 DF 21 80 0D 03 02 00 00 00 00 7B [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0B 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0B 00 DF 21 00 AB 67 CB 2B 21 A6 13 D4 90 00 32 [15:04:41]RAPDU: AB 67 CB 2B 21 A6 13 D4 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_SignData done [15:04:41]FM_MakeSignedData done [15:04:41]CreateOFDProtocolMessage [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 11 00 00 [15:04:41]Write to MH i2c: E2 08 00 E0 21 80 11 00 00 00 00 00 00 7B [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 17 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 17 00 E0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 CE [15:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:04:41]wFMCommunicate OK [15:04:41]CreateOFDProtocolMessage done [15:04:41]OFDSenderStorePacket 52734 [15:04:41]StoreOFDPacket docnum=52734 [15:04:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1E 01 00 00 FC FE 16 01 04 61 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8D 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FE CD 00 00 35 04 06 00 53 E6 FC 01 E4 2A AB 67 CB 2B 21 A6 13 D4 [15:04:41]CheckFolder [15:04:41]dirname=/storage/ofd_packets [15:04:41]CheckFolder done [15:04:41]ProducePacketName [15:04:41]name=ofd_packets/00052734 [15:04:41]NVStorageSaveData ofd_packets/00052734 [15:04:41]File name is /storage/ofd_packets/00052734 [15:04:41]Write 316 bytes [15:04:41]NVStorageSaveData done [15:04:41]OFDSenderStorePacket done [15:04:41]KKMCreateOFDPacket done [15:04:41]NVStorageSaveData kkm_last_timestamp [15:04:41]File name is /storage/kkm_last_timestamp [15:04:41]Write 4 bytes [15:04:41]NVStorageSaveData done [15:04:41]ExternCall_PrintAddStr [15:04:41]wPrintStart [15:04:41]Write to MH i2c: 01 00 00 E1 21 02 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 07 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 07 00 E1 21 00 00 00 00 00 FF 0F 17 [15:04:41]RasterBufferAndPrint [15:04:41]line Счет N : (3)122866 [15:04:41]line ИНН: 02508201610067 [15:04:41]line Контрольно-Кассовый Чек [15:04:41]line ПРОДАЖА [15:04:41]line Товар: 4870001570071 [15:04:41]line Напиток Pepsi 1л [15:04:41]line 1.000 * 111.00 [15:04:41]line = 111.00 [15:04:41]line НДС 12% НСП 1% [15:04:41]line > о реализуемом товаре [15:04:41]line ИТОГО: 111.00 [15:04:41]line НСП 1% : 0.98 [15:04:41]line НДС 12% : 11.79 [15:04:41]line Наличными: 111.00 [15:04:41]line Безнал.: 0.00 [15:04:41]line Место: АЗС № 54 "Партнер Нефть" [15:04:41]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [15:04:41]line СНО: Общий режим [15:04:41]line Чек 52 12.08.2024 15:04 [15:04:41]line Смена: 447 ФФД: 1.0 [15:04:41]line ЗНМ: 0300000007 [15:04:41]line РНМ: 0000000000090834 [15:04:41]line Версия ККМ: 001 [15:04:41]line ФМ: 0000000000874715 [15:04:41]line ФД: 52734 [15:04:41]line ФПД: 92251535565866 [15:04:41]line /tax-web-control/client/api/v1/ticket?date=20240812T150445&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52734&fm=92251535565866&tin=02508201610067®Number=0000000000090834&sum=11100 [15:04:41]line 0 [15:04:42]written 0, free lines is 4095 [15:04:42]OFD Sender: Processing packet 52734 [packets to send 55, broken 54] [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00052734 [15:04:42]OFD Sender: To server: pG, [15:04:42]CommunicateWithHost lk.salyk.kg:30040 [15:04:42]ConnectInit lk.salyk.kg [15:04:42]Connected sock=10 [15:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1E 01 00 00 FC FE 16 01 04 61 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8D 24 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FE CD 00 00 35 04 06 00 53 E6 FC 01 E4 2A AB 67 CB 2B 21 A6 13 D4 [15:04:42]Write to MH i2c: 01 00 00 08 22 2A [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: 01 07 00 08 22 00 00 00 00 00 F1 0C 2E [15:04:42]RasterBufferAndPrint [15:04:42]line [15:04:42]line [15:04:42]line [15:04:42]line [15:04:42]line [15:04:42]written 0, free lines is 3321 [15:04:42]MH_Cut [15:04:42]Write to MH i2c: D1 01 00 0F 22 01 03 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: D1 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: D1 01 00 [15:04:42]MH_I2C_Read... [15:04:42]Read from MH i2c: D1 01 00 0F 22 00 02 [15:04:42]Write to MH i2c: 01 00 00 10 22 32 [15:04:42]Write i2c OK [15:04:42]MH_I2C_Read... [15:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 BE 26 47 00 D3 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FE CD 00 00 F4 03 04 00 26 CC B9 66 B6 04 01 00 00 79 2A 1F D1 89 F8 E9 A8 [15:04:42]CommunicateWithHost err = 0 [15:04:42]CheckOFDResponse [15:04:42]1017 (14) - 77093643461234 [15:04:42]1041 (16) - 0000000000874715 [15:04:42]1040 (4) - 52734 [15:04:42]1012 (4) - 12.08.2024 08:47 [15:04:42]1206 (1) - 0 [15:04:42]OFD Sender: Remove packet 52734 [15:04:42]ProducePacketName [15:04:42]name=ofd_packets/00052734 [15:04:42]NVStorageDeleteData [15:04:43]OFD Sender: No OFD packet to send [15:04:43]*** Cut start [15:04:43]*** Purtial cut [15:04:43]*** Stage 1: CUTSNS_PIN = 1 [15:04:43]Read from MH i2c: 01 [15:04:43]MH_I2C_Read... [15:04:43]*** Stop cut motor [15:04:43]*** Cut end [15:04:43]Read from MH i2c: 01 07 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 07 00 10 22 00 00 00 00 00 FF 0F 47 [15:04:43]process_action close_receipt done [15:04:43]requested_data is exist [15:04:43]produce_requested_data [15:04:43]requested_item fm.sn is exist - process it [15:04:43]wFMCommunicate request_size=4 [15:04:43]MH_SAM_APDU [15:04:43]CAPDU: 80 11 00 00 [15:04:43]Write to MH i2c: E2 08 00 11 22 80 11 00 00 00 00 00 00 AD [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:43]Read from MH i2c: E2 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: E2 17 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: E2 17 00 11 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 00 [15:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:04:43]wFMCommunicate OK [15:04:43]requested_item fd.num is exist - process it [15:04:43]SAM_PROTO_GetFieldsCounters [15:04:43]wFMCommunicate request_size=4 [15:04:43]MH_SAM_APDU [15:04:43]CAPDU: 80 13 00 00 [15:04:43]Write to MH i2c: E2 08 00 12 22 80 13 00 00 00 00 00 00 B0 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:43]Read from MH i2c: E2 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: E2 62 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: E2 62 00 12 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FE CD 00 00 0E 04 04 00 BF 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 F7 [15:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FE CD 00 00 0E 04 04 00 BF 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 [15:04:43]wFMCommunicate OK [15:04:43]SAM_PROTO_GetFieldsCounters done [15:04:43]requested_item shift.num is exist - process it [15:04:43]requested_item shift.opened is exist - process it [15:04:43]req_shift_opened [15:04:43]FM_GetShiftState [15:04:43]SAM_PROTO_GetShiftState [15:04:43]wFMCommunicate request_size=4 [15:04:43]MH_SAM_APDU [15:04:43]CAPDU: 80 13 01 00 [15:04:43]Write to MH i2c: E2 08 00 13 22 80 13 01 00 00 00 00 00 B2 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:44]Read from MH i2c: E2 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 0E 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 0E 00 13 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 10 [15:04:44]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:04:44]wFMCommunicate OK [15:04:44]SAM_PROTO_GetShiftState done [15:04:44]FM_GetShiftState done [15:04:44]req_shift_opened done [15:04:44]requested_item shift.open_date is exist - process it [15:04:44]req_shift_open_date [15:04:44]req_shift_open_date done [15:04:44]produce_requested_data done [15:04:44]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52734,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [15:04:44]process_action_free close_receipt [15:04:44]json_value_free [15:04:44]json_value_free done [15:04:44]process_json_proto returns [15:04:44]Send response to host [15:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52734,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [15:04:44]free response buf [15:04:44]execute_script done [15:04:44]execute_script returns [15:04:44]free content buf [15:04:44]Sock 7.Close socket [15:04:44]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:07]accept exits with 9 [15:09:07]New connection [15:09:07]New thread 3067293028 created [15:09:07]Thread 3067149668 joined [15:09:07]Waiting for new connection... [15:09:07] Sock 9.Parse request [15:09:07]Sock 9.Check first char [15:09:07]Sock 9.First char is OK [15:09:07]request: POST /json_proto HTTP/1.0 [15:09:07]Method: POST [15:09:07]URL: /json_proto [15:09:07]Method is POST - this is cgi request [15:09:07]url: /json_proto [15:09:07]query_string will be loaded in cgi processing [15:09:07]execute_cgi json_proto POST (null) [15:09:07]execute_cgi path=json_proto method=POST [15:09:07]POST find Content-Length [15:09:07]Host: 172.17.60.7:8080 [15:09:07]Content-Length: 1373 [15:09:07]Content-Type: application/json [15:09:07] [15:09:07]POST finish read [15:09:07]Found Content-Length = 1373 [15:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122867", "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" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:07]execute_script... [15:09: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)122867", "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" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:07]POST & json_proto [15:09:07]process_json_proto [15:09:07]json parsed OK: [15:09:07]protocol is kg_v1.0 [15:09:07]action value=close_receipt [15:09:07]process_action close_receipt [15:09:07]cmd_close_receipt [15:09:07]MH_GetDate [15:09:07]Write to MH i2c: F0 00 00 14 22 25 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: F0 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: F0 09 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: F0 09 00 14 22 00 99 25 BA 66 63 9B 67 64 D5 [15:09:07]GetLastDocTimeStamp 1723475085 [15:09:07]current date 1723475353 [15:09:07]FM_GetShiftState [15:09:07]SAM_PROTO_GetShiftState [15:09:07]wFMCommunicate request_size=4 [15:09:07]MH_SAM_APDU [15:09:07]CAPDU: 80 13 01 00 [15:09:07]Write to MH i2c: E2 08 00 15 22 80 13 01 00 00 00 00 00 B4 [15:09:07]Write i2c OK [15:09:07]MH_I2C_Read... [15:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:07]Read from MH i2c: E2 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 0E 00 [15:09:07]MH_I2C_Read... [15:09:07]Read from MH i2c: E2 0E 00 15 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 12 [15:09:07]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:09:07]wFMCommunicate OK [15:09:07]SAM_PROTO_GetShiftState done [15:09:07]FM_GetShiftState done [15:09:07]opened in 1723422684 [15:09:07]opened+sec_in_day 1723509084 [15:09:07]quantity*price = 15500 [15:09:07]sum+1 = 15501 [15:09:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 0.00 Безнал.: 320.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 53 12.08.2024 15:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52735 ФПД: 159240556675752 /tax-web-control/client/api/v1/ticket?date=20240812T150913&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52735&fm=159240556675752&tin=02508201610067®Number=0000000000090834&sum=32000 0 [15:09:08]StoreToDocumentArchive [15:09:08]shift 447 fd 52735 [15:09:08]save to /storage/0447/doc_00052735 [15:09:08]save last doc name /storage/0447/doc_00052735 to /storage/kkm_last_doc_name [15:09:08]save OK [15:09:08]Clear old archive folders... [15:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=513 [15:09:08]tlvbuf is 0129C8B0 [15:09:08]SAM_PROTO_ClearQueue [15:09:08]wFMCommunicate request_size=4 [15:09:08]MH_SAM_APDU [15:09:08]CAPDU: 80 09 00 00 [15:09:08]Write to MH i2c: E2 08 00 22 22 80 09 00 00 00 00 00 00 B6 [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:08]Read from MH i2c: E2 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 03 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 03 00 22 22 00 90 00 B8 [15:09:08]RAPDU: 90 00 [15:09:08]wFMCommunicate OK [15:09:08]SAM_PROTO_ClearQueue done [15:09:08]KKMCreateOFDPacket [15:09:08]OFDProtocolAddRootSTLVToBuf [15:09:08]FM_MakeSignedData [15:09:08]FM_MakeSignedData [15:09:08]SAM_PROTO_SignData [15:09:08]wFMCommunicate request_size=4 [15:09:08]MH_SAM_APDU [15:09:08]CAPDU: 80 0D 01 02 [15:09:08]Write to MH i2c: E2 08 00 23 22 80 0D 01 02 00 00 00 00 BE [15:09:08]Write i2c OK [15:09:08]MH_I2C_Read... [15:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:08]Read from MH i2c: E2 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 03 00 [15:09:08]MH_I2C_Read... [15:09:08]Read from MH i2c: E2 03 00 23 22 00 90 00 B9 [15:09:08]RAPDU: 90 00 [15:09:08]wFMCommunicate OK [15:09:08]wFMCommunicate request_size=255 [15:09:08]MH_SAM_APDU [15:09:08]CAPDU: 80 0D 02 02 FA 03 00 01 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [15:09:09]Write to MH i2c: E2 02 01 24 22 80 0D 02 02 FA 00 03 00 01 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 98 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 03 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 03 00 24 22 00 90 00 BA [15:09:09]RAPDU: 90 00 [15:09:09]wFMCommunicate OK [15:09:09]wFMCommunicate request_size=255 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 0D 02 02 FA 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 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 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 99 25 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 [15:09:09]Write to MH i2c: E2 02 01 25 22 80 0D 02 02 FA 00 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 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 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 99 25 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 00 00 2F [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 03 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 03 00 25 22 00 90 00 BB [15:09:09]RAPDU: 90 00 [15:09:09]wFMCommunicate OK [15:09:09]wFMCommunicate request_size=22 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 0D 02 02 11 04 04 00 FF CD 00 00 35 04 06 00 90 D4 14 D0 82 A8 [15:09:09]Write to MH i2c: E2 19 00 26 22 80 0D 02 02 11 00 04 04 00 FF CD 00 00 35 04 06 00 90 D4 14 D0 82 A8 00 00 69 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 03 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 03 00 26 22 00 90 00 BC [15:09:09]RAPDU: 90 00 [15:09:09]wFMCommunicate OK [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 0D 03 02 [15:09:09]Write to MH i2c: E2 08 00 27 22 80 0D 03 02 00 00 00 00 C4 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 0B 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 0B 00 27 22 00 3A C4 8E D0 1E 3E A8 3D 90 00 62 [15:09:09]RAPDU: 3A C4 8E D0 1E 3E A8 3D 90 00 [15:09:09]wFMCommunicate OK [15:09:09]SAM_PROTO_SignData done [15:09:09]FM_MakeSignedData done [15:09:09]CreateOFDProtocolMessage [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 11 00 00 [15:09:09]Write to MH i2c: E2 08 00 28 22 80 11 00 00 00 00 00 00 C4 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:09]Read from MH i2c: E2 17 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 17 00 28 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 17 [15:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:09:09]wFMCommunicate OK [15:09:09]CreateOFDProtocolMessage done [15:09:09]OFDSenderStorePacket 52735 [15:09:09]StoreOFDPacket docnum=52735 [15:09:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 15 02 00 00 FA 3A 0D 02 9F 32 5A 03 01 00 03 00 01 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 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 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 99 25 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FF CD 00 00 35 04 06 00 90 D4 14 D0 82 A8 3A C4 8E D0 1E 3E A8 3D [15:09:09]CheckFolder [15:09:09]dirname=/storage/ofd_packets [15:09:09]CheckFolder done [15:09:09]ProducePacketName [15:09:09]name=ofd_packets/00052735 [15:09:09]NVStorageSaveData ofd_packets/00052735 [15:09:09]File name is /storage/ofd_packets/00052735 [15:09:09]Write 563 bytes [15:09:09]NVStorageSaveData done [15:09:09]OFDSenderStorePacket done [15:09:09]KKMCreateOFDPacket done [15:09:09]NVStorageSaveData kkm_last_timestamp [15:09:09]File name is /storage/kkm_last_timestamp [15:09:09]Write 4 bytes [15:09:09]NVStorageSaveData done [15:09:09]ExternCall_PrintAddStr [15:09:09]wPrintStart [15:09:09]Write to MH i2c: 01 00 00 29 22 4B [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: 01 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: 01 07 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 FF 0F 60 [15:09:09]RasterBufferAndPrint [15:09:09]line Счет N : (3)122867 [15:09:09]line ИНН: 02508201610067 [15:09:09]line Контрольно-Кассовый Чек [15:09:09]line ПРОДАЖА [15:09:09]line Товар: 5449000176448 [15:09:09]line Сок Piko Pulpy апельсин ПЭТ 1л [15:09:09]line 1.000 * 155.00 [15:09:09]line = 155.00 [15:09:09]line НДС 12% НСП 1% [15:09:09]line > о реализуемом товаре [15:09:09]line Товар: 5449000189356 [15:09:09]line Холодный чай Fuse манго ананас 1л [15:09:09]line 1.000 * 120.00 [15:09:09]line = 120.00 [15:09:09]line НДС 12% НСП 1% [15:09:09]line > о реализуемом товаре [15:09:09]line Товар: 50173976 [15:09:09]line Жев Orbit Winterfresh под [15:09:09]line 1.000 * 45.00 [15:09:09]line = 45.00 [15:09:09]line НДС 12% НСП 1% [15:09:09]line > о реализуемом товаре [15:09:09]line ИТОГО: 320.00 [15:09:09]line НСП 1% : 2.83 [15:09:09]line НДС 12% : 33.98 [15:09:09]line Наличными: 0.00 [15:09:09]line Безнал.: 320.00 [15:09:09]line Место: АЗС № 54 "Партнер Нефть" [15:09:09]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [15:09:09]line СНО: Общий режим [15:09:09]line Чек 53 12.08.2024 15:09 [15:09:09]line Смена: 447 ФФД: 1.0 [15:09:09]line ЗНМ: 0300000007 [15:09:09]line РНМ: 0000000000090834 [15:09:09]line Версия ККМ: 001 [15:09:09]line Платежная система: О! деньги [15:09:09]line ФМ: 0000000000874715 [15:09:09]line ФД: 52735 [15:09:09]line ФПД: 159240556675752 [15:09:09]line /tax-web-control/client/api/v1/ticket?date=20240812T150913&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52735&fm=159240556675752&tin=02508201610067®Number=0000000000090834&sum=32000 [15:09:10]OFD Sender: Processing packet 52735 [packets to send 55, broken 54] [15:09:10]ProducePacketName [15:09:10]name=ofd_packets/00052735 [15:09:10]OFD Sender: To server: pG, [15:09:10]CommunicateWithHost lk.salyk.kg:30040 [15:09:10]ConnectInit lk.salyk.kg [15:09:10]line 0 [15:09:10]written 0, free lines is 4095 [15:09:10]Connected sock=10 [15:09:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 15 02 00 00 FA 3A 0D 02 9F 32 5A 03 01 00 03 00 01 02 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 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 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 99 25 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FF CD 00 00 35 04 06 00 90 D4 14 D0 82 A8 3A C4 8E D0 1E 3E A8 3D [15:09:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 FE 00 47 00 67 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 FF CD 00 00 F4 03 04 00 32 CD B9 66 B6 04 01 00 00 C8 8A 58 3C BA 5F 63 ED [15:09:10]CommunicateWithHost err = 0 [15:09:10]CheckOFDResponse [15:09:10]1017 (14) - 77093643461234 [15:09:10]1041 (16) - 0000000000874715 [15:09:10]1040 (4) - 52735 [15:09:10]1012 (4) - 12.08.2024 08:52 [15:09:10]1206 (1) - 0 [15:09:10]OFD Sender: Remove packet 52735 [15:09:10]ProducePacketName [15:09:10]name=ofd_packets/00052735 [15:09:10]NVStorageDeleteData [15:09:10]Write to MH i2c: 01 00 00 60 22 82 [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: 01 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: 01 07 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: 01 07 00 60 22 00 00 00 00 00 E3 0B 77 [15:09:10]RasterBufferAndPrint [15:09:10]line [15:09:10]line [15:09:10]line [15:09:10]line [15:09:10]line [15:09:10]written 0, free lines is 3049 [15:09:10]MH_Cut [15:09:10]Write to MH i2c: D1 01 00 67 22 01 5B [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: D1 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: D1 01 00 [15:09:10]MH_I2C_Read... [15:09:10]Read from MH i2c: D1 01 00 67 22 00 5A [15:09:10]Write to MH i2c: 01 00 00 68 22 8A [15:09:10]Write i2c OK [15:09:10]MH_I2C_Read... [15:09:11]OFD Sender: No OFD packet to send [15:09:11]*** Cut start [15:09:11]*** Purtial cut [15:09:11]*** Stage 1: CUTSNS_PIN = 1 [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]*** Stop cut motor [15:09:12]*** Cut end [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 68 22 00 00 00 00 00 FF 0F 9F [15:09:12]process_action close_receipt done [15:09:12]requested_data is exist [15:09:12]produce_requested_data [15:09:12]requested_item fm.sn is exist - process it [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 11 00 00 [15:09:12]Write to MH i2c: E2 08 00 69 22 80 11 00 00 00 00 00 00 05 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 17 00 69 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 58 [15:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:09:12]wFMCommunicate OK [15:09:12]requested_item fd.num is exist - process it [15:09:12]SAM_PROTO_GetFieldsCounters [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 13 00 00 [15:09:12]Write to MH i2c: E2 08 00 6A 22 80 13 00 00 00 00 00 00 08 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:12]Read from MH i2c: E2 62 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 62 00 6A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FF CD 00 00 0E 04 04 00 BF 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 53 [15:09: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 FF CD 00 00 0E 04 04 00 BF 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 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_GetFieldsCounters done [15:09:12]requested_item shift.num is exist - process it [15:09:12]requested_item shift.opened is exist - process it [15:09:12]req_shift_opened [15:09:12]FM_GetShiftState [15:09:12]SAM_PROTO_GetShiftState [15:09:12]wFMCommunicate request_size=4 [15:09:12]MH_SAM_APDU [15:09:12]CAPDU: 80 13 01 00 [15:09:12]Write to MH i2c: E2 08 00 6B 22 80 13 01 00 00 00 00 00 0A [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:12]Read from MH i2c: E2 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 0E 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: E2 0E 00 6B 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 68 [15:09:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:09:12]wFMCommunicate OK [15:09:12]SAM_PROTO_GetShiftState done [15:09:12]FM_GetShiftState done [15:09:12]req_shift_opened done [15:09:12]requested_item shift.open_date is exist - process it [15:09:12]req_shift_open_date [15:09:12]req_shift_open_date done [15:09:12]produce_requested_data done [15:09:12]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52735,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [15:09:12]process_action_free close_receipt [15:09:12]json_value_free [15:09:12]json_value_free done [15:09:12]process_json_proto returns [15:09:12]Send response to host [15:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52735,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [15:09:12]free response buf [15:09:12]execute_script done [15:09:12]execute_script returns [15:09:12]free content buf [15:09:12]Sock 9.Close socket [15:09:12]Sock 9.Thread stoped [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:33]accept exits with 7 [15:34:33]New connection [15:34:33]New thread 3067149668 created [15:34:33]Thread 3067293028 joined [15:34:33]Waiting for new connection... [15:34:33] Sock 7.Parse request [15:34:33]Sock 7.Check first char [15:34:33]Sock 7.First char is OK [15:34:33]request: POST /json_proto HTTP/1.0 [15:34:33]Method: POST [15:34:33]URL: /json_proto [15:34:33]Method is POST - this is cgi request [15:34:33]url: /json_proto [15:34:33]query_string will be loaded in cgi processing [15:34:33]execute_cgi json_proto POST (null) [15:34:33]execute_cgi path=json_proto method=POST [15:34:33]POST find Content-Length [15:34:33]Host: 172.17.60.7:8080 [15:34:33]Content-Length: 796 [15:34:33]Content-Type: application/json [15:34:33] [15:34:33]POST finish read [15:34:33]Found Content-Length = 796 [15:34:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122868", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:33]execute_script... [15:34:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122868", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:33]POST & json_proto [15:34:33]process_json_proto [15:34:33]json parsed OK: [15:34:33]protocol is kg_v1.0 [15:34:33]action value=close_receipt [15:34:33]process_action close_receipt [15:34:33]cmd_close_receipt [15:34:33]MH_GetDate [15:34:33]Write to MH i2c: F0 00 00 6C 22 7D [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: F0 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: F0 09 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: F0 09 00 6C 22 00 8E 2B BA 66 63 9B 67 64 28 [15:34:33]GetLastDocTimeStamp 1723475353 [15:34:33]current date 1723476878 [15:34:33]FM_GetShiftState [15:34:33]SAM_PROTO_GetShiftState [15:34:33]wFMCommunicate request_size=4 [15:34:33]MH_SAM_APDU [15:34:33]CAPDU: 80 13 01 00 [15:34:33]Write to MH i2c: E2 08 00 6D 22 80 13 01 00 00 00 00 00 0C [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:33]Read from MH i2c: E2 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 0E 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 0E 00 6D 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 6A [15:34:33]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:34:33]wFMCommunicate OK [15:34:33]SAM_PROTO_GetShiftState done [15:34:33]FM_GetShiftState done [15:34:33]opened in 1723422684 [15:34:33]opened+sec_in_day 1723509084 [15:34:33]quantity*price = 5000 [15:34:33]sum+1 = 5001 [15:34:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 54 12.08.2024 15:34 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52736 ФПД: 74101367444670 /tax-web-control/client/api/v1/ticket?date=20240812T153439&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52736&fm=74101367444670&tin=02508201610067®Number=0000000000090834&sum=5000 0 [15:34:34]StoreToDocumentArchive [15:34:34]shift 447 fd 52736 [15:34:34]save to /storage/0447/doc_00052736 [15:34:34]save last doc name /storage/0447/doc_00052736 to /storage/kkm_last_doc_name [15:34:34]save OK [15:34:34]Clear old archive folders... [15:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:34:34]tlvbuf is 0129C6E0 [15:34:34]SAM_PROTO_ClearQueue [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 09 00 00 [15:34:34]Write to MH i2c: E2 08 00 7A 22 80 09 00 00 00 00 00 00 0E [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 7A 22 00 90 00 10 [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]SAM_PROTO_ClearQueue done [15:34:34]KKMCreateOFDPacket [15:34:34]OFDProtocolAddRootSTLVToBuf [15:34:34]FM_MakeSignedData [15:34:34]FM_MakeSignedData [15:34:34]SAM_PROTO_SignData [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 01 02 [15:34:34]Write to MH i2c: E2 08 00 7B 22 80 0D 01 02 00 00 00 00 16 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 7B 22 00 90 00 11 [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]wFMCommunicate request_size=255 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8F 2B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:34:34]Write to MH i2c: E2 02 01 7C 22 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8F 2B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 FC [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 7C 22 00 90 00 12 [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]wFMCommunicate request_size=28 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 02 02 17 37 34 37 31 35 10 04 04 00 00 CE 00 00 35 04 06 00 43 65 11 AF 14 BE [15:34:34]Write to MH i2c: E2 1F 00 7D 22 80 0D 02 02 17 00 37 34 37 31 35 10 04 04 00 00 CE 00 00 35 04 06 00 43 65 11 AF 14 BE 00 00 AE [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 7D 22 00 90 00 13 [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 03 02 [15:34:34]Write to MH i2c: E2 08 00 7E 22 80 0D 03 02 00 00 00 00 1B [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 0B 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 0B 00 7E 22 00 C2 A3 3B 04 42 2B 0B 87 90 00 BF [15:34:34]RAPDU: C2 A3 3B 04 42 2B 0B 87 90 00 [15:34:34]wFMCommunicate OK [15:34:34]SAM_PROTO_SignData done [15:34:34]FM_MakeSignedData done [15:34:34]CreateOFDProtocolMessage [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 11 00 00 [15:34:34]Write to MH i2c: E2 08 00 7F 22 80 11 00 00 00 00 00 00 1B [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:35]Read from MH i2c: E2 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 17 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 17 00 7F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 6E [15:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:34:35]wFMCommunicate OK [15:34:35]CreateOFDProtocolMessage done [15:34:35]OFDSenderStorePacket 52736 [15:34:35]StoreOFDPacket docnum=52736 [15:34:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 21 01 00 00 57 6A 19 01 F1 E8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8F 2B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 00 CE 00 00 35 04 06 00 43 65 11 AF 14 BE C2 A3 3B 04 42 2B 0B 87 [15:34:35]CheckFolder [15:34:35]dirname=/storage/ofd_packets [15:34:35]CheckFolder done [15:34:35]ProducePacketName [15:34:35]name=ofd_packets/00052736 [15:34:35]NVStorageSaveData ofd_packets/00052736 [15:34:35]File name is /storage/ofd_packets/00052736 [15:34:35]Write 319 bytes [15:34:35]NVStorageSaveData done [15:34:35]OFDSenderStorePacket done [15:34:35]KKMCreateOFDPacket done [15:34:35]NVStorageSaveData kkm_last_timestamp [15:34:35]File name is /storage/kkm_last_timestamp [15:34:35]Write 4 bytes [15:34:35]NVStorageSaveData done [15:34:35]ExternCall_PrintAddStr [15:34:35]wPrintStart [15:34:35]Write to MH i2c: 01 00 00 80 22 A2 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 80 22 00 00 00 00 00 FF 0F B7 [15:34:35]RasterBufferAndPrint [15:34:35]line Счет N : (3)122868 [15:34:35]line ИНН: 02508201610067 [15:34:35]line Контрольно-Кассовый Чек [15:34:35]line ПРОДАЖА [15:34:35]line Товар: 4700000160358 [15:34:35]line Вода Легенда 1л [15:34:35]line 1.000 * 50.00 [15:34:35]line = 50.00 [15:34:35]line НДС 12% НСП 1% [15:34:35]line > о реализуемом товаре [15:34:35]line ИТОГО: 50.00 [15:34:35]line НСП 1% : 0.44 [15:34:35]line НДС 12% : 5.31 [15:34:35]line Наличными: 0.00 [15:34:35]line Безнал.: 50.00 [15:34:35]line Место: АЗС № 54 "Партнер Нефть" [15:34:35]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [15:34:35]line СНО: Общий режим [15:34:35]line Чек 54 12.08.2024 15:34 [15:34:35]line Смена: 447 ФФД: 1.0 [15:34:35]line ЗНМ: 0300000007 [15:34:35]line РНМ: 0000000000090834 [15:34:35]line Версия ККМ: 001 [15:34:35]line Платежная система: О! деньги [15:34:35]line ФМ: 0000000000874715 [15:34:35]line ФД: 52736 [15:34:35]line ФПД: 74101367444670 [15:34:35]line /tax-web-control/client/api/v1/ticket?date=20240812T153439&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52736&fm=74101367444670&tin=02508201610067®Number=0000000000090834&sum=5000 [15:34:35]line 0 [15:34:35]written 0, free lines is 4095 [15:34:35]OFD Sender: Processing packet 52736 [packets to send 55, broken 54] [15:34:35]ProducePacketName [15:34:35]name=ofd_packets/00052736 [15:34:35]OFD Sender: To server: pG, [15:34:35]CommunicateWithHost lk.salyk.kg:30040 [15:34:35]ConnectInit lk.salyk.kg [15:34:35]Write to MH i2c: 01 00 00 A9 22 CB [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 A9 22 00 00 00 00 00 B7 0C 95 [15:34:35]RasterBufferAndPrint [15:34:35]line [15:34:35]line [15:34:35]line [15:34:35]line [15:34:35]line [15:34:35]written 0, free lines is 3259 [15:34:35]MH_Cut [15:34:35]Write to MH i2c: D1 01 00 B0 22 01 A4 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: D1 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: D1 01 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: D1 01 00 B0 22 00 A3 [15:34:35]Write to MH i2c: 01 00 00 B1 22 D3 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:36]*** Cut start [15:34:36]*** Purtial cut [15:34:36]*** Stage 1: CUTSNS_PIN = 1 [15:34:36]Read from MH i2c: 01 [15:34:36]MH_I2C_Read... [15:34:36]*** Stop cut motor [15:34:36]*** Cut end [15:34:36]Read from MH i2c: 01 07 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 FF 0F E8 [15:34:36]process_action close_receipt done [15:34:36]requested_data is exist [15:34:36]produce_requested_data [15:34:36]requested_item fm.sn is exist - process it [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 11 00 00 [15:34:36]Write to MH i2c: E2 08 00 B2 22 80 11 00 00 00 00 00 00 4E [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 17 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 17 00 B2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 A1 [15:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:34:36]wFMCommunicate OK [15:34:36]requested_item fd.num is exist - process it [15:34:36]SAM_PROTO_GetFieldsCounters [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 13 00 00 [15:34:36]Write to MH i2c: E2 08 00 B3 22 80 13 00 00 00 00 00 00 51 [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 62 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 62 00 B3 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 00 CE 00 00 0E 04 04 00 BF 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 A1 [15:34: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 00 CE 00 00 0E 04 04 00 BF 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:34:36]wFMCommunicate OK [15:34:36]SAM_PROTO_GetFieldsCounters done [15:34:36]requested_item shift.num is exist - process it [15:34:36]requested_item shift.opened is exist - process it [15:34:36]req_shift_opened [15:34:36]FM_GetShiftState [15:34:36]SAM_PROTO_GetShiftState [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 13 01 00 [15:34:36]Write to MH i2c: E2 08 00 B4 22 80 13 01 00 00 00 00 00 53 [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 0E 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 0E 00 B4 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 B1 [15:34:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:34:36]wFMCommunicate OK [15:34:36]SAM_PROTO_GetShiftState done [15:34:36]FM_GetShiftState done [15:34:36]req_shift_opened done [15:34:36]requested_item shift.open_date is exist - process it [15:34:36]req_shift_open_date [15:34:36]req_shift_open_date done [15:34:36]produce_requested_data done [15:34:36]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52736,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [15:34:36]process_action_free close_receipt [15:34:36]json_value_free [15:34:36]json_value_free done [15:34:36]process_json_proto returns [15:34:36]Send response to host [15:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52736,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [15:34:36]free response buf [15:34:36]execute_script done [15:34:36]execute_script returns [15:34:36]free content buf [15:34:36]Sock 7.Close socket [15:34:36]Sock 7.Thread stoped [15:36:48]ConnectInit Can't connect to host [15:36:48]CommunicateWithHost connect error [15:36:48]CommunicateWithHost err = -1 [15:36:48]OFD Sender: Server communicate error [15:36:53]OFD Sender: Processing packet 52736 [packets to send 55, broken 54] [15:36:53]ProducePacketName [15:36:53]name=ofd_packets/00052736 [15:36:53]OFD Sender: To server: pG, [15:36:53]CommunicateWithHost lk.salyk.kg:30040 [15:36:53]ConnectInit lk.salyk.kg [15:36:53]Connected sock=7 [15:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 21 01 00 00 57 6A 19 01 F1 E8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 8F 2B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 00 CE 00 00 35 04 06 00 43 65 11 AF 14 BE C2 A3 3B 04 42 2B 0B 87 [15:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 0A F4 47 00 5E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 00 CE 00 00 F4 03 04 00 B1 D3 B9 66 B6 04 01 00 00 B5 20 9E F2 57 B2 E9 89 [15:36:53]CommunicateWithHost err = 0 [15:36:53]CheckOFDResponse [15:36:53]1017 (14) - 77093643461234 [15:36:53]1041 (16) - 0000000000874715 [15:36:53]1040 (4) - 52736 [15:36:53]1012 (4) - 12.08.2024 09:19 [15:36:53]1206 (1) - 0 [15:36:53]OFD Sender: Remove packet 52736 [15:36:53]ProducePacketName [15:36:53]name=ofd_packets/00052736 [15:36:53]NVStorageDeleteData [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:56:58]accept exits with 9 [15:56:58]New connection [15:56:58]New thread 3067293028 created [15:56:58]Thread 3067149668 joined [15:56:58]Waiting for new connection... [15:56:58] Sock 9.Parse request [15:56:58]Sock 9.Check first char [15:56:58]Sock 9.First char is OK [15:56:58]request: POST /json_proto HTTP/1.0 [15:56:58]Method: POST [15:56:58]URL: /json_proto [15:56:58]Method is POST - this is cgi request [15:56:58]url: /json_proto [15:56:58]query_string will be loaded in cgi processing [15:56:58]execute_cgi json_proto POST (null) [15:56:58]execute_cgi path=json_proto method=POST [15:56:58]POST find Content-Length [15:56:58]Host: 172.17.60.7:8080 [15:56:58]Content-Length: 659 [15:56:58]Content-Type: application/json [15:56:58] [15:56:58]POST finish read [15:56:58]Found Content-Length = 659 [15:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122869", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 82.00, "quantity" : 4.000, "sum" : 328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 328.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:58]execute_script... [15:56: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)122869", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 82.00, "quantity" : 4.000, "sum" : 328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 328.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:58]POST & json_proto [15:56:58]process_json_proto [15:56:58]json parsed OK: [15:56:58]protocol is kg_v1.0 [15:56:58]action value=close_receipt [15:56:58]process_action close_receipt [15:56:58]cmd_close_receipt [15:56:58]MH_GetDate [15:56:58]Write to MH i2c: F0 00 00 B5 22 C6 [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: F0 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: F0 09 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: F0 09 00 B5 22 00 CF 30 BA 66 63 9B 67 64 B7 [15:56:58]GetLastDocTimeStamp 1723476879 [15:56:58]current date 1723478223 [15:56:58]FM_GetShiftState [15:56:58]SAM_PROTO_GetShiftState [15:56:58]wFMCommunicate request_size=4 [15:56:58]MH_SAM_APDU [15:56:58]CAPDU: 80 13 01 00 [15:56:58]Write to MH i2c: E2 08 00 B6 22 80 13 01 00 00 00 00 00 55 [15:56:58]Write i2c OK [15:56:58]MH_I2C_Read... [15:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:58]Read from MH i2c: E2 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 0E 00 [15:56:58]MH_I2C_Read... [15:56:58]Read from MH i2c: E2 0E 00 B6 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 B3 [15:56:58]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:56:58]wFMCommunicate OK [15:56:58]SAM_PROTO_GetShiftState done [15:56:58]FM_GetShiftState done [15:56:58]opened in 1723422684 [15:56:58]opened+sec_in_day 1723509084 [15:56:58]quantity*price = 32800 [15:56:58]sum+1 = 32801 [15:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 328.00 НСП 1% : 2.90 НДС 12% : 34.83 Наличными: 328.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 55 12.08.2024 15:57 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52737 ФПД: 161080100366873 /tax-web-control/client/api/v1/ticket?date=20240812T155704&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52737&fm=161080100366873&tin=02508201610067®Number=0000000000090834&sum=32800 0 [15:56:59]StoreToDocumentArchive [15:56:59]shift 447 fd 52737 [15:56:59]save to /storage/0447/doc_00052737 [15:56:59]save last doc name /storage/0447/doc_00052737 to /storage/kkm_last_doc_name [15:56:59]save OK [15:56:59]Clear old archive folders... [15:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=288 [15:56:59]tlvbuf is 012EE380 [15:56:59]SAM_PROTO_ClearQueue [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 09 00 00 [15:56:59]Write to MH i2c: E2 08 00 C3 22 80 09 00 00 00 00 00 00 57 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 C3 22 00 90 00 59 [15:56:59]RAPDU: 90 00 [15:56:59]wFMCommunicate OK [15:56:59]SAM_PROTO_ClearQueue done [15:56:59]KKMCreateOFDPacket [15:56:59]OFDProtocolAddRootSTLVToBuf [15:56:59]FM_MakeSignedData [15:56:59]FM_MakeSignedData [15:56:59]SAM_PROTO_SignData [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 0D 01 02 [15:56:59]Write to MH i2c: E2 08 00 C4 22 80 0D 01 02 00 00 00 00 5F [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [15:56:59]RAPDU: 90 00 [15:56:59]wFMCommunicate OK [15:56:59]wFMCommunicate request_size=255 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 20 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D0 30 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [15:56:59]Write to MH i2c: E2 02 01 C5 22 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 20 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D0 30 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 AC [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 C5 22 00 90 00 5B [15:56:59]RAPDU: 90 00 [15:56:59]wFMCommunicate OK [15:56:59]wFMCommunicate request_size=47 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 0D 02 02 2A 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 01 CE 00 00 35 04 06 00 92 80 62 29 AA 19 [15:56:59]Write to MH i2c: E2 32 00 C6 22 80 0D 02 02 2A 00 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 01 CE 00 00 35 04 06 00 92 80 62 29 AA 19 00 00 50 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 03 00 C6 22 00 90 00 5C [15:56:59]RAPDU: 90 00 [15:56:59]wFMCommunicate OK [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 0D 03 02 [15:56:59]Write to MH i2c: E2 08 00 C7 22 80 0D 03 02 00 00 00 00 64 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 0B 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 0B 00 C7 22 00 A8 73 FE 14 9D 17 BC 65 90 00 67 [15:56:59]RAPDU: A8 73 FE 14 9D 17 BC 65 90 00 [15:56:59]wFMCommunicate OK [15:56:59]SAM_PROTO_SignData done [15:56:59]FM_MakeSignedData done [15:56:59]CreateOFDProtocolMessage [15:56:59]wFMCommunicate request_size=4 [15:56:59]MH_SAM_APDU [15:56:59]CAPDU: 80 11 00 00 [15:56:59]Write to MH i2c: E2 08 00 C8 22 80 11 00 00 00 00 00 00 64 [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:59]Read from MH i2c: E2 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 17 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: E2 17 00 C8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B7 [15:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:56:59]wFMCommunicate OK [15:56:59]CreateOFDProtocolMessage done [15:56:59]OFDSenderStorePacket 52737 [15:56:59]StoreOFDPacket docnum=52737 [15:56:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 34 01 00 00 47 CF 2C 01 B8 50 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 20 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D0 30 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 01 CE 00 00 35 04 06 00 92 80 62 29 AA 19 A8 73 FE 14 9D 17 BC 65 [15:56:59]CheckFolder [15:56:59]dirname=/storage/ofd_packets [15:56:59]CheckFolder done [15:56:59]ProducePacketName [15:56:59]name=ofd_packets/00052737 [15:56:59]NVStorageSaveData ofd_packets/00052737 [15:56:59]File name is /storage/ofd_packets/00052737 [15:56:59]Write 338 bytes [15:56:59]NVStorageSaveData done [15:56:59]OFDSenderStorePacket done [15:56:59]KKMCreateOFDPacket done [15:56:59]NVStorageSaveData kkm_last_timestamp [15:56:59]File name is /storage/kkm_last_timestamp [15:56:59]Write 4 bytes [15:56:59]NVStorageSaveData done [15:56:59]ExternCall_PrintAddStr [15:56:59]wPrintStart [15:56:59]Write to MH i2c: 01 00 00 C9 22 EB [15:56:59]Write i2c OK [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: 01 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: 01 07 00 [15:56:59]MH_I2C_Read... [15:56:59]Read from MH i2c: 01 07 00 C9 22 00 00 00 00 00 FF 0F 00 [15:56:59]RasterBufferAndPrint [15:56:59]line Счет N : (3)122869 [15:56:59]line ИНН: 02508201610067 [15:56:59]line Контрольно-Кассовый Чек [15:56:59]line ПРОДАЖА [15:56:59]line Товар: 4700000481453 [15:56:59]line Напиток энерг Nitro Max 0,45 ж/б [15:56:59]line 4.000 * 82.00 [15:56:59]line = 328.00 [15:56:59]line НДС 12% НСП 1% [15:56:59]line > о реализуемом товаре [15:56:59]line ИТОГО: 328.00 [15:56:59]line НСП 1% : 2.90 [15:56:59]line НДС 12% : 34.83 [15:56:59]line Наличными: 328.00 [15:56:59]line Безнал.: 0.00 [15:56:59]line Место: АЗС № 54 "Партнер Нефть" [15:56:59]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [15:56:59]line СНО: Общий режим [15:56:59]line Чек 55 12.08.2024 15:57 [15:56:59]line Смена: 447 ФФД: 1.0 [15:56:59]line ЗНМ: 0300000007 [15:56:59]line РНМ: 0000000000090834 [15:56:59]line Версия ККМ: 001 [15:56:59]line ФМ: 0000000000874715 [15:56:59]line ФД: 52737 [15:56:59]line ФПД: 161080100366873 [15:56:59]line /tax-web-control/client/api/v1/ticket?date=20240812T155704&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52737&fm=161080100366873&tin=02508201610067®Number=0000000000090834&sum=32800 [15:57:00]OFD Sender: Processing packet 52737 [packets to send 55, broken 54] [15:57:00]ProducePacketName [15:57:00]name=ofd_packets/00052737 [15:57:00]OFD Sender: To server: pG, [15:57:00]CommunicateWithHost lk.salyk.kg:30040 [15:57:00]ConnectInit lk.salyk.kg [15:57:00]line 0 [15:57:00]written 0, free lines is 4095 [15:57:00]Connected sock=10 [15:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 34 01 00 00 47 CF 2C 01 B8 50 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 20 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 0D 00 00 00 00 07 04 06 00 20 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D0 30 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 01 CE 00 00 35 04 06 00 92 80 62 29 AA 19 A8 73 FE 14 9D 17 BC 65 [15:57:00]Write to MH i2c: 01 00 00 F1 22 13 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: 01 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: 01 07 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: 01 07 00 F1 22 00 00 00 00 00 D9 0C FF [15:57:00]RasterBufferAndPrint [15:57:00]line [15:57:00]line [15:57:00]line [15:57:00]line [15:57:00]line [15:57:00]written 0, free lines is 3294 [15:57:00]MH_Cut [15:57:00]Write to MH i2c: D1 01 00 F8 22 01 EC [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: D1 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: D1 01 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: D1 01 00 F8 22 00 EB [15:57:00]Write to MH i2c: 01 00 00 F9 22 1B [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 3A 4F 47 00 AA 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 34 37 31 35 10 04 04 00 01 CE 00 00 F4 03 04 00 68 D8 B9 66 B6 04 01 00 00 2E 73 D8 FE C4 A3 C5 19 [15:57:00]CommunicateWithHost err = 0 [15:57:00]CheckOFDResponse [15:57:00]1017 (14) - 77093643461234 [15:57:00]1041 (16) - 0000000000874715 [15:57:00]1040 (4) - 52737 [15:57:00]1012 (4) - 12.08.2024 09:39 [15:57:00]1206 (1) - 0 [15:57:00]OFD Sender: Remove packet 52737 [15:57:00]ProducePacketName [15:57:00]name=ofd_packets/00052737 [15:57:00]NVStorageDeleteData [15:57:01]OFD Sender: No OFD packet to send [15:57:01]*** Cut start [15:57:01]*** Purtial cut [15:57:01]*** Stage 1: CUTSNS_PIN = 1 [15:57:01]Read from MH i2c: 01 [15:57:01]MH_I2C_Read... [15:57:01]*** Stop cut motor [15:57:01]*** Cut end [15:57:01]Read from MH i2c: 01 07 00 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: 01 07 00 F9 22 00 00 00 00 00 FF 0F 30 [15:57:01]process_action close_receipt done [15:57:01]requested_data is exist [15:57:01]produce_requested_data [15:57:01]requested_item fm.sn is exist - process it [15:57:01]wFMCommunicate request_size=4 [15:57:01]MH_SAM_APDU [15:57:01]CAPDU: 80 11 00 00 [15:57:01]Write to MH i2c: E2 08 00 FA 22 80 11 00 00 00 00 00 00 96 [15:57:01]Write i2c OK [15:57:01]MH_I2C_Read... [15:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:01]Read from MH i2c: E2 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 17 00 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 17 00 FA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 E9 [15:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [15:57:01]wFMCommunicate OK [15:57:01]requested_item fd.num is exist - process it [15:57:01]SAM_PROTO_GetFieldsCounters [15:57:01]wFMCommunicate request_size=4 [15:57:01]MH_SAM_APDU [15:57:01]CAPDU: 80 13 00 00 [15:57:01]Write to MH i2c: E2 08 00 FB 22 80 13 00 00 00 00 00 00 99 [15:57:01]Write i2c OK [15:57:01]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 62 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 62 00 FB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 01 CE 00 00 0E 04 04 00 BF 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 ED [15:57: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 01 CE 00 00 0E 04 04 00 BF 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:57:02]wFMCommunicate OK [15:57:02]SAM_PROTO_GetFieldsCounters done [15:57:02]requested_item shift.num is exist - process it [15:57:02]requested_item shift.opened is exist - process it [15:57:02]req_shift_opened [15:57:02]FM_GetShiftState [15:57:02]SAM_PROTO_GetShiftState [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 13 01 00 [15:57:02]Write to MH i2c: E2 08 00 FC 22 80 13 01 00 00 00 00 00 9B [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0E 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0E 00 FC 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 F9 [15:57:02]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [15:57:02]wFMCommunicate OK [15:57:02]SAM_PROTO_GetShiftState done [15:57:02]FM_GetShiftState done [15:57:02]req_shift_opened done [15:57:02]requested_item shift.open_date is exist - process it [15:57:02]req_shift_open_date [15:57:02]req_shift_open_date done [15:57:02]produce_requested_data done [15:57:02]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52737,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [15:57:02]process_action_free close_receipt [15:57:02]json_value_free [15:57:02]json_value_free done [15:57:02]process_json_proto returns [15:57:02]Send response to host [15:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52737,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [15:57:02]free response buf [15:57:02]execute_script done [15:57:02]execute_script returns [15:57:02]free content buf [15:57:02]Sock 9.Close socket [15:57:02]Sock 9.Thread stoped [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:54]accept exits with 7 [16:04:54]New connection [16:04:54]New thread 3067149668 created [16:04:54]Thread 3067293028 joined [16:04:54]Waiting for new connection... [16:04:54] Sock 7.Parse request [16:04:54]Sock 7.Check first char [16:04:54]Sock 7.First char is OK [16:04:54]request: POST /json_proto HTTP/1.0 [16:04:54]Method: POST [16:04:54]URL: /json_proto [16:04:54]Method is POST - this is cgi request [16:04:54]url: /json_proto [16:04:54]query_string will be loaded in cgi processing [16:04:54]execute_cgi json_proto POST (null) [16:04:54]execute_cgi path=json_proto method=POST [16:04:54]POST find Content-Length [16:04:54]Host: 172.17.60.7:8080 [16:04:54]Content-Length: 709 [16:04:54]Content-Type: application/json [16:04:54] [16:04:54]POST finish read [16:04:54]Found Content-Length = 709 [16:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122870", "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" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:54]execute_script... [16:04: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)122870", "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" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:54]POST & json_proto [16:04:54]process_json_proto [16:04:54]json parsed OK: [16:04:54]protocol is kg_v1.0 [16:04:54]action value=close_receipt [16:04:54]process_action close_receipt [16:04:54]cmd_close_receipt [16:04:54]MH_GetDate [16:04:54]Write to MH i2c: F0 00 00 FD 22 0E [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: F0 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: F0 09 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: F0 09 00 FD 22 00 AC 32 BA 66 63 9B 67 64 DE [16:04:54]GetLastDocTimeStamp 1723478224 [16:04:54]current date 1723478700 [16:04:54]FM_GetShiftState [16:04:54]SAM_PROTO_GetShiftState [16:04:54]wFMCommunicate request_size=4 [16:04:54]MH_SAM_APDU [16:04:54]CAPDU: 80 13 01 00 [16:04:54]Write to MH i2c: E2 08 00 FE 22 80 13 01 00 00 00 00 00 9D [16:04:54]Write i2c OK [16:04:54]MH_I2C_Read... [16:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:54]Read from MH i2c: E2 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 0E 00 [16:04:54]MH_I2C_Read... [16:04:54]Read from MH i2c: E2 0E 00 FE 22 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 FB [16:04:54]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [16:04:54]wFMCommunicate OK [16:04:54]SAM_PROTO_GetShiftState done [16:04:54]FM_GetShiftState done [16:04:54]opened in 1723422684 [16:04:54]opened+sec_in_day 1723509084 [16:04:54]quantity*price = 8200 [16:04:54]sum+1 = 8201 [16:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 56 12.08.2024 16:05 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52738 ФПД: 245096278814536 /tax-web-control/client/api/v1/ticket?date=20240812T160500&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52738&fm=245096278814536&tin=02508201610067®Number=0000000000090834&sum=8200 0 [16:04:55]StoreToDocumentArchive [16:04:55]shift 447 fd 52738 [16:04:55]save to /storage/0447/doc_00052738 [16:04:55]save last doc name /storage/0447/doc_00052738 to /storage/kkm_last_doc_name [16:04:55]save OK [16:04:55]Clear old archive folders... [16:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=304 [16:04:55]tlvbuf is 01293290 [16:04:55]SAM_PROTO_ClearQueue [16:04:55]wFMCommunicate request_size=4 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 09 00 00 [16:04:55]Write to MH i2c: E2 08 00 0B 23 80 09 00 00 00 00 00 00 A0 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 0B 23 00 90 00 A2 [16:04:55]RAPDU: 90 00 [16:04:55]wFMCommunicate OK [16:04:55]SAM_PROTO_ClearQueue done [16:04:55]KKMCreateOFDPacket [16:04:55]OFDProtocolAddRootSTLVToBuf [16:04:55]FM_MakeSignedData [16:04:55]FM_MakeSignedData [16:04:55]SAM_PROTO_SignData [16:04:55]wFMCommunicate request_size=4 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 0D 01 02 [16:04:55]Write to MH i2c: E2 08 00 0C 23 80 0D 01 02 00 00 00 00 A8 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 0C 23 00 90 00 A3 [16:04:55]RAPDU: 90 00 [16:04:55]wFMCommunicate OK [16:04:55]wFMCommunicate request_size=255 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 AC 32 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 [16:04:55]Write to MH i2c: E2 02 01 0D 23 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 AC 32 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 00 00 EB [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [16:04:55]RAPDU: 90 00 [16:04:55]wFMCommunicate OK [16:04:55]wFMCommunicate request_size=63 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 02 CE 00 00 35 04 06 00 DE E9 EC A2 6F 48 [16:04:55]Write to MH i2c: E2 42 00 0E 23 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 02 CE 00 00 35 04 06 00 DE E9 EC A2 6F 48 00 00 D0 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [16:04:55]RAPDU: 90 00 [16:04:55]wFMCommunicate OK [16:04:55]wFMCommunicate request_size=4 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 0D 03 02 [16:04:55]Write to MH i2c: E2 08 00 0F 23 80 0D 03 02 00 00 00 00 AD [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 0B 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 0B 00 0F 23 00 D6 09 34 06 58 1B 26 66 90 00 C6 [16:04:55]RAPDU: D6 09 34 06 58 1B 26 66 90 00 [16:04:55]wFMCommunicate OK [16:04:55]SAM_PROTO_SignData done [16:04:55]FM_MakeSignedData done [16:04:55]CreateOFDProtocolMessage [16:04:55]wFMCommunicate request_size=4 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 11 00 00 [16:04:55]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 17 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 00 [16:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [16:04:55]wFMCommunicate OK [16:04:55]CreateOFDProtocolMessage done [16:04:55]OFDSenderStorePacket 52738 [16:04:55]StoreOFDPacket docnum=52738 [16:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 44 01 00 00 0E 7E 3C 01 5A 92 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 AC 32 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 02 CE 00 00 35 04 06 00 DE E9 EC A2 6F 48 D6 09 34 06 58 1B 26 66 [16:04:55]CheckFolder [16:04:55]dirname=/storage/ofd_packets [16:04:55]CheckFolder done [16:04:55]ProducePacketName [16:04:55]name=ofd_packets/00052738 [16:04:55]NVStorageSaveData ofd_packets/00052738 [16:04:55]File name is /storage/ofd_packets/00052738 [16:04:55]Write 354 bytes [16:04:55]NVStorageSaveData done [16:04:55]OFDSenderStorePacket done [16:04:55]KKMCreateOFDPacket done [16:04:55]NVStorageSaveData kkm_last_timestamp [16:04:55]File name is /storage/kkm_last_timestamp [16:04:55]Write 4 bytes [16:04:55]NVStorageSaveData done [16:04:55]ExternCall_PrintAddStr [16:04:55]wPrintStart [16:04:55]Write to MH i2c: 01 00 00 11 23 34 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 07 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: 01 07 00 11 23 00 00 00 00 00 FF 0F 49 [16:04:55]RasterBufferAndPrint [16:04:55]line Счет N : (3)122870 [16:04:55]line ИНН: 02508201610067 [16:04:55]line Контрольно-Кассовый Чек [16:04:55]line ПРОДАЖА [16:04:55]line Товар: 4700000480302 [16:04:55]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:04:55]line 1.000 * 82.00 [16:04:55]line = 82.00 [16:04:55]line НДС 12% НСП 1% [16:04:55]line > о реализуемом товаре [16:04:55]line ИТОГО: 82.00 [16:04:55]line НСП 1% : 0.73 [16:04:55]line НДС 12% : 8.71 [16:04:55]line Наличными: 82.00 [16:04:55]line Безнал.: 0.00 [16:04:55]line Место: АЗС № 54 "Партнер Нефть" [16:04:55]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [16:04:55]line СНО: Общий режим [16:04:55]line Чек 56 12.08.2024 16:05 [16:04:55]line Смена: 447 ФФД: 1.0 [16:04:55]line ЗНМ: 0300000007 [16:04:55]line РНМ: 0000000000090834 [16:04:55]line Версия ККМ: 001 [16:04:56]line ФМ: 0000000000874715 [16:04:56]line ФД: 52738 [16:04:56]line ФПД: 245096278814536 [16:04:56]line /tax-web-control/client/api/v1/ticket?date=20240812T160500&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52738&fm=245096278814536&tin=02508201610067®Number=0000000000090834&sum=8200 [16:04:56]line 0 [16:04:56]OFD Sender: Processing packet 52738 [packets to send 55, broken 54] [16:04:56]ProducePacketName [16:04:56]name=ofd_packets/00052738 [16:04:56]OFD Sender: To server: pG, [16:04:56]CommunicateWithHost lk.salyk.kg:30040 [16:04:56]ConnectInit lk.salyk.kg [16:04:56]written 0, free lines is 4095 [16:04:56]Connected sock=10 [16:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 44 01 00 00 0E 7E 3C 01 5A 92 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 AC 32 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 02 CE 00 00 35 04 06 00 DE E9 EC A2 6F 48 D6 09 34 06 58 1B 26 66 [16:04:56]Write to MH i2c: 01 00 00 39 23 5C [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 39 23 00 00 00 00 00 D9 0C 48 [16:04:56]RasterBufferAndPrint [16:04:56]line [16:04:56]line [16:04:56]line [16:04:56]line [16:04:56]line [16:04:56]written 0, free lines is 3294 [16:04:56]MH_Cut [16:04:56]Write to MH i2c: D1 01 00 40 23 01 35 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: D1 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: D1 01 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: D1 01 00 40 23 00 34 [16:04:56]Write to MH i2c: 01 00 00 41 23 64 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 34 33 47 00 5D 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 02 CE 00 00 F4 03 04 00 44 DA B9 66 B6 04 01 00 00 8A AC 00 EC FB 1D E2 EA [16:04:56]CommunicateWithHost err = 0 [16:04:56]CheckOFDResponse [16:04:56]1017 (14) - 77093643461234 [16:04:56]1041 (16) - 0000000000874715 [16:04:56]1040 (4) - 52738 [16:04:56]1012 (4) - 12.08.2024 09:47 [16:04:56]1206 (1) - 0 [16:04:56]OFD Sender: Remove packet 52738 [16:04:56]ProducePacketName [16:04:56]name=ofd_packets/00052738 [16:04:56]NVStorageDeleteData [16:04:57]OFD Sender: No OFD packet to send [16:04:57]*** Cut start [16:04:57]*** Purtial cut [16:04:57]*** Stage 1: CUTSNS_PIN = 1 [16:04:57]Read from MH i2c: 01 [16:04:57]MH_I2C_Read... [16:04:57]*** Stop cut motor [16:04:57]*** Cut end [16:04:57]Read from MH i2c: 01 07 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: 01 07 00 41 23 00 00 00 00 00 FF 0F 79 [16:04:57]process_action close_receipt done [16:04:57]requested_data is exist [16:04:57]produce_requested_data [16:04:57]requested_item fm.sn is exist - process it [16:04:57]wFMCommunicate request_size=4 [16:04:57]MH_SAM_APDU [16:04:57]CAPDU: 80 11 00 00 [16:04:57]Write to MH i2c: E2 08 00 42 23 80 11 00 00 00 00 00 00 DF [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:57]Read from MH i2c: E2 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 17 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 17 00 42 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 32 [16:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [16:04:57]wFMCommunicate OK [16:04:57]requested_item fd.num is exist - process it [16:04:57]SAM_PROTO_GetFieldsCounters [16:04:57]wFMCommunicate request_size=4 [16:04:57]MH_SAM_APDU [16:04:57]CAPDU: 80 13 00 00 [16:04:57]Write to MH i2c: E2 08 00 43 23 80 13 00 00 00 00 00 00 E2 [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:58]Read from MH i2c: E2 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 62 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 62 00 43 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 02 CE 00 00 0E 04 04 00 BF 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 3A [16:04: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 02 CE 00 00 0E 04 04 00 BF 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 [16:04:58]wFMCommunicate OK [16:04:58]SAM_PROTO_GetFieldsCounters done [16:04:58]requested_item shift.num is exist - process it [16:04:58]requested_item shift.opened is exist - process it [16:04:58]req_shift_opened [16:04:58]FM_GetShiftState [16:04:58]SAM_PROTO_GetShiftState [16:04:58]wFMCommunicate request_size=4 [16:04:58]MH_SAM_APDU [16:04:58]CAPDU: 80 13 01 00 [16:04:58]Write to MH i2c: E2 08 00 44 23 80 13 01 00 00 00 00 00 E4 [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:58]Read from MH i2c: E2 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 0E 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 0E 00 44 23 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 42 [16:04:58]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [16:04:58]wFMCommunicate OK [16:04:58]SAM_PROTO_GetShiftState done [16:04:58]FM_GetShiftState done [16:04:58]req_shift_opened done [16:04:58]requested_item shift.open_date is exist - process it [16:04:58]req_shift_open_date [16:04:58]req_shift_open_date done [16:04:58]produce_requested_data done [16:04:58]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52738,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [16:04:58]process_action_free close_receipt [16:04:58]json_value_free [16:04:58]json_value_free done [16:04:58]process_json_proto returns [16:04:58]Send response to host [16:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52738,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [16:04:58]free response buf [16:04:58]execute_script done [16:04:58]execute_script returns [16:04:58]free content buf [16:04:58]Sock 7.Close socket [16:04:58]Sock 7.Thread stoped [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27: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]accept exits with 9 [16:30:43]New connection [16:30:43]New thread 3067293028 created [16:30:43]Thread 3067149668 joined [16:30:43]Waiting for new connection... [16:30:43] Sock 9.Parse request [16:30:43]Sock 9.Check first char [16:30:43]Sock 9.First char is OK [16:30:43]request: POST /json_proto HTTP/1.0 [16:30:43]Method: POST [16:30:43]URL: /json_proto [16:30:43]Method is POST - this is cgi request [16:30:43]url: /json_proto [16:30:43]query_string will be loaded in cgi processing [16:30:43]execute_cgi json_proto POST (null) [16:30:43]execute_cgi path=json_proto method=POST [16:30:43]POST find Content-Length [16:30:43]Host: 172.17.60.7:8080 [16:30:43]Content-Length: 1030 [16:30:43]Content-Type: application/json [16:30:43] [16:30:43]POST finish read [16:30:43]Found Content-Length = 1030 [16:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122871", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:43]execute_script... [16:30:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122871", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:43]POST & json_proto [16:30:43]process_json_proto [16:30:43]json parsed OK: [16:30:43]protocol is kg_v1.0 [16:30:43]action value=close_receipt [16:30:43]process_action close_receipt [16:30:43]cmd_close_receipt [16:30:43]MH_GetDate [16:30:43]Write to MH i2c: F0 00 00 45 23 57 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: F0 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: F0 09 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: F0 09 00 45 23 00 B9 38 BA 66 63 9B 67 64 3A [16:30:43]GetLastDocTimeStamp 1723478700 [16:30:43]current date 1723480249 [16:30:43]FM_GetShiftState [16:30:43]SAM_PROTO_GetShiftState [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 13 01 00 [16:30:43]Write to MH i2c: E2 08 00 46 23 80 13 01 00 00 00 00 00 E6 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 0E 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 0E 00 46 23 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 44 [16:30:43]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [16:30:43]wFMCommunicate OK [16:30:43]SAM_PROTO_GetShiftState done [16:30:43]FM_GetShiftState done [16:30:43]opened in 1723422684 [16:30:43]opened+sec_in_day 1723509084 [16:30:43]quantity*price = 8000 [16:30:43]sum+1 = 8001 [16:30:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 57 12.08.2024 16:30 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52739 ФПД: 175518072627621 /tax-web-control/client/api/v1/ticket?date=20240812T163049&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52739&fm=175518072627621&tin=02508201610067®Number=0000000000090834&sum=15500 0 [16:30:44]StoreToDocumentArchive [16:30:44]shift 447 fd 52739 [16:30:44]save to /storage/0447/doc_00052739 [16:30:44]save last doc name /storage/0447/doc_00052739 to /storage/kkm_last_doc_name [16:30:44]save OK [16:30:44]Clear old archive folders... [16:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=366 [16:30:44]tlvbuf is 0126B480 [16:30:44]SAM_PROTO_ClearQueue [16:30:44]wFMCommunicate request_size=4 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 09 00 00 [16:30:44]Write to MH i2c: E2 08 00 53 23 80 09 00 00 00 00 00 00 E8 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:44]Read from MH i2c: E2 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 03 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 03 00 53 23 00 90 00 EA [16:30:44]RAPDU: 90 00 [16:30:44]wFMCommunicate OK [16:30:44]SAM_PROTO_ClearQueue done [16:30:44]KKMCreateOFDPacket [16:30:44]OFDProtocolAddRootSTLVToBuf [16:30:44]FM_MakeSignedData [16:30:44]FM_MakeSignedData [16:30:44]SAM_PROTO_SignData [16:30:44]wFMCommunicate request_size=4 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 0D 01 02 [16:30:44]Write to MH i2c: E2 08 00 54 23 80 0D 01 02 00 00 00 00 F0 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:44]Read from MH i2c: E2 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 03 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 03 00 54 23 00 90 00 EB [16:30:44]RAPDU: 90 00 [16:30:44]wFMCommunicate OK [16:30:44]wFMCommunicate request_size=255 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 0D 02 02 FA 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [16:30:44]Write to MH i2c: E2 02 01 55 23 80 0D 02 02 FA 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 2D [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:44]Read from MH i2c: E2 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 03 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: E2 03 00 55 23 00 90 00 EC [16:30:44]RAPDU: 90 00 [16:30:44]wFMCommunicate OK [16:30:44]wFMCommunicate request_size=125 [16:30:44]MH_SAM_APDU [16:30:44]CAPDU: 80 0D 02 02 78 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B9 38 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 03 CE 00 00 35 04 06 00 9F A1 FC 5E E1 A5 [16:30:44]Write to MH i2c: E2 80 00 56 23 80 0D 02 02 78 00 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B9 38 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 03 CE 00 00 35 04 06 00 9F A1 FC 5E E1 A5 00 00 53 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:45]Read from MH i2c: E2 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 03 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 03 00 56 23 00 90 00 ED [16:30:45]RAPDU: 90 00 [16:30:45]wFMCommunicate OK [16:30:45]wFMCommunicate request_size=4 [16:30:45]MH_SAM_APDU [16:30:45]CAPDU: 80 0D 03 02 [16:30:45]Write to MH i2c: E2 08 00 57 23 80 0D 03 02 00 00 00 00 F5 [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:45]Read from MH i2c: E2 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 0B 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 0B 00 57 23 00 B4 CA 55 B3 FC BC DE 1F 90 00 31 [16:30:45]RAPDU: B4 CA 55 B3 FC BC DE 1F 90 00 [16:30:45]wFMCommunicate OK [16:30:45]SAM_PROTO_SignData done [16:30:45]FM_MakeSignedData done [16:30:45]CreateOFDProtocolMessage [16:30:45]wFMCommunicate request_size=4 [16:30:45]MH_SAM_APDU [16:30:45]CAPDU: 80 11 00 00 [16:30:45]Write to MH i2c: E2 08 00 58 23 80 11 00 00 00 00 00 00 F5 [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:45]Read from MH i2c: E2 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 17 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 17 00 58 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 48 [16:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [16:30:45]wFMCommunicate OK [16:30:45]CreateOFDProtocolMessage done [16:30:45]OFDSenderStorePacket 52739 [16:30:45]StoreOFDPacket docnum=52739 [16:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 82 01 00 00 5D 3F 7A 01 51 D8 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B9 38 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 03 CE 00 00 35 04 06 00 9F A1 FC 5E E1 A5 B4 CA 55 B3 FC BC DE 1F [16:30:45]CheckFolder [16:30:45]dirname=/storage/ofd_packets [16:30:45]CheckFolder done [16:30:45]ProducePacketName [16:30:45]name=ofd_packets/00052739 [16:30:45]NVStorageSaveData ofd_packets/00052739 [16:30:45]File name is /storage/ofd_packets/00052739 [16:30:45]Write 416 bytes [16:30:45]NVStorageSaveData done [16:30:45]OFDSenderStorePacket done [16:30:45]KKMCreateOFDPacket done [16:30:45]NVStorageSaveData kkm_last_timestamp [16:30:45]File name is /storage/kkm_last_timestamp [16:30:45]Write 4 bytes [16:30:45]NVStorageSaveData done [16:30:45]ExternCall_PrintAddStr [16:30:45]wPrintStart [16:30:45]Write to MH i2c: 01 00 00 59 23 7C [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 07 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 07 00 59 23 00 00 00 00 00 FF 0F 91 [16:30:45]RasterBufferAndPrint [16:30:45]line Счет N : (3)122871 [16:30:45]line ИНН: 02508201610067 [16:30:45]line Контрольно-Кассовый Чек [16:30:45]line ПРОДАЖА [16:30:45]line Товар: 4870001570057 [16:30:45]line Напиток Pepsi 0,5л [16:30:45]line 1.000 * 80.00 [16:30:45]line = 80.00 [16:30:45]line НДС 12% НСП 1% [16:30:45]line > о реализуемом товаре [16:30:45]line Товар: 40822938 [16:30:45]line Напиток Фанта 0,5л [16:30:45]line 1.000 * 75.00 [16:30:45]line = 75.00 [16:30:45]line НДС 12% НСП 1% [16:30:45]line > о реализуемом товаре [16:30:45]line ИТОГО: 155.00 [16:30:45]line НСП 1% : 1.37 [16:30:45]line НДС 12% : 16.46 [16:30:45]line Наличными: 0.00 [16:30:45]line Безнал.: 155.00 [16:30:45]line Место: АЗС № 54 "Партнер Нефть" [16:30:45]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [16:30:45]line СНО: Общий режим [16:30:45]line Чек 57 12.08.2024 16:30 [16:30:45]line Смена: 447 ФФД: 1.0 [16:30:45]line ЗНМ: 0300000007 [16:30:45]line РНМ: 0000000000090834 [16:30:45]line Версия ККМ: 001 [16:30:45]line Платежная система: О! деньги [16:30:45]line ФМ: 0000000000874715 [16:30:45]line ФД: 52739 [16:30:45]line ФПД: 175518072627621 [16:30:45]line /tax-web-control/client/api/v1/ticket?date=20240812T163049&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52739&fm=175518072627621&tin=02508201610067®Number=0000000000090834&sum=15500 [16:30:45]line 0 [16:30:45]OFD Sender: Processing packet 52739 [packets to send 55, broken 54] [16:30:45]ProducePacketName [16:30:45]name=ofd_packets/00052739 [16:30:45]OFD Sender: To server: pG, [16:30:45]CommunicateWithHost lk.salyk.kg:30040 [16:30:45]ConnectInit lk.salyk.kg [16:30:45]written 0, free lines is 4095 [16:30:45]Connected sock=11 [16:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 82 01 00 00 5D 3F 7A 01 51 D8 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B9 38 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 03 CE 00 00 35 04 06 00 9F A1 FC 5E E1 A5 B4 CA 55 B3 FC BC DE 1F [16:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 17 BA 47 00 54 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 03 CE 00 00 F4 03 04 00 52 E0 B9 66 B6 04 01 00 00 9D 5E F9 A6 4C FA 3C D1 [16:30:45]CommunicateWithHost err = 0 [16:30:45]CheckOFDResponse [16:30:45]1017 (14) - 77093643461234 [16:30:45]1041 (16) - 0000000000874715 [16:30:45]1040 (4) - 52739 [16:30:45]1012 (4) - 12.08.2024 10:13 [16:30:45]1206 (1) - 0 [16:30:45]OFD Sender: Remove packet 52739 [16:30:45]ProducePacketName [16:30:45]name=ofd_packets/00052739 [16:30:45]NVStorageDeleteData [16:30:45]Write to MH i2c: 01 00 00 88 23 AB [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 07 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 07 00 88 23 00 00 00 00 00 68 0C 26 [16:30:45]RasterBufferAndPrint [16:30:45]line [16:30:45]line [16:30:45]line [16:30:45]line [16:30:45]line [16:30:45]written 0, free lines is 3181 [16:30:46]MH_Cut [16:30:46]Write to MH i2c: D1 01 00 8F 23 01 84 [16:30:46]Write i2c OK [16:30:46]MH_I2C_Read... [16:30:46]Read from MH i2c: D1 [16:30:46]MH_I2C_Read... [16:30:46]Read from MH i2c: D1 01 00 [16:30:46]MH_I2C_Read... [16:30:46]Read from MH i2c: D1 01 00 8F 23 00 83 [16:30:46]Write to MH i2c: 01 00 00 90 23 B3 [16:30:46]Write i2c OK [16:30:46]MH_I2C_Read... [16:30:46]OFD Sender: No OFD packet to send [16:30:46]*** Cut start [16:30:46]*** Purtial cut [16:30:46]*** Stage 1: CUTSNS_PIN = 1 [16:30:47]Read from MH i2c: 01 [16:30:47]MH_I2C_Read... [16:30:47]*** Stop cut motor [16:30:47]*** Cut end [16:30:47]Read from MH i2c: 01 07 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: 01 07 00 90 23 00 00 00 00 00 FF 0F C8 [16:30:47]process_action close_receipt done [16:30:47]requested_data is exist [16:30:47]produce_requested_data [16:30:47]requested_item fm.sn is exist - process it [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 11 00 00 [16:30:47]Write to MH i2c: E2 08 00 91 23 80 11 00 00 00 00 00 00 2E [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 17 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 17 00 91 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 81 [16:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [16:30:47]wFMCommunicate OK [16:30:47]requested_item fd.num is exist - process it [16:30:47]SAM_PROTO_GetFieldsCounters [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 13 00 00 [16:30:47]Write to MH i2c: E2 08 00 92 23 80 13 00 00 00 00 00 00 31 [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 62 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 62 00 92 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 03 CE 00 00 0E 04 04 00 BF 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 8D [16:30: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 03 CE 00 00 0E 04 04 00 BF 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 [16:30:47]wFMCommunicate OK [16:30:47]SAM_PROTO_GetFieldsCounters done [16:30:47]requested_item shift.num is exist - process it [16:30:47]requested_item shift.opened is exist - process it [16:30:47]req_shift_opened [16:30:47]FM_GetShiftState [16:30:47]SAM_PROTO_GetShiftState [16:30:47]wFMCommunicate request_size=4 [16:30:47]MH_SAM_APDU [16:30:47]CAPDU: 80 13 01 00 [16:30:47]Write to MH i2c: E2 08 00 93 23 80 13 01 00 00 00 00 00 33 [16:30:47]Write i2c OK [16:30:47]MH_I2C_Read... [16:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:47]Read from MH i2c: E2 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 0E 00 [16:30:47]MH_I2C_Read... [16:30:47]Read from MH i2c: E2 0E 00 93 23 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 91 [16:30:47]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [16:30:47]wFMCommunicate OK [16:30:47]SAM_PROTO_GetShiftState done [16:30:47]FM_GetShiftState done [16:30:47]req_shift_opened done [16:30:47]requested_item shift.open_date is exist - process it [16:30:47]req_shift_open_date [16:30:47]req_shift_open_date done [16:30:47]produce_requested_data done [16:30:47]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52739,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [16:30:47]process_action_free close_receipt [16:30:47]json_value_free [16:30:47]json_value_free done [16:30:47]process_json_proto returns [16:30:47]Send response to host [16:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52739,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [16:30:47]free response buf [16:30:47]execute_script done [16:30:47]execute_script returns [16:30:47]free content buf [16:30:47]Sock 9.Close socket [16:30:47]Sock 9.Thread stoped [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:31]accept exits with 7 [16:45:31]New connection [16:45:31]New thread 3067149668 created [16:45:31]Thread 3067293028 joined [16:45:31]Waiting for new connection... [16:45:31] Sock 7.Parse request [16:45:31]Sock 7.Check first char [16:45:31]Sock 7.First char is OK [16:45:31]request: POST /json_proto HTTP/1.0 [16:45:31]Method: POST [16:45:31]URL: /json_proto [16:45:31]Method is POST - this is cgi request [16:45:31]url: /json_proto [16:45:31]query_string will be loaded in cgi processing [16:45:31]execute_cgi json_proto POST (null) [16:45:31]execute_cgi path=json_proto method=POST [16:45:31]POST find Content-Length [16:45:31]Host: 172.17.60.7:8080 [16:45:31]Content-Length: 709 [16:45:31]Content-Type: application/json [16:45:31] [16:45:31]POST finish read [16:45:31]Found Content-Length = 709 [16:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122872", "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" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:31]execute_script... [16:45: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)122872", "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" : 82.00, "quantity" : 1.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 82.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:31]POST & json_proto [16:45:31]process_json_proto [16:45:31]json parsed OK: [16:45:31]protocol is kg_v1.0 [16:45:31]action value=close_receipt [16:45:31]process_action close_receipt [16:45:31]cmd_close_receipt [16:45:31]MH_GetDate [16:45:31]Write to MH i2c: F0 00 00 94 23 A6 [16:45:31]Write i2c OK [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: F0 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: F0 09 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: F0 09 00 94 23 00 31 3C BA 66 63 9B 67 64 05 [16:45:31]GetLastDocTimeStamp 1723480249 [16:45:31]current date 1723481137 [16:45:31]FM_GetShiftState [16:45:31]SAM_PROTO_GetShiftState [16:45:31]wFMCommunicate request_size=4 [16:45:31]MH_SAM_APDU [16:45:31]CAPDU: 80 13 01 00 [16:45:31]Write to MH i2c: E2 08 00 95 23 80 13 01 00 00 00 00 00 35 [16:45:31]Write i2c OK [16:45:31]MH_I2C_Read... [16:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:31]Read from MH i2c: E2 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 0E 00 [16:45:31]MH_I2C_Read... [16:45:31]Read from MH i2c: E2 0E 00 95 23 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 93 [16:45:31]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [16:45:31]wFMCommunicate OK [16:45:31]SAM_PROTO_GetShiftState done [16:45:31]FM_GetShiftState done [16:45:31]opened in 1723422684 [16:45:31]opened+sec_in_day 1723509084 [16:45:31]quantity*price = 8200 [16:45:31]sum+1 = 8201 [16:45:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 82.00 НСП 1% : 0.73 НДС 12% : 8.71 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 58 12.08.2024 16:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52740 ФПД: 843195855756 /tax-web-control/client/api/v1/ticket?date=20240812T164537&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52740&fm=843195855756&tin=02508201610067®Number=0000000000090834&sum=8200 0 [16:45:32]StoreToDocumentArchive [16:45:32]shift 447 fd 52740 [16:45:32]save to /storage/0447/doc_00052740 [16:45:32]save last doc name /storage/0447/doc_00052740 to /storage/kkm_last_doc_name [16:45:32]save OK [16:45:32]Clear old archive folders... [16:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=304 [16:45:32]tlvbuf is 0129C7A0 [16:45:32]SAM_PROTO_ClearQueue [16:45:32]wFMCommunicate request_size=4 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 09 00 00 [16:45:32]Write to MH i2c: E2 08 00 A2 23 80 09 00 00 00 00 00 00 37 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 A2 23 00 90 00 39 [16:45:32]RAPDU: 90 00 [16:45:32]wFMCommunicate OK [16:45:32]SAM_PROTO_ClearQueue done [16:45:32]KKMCreateOFDPacket [16:45:32]OFDProtocolAddRootSTLVToBuf [16:45:32]FM_MakeSignedData [16:45:32]FM_MakeSignedData [16:45:32]SAM_PROTO_SignData [16:45:32]wFMCommunicate request_size=4 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 0D 01 02 [16:45:32]Write to MH i2c: E2 08 00 A3 23 80 0D 01 02 00 00 00 00 3F [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 A3 23 00 90 00 3A [16:45:32]RAPDU: 90 00 [16:45:32]wFMCommunicate OK [16:45:32]wFMCommunicate request_size=255 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 31 3C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 [16:45:32]Write to MH i2c: E2 02 01 A4 23 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 31 3C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 00 00 13 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [16:45:32]RAPDU: 90 00 [16:45:32]wFMCommunicate OK [16:45:32]wFMCommunicate request_size=63 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 04 CE 00 00 35 04 06 00 00 C4 52 63 B3 8C [16:45:32]Write to MH i2c: E2 42 00 A5 23 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 04 CE 00 00 35 04 06 00 00 C4 52 63 B3 8C 00 00 15 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 03 00 A5 23 00 90 00 3C [16:45:32]RAPDU: 90 00 [16:45:32]wFMCommunicate OK [16:45:32]wFMCommunicate request_size=4 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 0D 03 02 [16:45:32]Write to MH i2c: E2 08 00 A6 23 80 0D 03 02 00 00 00 00 44 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 0B 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 0B 00 A6 23 00 B0 A0 BD C0 41 2C EE CA 90 00 37 [16:45:32]RAPDU: B0 A0 BD C0 41 2C EE CA 90 00 [16:45:32]wFMCommunicate OK [16:45:32]SAM_PROTO_SignData done [16:45:32]FM_MakeSignedData done [16:45:32]CreateOFDProtocolMessage [16:45:32]wFMCommunicate request_size=4 [16:45:32]MH_SAM_APDU [16:45:32]CAPDU: 80 11 00 00 [16:45:32]Write to MH i2c: E2 08 00 A7 23 80 11 00 00 00 00 00 00 44 [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:32]Read from MH i2c: E2 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 17 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: E2 17 00 A7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 97 [16:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [16:45:32]wFMCommunicate OK [16:45:32]CreateOFDProtocolMessage done [16:45:32]OFDSenderStorePacket 52740 [16:45:32]StoreOFDPacket docnum=52740 [16:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 44 01 00 00 E8 23 3C 01 65 15 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 31 3C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 04 CE 00 00 35 04 06 00 00 C4 52 63 B3 8C B0 A0 BD C0 41 2C EE CA [16:45:32]CheckFolder [16:45:32]dirname=/storage/ofd_packets [16:45:32]CheckFolder done [16:45:32]ProducePacketName [16:45:32]name=ofd_packets/00052740 [16:45:32]NVStorageSaveData ofd_packets/00052740 [16:45:32]File name is /storage/ofd_packets/00052740 [16:45:32]Write 354 bytes [16:45:32]NVStorageSaveData done [16:45:32]OFDSenderStorePacket done [16:45:32]KKMCreateOFDPacket done [16:45:32]NVStorageSaveData kkm_last_timestamp [16:45:32]File name is /storage/kkm_last_timestamp [16:45:32]Write 4 bytes [16:45:32]NVStorageSaveData done [16:45:32]ExternCall_PrintAddStr [16:45:32]wPrintStart [16:45:32]Write to MH i2c: 01 00 00 A8 23 CB [16:45:32]Write i2c OK [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: 01 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: 01 07 00 [16:45:32]MH_I2C_Read... [16:45:32]Read from MH i2c: 01 07 00 A8 23 00 00 00 00 00 FF 0F E0 [16:45:32]RasterBufferAndPrint [16:45:32]line Счет N : (3)122872 [16:45:32]line ИНН: 02508201610067 [16:45:32]line Контрольно-Кассовый Чек [16:45:32]line ПРОДАЖА [16:45:32]line Товар: 4700000480302 [16:45:32]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:45:32]line 1.000 * 82.00 [16:45:32]line = 82.00 [16:45:32]line НДС 12% НСП 1% [16:45:32]line > о реализуемом товаре [16:45:32]line ИТОГО: 82.00 [16:45:32]line НСП 1% : 0.73 [16:45:32]line НДС 12% : 8.71 [16:45:32]line Наличными: 82.00 [16:45:32]line Безнал.: 0.00 [16:45:32]line Место: АЗС № 54 "Партнер Нефть" [16:45:32]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [16:45:32]line СНО: Общий режим [16:45:32]line Чек 58 12.08.2024 16:45 [16:45:32]line Смена: 447 ФФД: 1.0 [16:45:32]line ЗНМ: 0300000007 [16:45:32]line РНМ: 0000000000090834 [16:45:32]line Версия ККМ: 001 [16:45:32]line ФМ: 0000000000874715 [16:45:32]line ФД: 52740 [16:45:32]line ФПД: 843195855756 [16:45:33]line /tax-web-control/client/api/v1/ticket?date=20240812T164537&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52740&fm=843195855756&tin=02508201610067®Number=0000000000090834&sum=8200 [16:45:33]line 0 [16:45:33]OFD Sender: Processing packet 52740 [packets to send 55, broken 54] [16:45:33]ProducePacketName [16:45:33]name=ofd_packets/00052740 [16:45:33]OFD Sender: To server: pG, [16:45:33]CommunicateWithHost lk.salyk.kg:30040 [16:45:33]ConnectInit lk.salyk.kg [16:45:33]written 0, free lines is 4095 [16:45:33]Connected sock=10 [16:45:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 44 01 00 00 E8 23 3C 01 65 15 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 03 00 00 00 00 07 04 06 00 08 20 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 31 3C BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 04 CE 00 00 35 04 06 00 00 C4 52 63 B3 8C B0 A0 BD C0 41 2C EE CA [16:45:33]Write to MH i2c: 01 00 00 D0 23 F3 [16:45:33]Write i2c OK [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: 01 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: 01 07 00 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: 01 07 00 D0 23 00 00 00 00 00 E6 0C EC [16:45:33]RasterBufferAndPrint [16:45:33]line [16:45:33]line [16:45:33]line [16:45:33]line [16:45:33]line [16:45:33]written 0, free lines is 3308 [16:45:33]MH_Cut [16:45:33]Write to MH i2c: D1 01 00 D7 23 01 CC [16:45:33]Write i2c OK [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: D1 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: D1 01 00 [16:45:33]MH_I2C_Read... [16:45:33]Read from MH i2c: D1 01 00 D7 23 00 CB [16:45:33]Write to MH i2c: 01 00 00 D8 23 FB [16:45:33]Write i2c OK [16:45:33]MH_I2C_Read... [16:45:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 C2 77 47 00 EF 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 04 CE 00 00 F4 03 04 00 C9 E3 B9 66 B6 04 01 00 00 25 4B 9D DE 7E B6 E1 25 [16:45:33]CommunicateWithHost err = 0 [16:45:33]CheckOFDResponse [16:45:33]1017 (14) - 77093643461234 [16:45:33]1041 (16) - 0000000000874715 [16:45:33]1040 (4) - 52740 [16:45:33]1012 (4) - 12.08.2024 10:28 [16:45:33]1206 (1) - 0 [16:45:33]OFD Sender: Remove packet 52740 [16:45:33]ProducePacketName [16:45:33]name=ofd_packets/00052740 [16:45:33]NVStorageDeleteData [16:45:34]OFD Sender: No OFD packet to send [16:45:34]*** Cut start [16:45:34]*** Purtial cut [16:45:34]*** Stage 1: CUTSNS_PIN = 1 [16:45:34]Read from MH i2c: 01 [16:45:34]MH_I2C_Read... [16:45:34]*** Stop cut motor [16:45:34]*** Cut end [16:45:34]Read from MH i2c: 01 07 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: 01 07 00 D8 23 00 00 00 00 00 FF 0F 10 [16:45:34]process_action close_receipt done [16:45:34]requested_data is exist [16:45:34]produce_requested_data [16:45:34]requested_item fm.sn is exist - process it [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 11 00 00 [16:45:34]Write to MH i2c: E2 08 00 D9 23 80 11 00 00 00 00 00 00 76 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:34]Read from MH i2c: E2 17 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 17 00 D9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C9 [16:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [16:45:34]wFMCommunicate OK [16:45:34]requested_item fd.num is exist - process it [16:45:34]SAM_PROTO_GetFieldsCounters [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 13 00 00 [16:45:34]Write to MH i2c: E2 08 00 DA 23 80 13 00 00 00 00 00 00 79 [16:45:34]Write i2c OK [16:45:34]MH_I2C_Read... [16:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:34]Read from MH i2c: E2 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 62 00 [16:45:34]MH_I2C_Read... [16:45:34]Read from MH i2c: E2 62 00 DA 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 04 CE 00 00 0E 04 04 00 BF 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 D9 [16:45: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 04 CE 00 00 0E 04 04 00 BF 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 [16:45:34]wFMCommunicate OK [16:45:34]SAM_PROTO_GetFieldsCounters done [16:45:34]requested_item shift.num is exist - process it [16:45:34]requested_item shift.opened is exist - process it [16:45:34]req_shift_opened [16:45:34]FM_GetShiftState [16:45:34]SAM_PROTO_GetShiftState [16:45:34]wFMCommunicate request_size=4 [16:45:34]MH_SAM_APDU [16:45:34]CAPDU: 80 13 01 00 [16:45:34]Write to MH i2c: E2 08 00 DB 23 80 13 01 00 00 00 00 00 7B [16:45:35]Write i2c OK [16:45:35]MH_I2C_Read... [16:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:35]Read from MH i2c: E2 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: E2 0E 00 [16:45:35]MH_I2C_Read... [16:45:35]Read from MH i2c: E2 0E 00 DB 23 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D9 [16:45:35]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [16:45:35]wFMCommunicate OK [16:45:35]SAM_PROTO_GetShiftState done [16:45:35]FM_GetShiftState done [16:45:35]req_shift_opened done [16:45:35]requested_item shift.open_date is exist - process it [16:45:35]req_shift_open_date [16:45:35]req_shift_open_date done [16:45:35]produce_requested_data done [16:45:35]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52740,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [16:45:35]process_action_free close_receipt [16:45:35]json_value_free [16:45:35]json_value_free done [16:45:35]process_json_proto returns [16:45:35]Send response to host [16:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52740,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [16:45:35]free response buf [16:45:35]execute_script done [16:45:35]execute_script returns [16:45:35]free content buf [16:45:35]Sock 7.Close socket [16:45:35]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59: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: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:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:21]accept exits with 9 [17:17:21]New connection [17:17:21]New thread 3067293028 created [17:17:21]Thread 3067149668 joined [17:17:21]Waiting for new connection... [17:17:21] Sock 9.Parse request [17:17:21]Sock 9.Check first char [17:17:21]Sock 9.First char is OK [17:17:21]request: POST /json_proto HTTP/1.0 [17:17:21]Method: POST [17:17:21]URL: /json_proto [17:17:21]Method is POST - this is cgi request [17:17:21]url: /json_proto [17:17:21]query_string will be loaded in cgi processing [17:17:21]execute_cgi json_proto POST (null) [17:17:21]execute_cgi path=json_proto method=POST [17:17:21]POST find Content-Length [17:17:21]Host: 172.17.60.7:8080 [17:17:21]Content-Length: 622 [17:17:21]Content-Type: application/json [17:17:21] [17:17:21]POST finish read [17:17:21]Found Content-Length = 622 [17:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122873", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:21]execute_script... [17:17: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)122873", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:21]POST & json_proto [17:17:21]process_json_proto [17:17:21]json parsed OK: [17:17:21]protocol is kg_v1.0 [17:17:21]action value=close_receipt [17:17:21]process_action close_receipt [17:17:21]cmd_close_receipt [17:17:21]MH_GetDate [17:17:21]Write to MH i2c: F0 00 00 DC 23 EE [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: F0 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: F0 09 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: F0 09 00 DC 23 00 A7 43 BA 66 63 9B 67 64 CA [17:17:21]GetLastDocTimeStamp 1723481137 [17:17:21]current date 1723483047 [17:17:21]FM_GetShiftState [17:17:21]SAM_PROTO_GetShiftState [17:17:21]wFMCommunicate request_size=4 [17:17:21]MH_SAM_APDU [17:17:21]CAPDU: 80 13 01 00 [17:17:21]Write to MH i2c: E2 08 00 DD 23 80 13 01 00 00 00 00 00 7D [17:17:21]Write i2c OK [17:17:21]MH_I2C_Read... [17:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:21]Read from MH i2c: E2 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 0E 00 [17:17:21]MH_I2C_Read... [17:17:21]Read from MH i2c: E2 0E 00 DD 23 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 DB [17:17:21]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:17:21]wFMCommunicate OK [17:17:21]SAM_PROTO_GetShiftState done [17:17:21]FM_GetShiftState done [17:17:21]opened in 1723422684 [17:17:21]opened+sec_in_day 1723509084 [17:17:21]quantity*price = 15100 [17:17:21]sum+1 = 15101 [17:17:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 59 12.08.2024 17:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52741 ФПД: 224016159915020 /tax-web-control/client/api/v1/ticket?date=20240812T171727&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52741&fm=224016159915020&tin=02508201610067®Number=0000000000090834&sum=15100 0 [17:17:22]StoreToDocumentArchive [17:17:22]shift 447 fd 52741 [17:17:22]save to /storage/0447/doc_00052741 [17:17:22]save last doc name /storage/0447/doc_00052741 to /storage/kkm_last_doc_name [17:17:22]save OK [17:17:22]Clear old archive folders... [17:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=274 [17:17:22]tlvbuf is B6FAB290 [17:17:22]SAM_PROTO_ClearQueue [17:17:22]wFMCommunicate request_size=4 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 09 00 00 [17:17:22]Write to MH i2c: E2 08 00 EA 23 80 09 00 00 00 00 00 00 7F [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 EA 23 00 90 00 81 [17:17:22]RAPDU: 90 00 [17:17:22]wFMCommunicate OK [17:17:22]SAM_PROTO_ClearQueue done [17:17:22]KKMCreateOFDPacket [17:17:22]OFDProtocolAddRootSTLVToBuf [17:17:22]FM_MakeSignedData [17:17:22]FM_MakeSignedData [17:17:22]SAM_PROTO_SignData [17:17:22]wFMCommunicate request_size=4 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 0D 01 02 [17:17:22]Write to MH i2c: E2 08 00 EB 23 80 0D 01 02 00 00 00 00 87 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 EB 23 00 90 00 82 [17:17:22]RAPDU: 90 00 [17:17:22]wFMCommunicate OK [17:17:22]wFMCommunicate request_size=255 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A7 43 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 [17:17:22]Write to MH i2c: E2 02 01 EC 23 80 0D 02 02 FA 00 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A7 43 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 00 00 54 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 EC 23 00 90 00 83 [17:17:22]RAPDU: 90 00 [17:17:22]wFMCommunicate OK [17:17:22]wFMCommunicate request_size=33 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 31 35 10 04 04 00 05 CE 00 00 35 04 06 00 CB BD D3 A2 BC 0C [17:17:22]Write to MH i2c: E2 24 00 ED 23 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 31 35 10 04 04 00 05 CE 00 00 35 04 06 00 CB BD D3 A2 BC 0C 00 00 B1 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 03 00 ED 23 00 90 00 84 [17:17:22]RAPDU: 90 00 [17:17:22]wFMCommunicate OK [17:17:22]wFMCommunicate request_size=4 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 0D 03 02 [17:17:22]Write to MH i2c: E2 08 00 EE 23 80 0D 03 02 00 00 00 00 8C [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 0B 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 0B 00 EE 23 00 BC 5E 3F 2C AD 6E B2 45 90 00 24 [17:17:22]RAPDU: BC 5E 3F 2C AD 6E B2 45 90 00 [17:17:22]wFMCommunicate OK [17:17:22]SAM_PROTO_SignData done [17:17:22]FM_MakeSignedData done [17:17:22]CreateOFDProtocolMessage [17:17:22]wFMCommunicate request_size=4 [17:17:22]MH_SAM_APDU [17:17:22]CAPDU: 80 11 00 00 [17:17:22]Write to MH i2c: E2 08 00 EF 23 80 11 00 00 00 00 00 00 8C [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:22]Read from MH i2c: E2 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 17 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: E2 17 00 EF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 DF [17:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:17:22]wFMCommunicate OK [17:17:22]CreateOFDProtocolMessage done [17:17:22]OFDSenderStorePacket 52741 [17:17:22]StoreOFDPacket docnum=52741 [17:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 26 01 00 00 FB 2C 1E 01 86 53 5A 03 01 00 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A7 43 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 05 CE 00 00 35 04 06 00 CB BD D3 A2 BC 0C BC 5E 3F 2C AD 6E B2 45 [17:17:22]CheckFolder [17:17:22]dirname=/storage/ofd_packets [17:17:22]CheckFolder done [17:17:22]ProducePacketName [17:17:22]name=ofd_packets/00052741 [17:17:22]NVStorageSaveData ofd_packets/00052741 [17:17:22]File name is /storage/ofd_packets/00052741 [17:17:22]Write 324 bytes [17:17:22]NVStorageSaveData done [17:17:22]OFDSenderStorePacket done [17:17:22]KKMCreateOFDPacket done [17:17:22]NVStorageSaveData kkm_last_timestamp [17:17:22]File name is /storage/kkm_last_timestamp [17:17:22]Write 4 bytes [17:17:22]NVStorageSaveData done [17:17:22]ExternCall_PrintAddStr [17:17:22]wPrintStart [17:17:22]Write to MH i2c: 01 00 00 F0 23 13 [17:17:22]Write i2c OK [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: 01 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: 01 07 00 [17:17:22]MH_I2C_Read... [17:17:22]Read from MH i2c: 01 07 00 F0 23 00 00 00 00 00 FF 0F 28 [17:17:22]RasterBufferAndPrint [17:17:22]line Счет N : (3)122873 [17:17:22]line ИНН: 02508201610067 [17:17:22]line Контрольно-Кассовый Чек [17:17:22]line ПРОДАЖА [17:17:22]line Товар: 48741958 [17:17:22]line Сигареты Parliament Aqua Blue [17:17:22]line 1.000 * 151.00 [17:17:22]line = 151.00 [17:17:22]line НДС 12% НСП 1% [17:17:22]line > о реализуемом товаре [17:17:22]line ИТОГО: 151.00 [17:17:22]line НСП 1% : 1.34 [17:17:22]line НДС 12% : 16.03 [17:17:22]line Наличными: 151.00 [17:17:22]line Безнал.: 0.00 [17:17:22]line Место: АЗС № 54 "Партнер Нефть" [17:17:22]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [17:17:22]line СНО: Общий режим [17:17:22]line Чек 59 12.08.2024 17:17 [17:17:22]line Смена: 447 ФФД: 1.0 [17:17:22]line ЗНМ: 0300000007 [17:17:22]line РНМ: 0000000000090834 [17:17:22]line Версия ККМ: 001 [17:17:22]line ФМ: 0000000000874715 [17:17:22]line ФД: 52741 [17:17:22]line ФПД: 224016159915020 [17:17:22]line /tax-web-control/client/api/v1/ticket?date=20240812T171727&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52741&fm=224016159915020&tin=02508201610067®Number=0000000000090834&sum=15100 [17:17:23]OFD Sender: Processing packet 52741 [packets to send 55, broken 54] [17:17:23]ProducePacketName [17:17:23]name=ofd_packets/00052741 [17:17:23]OFD Sender: To server: pG, [17:17:23]CommunicateWithHost lk.salyk.kg:30040 [17:17:23]ConnectInit lk.salyk.kg [17:17:23]line 0 [17:17:23]written 0, free lines is 4095 [17:17:23]Connected sock=10 [17:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 26 01 00 00 FB 2C 1E 01 86 53 5A 03 01 00 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A7 43 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 05 CE 00 00 35 04 06 00 CB BD D3 A2 BC 0C BC 5E 3F 2C AD 6E B2 45 [17:17:23]Write to MH i2c: 01 00 00 18 24 3C [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 07 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: 01 07 00 18 24 00 00 00 00 00 EC 0C 3B [17:17:23]RasterBufferAndPrint [17:17:23]line [17:17:23]line [17:17:23]line [17:17:23]line [17:17:23]line [17:17:23]written 0, free lines is 3314 [17:17:23]MH_Cut [17:17:23]Write to MH i2c: D1 01 00 1F 24 01 15 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: D1 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: D1 01 00 [17:17:23]MH_I2C_Read... [17:17:23]Read from MH i2c: D1 01 00 1F 24 00 14 [17:17:23]Write to MH i2c: 01 00 00 20 24 44 [17:17:23]Write i2c OK [17:17:23]MH_I2C_Read... [17:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 C3 9B 47 00 4C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 05 CE 00 00 F4 03 04 00 3F EB B9 66 B6 04 01 00 00 BA 3B 34 7F C9 98 3B A2 [17:17:23]CommunicateWithHost err = 0 [17:17:23]CheckOFDResponse [17:17:23]1017 (14) - 77093643461234 [17:17:23]1041 (16) - 0000000000874715 [17:17:23]1040 (4) - 52741 [17:17:23]1012 (4) - 12.08.2024 11:00 [17:17:23]1206 (1) - 0 [17:17:23]OFD Sender: Remove packet 52741 [17:17:23]ProducePacketName [17:17:23]name=ofd_packets/00052741 [17:17:23]NVStorageDeleteData [17:17:23]int [17:17:23]*** FLAG_PRN_PAP2 set [17:17:23]*** Cut start [17:17:23]*** Purtial cut [17:17:23]*** Stage 1: CUTSNS_PIN = 1 [17:17:24]OFD Sender: No OFD packet to send [17:17:24]Read from MH i2c: 01 [17:17:24]MH_I2C_Read... [17:17:24]*** Stop cut motor [17:17:24]*** Cut end [17:17:24]Read from MH i2c: 01 07 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 20 24 00 02 00 00 00 FF 0F 5B [17:17:24]process_action close_receipt done [17:17:24]requested_data is exist [17:17:24]produce_requested_data [17:17:24]requested_item fm.sn is exist - process it [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 Write to MH i2c: 11 01 00 00 00 00 [17:17:24]21 24 45 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: 01 07 00 21 24 00 02 00 00 00 FF 0F 5C [17:17:24]Write to MH i2c: state=0 [17:17:24]E2 Cover opened [17:17:24]08 00 22 24 80 11 00 00 00 00 00 00 C0 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 17 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 17 00 22 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 13 [17:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:17:24]wFMCommunicate OK [17:17:24]requested_item fd.num is exist - process it [17:17:24]SAM_PROTO_GetFieldsCounters [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 13 00 00 [17:17:24]Write to MH i2c: E2 08 00 23 24 80 13 00 00 00 00 00 00 C3 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 62 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 62 00 23 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 05 CE 00 00 0E 04 04 00 BF 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 27 [17:17: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 05 CE 00 00 0E 04 04 00 BF 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 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_GetFieldsCounters done [17:17:24]requested_item shift.num is exist - process it [17:17:24]requested_item shift.opened is exist - process it [17:17:24]req_shift_opened [17:17:24]FM_GetShiftState [17:17:24]SAM_PROTO_GetShiftState [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 13 01 00 [17:17:24]Write to MH i2c: E2 08 00 24 24 80 13 01 00 00 00 00 00 C5 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 24 24 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 23 [17:17:24]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_GetShiftState done [17:17:24]FM_GetShiftState done [17:17:24]req_shift_opened done [17:17:24]requested_item shift.open_date is exist - process it [17:17:24]req_shift_open_date [17:17:24]req_shift_open_date done [17:17:24]produce_requested_data done [17:17:24]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52741,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [17:17:24]process_action_free close_receipt [17:17:24]json_value_free [17:17:24]json_value_free done [17:17:24]process_json_proto returns [17:17:24]Send response to host [17:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52741,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [17:17:24]free response buf [17:17:24]execute_script done [17:17:24]execute_script returns [17:17:24]free content buf [17:17:24]Sock 9.Close socket [17:17:24]Sock 9.Thread stoped [17:17:28]int [17:17:28]Write to MH i2c: 01 00 00 25 24 49 [17:17:28]*** FLAG_PRN_PAP1 set [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 07 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: 01 07 00 25 24 00 03 00 00 00 FF 0F 61 [17:17:28]state=3 [17:17:28]No paper [17:17:28]Cover opened [17:17:29]OFD Sender: No OFD packet to send [17:17:33]Write to MH i2c: 01 00 00 26 24 4A [17:17:33]Write i2c OK [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 07 00 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 07 00 26 24 00 03 00 00 00 FF 0F 62 [17:17:33]state=3 [17:17:33]No paper [17:17:33]Cover opened [17:17:34]OFD Sender: No OFD packet to send [17:17:38]Write to MH i2c: 01 00 00 27 24 4B [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 27 24 00 03 00 00 00 FF 0F 63 [17:17:38]state=3 [17:17:38]No paper [17:17:38]Cover opened [17:17:39]OFD Sender: No OFD packet to send [17:17:43]Write to MH i2c: 01 00 00 28 24 4C [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: 01 07 00 28 24 00 03 00 00 00 FF 0F 64 [17:17:43]state=3 [17:17:43]No paper [17:17:43]Cover opened [17:17:44]OFD Sender: No OFD packet to send [17:17:48]Write to MH i2c: 01 00 00 29 24 4D [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 07 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 07 00 29 24 00 03 00 00 00 FF 0F 65 [17:17:48]state=3 [17:17:48]No paper [17:17:48]Cover opened [17:17:49]OFD Sender: No OFD packet to send [17:17:50]int [17:17:50]Write to MH i2c: 01 00 00 2A 24 4E [17:17:50]*** FLAG_PRN_PAP2 reset [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 2A 24 00 01 00 00 00 FF 0F 64 [17:17:50]state=3 [17:17:50]No paper [17:17:50]Cover closed [17:17:50]int [17:17:50]Write to MH i2c: 01 00 00 2B 24 4F [17:17:50]*** FLAG_PRN_PAP1 reset [17:17:50]Write i2c OK [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 [17:17:50]MH_I2C_Read... [17:17:50]Read from MH i2c: 01 07 00 2B 24 00 00 00 00 00 FF 0F 64 [17:17:50]state=0 [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:31]accept exits with 7 [17:32:31]New connection [17:32:31]New thread 3067149668 created [17:32:31]Thread 3067293028 joined [17:32:31]Waiting for new connection... [17:32:31] Sock 7.Parse request [17:32:31]Sock 7.Check first char [17:32:31]Sock 7.First char is OK [17:32:31]request: POST /json_proto HTTP/1.0 [17:32:31]Method: POST [17:32:31]URL: /json_proto [17:32:31]Method is POST - this is cgi request [17:32:31]url: /json_proto [17:32:31]query_string will be loaded in cgi processing [17:32:31]execute_cgi json_proto POST (null) [17:32:31]execute_cgi path=json_proto method=POST [17:32:31]POST find Content-Length [17:32:31]Host: 172.17.60.7:8080 [17:32:31]Content-Length: 654 [17:32:31]Content-Type: application/json [17:32:31] [17:32:31]POST finish read [17:32:31]Found Content-Length = 654 [17:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122874", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:31]execute_script... [17:32: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)122874", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:31]POST & json_proto [17:32:31]process_json_proto [17:32:31]json parsed OK: [17:32:31]protocol is kg_v1.0 [17:32:31]action value=close_receipt [17:32:31]process_action close_receipt [17:32:31]cmd_close_receipt [17:32:31]MH_GetDate [17:32:31]Write to MH i2c: F0 00 00 2C 24 3F [17:32:31]Write i2c OK [17:32:31]MH_I2C_Read... [17:32:31]Read from MH i2c: F0 [17:32:31]MH_I2C_Read... [17:32:31]Read from MH i2c: F0 09 00 [17:32:31]MH_I2C_Read... [17:32:31]Read from MH i2c: F0 09 00 2C 24 00 35 47 BA 66 63 9B 67 64 AD [17:32:31]GetLastDocTimeStamp 1723483047 [17:32:31]current date 1723483957 [17:32:31]FM_GetShiftState [17:32:31]SAM_PROTO_GetShiftState [17:32:31]wFMCommunicate request_size=4 [17:32:31]MH_SAM_APDU [17:32:31]CAPDU: 80 13 01 00 [17:32:31]Write to MH i2c: E2 08 00 2D 24 80 13 01 00 00 00 00 00 CE [17:32:31]Write i2c OK [17:32:31]MH_I2C_Read... [17:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:31]Read from MH i2c: E2 [17:32:31]MH_I2C_Read... [17:32:31]Read from MH i2c: E2 0E 00 [17:32:31]MH_I2C_Read... [17:32:31]Read from MH i2c: E2 0E 00 2D 24 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 2C [17:32:31]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:32:31]wFMCommunicate OK [17:32:31]SAM_PROTO_GetShiftState done [17:32:31]FM_GetShiftState done [17:32:31]opened in 1723422684 [17:32:31]opened+sec_in_day 1723509084 [17:32:31]quantity*price = 9500 [17:32:31]sum+1 = 9501 [17:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 60 12.08.2024 17:32 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52742 ФПД: 277925156713724 /tax-web-control/client/api/v1/ticket?date=20240812T173237&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52742&fm=277925156713724&tin=02508201610067®Number=0000000000090834&sum=9500 0 [17:32:32]StoreToDocumentArchive [17:32:32]shift 447 fd 52742 [17:32:32]save to /storage/0447/doc_00052742 [17:32:32]save last doc name /storage/0447/doc_00052742 to /storage/kkm_last_doc_name [17:32:32]save OK [17:32:32]Clear old archive folders... [17:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:32:32]tlvbuf is 012FE250 [17:32:32]SAM_PROTO_ClearQueue [17:32:32]wFMCommunicate request_size=4 [17:32:32]MH_SAM_APDU [17:32:32]CAPDU: 80 09 00 00 [17:32:32]Write to MH i2c: E2 08 00 3A 24 80 09 00 00 00 00 00 00 D0 [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:32]Read from MH i2c: E2 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [17:32:32]RAPDU: 90 00 [17:32:32]wFMCommunicate OK [17:32:32]SAM_PROTO_ClearQueue done [17:32:32]KKMCreateOFDPacket [17:32:32]OFDProtocolAddRootSTLVToBuf [17:32:32]FM_MakeSignedData [17:32:32]FM_MakeSignedData [17:32:32]SAM_PROTO_SignData [17:32:32]wFMCommunicate request_size=4 [17:32:32]MH_SAM_APDU [17:32:32]CAPDU: 80 0D 01 02 [17:32:32]Write to MH i2c: E2 08 00 3B 24 80 0D 01 02 00 00 00 00 D8 [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:32]Read from MH i2c: E2 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [17:32:32]RAPDU: 90 00 [17:32:32]wFMCommunicate OK [17:32:32]wFMCommunicate request_size=255 [17:32:32]MH_SAM_APDU [17:32:32]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 35 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:32:32]Write to MH i2c: E2 02 01 3C 24 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 35 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 10 [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:32]Read from MH i2c: E2 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [17:32:32]RAPDU: 90 00 [17:32:32]wFMCommunicate OK [17:32:32]wFMCommunicate request_size=52 [17:32:32]MH_SAM_APDU [17:32:32]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 06 CE 00 00 35 04 06 00 FC C5 7E 3D 74 FC [17:32:32]Write to MH i2c: E2 37 00 3D 24 80 0D 02 02 2F 00 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 06 CE 00 00 35 04 06 00 FC C5 7E 3D 74 FC 00 00 5D [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:32]Read from MH i2c: E2 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 03 00 3D 24 00 90 00 D5 [17:32:32]RAPDU: 90 00 [17:32:32]wFMCommunicate OK [17:32:32]wFMCommunicate request_size=4 [17:32:32]MH_SAM_APDU [17:32:32]CAPDU: 80 0D 03 02 [17:32:32]Write to MH i2c: E2 08 00 3E 24 80 0D 03 02 00 00 00 00 DD [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:32]Read from MH i2c: E2 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 0B 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 0B 00 3E 24 00 24 7C EE 68 6A 01 12 81 90 00 D2 [17:32:32]RAPDU: 24 7C EE 68 6A 01 12 81 90 00 [17:32:32]wFMCommunicate OK [17:32:32]SAM_PROTO_SignData done [17:32:32]FM_MakeSignedData done [17:32:32]CreateOFDProtocolMessage [17:32:32]wFMCommunicate request_size=4 [17:32:32]MH_SAM_APDU [17:32:32]CAPDU: 80 11 00 00 [17:32:32]Write to MH i2c: E2 08 00 3F 24 80 11 00 00 00 00 00 00 DD [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:32]Read from MH i2c: E2 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 17 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: E2 17 00 3F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 30 [17:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:32:32]wFMCommunicate OK [17:32:32]CreateOFDProtocolMessage done [17:32:32]OFDSenderStorePacket 52742 [17:32:32]StoreOFDPacket docnum=52742 [17:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 F2 11 31 01 F4 2F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 35 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 06 CE 00 00 35 04 06 00 FC C5 7E 3D 74 FC 24 7C EE 68 6A 01 12 81 [17:32:32]CheckFolder [17:32:32]dirname=/storage/ofd_packets [17:32:32]CheckFolder done [17:32:32]ProducePacketName [17:32:32]name=ofd_packets/00052742 [17:32:32]NVStorageSaveData ofd_packets/00052742 [17:32:32]File name is /storage/ofd_packets/00052742 [17:32:32]Write 343 bytes [17:32:32]NVStorageSaveData done [17:32:32]OFDSenderStorePacket done [17:32:32]KKMCreateOFDPacket done [17:32:32]NVStorageSaveData kkm_last_timestamp [17:32:32]File name is /storage/kkm_last_timestamp [17:32:32]Write 4 bytes [17:32:32]NVStorageSaveData done [17:32:32]ExternCall_PrintAddStr [17:32:32]wPrintStart [17:32:32]Write to MH i2c: 01 00 00 40 24 64 [17:32:32]OFD Sender: Processing packet 52742 [packets to send 55, broken 54] [17:32:32]ProducePacketName [17:32:32]name=ofd_packets/00052742 [17:32:32]OFD Sender: To server: pG, [17:32:32]CommunicateWithHost lk.salyk.kg:30040 [17:32:32]ConnectInit lk.salyk.kg [17:32:32]Write i2c OK [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: 01 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: 01 07 00 [17:32:32]MH_I2C_Read... [17:32:32]Read from MH i2c: 01 07 00 40 24 00 00 00 00 00 FF 0F 79 [17:32:32]RasterBufferAndPrint [17:32:32]line Счет N : (3)122874 [17:32:32]line ИНН: 02508201610067 [17:32:32]line Контрольно-Кассовый Чек [17:32:32]line ПРОДАЖА [17:32:32]line Товар: 4700000480050 [17:32:32]line Напиток Nitro Energy эн green ж/б 0,45л [17:32:32]line 1.000 * 95.00 [17:32:32]line = 95.00 [17:32:32]line НДС 12% НСП 1% [17:32:32]line > о реализуемом товаре [17:32:32]line ИТОГО: 95.00 [17:32:32]line НСП 1% : 0.84 [17:32:32]line НДС 12% : 10.09 [17:32:32]line Наличными: 95.00 [17:32:32]line Безнал.: 0.00 [17:32:32]line Место: АЗС № 54 "Партнер Нефть" [17:32:32]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [17:32:32]line СНО: Общий режим [17:32:32]line Чек 60 12.08.2024 17:32 [17:32:32]line Смена: 447 ФФД: 1.0 [17:32:32]line ЗНМ: 0300000007 [17:32:32]line РНМ: 0000000000090834 [17:32:32]line Версия ККМ: 001 [17:32:32]line ФМ: 0000000000874715 [17:32:32]line ФД: 52742 [17:32:32]line ФПД: 277925156713724 [17:32:32]line /tax-web-control/client/api/v1/ticket?date=20240812T173237&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52742&fm=277925156713724&tin=02508201610067®Number=0000000000090834&sum=9500 [17:32:33]Connected sock=10 [17:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 39 01 00 00 F2 11 31 01 F4 2F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 35 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 06 CE 00 00 35 04 06 00 FC C5 7E 3D 74 FC 24 7C EE 68 6A 01 12 81 [17:32:33]line 0 [17:32:33]written 0, free lines is 4095 [17:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 99 49 47 00 45 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 34 37 31 35 10 04 04 00 06 CE 00 00 F4 03 04 00 CD EE B9 66 B6 04 01 00 00 F3 B5 2D 67 32 1E 88 E1 [17:32:33]CommunicateWithHost err = 0 [17:32:33]CheckOFDResponse [17:32:33]1017 (14) - 77093643461234 [17:32:33]1041 (16) - 0000000000874715 [17:32:33]1040 (4) - 52742 [17:32:33]1012 (4) - 12.08.2024 11:15 [17:32:33]1206 (1) - 0 [17:32:33]OFD Sender: Remove packet 52742 [17:32:33]ProducePacketName [17:32:33]name=ofd_packets/00052742 [17:32:33]NVStorageDeleteData [17:32:33]Write to MH i2c: 01 00 00 68 24 8C [17:32:33]Write i2c OK [17:32:33]MH_I2C_Read... [17:32:33]Read from MH i2c: 01 [17:32:33]MH_I2C_Read... [17:32:33]Read from MH i2c: 01 07 00 [17:32:33]MH_I2C_Read... [17:32:33]Read from MH i2c: 01 07 00 68 24 00 00 00 00 00 DC 0C 7B [17:32:33]RasterBufferAndPrint [17:32:33]line [17:32:33]line [17:32:33]line [17:32:33]line [17:32:33]line [17:32:33]written 0, free lines is 3299 [17:32:33]MH_Cut [17:32:33]Write to MH i2c: D1 01 00 6F 24 01 65 [17:32:33]Write i2c OK [17:32:33]MH_I2C_Read... [17:32:33]Read from MH i2c: D1 [17:32:33]MH_I2C_Read... [17:32:33]Read from MH i2c: D1 01 00 [17:32:33]MH_I2C_Read... [17:32:33]Read from MH i2c: D1 01 00 6F 24 00 64 [17:32:33]Write to MH i2c: 01 00 00 70 24 94 [17:32:33]Write i2c OK [17:32:33]MH_I2C_Read... [17:32:33]OFD Sender: No OFD packet to send [17:32:34]*** Cut start [17:32:34]*** Purtial cut [17:32:34]*** Stage 1: CUTSNS_PIN = 1 [17:32:34]Read from MH i2c: 01 [17:32:34]MH_I2C_Read... [17:32:34]*** Stop cut motor [17:32:34]*** Cut end [17:32:34]Read from MH i2c: 01 07 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 FF 0F A9 [17:32:34]process_action close_receipt done [17:32:34]requested_data is exist [17:32:34]produce_requested_data [17:32:34]requested_item fm.sn is exist - process it [17:32:34]wFMCommunicate request_size=4 [17:32:34]MH_SAM_APDU [17:32:34]CAPDU: 80 11 00 00 [17:32:34]Write to MH i2c: E2 08 00 71 24 80 11 00 00 00 00 00 00 0F [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:34]Read from MH i2c: E2 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 17 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 17 00 71 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 62 [17:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:32:34]wFMCommunicate OK [17:32:34]requested_item fd.num is exist - process it [17:32:34]SAM_PROTO_GetFieldsCounters [17:32:34]wFMCommunicate request_size=4 [17:32:34]MH_SAM_APDU [17:32:34]CAPDU: 80 13 00 00 [17:32:34]Write to MH i2c: E2 08 00 72 24 80 13 00 00 00 00 00 00 12 [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:34]Read from MH i2c: E2 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 62 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 62 00 72 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 06 CE 00 00 0E 04 04 00 BF 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 7A [17:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 06 CE 00 00 0E 04 04 00 BF 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 [17:32:34]wFMCommunicate OK [17:32:34]SAM_PROTO_GetFieldsCounters done [17:32:34]requested_item shift.num is exist - process it [17:32:34]requested_item shift.opened is exist - process it [17:32:34]req_shift_opened [17:32:34]FM_GetShiftState [17:32:34]SAM_PROTO_GetShiftState [17:32:34]wFMCommunicate request_size=4 [17:32:34]MH_SAM_APDU [17:32:34]CAPDU: 80 13 01 00 [17:32:34]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [17:32:34]Write i2c OK [17:32:34]MH_I2C_Read... [17:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:34]Read from MH i2c: E2 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 0E 00 [17:32:34]MH_I2C_Read... [17:32:34]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 72 [17:32:34]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:32:34]wFMCommunicate OK [17:32:34]SAM_PROTO_GetShiftState done [17:32:34]FM_GetShiftState done [17:32:34]req_shift_opened done [17:32:34]requested_item shift.open_date is exist - process it [17:32:34]req_shift_open_date [17:32:34]req_shift_open_date done [17:32:34]produce_requested_data done [17:32:34]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52742,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [17:32:34]process_action_free close_receipt [17:32:34]json_value_free [17:32:34]json_value_free done [17:32:34]process_json_proto returns [17:32:34]Send response to host [17:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52742,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [17:32:34]free response buf [17:32:34]execute_script done [17:32:34]execute_script returns [17:32:34]free content buf [17:32:34]Sock 7.Close socket [17:32:34]Sock 7.Thread stoped [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:53]accept exits with 9 [17:33:53]New connection [17:33:53]New thread 3067293028 created [17:33:53]Thread 3067149668 joined [17:33:53]Waiting for new connection... [17:33:53] Sock 9.Parse request [17:33:53]Sock 9.Check first char [17:33:53]Sock 9.First char is OK [17:33:53]request: POST /json_proto HTTP/1.0 [17:33:53]Method: POST [17:33:53]URL: /json_proto [17:33:53]Method is POST - this is cgi request [17:33:53]url: /json_proto [17:33:53]query_string will be loaded in cgi processing [17:33:53]execute_cgi json_proto POST (null) [17:33:53]execute_cgi path=json_proto method=POST [17:33:53]POST find Content-Length [17:33:53]Host: 172.17.60.7:8080 [17:33:53]Content-Length: 961 [17:33:53]Content-Type: application/json [17:33:53] [17:33:53]POST finish read [17:33:53]Found Content-Length = 961 [17:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122875", "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 }]} ,{ "code": "47012462", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 Beef Nuggets \u0441 \u0433\u043E\u0432\u044F\u0436\u044C\u0435\u0439 \u043A\u043E\u0442\u043B\u0435\u0442\u043E\u0439", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:53]execute_script... [17:33: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)122875", "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 }]} ,{ "code": "47012462", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 Beef Nuggets \u0441 \u0433\u043E\u0432\u044F\u0436\u044C\u0435\u0439 \u043A\u043E\u0442\u043B\u0435\u0442\u043E\u0439", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:53]POST & json_proto [17:33:53]process_json_proto [17:33:53]json parsed OK: [17:33:53]protocol is kg_v1.0 [17:33:53]action value=close_receipt [17:33:53]process_action close_receipt [17:33:53]cmd_close_receipt [17:33:53]MH_GetDate [17:33:53]Write to MH i2c: F0 00 00 74 24 87 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 09 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 09 00 74 24 00 87 47 BA 66 63 9B 67 64 47 [17:33:53]GetLastDocTimeStamp 1723483957 [17:33:53]current date 1723484039 [17:33:53]FM_GetShiftState [17:33:53]SAM_PROTO_GetShiftState [17:33:53]wFMCommunicate request_size=4 [17:33:53]MH_SAM_APDU [17:33:53]CAPDU: 80 13 01 00 [17:33:53]Write to MH i2c: E2 08 00 75 24 80 13 01 00 00 00 00 00 16 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:53]Read from MH i2c: E2 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: E2 0E 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: E2 0E 00 75 24 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 74 [17:33:53]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:33:53]wFMCommunicate OK [17:33:53]SAM_PROTO_GetShiftState done [17:33:53]FM_GetShiftState done [17:33:53]opened in 1723422684 [17:33:53]opened+sec_in_day 1723509084 [17:33:53]quantity*price = 7500 [17:33:53]sum+1 = 7501 [17:33:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47012462 Сэндвич Beef Nuggets с говяжьей котлетой 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 61 12.08.2024 17:33 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52743 ФПД: 32027693502228 /tax-web-control/client/api/v1/ticket?date=20240812T173359&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52743&fm=32027693502228&tin=02508201610067®Number=0000000000090834&sum=15500 0 [17:33:54]StoreToDocumentArchive [17:33:54]shift 447 fd 52743 [17:33:54]save to /storage/0447/doc_00052743 [17:33:54]save last doc name /storage/0447/doc_00052743 to /storage/kkm_last_doc_name [17:33:54]save OK [17:33:54]Clear old archive folders... [17:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=399 [17:33:54]tlvbuf is 01278AE0 [17:33:54]SAM_PROTO_ClearQueue [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 09 00 00 [17:33:54]Write to MH i2c: E2 08 00 82 24 80 09 00 00 00 00 00 00 18 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [17:33:54]RAPDU: 90 00 [17:33:54]wFMCommunicate OK [17:33:54]SAM_PROTO_ClearQueue done [17:33:54]KKMCreateOFDPacket [17:33:54]OFDProtocolAddRootSTLVToBuf [17:33:54]FM_MakeSignedData [17:33:54]FM_MakeSignedData [17:33:54]SAM_PROTO_SignData [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 0D 01 02 [17:33:54]Write to MH i2c: E2 08 00 83 24 80 0D 01 02 00 00 00 00 20 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [17:33:54]RAPDU: 90 00 [17:33:54]wFMCommunicate OK [17:33:54]wFMCommunicate request_size=255 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 0D 02 02 FA 03 00 8F 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 23 04 7F 00 8A 04 08 00 34 37 30 31 32 34 36 32 06 04 40 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 42 65 65 66 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D0 B5 D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 [17:33:54]Write to MH i2c: E2 02 01 84 24 80 0D 02 02 FA 00 03 00 8F 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 23 04 7F 00 8A 04 08 00 34 37 30 31 32 34 36 32 06 04 40 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 42 65 65 66 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D0 B5 D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 00 00 A0 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 84 24 00 90 00 1C [17:33:54]RAPDU: 90 00 [17:33:54]wFMCommunicate OK [17:33:54]wFMCommunicate request_size=158 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 07 CE 00 00 35 04 06 00 1D 21 07 4B 4F 14 [17:33:54]Write to MH i2c: E2 A1 00 85 24 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 07 CE 00 00 35 04 06 00 1D 21 07 4B 4F 14 00 00 1B [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 85 24 00 90 00 1D [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 03 02 [17:33:55]Write to MH i2c: E2 08 00 86 24 80 0D 03 02 00 00 00 00 25 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 86 24 00 30 C7 F0 1E 2A E3 48 28 90 00 A8 [17:33:55]RAPDU: 30 C7 F0 1E 2A E3 48 28 90 00 [17:33:55]wFMCommunicate OK [17:33:55]SAM_PROTO_SignData done [17:33:55]FM_MakeSignedData done [17:33:55]CreateOFDProtocolMessage [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 11 00 00 [17:33:55]Write to MH i2c: E2 08 00 87 24 80 11 00 00 00 00 00 00 25 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 17 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 17 00 87 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 78 [17:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:33:55]wFMCommunicate OK [17:33:55]CreateOFDProtocolMessage done [17:33:55]OFDSenderStorePacket 52743 [17:33:55]StoreOFDPacket docnum=52743 [17:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A3 01 00 00 ED BA 9B 01 21 3D 5A 03 01 00 03 00 8F 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 23 04 7F 00 8A 04 08 00 34 37 30 31 32 34 36 32 06 04 40 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 42 65 65 66 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D0 B5 D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 07 CE 00 00 35 04 06 00 1D 21 07 4B 4F 14 30 C7 F0 1E 2A E3 48 28 [17:33:55]CheckFolder [17:33:55]dirname=/storage/ofd_packets [17:33:55]CheckFolder done [17:33:55]ProducePacketName [17:33:55]name=ofd_packets/00052743 [17:33:55]NVStorageSaveData ofd_packets/00052743 [17:33:55]File name is /storage/ofd_packets/00052743 [17:33:55]Write 449 bytes [17:33:55]NVStorageSaveData done [17:33:55]OFDSenderStorePacket done [17:33:55]KKMCreateOFDPacket done [17:33:55]NVStorageSaveData kkm_last_timestamp [17:33:55]File name is /storage/kkm_last_timestamp [17:33:55]Write 4 bytes [17:33:55]NVStorageSaveData done [17:33:55]ExternCall_PrintAddStr [17:33:55]wPrintStart [17:33:55]Write to MH i2c: 01 00 00 88 24 AC [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 88 24 00 00 00 00 00 FF 0F C1 [17:33:55]RasterBufferAndPrint [17:33:55]line Счет N : (3)122875 [17:33:55]line ИНН: 02508201610067 [17:33:55]line Контрольно-Кассовый Чек [17:33:55]line ПРОДАЖА [17:33:55]line Товар: 40822938 [17:33:55]line Напиток Фанта 0,5л [17:33:55]line 1.000 * 75.00 [17:33:55]line = 75.00 [17:33:55]line НДС 12% НСП 1% [17:33:55]line > о реализуемом товаре [17:33:55]line Товар: 47012462 [17:33:55]line Сэндвич Beef Nuggets с говяжьей котлетой [17:33:55]line 1.000 * 80.00 [17:33:55]line = 80.00 [17:33:55]line НДС 12% НСП 1% [17:33:55]line > о реализуемом товаре [17:33:55]line ИТОГО: 155.00 [17:33:55]line НСП 1% : 1.37 [17:33:55]line НДС 12% : 16.46 [17:33:55]line Наличными: 155.00 [17:33:55]line Безнал.: 0.00 [17:33:55]line Место: АЗС № 54 "Партнер Нефть" [17:33:55]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [17:33:55]line СНО: Общий режим [17:33:55]line Чек 61 12.08.2024 17:33 [17:33:55]line Смена: 447 ФФД: 1.0 [17:33:55]line ЗНМ: 0300000007 [17:33:55]line РНМ: 0000000000090834 [17:33:55]line Версия ККМ: 001 [17:33:55]line ФМ: 0000000000874715 [17:33:55]line ФД: 52743 [17:33:55]line ФПД: 32027693502228 [17:33:55]line /tax-web-control/client/api/v1/ticket?date=20240812T173359&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52743&fm=32027693502228&tin=02508201610067®Number=0000000000090834&sum=15500 [17:33:55]line 0 [17:33:55]OFD Sender: Processing packet 52743 [packets to send 55, broken 54] [17:33:55]ProducePacketName [17:33:55]name=ofd_packets/00052743 [17:33:55]OFD Sender: To server: pG, [17:33:55]CommunicateWithHost lk.salyk.kg:30040 [17:33:55]ConnectInit lk.salyk.kg [17:33:55]written 0, free lines is 4095 [17:33:55]Connected sock=10 [17:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A3 01 00 00 ED BA 9B 01 21 3D 5A 03 01 00 03 00 8F 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 23 04 7F 00 8A 04 08 00 34 37 30 31 32 34 36 32 06 04 40 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 42 65 65 66 20 4E 75 67 67 65 74 73 20 D1 81 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D0 B5 D0 B9 20 D0 BA D0 BE D1 82 D0 BB D0 B5 D1 82 D0 BE D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 47 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 07 CE 00 00 35 04 06 00 1D 21 07 4B 4F 14 30 C7 F0 1E 2A E3 48 28 [17:33:56]Write to MH i2c: 01 00 00 B6 24 DA [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: 01 07 00 B6 24 00 00 00 00 00 78 0C 65 [17:33:56]RasterBufferAndPrint [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]line [17:33:56]written 0, free lines is 3199 [17:33:56]MH_Cut [17:33:56]Write to MH i2c: D1 01 00 BD 24 01 B3 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 BD 24 00 B2 [17:33:56]Write to MH i2c: 01 00 00 BE 24 E2 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 01 6F 47 00 63 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 07 CE 00 00 F4 03 04 00 20 EF B9 66 B6 04 01 00 00 BE 6D AF 3E D1 73 FE 8F [17:33:56]CommunicateWithHost err = 0 [17:33:56]CheckOFDResponse [17:33:56]1017 (14) - 77093643461234 [17:33:56]1041 (16) - 0000000000874715 [17:33:56]1040 (4) - 52743 [17:33:56]1012 (4) - 12.08.2024 11:16 [17:33:56]1206 (1) - 0 [17:33:56]OFD Sender: Remove packet 52743 [17:33:56]ProducePacketName [17:33:56]name=ofd_packets/00052743 [17:33:56]NVStorageDeleteData [17:33:56]*** Cut start [17:33:56]*** Purtial cut [17:33:56]*** Stage 1: CUTSNS_PIN = 1 [17:33:56]OFD Sender: No OFD packet to send [17:33:57]Read from MH i2c: 01 [17:33:57]MH_I2C_Read... [17:33:57]*** Stop cut motor [17:33:57]*** Cut end [17:33:57]Read from MH i2c: 01 07 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: 01 07 00 BE 24 00 00 00 00 00 FF 0F F7 [17:33:57]process_action close_receipt done [17:33:57]requested_data is exist [17:33:57]produce_requested_data [17:33:57]requested_item fm.sn is exist - process it [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 11 00 00 [17:33:57]Write to MH i2c: E2 08 00 BF 24 80 11 00 00 00 00 00 00 5D [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 17 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 17 00 BF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B0 [17:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:33:57]wFMCommunicate OK [17:33:57]requested_item fd.num is exist - process it [17:33:57]SAM_PROTO_GetFieldsCounters [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 13 00 00 [17:33:57]Write to MH i2c: E2 08 00 C0 24 80 13 00 00 00 00 00 00 60 [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 62 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 62 00 C0 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 07 CE 00 00 0E 04 04 00 BF 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 CC [17:33:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 07 CE 00 00 0E 04 04 00 BF 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 [17:33:57]wFMCommunicate OK [17:33:57]SAM_PROTO_GetFieldsCounters done [17:33:57]requested_item shift.num is exist - process it [17:33:57]requested_item shift.opened is exist - process it [17:33:57]req_shift_opened [17:33:57]FM_GetShiftState [17:33:57]SAM_PROTO_GetShiftState [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 13 01 00 [17:33:57]Write to MH i2c: E2 08 00 C1 24 80 13 01 00 00 00 00 00 62 [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 0E 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 0E 00 C1 24 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C0 [17:33:57]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:33:57]wFMCommunicate OK [17:33:57]SAM_PROTO_GetShiftState done [17:33:57]FM_GetShiftState done [17:33:57]req_shift_opened done [17:33:57]requested_item shift.open_date is exist - process it [17:33:57]req_shift_open_date [17:33:57]req_shift_open_date done [17:33:57]produce_requested_data done [17:33:57]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52743,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [17:33:57]process_action_free close_receipt [17:33:57]json_value_free [17:33:57]json_value_free done [17:33:57]process_json_proto returns [17:33:57]Send response to host [17:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52743,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [17:33:57]free response buf [17:33:57]execute_script done [17:33:57]execute_script returns [17:33:57]free content buf [17:33:57]Sock 9.Close socket [17:33:57]Sock 9.Thread stoped [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]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:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:09]accept exits with 7 [17:42:09]New connection [17:42:09]New thread 3067149668 created [17:42:09]Thread 3067293028 joined [17:42:09]Waiting for new connection... [17:42:09] Sock 7.Parse request [17:42:09]Sock 7.Check first char [17:42:09]Sock 7.First char is OK [17:42:09]request: POST /json_proto HTTP/1.0 [17:42:09]Method: POST [17:42:09]URL: /json_proto [17:42:09]Method is POST - this is cgi request [17:42:09]url: /json_proto [17:42:09]query_string will be loaded in cgi processing [17:42:09]execute_cgi json_proto POST (null) [17:42:09]execute_cgi path=json_proto method=POST [17:42:09]POST find Content-Length [17:42:09]Host: 172.17.60.7:8080 [17:42:09]Content-Length: 630 [17:42:09]Content-Type: application/json [17:42:09] [17:42:09]POST finish read [17:42:09]Found Content-Length = 630 [17:42:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122876", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:09]execute_script... [17:42:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122876", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:09]POST & json_proto [17:42:09]process_json_proto [17:42:09]json parsed OK: [17:42:09]protocol is kg_v1.0 [17:42:09]action value=close_receipt [17:42:09]process_action close_receipt [17:42:09]cmd_close_receipt [17:42:09]MH_GetDate [17:42:09]Write to MH i2c: F0 00 00 C2 24 D5 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: F0 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: F0 09 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: F0 09 00 C2 24 00 77 49 BA 66 63 9B 67 64 87 [17:42:09]GetLastDocTimeStamp 1723484039 [17:42:09]current date 1723484535 [17:42:09]FM_GetShiftState [17:42:09]SAM_PROTO_GetShiftState [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 01 00 [17:42:09]Write to MH i2c: E2 08 00 C3 24 80 13 01 00 00 00 00 00 64 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 C3 24 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C2 [17:42:09]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetShiftState done [17:42:09]FM_GetShiftState done [17:42:09]opened in 1723422684 [17:42:09]opened+sec_in_day 1723509084 [17:42:09]quantity*price = 5000 [17:42:09]sum+1 = 5001 [17:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 62 12.08.2024 17:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52744 ФПД: 154247884618966 /tax-web-control/client/api/v1/ticket?date=20240812T174215&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52744&fm=154247884618966&tin=02508201610067®Number=0000000000090834&sum=5000 0 [17:42:10]StoreToDocumentArchive [17:42:10]shift 447 fd 52744 [17:42:10]save to /storage/0447/doc_00052744 [17:42:10]save last doc name /storage/0447/doc_00052744 to /storage/kkm_last_doc_name [17:42:10]save OK [17:42:10]Clear old archive folders... [17:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:42:10]tlvbuf is 01269D50 [17:42:10]SAM_PROTO_ClearQueue [17:42:10]wFMCommunicate request_size=4 [17:42:10]MH_SAM_APDU [17:42:10]CAPDU: 80 09 00 00 [17:42:10]Write to MH i2c: E2 08 00 D0 24 80 09 00 00 00 00 00 00 66 [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:10]Read from MH i2c: E2 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [17:42:10]RAPDU: 90 00 [17:42:10]wFMCommunicate OK [17:42:10]SAM_PROTO_ClearQueue done [17:42:10]KKMCreateOFDPacket [17:42:10]OFDProtocolAddRootSTLVToBuf [17:42:10]FM_MakeSignedData [17:42:10]FM_MakeSignedData [17:42:10]SAM_PROTO_SignData [17:42:10]wFMCommunicate request_size=4 [17:42:10]MH_SAM_APDU [17:42:10]CAPDU: 80 0D 01 02 [17:42:10]Write to MH i2c: E2 08 00 D1 24 80 0D 01 02 00 00 00 00 6E [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 [17:42:10]MH_I2C_Read... [17:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:10]Read from MH i2c: E2 03 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 D1 24 00 90 00 69 [17:42:10]RAPDU: 90 00 [17:42:10]wFMCommunicate OK [17:42:10]wFMCommunicate request_size=255 [17:42:10]MH_SAM_APDU [17:42:10]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 77 49 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:42:10]Write to MH i2c: E2 02 01 D2 24 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 77 49 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 62 [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:10]Read from MH i2c: E2 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 D2 24 00 90 00 6A [17:42:10]RAPDU: 90 00 [17:42:10]wFMCommunicate OK [17:42:10]wFMCommunicate request_size=28 [17:42:10]MH_SAM_APDU [17:42:10]CAPDU: 80 0D 02 02 17 37 34 37 31 35 10 04 04 00 08 CE 00 00 35 04 06 00 8C 49 A2 5E BC D6 [17:42:10]Write to MH i2c: E2 1F 00 D3 24 80 0D 02 02 17 00 37 34 37 31 35 10 04 04 00 08 CE 00 00 35 04 06 00 8C 49 A2 5E BC D6 00 00 3B [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:10]Read from MH i2c: E2 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 03 00 D3 24 00 90 00 6B [17:42:10]RAPDU: 90 00 [17:42:10]wFMCommunicate OK [17:42:10]wFMCommunicate request_size=4 [17:42:10]MH_SAM_APDU [17:42:10]CAPDU: 80 0D 03 02 [17:42:10]Write to MH i2c: E2 08 00 D4 24 80 0D 03 02 00 00 00 00 73 [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:10]Read from MH i2c: E2 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 0B 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 0B 00 D4 24 00 C8 BE 6E 2C BB C8 AD 14 90 00 D8 [17:42:10]RAPDU: C8 BE 6E 2C BB C8 AD 14 90 00 [17:42:10]wFMCommunicate OK [17:42:10]SAM_PROTO_SignData done [17:42:10]FM_MakeSignedData done [17:42:10]CreateOFDProtocolMessage [17:42:10]wFMCommunicate request_size=4 [17:42:10]MH_SAM_APDU [17:42:10]CAPDU: 80 11 00 00 [17:42:10]Write to MH i2c: E2 08 00 D5 24 80 11 00 00 00 00 00 00 73 [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:10]Read from MH i2c: E2 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 17 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: E2 17 00 D5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C6 [17:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:42:10]wFMCommunicate OK [17:42:10]CreateOFDProtocolMessage done [17:42:10]OFDSenderStorePacket 52744 [17:42:10]StoreOFDPacket docnum=52744 [17:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 21 01 00 00 60 1F 19 01 04 D8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 77 49 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 08 CE 00 00 35 04 06 00 8C 49 A2 5E BC D6 C8 BE 6E 2C BB C8 AD 14 [17:42:10]CheckFolder [17:42:10]dirname=/storage/ofd_packets [17:42:10]CheckFolder done [17:42:10]ProducePacketName [17:42:10]name=ofd_packets/00052744 [17:42:10]NVStorageSaveData ofd_packets/00052744 [17:42:10]File name is /storage/ofd_packets/00052744 [17:42:10]Write 319 bytes [17:42:10]NVStorageSaveData done [17:42:10]OFDSenderStorePacket done [17:42:10]KKMCreateOFDPacket done [17:42:10]NVStorageSaveData kkm_last_timestamp [17:42:10]File name is /storage/kkm_last_timestamp [17:42:10]Write 4 bytes [17:42:10]NVStorageSaveData done [17:42:10]ExternCall_PrintAddStr [17:42:10]wPrintStart [17:42:10]Write to MH i2c: 01 00 00 D6 24 FA [17:42:10]Write i2c OK [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: 01 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: 01 07 00 [17:42:10]MH_I2C_Read... [17:42:10]Read from MH i2c: 01 07 00 D6 24 00 00 00 00 00 FF 0F 0F [17:42:10]RasterBufferAndPrint [17:42:10]line Счет N : (3)122876 [17:42:10]line ИНН: 02508201610067 [17:42:10]line Контрольно-Кассовый Чек [17:42:10]line ПРОДАЖА [17:42:10]line Товар: 4700000160358 [17:42:10]line Вода Легенда 1л [17:42:10]line 1.000 * 50.00 [17:42:10]line = 50.00 [17:42:10]line НДС 12% НСП 1% [17:42:10]line > о реализуемом товаре [17:42:10]line ИТОГО: 50.00 [17:42:10]line НСП 1% : 0.44 [17:42:10]line НДС 12% : 5.31 [17:42:10]line Наличными: 50.00 [17:42:10]line Безнал.: 0.00 [17:42:10]line Место: АЗС № 54 "Партнер Нефть" [17:42:11]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [17:42:11]line СНО: Общий режим [17:42:11]line Чек 62 12.08.2024 17:42 [17:42:11]line Смена: 447 ФФД: 1.0 [17:42:11]line ЗНМ: 0300000007 [17:42:11]line РНМ: 0000000000090834 [17:42:11]line Версия ККМ: 001 [17:42:11]line ФМ: 0000000000874715 [17:42:11]line ФД: 52744 [17:42:11]line ФПД: 154247884618966 [17:42:11]line /tax-web-control/client/api/v1/ticket?date=20240812T174215&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52744&fm=154247884618966&tin=02508201610067®Number=0000000000090834&sum=5000 [17:42:11]line 0 [17:42:11]OFD Sender: Processing packet 52744 [packets to send 55, broken 54] [17:42:11]ProducePacketName [17:42:11]name=ofd_packets/00052744 [17:42:11]OFD Sender: To server: pG, [17:42:11]CommunicateWithHost lk.salyk.kg:30040 [17:42:11]ConnectInit lk.salyk.kg [17:42:11]written 0, free lines is 4095 [17:42:11]Connected sock=10 [17:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 21 01 00 00 60 1F 19 01 04 D8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 77 49 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 08 CE 00 00 35 04 06 00 8C 49 A2 5E BC D6 C8 BE 6E 2C BB C8 AD 14 [17:42:11]Write to MH i2c: 01 00 00 FD 24 21 [17:42:11]Write i2c OK [17:42:11]MH_I2C_Read... [17:42:11]Read from MH i2c: 01 [17:42:11]MH_I2C_Read... [17:42:11]Read from MH i2c: 01 07 00 [17:42:11]MH_I2C_Read... [17:42:11]Read from MH i2c: 01 07 00 FD 24 00 00 00 00 00 F7 0C 2B [17:42:11]RasterBufferAndPrint [17:42:11]line [17:42:11]line [17:42:11]line [17:42:11]line [17:42:11]line [17:42:11]written 0, free lines is 3324 [17:42:11]MH_Cut [17:42:11]Write to MH i2c: D1 01 00 04 25 01 FB [17:42:11]Write i2c OK [17:42:11]MH_I2C_Read... [17:42:11]Read from MH i2c: D1 [17:42:11]MH_I2C_Read... [17:42:11]Read from MH i2c: D1 01 00 [17:42:11]MH_I2C_Read... [17:42:11]Read from MH i2c: D1 01 00 04 25 00 FA [17:42:11]Write to MH i2c: 01 00 00 05 25 2A [17:42:11]Write i2c OK [17:42:11]MH_I2C_Read... [17:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 FF 61 47 00 8F 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 08 CE 00 00 F4 03 04 00 0F F1 B9 66 B6 04 01 00 00 C8 11 0F 41 34 A6 DF 0A [17:42:11]CommunicateWithHost err = 0 [17:42:11]CheckOFDResponse [17:42:11]1017 (14) - 77093643461234 [17:42:11]1041 (16) - 0000000000874715 [17:42:11]1040 (4) - 52744 [17:42:11]1012 (4) - 12.08.2024 11:25 [17:42:11]1206 (1) - 0 [17:42:11]OFD Sender: Remove packet 52744 [17:42:11]ProducePacketName [17:42:11]name=ofd_packets/00052744 [17:42:11]NVStorageDeleteData [17:42:12]OFD Sender: No OFD packet to send [17:42:12]*** Cut start [17:42:12]*** Purtial cut [17:42:12]*** Stage 1: CUTSNS_PIN = 1 [17:42:12]Read from MH i2c: 01 [17:42:12]MH_I2C_Read... [17:42:12]*** Stop cut motor [17:42:12]*** Cut end [17:42:12]Read from MH i2c: 01 07 00 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: 01 07 00 05 25 00 00 00 00 00 FF 0F 3F [17:42:12]process_action close_receipt done [17:42:12]requested_data is exist [17:42:12]produce_requested_data [17:42:12]requested_item fm.sn is exist - process it [17:42:12]wFMCommunicate request_size=4 [17:42:12]MH_SAM_APDU [17:42:12]CAPDU: 80 11 00 00 [17:42:12]Write to MH i2c: E2 08 00 06 25 80 11 00 00 00 00 00 00 A5 [17:42:12]Write i2c OK [17:42:12]MH_I2C_Read... [17:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:12]Read from MH i2c: E2 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: E2 17 00 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: E2 17 00 06 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 F8 [17:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:42:12]wFMCommunicate OK [17:42:12]requested_item fd.num is exist - process it [17:42:12]SAM_PROTO_GetFieldsCounters [17:42:12]wFMCommunicate request_size=4 [17:42:12]MH_SAM_APDU [17:42:12]CAPDU: 80 13 00 00 [17:42:12]Write to MH i2c: E2 08 00 07 25 80 13 00 00 00 00 00 00 A8 [17:42:12]Write i2c OK [17:42:12]MH_I2C_Read... [17:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:12]Read from MH i2c: E2 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: E2 62 00 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: E2 62 00 07 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 08 CE 00 00 0E 04 04 00 BF 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 18 [17:42: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 08 CE 00 00 0E 04 04 00 BF 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 [17:42:12]wFMCommunicate OK [17:42:12]SAM_PROTO_GetFieldsCounters done [17:42:12]requested_item shift.num is exist - process it [17:42:12]requested_item shift.opened is exist - process it [17:42:12]req_shift_opened [17:42:12]FM_GetShiftState [17:42:12]SAM_PROTO_GetShiftState [17:42:12]wFMCommunicate request_size=4 [17:42:12]MH_SAM_APDU [17:42:12]CAPDU: 80 13 01 00 [17:42:12]Write to MH i2c: E2 08 00 08 25 80 13 01 00 00 00 00 00 AA [17:42:12]Write i2c OK [17:42:12]MH_I2C_Read... [17:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:12]Read from MH i2c: E2 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: E2 0E 00 [17:42:12]MH_I2C_Read... [17:42:12]Read from MH i2c: E2 0E 00 08 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 08 [17:42:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:42:12]wFMCommunicate OK [17:42:12]SAM_PROTO_GetShiftState done [17:42:12]FM_GetShiftState done [17:42:12]req_shift_opened done [17:42:12]requested_item shift.open_date is exist - process it [17:42:12]req_shift_open_date [17:42:12]req_shift_open_date done [17:42:12]produce_requested_data done [17:42:12]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52744,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [17:42:12]process_action_free close_receipt [17:42:12]json_value_free [17:42:12]json_value_free done [17:42:12]process_json_proto returns [17:42:12]Send response to host [17:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52744,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [17:42:12]free response buf [17:42:12]execute_script done [17:42:12]execute_script returns [17:42:12]free content buf [17:42:12]Sock 7.Close socket [17:42:12]Sock 7.Thread stoped [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [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 3067293028 created [17:51:08]Thread 3067149668 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.60.7:8080 [17:51:08]Content-Length: 1179 [17:51:08]Content-Type: application/json [17:51:08] [17:51:08]POST finish read [17:51:08]Found Content-Length = 1179 [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)122877", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 124.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)122877", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 124.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 09 25 1D [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 09 25 00 92 4B BA 66 63 9B 67 64 EC [17:51:08]GetLastDocTimeStamp 1723484535 [17:51:08]current date 1723485074 [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 0A 25 80 13 01 00 00 00 00 00 AC [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 0A 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 0A [17:51:08]RAPDU: 09 00 01 DC 57 B9 66 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 1723422684 [17:51:08]opened+sec_in_day 1723509084 [17:51:08]quantity*price = 12000 [17:51:08]sum+1 = 12001 [17:51:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.16 Наличными: 0.00 Безнал.: 124.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 63 12.08.2024 17:51 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874715 ФД: 52745 ФПД: 100301826725176 /tax-web-control/client/api/v1/ticket?date=20240812T175114&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52745&fm=100301826725176&tin=02508201610067®Number=0000000000090834&sum=12400 0 [17:51:09]StoreToDocumentArchive [17:51:09]shift 447 fd 52745 [17:51:09]save to /storage/0447/doc_00052745 [17:51:09]save last doc name /storage/0447/doc_00052745 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=416 [17:51:09]tlvbuf is 012615C0 [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 17 25 80 09 00 00 00 00 00 00 AE [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 17 25 00 90 00 B0 [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 18 25 80 0D 01 02 00 00 00 00 B6 [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 18 25 00 90 00 B1 [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 A0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [17:51:09]Write to MH i2c: E2 02 01 19 25 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 34 [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 19 25 00 90 00 B2 [17:51:09]RAPDU: 90 00 [17:51:09]wFMCommunicate OK [17:51:09]wFMCommunicate request_size=175 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 4B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 09 CE 00 00 35 04 06 00 5B 39 56 C0 95 38 [17:51:09]Write to MH i2c: E2 B2 00 1A 25 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 4B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 09 CE 00 00 35 04 06 00 5B 39 56 C0 95 38 00 00 30 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:10]Read from MH i2c: E2 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 03 00 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [17:51:10]RAPDU: 90 00 [17:51:10]wFMCommunicate OK [17:51:10]wFMCommunicate request_size=4 [17:51:10]MH_SAM_APDU [17:51:10]CAPDU: 80 0D 03 02 [17:51:10]Write to MH i2c: E2 08 00 1B 25 80 0D 03 02 00 00 00 00 BB [17:51:10]Write i2c OK [17:51:10]MH_I2C_Read... [17:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:10]Read from MH i2c: E2 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 0B 00 [17:51:10]MH_I2C_Read... [17:51:10]Read from MH i2c: E2 0B 00 1B 25 00 B5 65 A7 CE B1 7F C7 5F 90 00 A1 [17:51:10]RAPDU: B5 65 A7 CE B1 7F C7 5F 90 00 [17:51:10]wFMCommunicate OK [17:51:10]SAM_PROTO_SignData done [17:51:10]FM_MakeSignedData done [17:51:10]CreateOFDProtocolMessage [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 1C 25 80 11 00 00 00 00 00 00 BB [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 1C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 0E [17:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:51:10]wFMCommunicate OK [17:51:10]CreateOFDProtocolMessage done [17:51:10]OFDSenderStorePacket 52745 [17:51:10]StoreOFDPacket docnum=52745 [17:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 B4 01 00 00 BE B6 AC 01 68 96 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 4B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 09 CE 00 00 35 04 06 00 5B 39 56 C0 95 38 B5 65 A7 CE B1 7F C7 5F [17:51:10]CheckFolder [17:51:10]dirname=/storage/ofd_packets [17:51:10]CheckFolder done [17:51:10]ProducePacketName [17:51:10]name=ofd_packets/00052745 [17:51:10]NVStorageSaveData ofd_packets/00052745 [17:51:10]File name is /storage/ofd_packets/00052745 [17:51:10]Write 466 bytes [17:51:10]NVStorageSaveData done [17:51:10]OFDSenderStorePacket done [17:51:10]KKMCreateOFDPacket done [17:51:10]NVStorageSaveData kkm_last_timestamp [17:51:10]File name is /storage/kkm_last_timestamp [17:51:10]Write 4 bytes [17:51:10]NVStorageSaveData done [17:51:10]ExternCall_PrintAddStr [17:51:10]wPrintStart [17:51:10]Write to MH i2c: 01 00 00 1D 25 42 [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 1D 25 00 00 00 00 00 FF 0F 57 [17:51:10]RasterBufferAndPrint [17:51:10]line Счет N : (3)122877 [17:51:10]line ИНН: 02508201610067 [17:51:10]line Контрольно-Кассовый Чек [17:51:10]line ПРОДАЖА [17:51:10]line Товар: 5449000027474 [17:51:10]line Напиток FuzeTea зел чай манго,ромашка 1л [17:51:10]line 1.000 * 120.00 [17:51:10]line = 120.00 [17:51:10]line НДС 12% НСП 1% [17:51:10]line > о реализуемом товаре [17:51:10]line Товар: 2000031750019 [17:51:10]line Пакет Партнер Нефть [17:51:10]line 1.000 * 4.00 [17:51:10]line = 4.00 [17:51:10]line НДС 12% НСП 1% [17:51:10]line > о реализуемом товаре [17:51:10]line ИТОГО: 124.00 [17:51:10]line НСП 1% : 1.09 [17:51:10]line НДС 12% : 13.16 [17:51:10]line Наличными: 0.00 [17:51:10]line Безнал.: 124.00 [17:51:10]line Место: АЗС № 54 "Партнер Нефть" [17:51:10]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [17:51:10]line СНО: Общий режим [17:51:10]line Чек 63 12.08.2024 17:51 [17:51:10]line Смена: 447 ФФД: 1.0 [17:51:10]line ЗНМ: 0300000007 [17:51:10]line РНМ: 0000000000090834 [17:51:10]line Версия ККМ: 001 [17:51:10]line Платежная система: Бакай Банк [17:51:10]line ФМ: 0000000000874715 [17:51:10]line ФД: 52745 [17:51:10]line ФПД: 100301826725176 [17:51:10]line /tax-web-control/client/api/v1/ticket?date=20240812T175114&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52745&fm=100301826725176&tin=02508201610067®Number=0000000000090834&sum=12400 [17:51:10]line 0 [17:51:10]written 0, free lines is 4095 [17:51:10]OFD Sender: Processing packet 52745 [packets to send 55, broken 54] [17:51:10]ProducePacketName [17:51:10]name=ofd_packets/00052745 [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]Connected sock=7 [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 34 37 31 35 B4 01 00 00 BE B6 AC 01 68 96 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 92 4B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 09 CE 00 00 35 04 06 00 5B 39 56 C0 95 38 B5 65 A7 CE B1 7F C7 5F [17:51:11]Write to MH i2c: 01 00 00 4D 25 72 [17:51:11]Write i2c OK [17:51:11]MH_I2C_Read... [17:51:11]Read from MH i2c: 01 [17:51:11]MH_I2C_Read... [17:51:11]Read from MH i2c: 01 07 00 [17:51:11]MH_I2C_Read... [17:51:11]Read from MH i2c: 01 07 00 4D 25 00 00 00 00 00 61 0C E6 [17:51:11]RasterBufferAndPrint [17:51:11]line [17:51:11]line [17:51:11]line [17:51:11]line [17:51:11]line [17:51:11]written 0, free lines is 3177 [17:51:11]MH_Cut [17:51:11]Write to MH i2c: D1 01 00 54 25 01 4B [17:51:11]Write i2c OK [17:51:11]MH_I2C_Read... [17:51:11]Read from MH i2c: D1 [17:51:11]MH_I2C_Read... [17:51:11]Read from MH i2c: D1 01 00 [17:51:11]MH_I2C_Read... [17:51:11]Read from MH i2c: D1 01 00 54 25 00 4A [17:51:11]Write to MH i2c: 01 00 00 55 25 7A [17:51:11]Write i2c OK [17:51:11]MH_I2C_Read... [17:51:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F3 F1 47 00 5C 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 09 CE 00 00 F4 03 04 00 2B F3 B9 66 B6 04 01 00 00 6B 7A 3E 79 0E 24 59 0E [17:51:11]CommunicateWithHost err = 0 [17:51:11]CheckOFDResponse [17:51:11]1017 (14) - 77093643461234 [17:51:11]1041 (16) - 0000000000874715 [17:51:11]1040 (4) - 52745 [17:51:11]1012 (4) - 12.08.2024 11:34 [17:51:11]1206 (1) - 0 [17:51:11]OFD Sender: Remove packet 52745 [17:51:11]ProducePacketName [17:51:11]name=ofd_packets/00052745 [17:51:11]NVStorageDeleteData [17:51:11]OFD Sender: No OFD packet to send [17:51:11]*** Cut start [17:51:11]*** Purtial cut [17:51:11]*** Stage 1: CUTSNS_PIN = 1 [17:51:12]Read from MH i2c: 01 [17:51:12]MH_I2C_Read... [17:51:12]*** Stop cut motor [17:51:12]*** Cut end [17:51:12]Read from MH i2c: 01 07 00 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: 01 07 00 55 25 00 00 00 00 00 FF 0F 8F [17:51:12]process_action close_receipt done [17:51:12]requested_data is exist [17:51:12]produce_requested_data [17:51:12]requested_item fm.sn is exist - process it [17:51:12]wFMCommunicate request_size=4 [17:51:12]MH_SAM_APDU [17:51:12]CAPDU: 80 11 00 00 [17:51:12]Write to MH i2c: E2 08 00 56 25 80 11 00 00 00 00 00 00 F5 [17:51:12]Write i2c OK [17:51:12]MH_I2C_Read... [17:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:12]Read from MH i2c: E2 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: E2 17 00 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: E2 17 00 56 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 48 [17:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [17:51:12]wFMCommunicate OK [17:51:12]requested_item fd.num is exist - process it [17:51:12]SAM_PROTO_GetFieldsCounters [17:51:12]wFMCommunicate request_size=4 [17:51:12]MH_SAM_APDU [17:51:12]CAPDU: 80 13 00 00 [17:51:12]Write to MH i2c: E2 08 00 57 25 80 13 00 00 00 00 00 00 F8 [17:51:12]Write i2c OK [17:51:12]MH_I2C_Read... [17:51:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:12]Read from MH i2c: E2 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: E2 62 00 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: E2 62 00 57 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 09 CE 00 00 0E 04 04 00 BF 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 6C [17:51: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 09 CE 00 00 0E 04 04 00 BF 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 [17:51:12]wFMCommunicate OK [17:51:12]SAM_PROTO_GetFieldsCounters done [17:51:12]requested_item shift.num is exist - process it [17:51:12]requested_item shift.opened is exist - process it [17:51:12]req_shift_opened [17:51:12]FM_GetShiftState [17:51:12]SAM_PROTO_GetShiftState [17:51:12]wFMCommunicate request_size=4 [17:51:12]MH_SAM_APDU [17:51:12]CAPDU: 80 13 01 00 [17:51:12]Write to MH i2c: E2 08 00 58 25 80 13 01 00 00 00 00 00 FA [17:51:12]Write i2c OK [17:51:12]MH_I2C_Read... [17:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:12]Read from MH i2c: E2 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: E2 0E 00 [17:51:12]MH_I2C_Read... [17:51:12]Read from MH i2c: E2 0E 00 58 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 58 [17:51:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [17:51:12]wFMCommunicate OK [17:51:12]SAM_PROTO_GetShiftState done [17:51:12]FM_GetShiftState done [17:51:12]req_shift_opened done [17:51:12]requested_item shift.open_date is exist - process it [17:51:12]req_shift_open_date [17:51:12]req_shift_open_date done [17:51:12]produce_requested_data done [17:51:12]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52745,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [17:51:12]process_action_free close_receipt [17:51:12]json_value_free [17:51:12]json_value_free done [17:51:12]process_json_proto returns [17:51:12]Send response to host [17:51:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52745,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [17:51:12]free response buf [17:51:12]execute_script done [17:51:12]execute_script returns [17:51:12]free content buf [17:51:12]Sock 9.Close socket [17:51:12]Sock 9.Thread stoped [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]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]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [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:33]accept exits with 10 [18:11:33]New connection [18:11:33]New thread 3067149668 created [18:11:33]Thread 3067293028 joined [18:11:33]Waiting for new connection... [18:11:33] Sock 10.Parse request [18:11:33]Sock 10.Check first char [18:11:33]Sock 10.First char is OK [18:11:33]request: POST /json_proto HTTP/1.0 [18:11:33]Method: POST [18:11:33]URL: /json_proto [18:11:33]Method is POST - this is cgi request [18:11:33]url: /json_proto [18:11:33]query_string will be loaded in cgi processing [18:11:33]execute_cgi json_proto POST (null) [18:11:33]execute_cgi path=json_proto method=POST [18:11:33]POST find Content-Length [18:11:33]Host: 172.17.60.7:8080 [18:11:33]Content-Length: 628 [18:11:33]Content-Type: application/json [18:11:33] [18:11:33]POST finish read [18:11:33]Found Content-Length = 628 [18:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122878", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:33]execute_script... [18:11: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)122878", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:33]POST & json_proto [18:11:33]process_json_proto [18:11:33]json parsed OK: [18:11:33]protocol is kg_v1.0 [18:11:33]action value=close_receipt [18:11:33]process_action close_receipt [18:11:33]cmd_close_receipt [18:11:33]MH_GetDate [18:11:33]Write to MH i2c: F0 00 00 59 25 6D [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: F0 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: F0 09 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: F0 09 00 59 25 00 5B 50 BA 66 63 9B 67 64 0A [18:11:33]GetLastDocTimeStamp 1723485074 [18:11:33]current date 1723486299 [18:11:33]FM_GetShiftState [18:11:33]SAM_PROTO_GetShiftState [18:11:33]wFMCommunicate request_size=4 [18:11:33]MH_SAM_APDU [18:11:33]CAPDU: 80 13 01 00 [18:11:33]Write to MH i2c: E2 08 00 5A 25 80 13 01 00 00 00 00 00 FC [18:11:33]Write i2c OK [18:11:33]MH_I2C_Read... [18:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:33]Read from MH i2c: E2 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 0E 00 [18:11:33]MH_I2C_Read... [18:11:33]Read from MH i2c: E2 0E 00 5A 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 5A [18:11:33]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:11:33]wFMCommunicate OK [18:11:33]SAM_PROTO_GetShiftState done [18:11:33]FM_GetShiftState done [18:11:33]opened in 1723422684 [18:11:33]opened+sec_in_day 1723509084 [18:11:33]quantity*price = 13500 [18:11:33]sum+1 = 13501 [18:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 64 12.08.2024 18:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52746 ФПД: 130537075178484 /tax-web-control/client/api/v1/ticket?date=20240812T181139&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52746&fm=130537075178484&tin=02508201610067®Number=0000000000090834&sum=13500 0 [18:11:34]StoreToDocumentArchive [18:11:34]shift 447 fd 52746 [18:11:34]save to /storage/0447/doc_00052746 [18:11:34]save last doc name /storage/0447/doc_00052746 to /storage/kkm_last_doc_name [18:11:34]save OK [18:11:34]Clear old archive folders... [18:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=280 [18:11:34]tlvbuf is 012FE3E0 [18:11:34]SAM_PROTO_ClearQueue [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 09 00 00 [18:11:34]Write to MH i2c: E2 08 00 67 25 80 09 00 00 00 00 00 00 FE [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 67 25 00 90 00 00 [18:11:34]RAPDU: 90 00 [18:11:34]wFMCommunicate OK [18:11:34]SAM_PROTO_ClearQueue done [18:11:34]KKMCreateOFDPacket [18:11:34]OFDProtocolAddRootSTLVToBuf [18:11:34]FM_MakeSignedData [18:11:34]FM_MakeSignedData [18:11:34]SAM_PROTO_SignData [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 0D 01 02 [18:11:34]Write to MH i2c: E2 08 00 68 25 80 0D 01 02 00 00 00 00 06 [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 68 25 00 90 00 01 [18:11:34]RAPDU: 90 00 [18:11:34]wFMCommunicate OK [18:11:34]wFMCommunicate request_size=255 [18:11:34]MH_SAM_APDU [18:11:34]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 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5B 50 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 [18:11:34]Write to MH i2c: E2 02 01 69 25 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 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5B 50 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 00 00 2B [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 69 25 00 90 00 02 [18:11:34]RAPDU: 90 00 [18:11:34]wFMCommunicate OK [18:11:34]wFMCommunicate request_size=39 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0A CE 00 00 35 04 06 00 76 B9 07 FE FB F4 [18:11:34]Write to MH i2c: E2 2A 00 6A 25 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0A CE 00 00 35 04 06 00 76 B9 07 FE FB F4 00 00 BF [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 03 00 6A 25 00 90 00 03 [18:11:34]RAPDU: 90 00 [18:11:34]wFMCommunicate OK [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 0D 03 02 [18:11:34]Write to MH i2c: E2 08 00 6B 25 80 0D 03 02 00 00 00 00 0B [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 0B 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 0B 00 6B 25 00 B8 A1 04 7E 42 8B 3B 9F 90 00 8E [18:11:34]RAPDU: B8 A1 04 7E 42 8B 3B 9F 90 00 [18:11:34]wFMCommunicate OK [18:11:34]SAM_PROTO_SignData done [18:11:34]FM_MakeSignedData done [18:11:34]CreateOFDProtocolMessage [18:11:34]wFMCommunicate request_size=4 [18:11:34]MH_SAM_APDU [18:11:34]CAPDU: 80 11 00 00 [18:11:34]Write to MH i2c: E2 08 00 6C 25 80 11 00 00 00 00 00 00 0B [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:34]Read from MH i2c: E2 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 17 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: E2 17 00 6C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 5E [18:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:11:34]wFMCommunicate OK [18:11:34]CreateOFDProtocolMessage done [18:11:34]OFDSenderStorePacket 52746 [18:11:34]StoreOFDPacket docnum=52746 [18:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2C 01 00 00 33 BD 24 01 00 B5 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 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5B 50 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0A CE 00 00 35 04 06 00 76 B9 07 FE FB F4 B8 A1 04 7E 42 8B 3B 9F [18:11:34]CheckFolder [18:11:34]dirname=/storage/ofd_packets [18:11:34]CheckFolder done [18:11:34]ProducePacketName [18:11:34]name=ofd_packets/00052746 [18:11:34]NVStorageSaveData ofd_packets/00052746 [18:11:34]File name is /storage/ofd_packets/00052746 [18:11:34]Write 330 bytes [18:11:34]NVStorageSaveData done [18:11:34]OFDSenderStorePacket done [18:11:34]KKMCreateOFDPacket done [18:11:34]NVStorageSaveData kkm_last_timestamp [18:11:34]File name is /storage/kkm_last_timestamp [18:11:34]Write 4 bytes [18:11:34]NVStorageSaveData done [18:11:34]ExternCall_PrintAddStr [18:11:34]wPrintStart [18:11:34]Write to MH i2c: 01 00 00 6D 25 92 [18:11:34]Write i2c OK [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: 01 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: 01 07 00 [18:11:34]MH_I2C_Read... [18:11:34]Read from MH i2c: 01 07 00 6D 25 00 00 00 00 00 FF 0F A7 [18:11:34]RasterBufferAndPrint [18:11:34]line Счет N : (3)122878 [18:11:34]line ИНН: 02508201610067 [18:11:34]line Контрольно-Кассовый Чек [18:11:34]line ПРОДАЖА [18:11:34]line Товар: 48741231 [18:11:34]line Сигареты Winston Super Slims Silver [18:11:34]line 1.000 * 135.00 [18:11:34]line = 135.00 [18:11:34]line НДС 12% НСП 1% [18:11:34]line > о реализуемом товаре [18:11:34]line ИТОГО: 135.00 [18:11:34]line НСП 1% : 1.19 [18:11:34]line НДС 12% : 14.34 [18:11:34]line Наличными: 135.00 [18:11:34]line Безнал.: 0.00 [18:11:34]line Место: АЗС № 54 "Партнер Нефть" [18:11:34]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:11:34]line СНО: Общий режим [18:11:34]line Чек 64 12.08.2024 18:11 [18:11:34]line Смена: 447 ФФД: 1.0 [18:11:34]line ЗНМ: 0300000007 [18:11:34]line РНМ: 0000000000090834 [18:11:34]line Версия ККМ: 001 [18:11:34]line ФМ: 0000000000874715 [18:11:34]line ФД: 52746 [18:11:34]line ФПД: 130537075178484 [18:11:34]line /tax-web-control/client/api/v1/ticket?date=20240812T181139&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52746&fm=130537075178484&tin=02508201610067®Number=0000000000090834&sum=13500 [18:11:35]OFD Sender: Processing packet 52746 [packets to send 55, broken 54] [18:11:35]ProducePacketName [18:11:35]name=ofd_packets/00052746 [18:11:35]OFD Sender: To server: pG, [18:11:35]CommunicateWithHost lk.salyk.kg:30040 [18:11:35]ConnectInit lk.salyk.kg [18:11:35]line 0 [18:11:35]written 0, free lines is 4095 [18:11:35]Connected sock=9 [18:11:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2C 01 00 00 33 BD 24 01 00 B5 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 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5B 50 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0A CE 00 00 35 04 06 00 76 B9 07 FE FB F4 B8 A1 04 7E 42 8B 3B 9F [18:11:35]Write to MH i2c: 01 00 00 95 25 BA [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: 01 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: 01 07 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: 01 07 00 95 25 00 00 00 00 00 D3 0C A0 [18:11:35]RasterBufferAndPrint [18:11:35]line [18:11:35]line [18:11:35]line [18:11:35]line [18:11:35]line [18:11:35]written 0, free lines is 3289 [18:11:35]MH_Cut [18:11:35]Write to MH i2c: D1 01 00 9C 25 01 93 [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: D1 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: D1 01 00 [18:11:35]MH_I2C_Read... [18:11:35]Read from MH i2c: D1 01 00 9C 25 00 92 [18:11:35]Write to MH i2c: 01 00 00 9D 25 C2 [18:11:35]Write i2c OK [18:11:35]MH_I2C_Read... [18:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 44 4F 47 00 95 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0A CE 00 00 F4 03 04 00 F3 F7 B9 66 B6 04 01 00 00 F3 F4 56 39 D9 68 B1 67 [18:11:35]CommunicateWithHost err = 0 [18:11:35]CheckOFDResponse [18:11:35]1017 (14) - 77093643461234 [18:11:35]1041 (16) - 0000000000874715 [18:11:35]1040 (4) - 52746 [18:11:35]1012 (4) - 12.08.2024 11:54 [18:11:35]1206 (1) - 0 [18:11:35]OFD Sender: Remove packet 52746 [18:11:35]ProducePacketName [18:11:35]name=ofd_packets/00052746 [18:11:35]NVStorageDeleteData [18:11:36]OFD Sender: No OFD packet to send [18:11:36]*** Cut start [18:11:36]*** Purtial cut [18:11:36]*** Stage 1: CUTSNS_PIN = 1 [18:11:36]Read from MH i2c: 01 [18:11:36]MH_I2C_Read... [18:11:36]*** Stop cut motor [18:11:36]*** Cut end [18:11:36]Read from MH i2c: 01 07 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 FF 0F D7 [18:11:36]process_action close_receipt done [18:11:36]requested_data is exist [18:11:36]produce_requested_data [18:11:36]requested_item fm.sn is exist - process it [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 11 00 00 [18:11:36]Write to MH i2c: E2 08 00 9E 25 80 11 00 00 00 00 00 00 3D [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 17 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 17 00 9E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 90 [18:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:11:36]wFMCommunicate OK [18:11:36]requested_item fd.num is exist - process it [18:11:36]SAM_PROTO_GetFieldsCounters [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 13 00 00 [18:11:36]Write to MH i2c: E2 08 00 9F 25 80 13 00 00 00 00 00 00 40 [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 62 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 62 00 9F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0A CE 00 00 0E 04 04 00 BF 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 B8 [18:11: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0A CE 00 00 0E 04 04 00 BF 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 [18:11:36]wFMCommunicate OK [18:11:36]SAM_PROTO_GetFieldsCounters done [18:11:36]requested_item shift.num is exist - process it [18:11:36]requested_item shift.opened is exist - process it [18:11:36]req_shift_opened [18:11:36]FM_GetShiftState [18:11:36]SAM_PROTO_GetShiftState [18:11:36]wFMCommunicate request_size=4 [18:11:36]MH_SAM_APDU [18:11:36]CAPDU: 80 13 01 00 [18:11:36]Write to MH i2c: E2 08 00 A0 25 80 13 01 00 00 00 00 00 42 [18:11:36]Write i2c OK [18:11:36]MH_I2C_Read... [18:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:36]Read from MH i2c: E2 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 0E 00 [18:11:36]MH_I2C_Read... [18:11:36]Read from MH i2c: E2 0E 00 A0 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A0 [18:11:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:11:36]wFMCommunicate OK [18:11:36]SAM_PROTO_GetShiftState done [18:11:36]FM_GetShiftState done [18:11:36]req_shift_opened done [18:11:36]requested_item shift.open_date is exist - process it [18:11:36]req_shift_open_date [18:11:36]req_shift_open_date done [18:11:36]produce_requested_data done [18:11:36]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52746,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:11:36]process_action_free close_receipt [18:11:36]json_value_free [18:11:36]json_value_free done [18:11:36]process_json_proto returns [18:11:36]Send response to host [18:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52746,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:11:36]free response buf [18:11:36]execute_script done [18:11:36]execute_script returns [18:11:36]free content buf [18:11:36]Sock 10.Close socket [18:11:36]Sock 10.Thread stoped [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]accept exits with 7 [18:17:06]New connection [18:17:06]New thread 3067293028 created [18:17:06]Thread 3067149668 joined [18:17:06]Waiting for new connection... [18:17:06] Sock 7.Parse request [18:17:06]Sock 7.Check first char [18:17:06]Sock 7.First char is OK [18:17:06]request: POST /json_proto HTTP/1.0 [18:17:06]Method: POST [18:17:06]URL: /json_proto [18:17:06]Method is POST - this is cgi request [18:17:06]url: /json_proto [18:17:06]query_string will be loaded in cgi processing [18:17:06]execute_cgi json_proto POST (null) [18:17:06]execute_cgi path=json_proto method=POST [18:17:06]POST find Content-Length [18:17:06]Host: 172.17.60.7:8080 [18:17:06]Content-Length: 624 [18:17:06]Content-Type: application/json [18:17:06] [18:17:06]POST finish read [18:17:06]Found Content-Length = 624 [18:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122879", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:06]execute_script... [18:17: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)122879", "tax_sys" : 0, "items" : [ { "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:06]POST & json_proto [18:17:06]process_json_proto [18:17:06]json parsed OK: [18:17:06]protocol is kg_v1.0 [18:17:06]action value=close_receipt [18:17:06]process_action close_receipt [18:17:06]cmd_close_receipt [18:17:06]MH_GetDate [18:17:06]Write to MH i2c: F0 00 00 A1 25 B5 [18:17:06]Write i2c OK [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: F0 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: F0 09 00 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: F0 09 00 A1 25 00 A8 51 BA 66 63 9B 67 64 A0 [18:17:06]GetLastDocTimeStamp 1723486299 [18:17:06]current date 1723486632 [18:17:06]FM_GetShiftState [18:17:06]SAM_PROTO_GetShiftState [18:17:06]wFMCommunicate request_size=4 [18:17:06]MH_SAM_APDU [18:17:06]CAPDU: 80 13 01 00 [18:17:06]Write to MH i2c: E2 08 00 A2 25 80 13 01 00 00 00 00 00 44 [18:17:06]Write i2c OK [18:17:06]MH_I2C_Read... [18:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:06]Read from MH i2c: E2 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 0E 00 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 0E 00 A2 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A2 [18:17:06]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:17:06]wFMCommunicate OK [18:17:06]SAM_PROTO_GetShiftState done [18:17:06]FM_GetShiftState done [18:17:06]opened in 1723422684 [18:17:06]opened+sec_in_day 1723509084 [18:17:06]quantity*price = 5000 [18:17:06]sum+1 = 5001 [18:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 65 12.08.2024 18:17 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52747 ФПД: 158538547251373 /tax-web-control/client/api/v1/ticket?date=20240812T181712&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52747&fm=158538547251373&tin=02508201610067®Number=0000000000090834&sum=5000 0 [18:17:07]StoreToDocumentArchive [18:17:07]shift 447 fd 52747 [18:17:07]save to /storage/0447/doc_00052747 [18:17:07]save last doc name /storage/0447/doc_00052747 to /storage/kkm_last_doc_name [18:17:07]save OK [18:17:07]Clear old archive folders... [18:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=267 [18:17:07]tlvbuf is 01291B30 [18:17:07]SAM_PROTO_ClearQueue [18:17:07]wFMCommunicate request_size=4 [18:17:07]MH_SAM_APDU [18:17:07]CAPDU: 80 09 00 00 [18:17:07]Write to MH i2c: E2 08 00 AF 25 80 09 00 00 00 00 00 00 46 [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:07]Read from MH i2c: E2 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [18:17:07]RAPDU: 90 00 [18:17:07]wFMCommunicate OK [18:17:07]SAM_PROTO_ClearQueue done [18:17:07]KKMCreateOFDPacket [18:17:07]OFDProtocolAddRootSTLVToBuf [18:17:07]FM_MakeSignedData [18:17:07]FM_MakeSignedData [18:17:07]SAM_PROTO_SignData [18:17:07]wFMCommunicate request_size=4 [18:17:07]MH_SAM_APDU [18:17:07]CAPDU: 80 0D 01 02 [18:17:07]Write to MH i2c: E2 08 00 B0 25 80 0D 01 02 00 00 00 00 4E [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:07]Read from MH i2c: E2 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [18:17:07]RAPDU: 90 00 [18:17:07]wFMCommunicate OK [18:17:07]wFMCommunicate request_size=255 [18:17:07]MH_SAM_APDU [18:17:07]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A8 51 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [18:17:07]Write to MH i2c: E2 02 01 B1 25 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A8 51 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 23 [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:07]Read from MH i2c: E2 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 B1 25 00 90 00 4A [18:17:07]RAPDU: 90 00 [18:17:07]wFMCommunicate OK [18:17:07]wFMCommunicate request_size=26 [18:17:07]MH_SAM_APDU [18:17:07]CAPDU: 80 0D 02 02 15 37 31 35 10 04 04 00 0B CE 00 00 35 04 06 00 90 30 A1 CA C8 AD [18:17:07]Write to MH i2c: E2 1D 00 B2 25 80 0D 02 02 15 00 37 31 35 10 04 04 00 0B CE 00 00 35 04 06 00 90 30 A1 CA C8 AD 00 00 E8 [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:07]Read from MH i2c: E2 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [18:17:07]RAPDU: 90 00 [18:17:07]wFMCommunicate OK [18:17:07]wFMCommunicate request_size=4 [18:17:07]MH_SAM_APDU [18:17:07]CAPDU: 80 0D 03 02 [18:17:07]Write to MH i2c: E2 08 00 B3 25 80 0D 03 02 00 00 00 00 53 [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:07]Read from MH i2c: E2 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 0B 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 0B 00 B3 25 00 FE 5B 75 06 A1 87 4A 11 90 00 AB [18:17:07]RAPDU: FE 5B 75 06 A1 87 4A 11 90 00 [18:17:07]wFMCommunicate OK [18:17:07]SAM_PROTO_SignData done [18:17:07]FM_MakeSignedData done [18:17:07]CreateOFDProtocolMessage [18:17:07]wFMCommunicate request_size=4 [18:17:07]MH_SAM_APDU [18:17:07]CAPDU: 80 11 00 00 [18:17:07]Write to MH i2c: E2 08 00 B4 25 80 11 00 00 00 00 00 00 53 [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:07]Read from MH i2c: E2 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 17 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: E2 17 00 B4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 A6 [18:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:17:07]wFMCommunicate OK [18:17:07]CreateOFDProtocolMessage done [18:17:07]OFDSenderStorePacket 52747 [18:17:07]StoreOFDPacket docnum=52747 [18:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1F 01 00 00 38 3D 17 01 A1 8C 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A8 51 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0B CE 00 00 35 04 06 00 90 30 A1 CA C8 AD FE 5B 75 06 A1 87 4A 11 [18:17:07]CheckFolder [18:17:07]dirname=/storage/ofd_packets [18:17:07]CheckFolder done [18:17:07]ProducePacketName [18:17:07]name=ofd_packets/00052747 [18:17:07]NVStorageSaveData ofd_packets/00052747 [18:17:07]File name is /storage/ofd_packets/00052747 [18:17:07]Write 317 bytes [18:17:07]NVStorageSaveData done [18:17:07]OFDSenderStorePacket done [18:17:07]KKMCreateOFDPacket done [18:17:07]NVStorageSaveData kkm_last_timestamp [18:17:07]File name is /storage/kkm_last_timestamp [18:17:07]Write 4 bytes [18:17:07]NVStorageSaveData done [18:17:07]ExternCall_PrintAddStr [18:17:07]wPrintStart [18:17:07]Write to MH i2c: 01 00 00 B5 25 DA [18:17:07]Write i2c OK [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 07 00 [18:17:07]MH_I2C_Read... [18:17:07]Read from MH i2c: 01 07 00 B5 25 00 00 00 00 00 FF 0F EF [18:17:07]RasterBufferAndPrint [18:17:07]line Счет N : (3)122879 [18:17:07]line ИНН: 02508201610067 [18:17:07]line Контрольно-Кассовый Чек [18:17:07]line ПРОДАЖА [18:17:07]line Товар: 4700000160181 [18:17:07]line Вода Байтик 1л [18:17:07]line 1.000 * 50.00 [18:17:07]line = 50.00 [18:17:07]line НДС 12% НСП 1% [18:17:07]line > о реализуемом товаре [18:17:07]line ИТОГО: 50.00 [18:17:07]line НСП 1% : 0.44 [18:17:07]line НДС 12% : 5.31 [18:17:07]line Наличными: 50.00 [18:17:07]line Безнал.: 0.00 [18:17:07]line Место: АЗС № 54 "Партнер Нефть" [18:17:07]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:17:07]line СНО: Общий режим [18:17:07]line Чек 65 12.08.2024 18:17 [18:17:07]line Смена: 447 ФФД: 1.0 [18:17:07]line ЗНМ: 0300000007 [18:17:07]line РНМ: 0000000000090834 [18:17:07]line Версия ККМ: 001 [18:17:07]line ФМ: 0000000000874715 [18:17:07]line ФД: 52747 [18:17:07]line ФПД: 158538547251373 [18:17:07]line /tax-web-control/client/api/v1/ticket?date=20240812T181712&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52747&fm=158538547251373&tin=02508201610067®Number=0000000000090834&sum=5000 [18:17:08]line 0 [18:17:08]OFD Sender: Processing packet 52747 [packets to send 55, broken 54] [18:17:08]ProducePacketName [18:17:08]name=ofd_packets/00052747 [18:17:08]OFD Sender: To server: pG, [18:17:08]CommunicateWithHost lk.salyk.kg:30040 [18:17:08]ConnectInit lk.salyk.kg [18:17:08]written 0, free lines is 4095 [18:17:08]Connected sock=10 [18:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 1F 01 00 00 38 3D 17 01 A1 8C 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A8 51 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0B CE 00 00 35 04 06 00 90 30 A1 CA C8 AD FE 5B 75 06 A1 87 4A 11 [18:17:08]Write to MH i2c: 01 00 00 DC 25 01 [18:17:08]Write i2c OK [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: 01 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: 01 07 00 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 E6 0C FA [18:17:08]RasterBufferAndPrint [18:17:08]line [18:17:08]line [18:17:08]line [18:17:08]line [18:17:08]line [18:17:08]written 0, free lines is 3308 [18:17:08]MH_Cut [18:17:08]Write to MH i2c: D1 01 00 E3 25 01 DA [18:17:08]Write i2c OK [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: D1 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: D1 01 00 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: D1 01 00 E3 25 00 D9 [18:17:08]Write to MH i2c: 01 00 00 E4 25 09 [18:17:08]Write i2c OK [18:17:08]MH_I2C_Read... [18:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 EE A8 47 00 8F 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 34 37 31 35 10 04 04 00 0B CE 00 00 F4 03 04 00 40 F9 B9 66 B6 04 01 00 00 06 8C 0B B6 04 D1 FE 62 [18:17:08]CommunicateWithHost err = 0 [18:17:08]CheckOFDResponse [18:17:08]1017 (14) - 77093643461234 [18:17:08]1041 (16) - 0000000000874715 [18:17:08]1040 (4) - 52747 [18:17:08]1012 (4) - 12.08.2024 12:00 [18:17:08]1206 (1) - 0 [18:17:08]OFD Sender: Remove packet 52747 [18:17:08]ProducePacketName [18:17:08]name=ofd_packets/00052747 [18:17:08]NVStorageDeleteData [18:17:09]OFD Sender: No OFD packet to send [18:17:09]*** Cut start [18:17:09]*** Purtial cut [18:17:09]*** Stage 1: CUTSNS_PIN = 1 [18:17:09]Read from MH i2c: 01 [18:17:09]MH_I2C_Read... [18:17:09]*** Stop cut motor [18:17:09]*** Cut end [18:17:09]Read from MH i2c: 01 07 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: 01 07 00 E4 25 00 00 00 00 00 FF 0F 1E [18:17:09]process_action close_receipt done [18:17:09]requested_data is exist [18:17:09]produce_requested_data [18:17:09]requested_item fm.sn is exist - process it [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 11 00 00 [18:17:09]Write to MH i2c: E2 08 00 E5 25 80 11 00 00 00 00 00 00 84 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 17 00 E5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D7 [18:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:17:09]wFMCommunicate OK [18:17:09]requested_item fd.num is exist - process it [18:17:09]SAM_PROTO_GetFieldsCounters [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 13 00 00 [18:17:09]Write to MH i2c: E2 08 00 E6 25 80 13 00 00 00 00 00 00 87 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 62 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 62 00 E6 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0B CE 00 00 0E 04 04 00 BF 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 03 [18:17: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0B CE 00 00 0E 04 04 00 BF 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 [18:17:09]wFMCommunicate OK [18:17:09]SAM_PROTO_GetFieldsCounters done [18:17:09]requested_item shift.num is exist - process it [18:17:09]requested_item shift.opened is exist - process it [18:17:09]req_shift_opened [18:17:09]FM_GetShiftState [18:17:09]SAM_PROTO_GetShiftState [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 13 01 00 [18:17:09]Write to MH i2c: E2 08 00 E7 25 80 13 01 00 00 00 00 00 89 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 0E 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 0E 00 E7 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E7 [18:17:09]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:17:09]wFMCommunicate OK [18:17:09]SAM_PROTO_GetShiftState done [18:17:09]FM_GetShiftState done [18:17:09]req_shift_opened done [18:17:09]requested_item shift.open_date is exist - process it [18:17:09]req_shift_open_date [18:17:09]req_shift_open_date done [18:17:09]produce_requested_data done [18:17:09]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52747,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:17:09]process_action_free close_receipt [18:17:09]json_value_free [18:17:09]json_value_free done [18:17:09]process_json_proto returns [18:17:09]Send response to host [18:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52747,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:17:09]free response buf [18:17:09]execute_script done [18:17:09]execute_script returns [18:17:09]free content buf [18:17:09]Sock 7.Close socket [18:17:09]Sock 7.Thread stoped [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:30]accept exits with 9 [18:19:30]New connection [18:19:30]New thread 3067149668 created [18:19:30]Thread 3067293028 joined [18:19:30]Waiting for new connection... [18:19:30] Sock 9.Parse request [18:19:30]Sock 9.Check first char [18:19:30]Sock 9.First char is OK [18:19:30]request: POST /json_proto HTTP/1.0 [18:19:30]Method: POST [18:19:30]URL: /json_proto [18:19:30]Method is POST - this is cgi request [18:19:30]url: /json_proto [18:19:30]query_string will be loaded in cgi processing [18:19:30]execute_cgi json_proto POST (null) [18:19:30]execute_cgi path=json_proto method=POST [18:19:30]POST find Content-Length [18:19:30]Host: 172.17.60.7:8080 [18:19:30]Content-Length: 215 [18:19:30]Content-Type: application/json [18:19:30] [18:19:30]POST finish read [18:19:30]Found Content-Length = 215 [18:19:30]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" ] } } [18:19:30]execute_script... [18:19:30]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" ] } } [18:19:30]POST & json_proto [18:19:30]process_json_proto [18:19:30]json parsed OK: [18:19:30]protocol is kg_v1.0 [18:19:30]action value=get_value [18:19:30]process_action get_value [18:19:30]cmd_get_value [18:19:30]process_action get_value done [18:19:30]requested_data is exist [18:19:30]produce_requested_data [18:19:30]requested_item kkm.sn is exist - process it [18:19:30]requested_item kkm.ver is exist - process it [18:19:30]requested_item fm.sn is exist - process it [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 11 00 00 [18:19:30]Write to MH i2c: E2 08 00 E8 25 80 11 00 00 00 00 00 00 87 [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 17 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 17 00 E8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 DA [18:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:19:30]wFMCommunicate OK [18:19:30]requested_item fd.num is exist - process it [18:19:30]SAM_PROTO_GetFieldsCounters [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 13 00 00 [18:19:30]Write to MH i2c: E2 08 00 E9 25 80 13 00 00 00 00 00 00 8A [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 62 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 62 00 E9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0B CE 00 00 0E 04 04 00 BF 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 06 [18:19: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0B CE 00 00 0E 04 04 00 BF 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 [18:19:30]wFMCommunicate OK [18:19:30]SAM_PROTO_GetFieldsCounters done [18:19:30]requested_item shift.num is exist - process it [18:19:30]requested_item shift.opened is exist - process it [18:19:30]req_shift_opened [18:19:30]FM_GetShiftState [18:19:30]SAM_PROTO_GetShiftState [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 13 01 00 [18:19:30]Write to MH i2c: E2 08 00 EA 25 80 13 01 00 00 00 00 00 8C [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 0E 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 0E 00 EA 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 EA [18:19:30]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:19:30]wFMCommunicate OK [18:19:30]SAM_PROTO_GetShiftState done [18:19:30]FM_GetShiftState done [18:19:30]req_shift_opened done [18:19:30]requested_item shift.open_date is exist - process it [18:19:30]req_shift_open_date [18:19:30]req_shift_open_date done [18:19:30]produce_requested_data done [18:19:30]produce_requested_data return {"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52747,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:19:30]process_action_free get_value [18:19:30]json_value_free [18:19:30]json_value_free done [18:19:30]process_json_proto returns [18:19:30]Send response to host [18:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52747,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:19:30]free response buf [18:19:30]execute_script done [18:19:30]execute_script returns [18:19:30]free content buf [18:19:30]Sock 9.Close socket [18:19:30]Sock 9.Thread stoped [18:19:30]accept exits with 10 [18:19:30]New connection [18:19:30]New thread 3067293028 created [18:19:30]Thread 3067149668 joined [18:19:30]Waiting for new connection... [18:19:30] Sock 10.Parse request [18:19:30]Sock 10.Check first char [18:19:30]Sock 10.First char is OK [18:19:30]request: POST /json_proto HTTP/1.0 [18:19:30]Method: POST [18:19:30]URL: /json_proto [18:19:30]Method is POST - this is cgi request [18:19:30]url: /json_proto [18:19:30]query_string will be loaded in cgi processing [18:19:30]execute_cgi json_proto POST (null) [18:19:30]execute_cgi path=json_proto method=POST [18:19:30]POST find Content-Length [18:19:30]Host: 172.17.60.7:8080 [18:19:30]Content-Length: 331 [18:19:30]Content-Type: application/json [18:19:30] [18:19:30]POST finish read [18:19:30]Found Content-Length = 331 [18:19:30]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" ] } } [18:19:30]execute_script... [18:19:30]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" ] } } [18:19:30]POST & json_proto [18:19:30]process_json_proto [18:19:30]json parsed OK: [18:19:30]protocol is kg_v1.0 [18:19:30]action value=get_value [18:19:30]process_action get_value [18:19:30]cmd_get_value [18:19:30]process_action get_value done [18:19:30]requested_data is exist [18:19:30]produce_requested_data [18:19:30]requested_item fm.sale.total is exist - process it [18:19:30]SAM_PROTO_GetFMData [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 13 03 00 [18:19:30]Write to MH i2c: E2 08 00 EB 25 80 13 03 00 00 00 00 00 8F [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 FD 00 [18:19:30]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 EB 25 00 C1 04 85 04 BD 04 6E 04 04 00 8B CA 00 00 69 04 A0 00 6F 04 04 00 6A CA 00 00 B1 04 04 00 8E 2B BA 41 70 04 04 00 16 47 2A 37 72 04 04 00 78 E4 8F 0A 00 04 7C 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 1C C6 FA 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 CA 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 38 [18:19:31]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 8B CA 00 00 69 04 A0 00 6F 04 04 00 6A CA 00 00 B1 04 04 00 8E 2B BA 41 70 04 04 00 16 47 2A 37 72 04 04 00 78 E4 8F 0A 00 04 7C 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 1C C6 FA 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 04 CA 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 17 00 00 [18:19:31]Write to MH i2c: E2 08 00 EC 25 80 17 00 00 00 00 00 00 91 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 EC 25 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [18:19:31]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 17 00 00 [18:19:31]Write to MH i2c: E2 08 00 ED 25 80 17 00 00 00 00 00 00 92 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 ED 25 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 32 [18:19:31]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 17 00 00 [18:19:31]Write to MH i2c: E2 08 00 EE 25 80 17 00 00 00 00 00 00 93 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 FD 00 EE 25 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 18 [18:19:31]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 17 00 00 [18:19:31]Write to MH i2c: E2 08 00 EF 25 80 17 00 00 00 00 00 00 94 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 DE 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 DE 00 EF 25 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [18:19:32]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_GetFMData done [18:19:32]requested_item fm.sale_refund.total is exist - process it [18:19:32]requested_item fm.buy.total is exist - process it [18:19:32]requested_item shift.sale.total is exist - process it [18:19:32]SAM_PROTO_GetShiftData [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 13 02 00 [18:19:32]Write to MH i2c: E2 08 00 F0 25 80 13 02 00 00 00 00 00 93 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 FD 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 FD 00 F0 25 00 AE 04 AA 04 AA 04 6E 04 04 00 41 00 00 00 69 04 9B 00 6F 04 04 00 41 00 00 00 B1 04 03 00 3C 3A 16 70 04 03 00 0C 25 06 72 04 03 00 30 15 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 5C 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 11 [18:19:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 41 00 00 00 69 04 9B 00 6F 04 04 00 41 00 00 00 B1 04 03 00 3C 3A 16 70 04 03 00 0C 25 06 72 04 03 00 30 15 10 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 43 5C 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 50 32 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [18:19:32]wFMCommunicate OK [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 17 00 00 [18:19:32]Write to MH i2c: E2 08 00 F1 25 80 17 00 00 00 00 00 00 96 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 FD 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 FD 00 F1 25 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 B8 [18:19:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [18:19:32]wFMCommunicate OK [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 17 00 00 [18:19:32]Write to MH i2c: E2 08 00 F2 25 80 17 00 00 00 00 00 00 97 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:19:33]Read from MH i2c: E2 [18:19:33]MH_I2C_Read... [18:19:33]Read from MH i2c: E2 FD 00 [18:19:33]MH_I2C_Read... [18:19:33]Read from MH i2c: E2 FD 00 F2 25 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 4E [18:19:33]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [18:19:33]wFMCommunicate OK [18:19:33]wFMCommunicate request_size=4 [18:19:33]MH_SAM_APDU [18:19:33]CAPDU: 80 17 00 00 [18:19:33]Write to MH i2c: E2 08 00 F3 25 80 17 00 00 00 00 00 00 98 [18:19:33]Write i2c OK [18:19:33]MH_I2C_Read... [18:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:19:33]Read from MH i2c: E2 [18:19:33]MH_I2C_Read... [18:19:33]Read from MH i2c: E2 FD 00 [18:19:33]MH_I2C_Read... [18:19:33]Read from MH i2c: E2 FD 00 F3 25 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0A [18:19:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [18:19:33]wFMCommunicate OK [18:19:33]wFMCommunicate request_size=4 [18:19:33]MH_SAM_APDU [18:19:33]CAPDU: 80 17 00 00 [18:19:33]Write to MH i2c: E2 08 00 F4 25 80 17 00 00 00 00 00 00 99 [18:19:33]Write i2c OK [18:19:33]MH_I2C_Read... [18:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [18:19:33]Read from MH i2c: E2 [18:19:33]MH_I2C_Read... [18:19:33]Read from MH i2c: E2 CB 00 [18:19:33]MH_I2C_Read... [18:19:33]Read from MH i2c: E2 CB 00 F4 25 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [18:19:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:19:33]wFMCommunicate OK [18:19:33]SAM_PROTO_GetShiftData done [18:19:33]requested_item shift.sale.total_cash is exist - process it [18:19:33]requested_item shift.sale_refund.total is exist - process it [18:19:33]requested_item shift.sale_refund.total_cash is exist - process it [18:19:33]requested_item shift.buy.total is exist - process it [18:19:33]requested_item shift.buy.total_cash is exist - process it [18:19:33]produce_requested_data done [18:19:33]produce_requested_data return {"fm.sale.total":11027198.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":14567.00,"shift.sale.total_cash":4027.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} [18:19:33]process_action_free get_value [18:19:33]json_value_free [18:19:33]json_value_free done [18:19:33]process_json_proto returns [18:19:33]Send response to host [18:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11027198.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":14567.00,"shift.sale.total_cash":4027.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}}} [18:19:33]free response buf [18:19:33]execute_script done [18:19:33]execute_script returns [18:19:33]free content buf [18:19:33]Sock 10.Close socket [18:19:33]Sock 10.Thread stoped [18:19:34]OFD Sender: No OFD packet to send [18:19:36]accept exits with 7 [18:19:36]New connection [18:19:36]New thread 3067149668 created [18:19:36]Thread 3067293028 joined [18:19:36]Waiting for new connection... [18:19:36] Sock 7.Parse request [18:19:36]Sock 7.Check first char [18:19:36]Sock 7.First char is OK [18:19:36]request: POST /json_proto HTTP/1.0 [18:19:36]Method: POST [18:19:36]URL: /json_proto [18:19:36]Method is POST - this is cgi request [18:19:36]url: /json_proto [18:19:36]query_string will be loaded in cgi processing [18:19:36]execute_cgi json_proto POST (null) [18:19:36]execute_cgi path=json_proto method=POST [18:19:36]POST find Content-Length [18:19:36]Host: 172.17.60.7:8080 [18:19:36]Content-Length: 703 [18:19:36]Content-Type: application/json [18:19:36] [18:19:36]POST finish read [18:19:36]Found Content-Length = 703 [18:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122880", "tax_sys" : 0, "items" : [ { "code": "4607035653582", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u0432\u0430\u0440.\u0441\u0433\u0443\u0449 290", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:36]execute_script... [18:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122880", "tax_sys" : 0, "items" : [ { "code": "4607035653582", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u0432\u0430\u0440.\u0441\u0433\u0443\u0449 290", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:36]POST & json_proto [18:19:36]process_json_proto [18:19:36]json parsed OK: [18:19:36]protocol is kg_v1.0 [18:19:36]action value=close_receipt [18:19:36]process_action close_receipt [18:19:36]cmd_close_receipt [18:19:36]MH_GetDate [18:19:36]Write to MH i2c: F0 00 00 F5 25 09 [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: F0 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: F0 09 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: F0 09 00 F5 25 00 3E 52 BA 66 63 9B 67 64 8B [18:19:36]GetLastDocTimeStamp 1723486632 [18:19:36]current date 1723486782 [18:19:36]FM_GetShiftState [18:19:36]SAM_PROTO_GetShiftState [18:19:36]wFMCommunicate request_size=4 [18:19:36]MH_SAM_APDU [18:19:36]CAPDU: 80 13 01 00 [18:19:36]Write to MH i2c: E2 08 00 F6 25 80 13 01 00 00 00 00 00 98 [18:19:36]Write i2c OK [18:19:36]MH_I2C_Read... [18:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:36]Read from MH i2c: E2 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: E2 0E 00 [18:19:36]MH_I2C_Read... [18:19:36]Read from MH i2c: E2 0E 00 F6 25 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 F6 [18:19:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:19:36]wFMCommunicate OK [18:19:36]SAM_PROTO_GetShiftState done [18:19:36]FM_GetShiftState done [18:19:36]opened in 1723422684 [18:19:36]opened+sec_in_day 1723509084 [18:19:36]quantity*price = 15000 [18:19:36]sum+1 = 15001 [18:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 66 12.08.2024 18:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52748 ФПД: 269243264639804 /tax-web-control/client/api/v1/ticket?date=20240812T181942&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52748&fm=269243264639804&tin=02508201610067®Number=0000000000090834&sum=15000 0 [18:19:37]StoreToDocumentArchive [18:19:37]shift 447 fd 52748 [18:19:37]save to /storage/0447/doc_00052748 [18:19:37]save last doc name /storage/0447/doc_00052748 to /storage/kkm_last_doc_name [18:19:37]save OK [18:19:37]Clear old archive folders... [18:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=295 [18:19:37]tlvbuf is 01333EA0 [18:19:37]SAM_PROTO_ClearQueue [18:19:37]wFMCommunicate request_size=4 [18:19:37]MH_SAM_APDU [18:19:37]CAPDU: 80 09 00 00 [18:19:37]Write to MH i2c: E2 08 00 03 26 80 09 00 00 00 00 00 00 9B [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:37]Read from MH i2c: E2 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [18:19:37]RAPDU: 90 00 [18:19:37]wFMCommunicate OK [18:19:37]SAM_PROTO_ClearQueue done [18:19:37]KKMCreateOFDPacket [18:19:37]OFDProtocolAddRootSTLVToBuf [18:19:37]FM_MakeSignedData [18:19:37]FM_MakeSignedData [18:19:37]SAM_PROTO_SignData [18:19:37]wFMCommunicate request_size=4 [18:19:37]MH_SAM_APDU [18:19:37]CAPDU: 80 0D 01 02 [18:19:37]Write to MH i2c: E2 08 00 04 26 80 0D 01 02 00 00 00 00 A3 [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:37]Read from MH i2c: E2 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [18:19:37]RAPDU: 90 00 [18:19:37]wFMCommunicate OK [18:19:37]wFMCommunicate request_size=255 [18:19:37]MH_SAM_APDU [18:19:37]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [18:19:37]Write to MH i2c: E2 02 01 05 26 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 18 [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:37]Read from MH i2c: E2 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [18:19:37]RAPDU: 90 00 [18:19:37]wFMCommunicate OK [18:19:37]wFMCommunicate request_size=54 [18:19:37]MH_SAM_APDU [18:19:37]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0C CE 00 00 35 04 06 00 F4 E0 15 25 A3 3C [18:19:37]Write to MH i2c: E2 39 00 06 26 80 0D 02 02 31 00 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0C CE 00 00 35 04 06 00 F4 E0 15 25 A3 3C 00 00 93 [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:37]Read from MH i2c: E2 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [18:19:37]RAPDU: 90 00 [18:19:37]wFMCommunicate OK [18:19:37]wFMCommunicate request_size=4 [18:19:37]MH_SAM_APDU [18:19:37]CAPDU: 80 0D 03 02 [18:19:37]Write to MH i2c: E2 08 00 07 26 80 0D 03 02 00 00 00 00 A8 [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:37]Read from MH i2c: E2 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 0B 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 0B 00 07 26 00 73 5F 3C 82 11 A9 DC CE 90 00 9D [18:19:37]RAPDU: 73 5F 3C 82 11 A9 DC CE 90 00 [18:19:37]wFMCommunicate OK [18:19:37]SAM_PROTO_SignData done [18:19:37]FM_MakeSignedData done [18:19:37]CreateOFDProtocolMessage [18:19:37]wFMCommunicate request_size=4 [18:19:37]MH_SAM_APDU [18:19:37]CAPDU: 80 11 00 00 [18:19:37]Write to MH i2c: E2 08 00 08 26 80 11 00 00 00 00 00 00 A8 [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:37]Read from MH i2c: E2 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 17 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: E2 17 00 08 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 FB [18:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:19:37]wFMCommunicate OK [18:19:37]CreateOFDProtocolMessage done [18:19:37]OFDSenderStorePacket 52748 [18:19:37]StoreOFDPacket docnum=52748 [18:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3B 01 00 00 4A 9E 33 01 98 9D 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0C CE 00 00 35 04 06 00 F4 E0 15 25 A3 3C 73 5F 3C 82 11 A9 DC CE [18:19:37]CheckFolder [18:19:37]dirname=/storage/ofd_packets [18:19:37]CheckFolder done [18:19:37]ProducePacketName [18:19:37]name=ofd_packets/00052748 [18:19:37]NVStorageSaveData ofd_packets/00052748 [18:19:37]File name is /storage/ofd_packets/00052748 [18:19:37]Write 345 bytes [18:19:37]NVStorageSaveData done [18:19:37]OFDSenderStorePacket done [18:19:37]KKMCreateOFDPacket done [18:19:37]NVStorageSaveData kkm_last_timestamp [18:19:37]File name is /storage/kkm_last_timestamp [18:19:37]Write 4 bytes [18:19:37]NVStorageSaveData done [18:19:37]ExternCall_PrintAddStr [18:19:37]wPrintStart [18:19:37]Write to MH i2c: 01 00 00 09 26 2F [18:19:37]Write i2c OK [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: 01 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: 01 07 00 [18:19:37]MH_I2C_Read... [18:19:37]Read from MH i2c: 01 07 00 09 26 00 00 00 00 00 FF 0F 44 [18:19:37]RasterBufferAndPrint [18:19:37]line Счет N : (3)122880 [18:19:37]line ИНН: 02508201610067 [18:19:37]line Контрольно-Кассовый Чек [18:19:37]line ПРОДАЖА [18:19:37]line Товар: 4607035653582 [18:19:37]line Вафли Голландские вар.сгущ 290 [18:19:37]line 1.000 * 150.00 [18:19:37]line = 150.00 [18:19:37]line НДС 12% НСП 1% [18:19:37]line > о реализуемом товаре [18:19:37]line ИТОГО: 150.00 [18:19:37]line НСП 1% : 1.33 [18:19:37]line НДС 12% : 15.93 [18:19:37]line Наличными: 150.00 [18:19:37]line Безнал.: 0.00 [18:19:37]line Место: АЗС № 54 "Партнер Нефть" [18:19:37]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:19:37]line СНО: Общий режим [18:19:37]line Чек 66 12.08.2024 18:19 [18:19:37]line Смена: 447 ФФД: 1.0 [18:19:37]line ЗНМ: 0300000007 [18:19:37]line РНМ: 0000000000090834 [18:19:37]line Версия ККМ: 001 [18:19:37]line ФМ: 0000000000874715 [18:19:37]line ФД: 52748 [18:19:37]line ФПД: 269243264639804 [18:19:37]line /tax-web-control/client/api/v1/ticket?date=20240812T181942&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52748&fm=269243264639804&tin=02508201610067®Number=0000000000090834&sum=15000 [18:19:37]line 0 [18:19:37]OFD Sender: Processing packet 52748 [packets to send 55, broken 54] [18:19:37]ProducePacketName [18:19:37]name=ofd_packets/00052748 [18:19:37]OFD Sender: To server: pG, [18:19:37]CommunicateWithHost lk.salyk.kg:30040 [18:19:37]ConnectInit lk.salyk.kg [18:19:37]written 0, free lines is 4095 [18:19:38]Connected sock=10 [18:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3B 01 00 00 4A 9E 33 01 98 9D 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 3E 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0C CE 00 00 35 04 06 00 F4 E0 15 25 A3 3C 73 5F 3C 82 11 A9 DC CE [18:19:38]Write to MH i2c: 01 00 00 31 26 57 [18:19:38]Write i2c OK [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: 01 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: 01 07 00 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: 01 07 00 31 26 00 00 00 00 00 DC 0C 46 [18:19:38]RasterBufferAndPrint [18:19:38]line [18:19:38]line [18:19:38]line [18:19:38]line [18:19:38]line [18:19:38]written 0, free lines is 3311 [18:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 1C 0A 47 00 81 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 34 37 31 35 10 04 04 00 0C CE 00 00 F4 03 04 00 D6 F9 B9 66 B6 04 01 00 00 89 EF 3E 32 94 C3 77 5B [18:19:38]CommunicateWithHost err = 0 [18:19:38]CheckOFDResponse [18:19:38]1017 (14) - 77093643461234 [18:19:38]1041 (16) - 0000000000874715 [18:19:38]1040 (4) - 52748 [18:19:38]1012 (4) - 12.08.2024 12:02 [18:19:38]1206 (1) - 0 [18:19:38]OFD Sender: Remove packet 52748 [18:19:38]ProducePacketName [18:19:38]name=ofd_packets/00052748 [18:19:38]NVStorageDeleteData [18:19:38]MH_Cut [18:19:38]Write to MH i2c: D1 01 00 38 26 01 30 [18:19:38]Write i2c OK [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: D1 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: D1 01 00 [18:19:38]MH_I2C_Read... [18:19:38]Read from MH i2c: D1 01 00 38 26 00 2F [18:19:38]Write to MH i2c: 01 00 00 39 26 5F [18:19:38]Write i2c OK [18:19:38]MH_I2C_Read... [18:19:38]OFD Sender: No OFD packet to send [18:19:39]*** Cut start [18:19:39]*** Purtial cut [18:19:39]*** Stage 1: CUTSNS_PIN = 1 [18:19:39]Read from MH i2c: 01 [18:19:39]MH_I2C_Read... [18:19:39]*** Stop cut motor [18:19:39]*** Cut end [18:19:39]Read from MH i2c: 01 07 00 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: 01 07 00 39 26 00 00 00 00 00 FF 0F 74 [18:19:39]process_action close_receipt done [18:19:39]requested_data is exist [18:19:39]produce_requested_data [18:19:39]requested_item fm.sn is exist - process it [18:19:39]wFMCommunicate request_size=4 [18:19:39]MH_SAM_APDU [18:19:39]CAPDU: 80 11 00 00 [18:19:39]Write to MH i2c: E2 08 00 3A 26 80 11 00 00 00 00 00 00 DA [18:19:39]Write i2c OK [18:19:39]MH_I2C_Read... [18:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:39]Read from MH i2c: E2 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: E2 17 00 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: E2 17 00 3A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 2D [18:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:19:39]wFMCommunicate OK [18:19:39]requested_item fd.num is exist - process it [18:19:39]SAM_PROTO_GetFieldsCounters [18:19:39]wFMCommunicate request_size=4 [18:19:39]MH_SAM_APDU [18:19:39]CAPDU: 80 13 00 00 [18:19:39]Write to MH i2c: E2 08 00 3B 26 80 13 00 00 00 00 00 00 DD [18:19:39]Write i2c OK [18:19:39]MH_I2C_Read... [18:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:39]Read from MH i2c: E2 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: E2 62 00 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: E2 62 00 3B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0C CE 00 00 0E 04 04 00 BF 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 5D [18:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0C CE 00 00 0E 04 04 00 BF 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 [18:19:39]wFMCommunicate OK [18:19:39]SAM_PROTO_GetFieldsCounters done [18:19:39]requested_item shift.num is exist - process it [18:19:39]requested_item shift.opened is exist - process it [18:19:39]req_shift_opened [18:19:39]FM_GetShiftState [18:19:39]SAM_PROTO_GetShiftState [18:19:39]wFMCommunicate request_size=4 [18:19:39]MH_SAM_APDU [18:19:39]CAPDU: 80 13 01 00 [18:19:39]Write to MH i2c: E2 08 00 3C 26 80 13 01 00 00 00 00 00 DF [18:19:39]Write i2c OK [18:19:39]MH_I2C_Read... [18:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:39]Read from MH i2c: E2 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: E2 0E 00 [18:19:39]MH_I2C_Read... [18:19:39]Read from MH i2c: E2 0E 00 3C 26 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 3D [18:19:39]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:19:39]wFMCommunicate OK [18:19:39]SAM_PROTO_GetShiftState done [18:19:39]FM_GetShiftState done [18:19:39]req_shift_opened done [18:19:39]requested_item shift.open_date is exist - process it [18:19:39]req_shift_open_date [18:19:39]req_shift_open_date done [18:19:39]produce_requested_data done [18:19:39]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52748,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:19:39]process_action_free close_receipt [18:19:39]json_value_free [18:19:39]json_value_free done [18:19:39]process_json_proto returns [18:19:39]Send response to host [18:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52748,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:19:39]free response buf [18:19:39]execute_script done [18:19:39]execute_script returns [18:19:39]free content buf [18:19:39]Sock 7.Close socket [18:19:39]Sock 7.Thread stoped [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:19]accept exits with 9 [18:20:19]New connection [18:20:19]New thread 3067293028 created [18:20:19]Thread 3067149668 joined [18:20:19]Waiting for new connection... [18:20:19] Sock 9.Parse request [18:20:19]Sock 9.Check first char [18:20:19]Sock 9.First char is OK [18:20:19]request: POST /json_proto HTTP/1.0 [18:20:19]Method: POST [18:20:19]URL: /json_proto [18:20:19]Method is POST - this is cgi request [18:20:19]url: /json_proto [18:20:19]query_string will be loaded in cgi processing [18:20:19]execute_cgi json_proto POST (null) [18:20:19]execute_cgi path=json_proto method=POST [18:20:19]POST find Content-Length [18:20:19]Host: 172.17.60.7:8080 [18:20:19]Content-Length: 634 [18:20:19]Content-Type: application/json [18:20:19] [18:20:19]POST finish read [18:20:19]Found Content-Length = 634 [18:20:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122881", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:19]execute_script... [18:20: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)122881", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:19]POST & json_proto [18:20:19]process_json_proto [18:20:19]json parsed OK: [18:20:19]protocol is kg_v1.0 [18:20:19]action value=close_receipt [18:20:19]process_action close_receipt [18:20:19]cmd_close_receipt [18:20:19]MH_GetDate [18:20:19]Write to MH i2c: F0 00 00 3D 26 52 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: F0 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: F0 09 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: F0 09 00 3D 26 00 69 52 BA 66 63 9B 67 64 FF [18:20:19]GetLastDocTimeStamp 1723486782 [18:20:19]current date 1723486825 [18:20:19]FM_GetShiftState [18:20:19]SAM_PROTO_GetShiftState [18:20:19]wFMCommunicate request_size=4 [18:20:19]MH_SAM_APDU [18:20:19]CAPDU: 80 13 01 00 [18:20:19]Write to MH i2c: E2 08 00 3E 26 80 13 01 00 00 00 00 00 E1 [18:20:19]Write i2c OK [18:20:19]MH_I2C_Read... [18:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:19]Read from MH i2c: E2 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 0E 00 [18:20:19]MH_I2C_Read... [18:20:19]Read from MH i2c: E2 0E 00 3E 26 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 3F [18:20:19]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:20:19]wFMCommunicate OK [18:20:19]SAM_PROTO_GetShiftState done [18:20:19]FM_GetShiftState done [18:20:19]opened in 1723422684 [18:20:19]opened+sec_in_day 1723509084 [18:20:19]quantity*price = 12000 [18:20:19]sum+1 = 12001 [18:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 67 12.08.2024 18:20 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52749 ФПД: 84769071574829 /tax-web-control/client/api/v1/ticket?date=20240812T182025&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52749&fm=84769071574829&tin=02508201610067®Number=0000000000090834&sum=12000 0 [18:20:20]StoreToDocumentArchive [18:20:20]shift 447 fd 52749 [18:20:20]save to /storage/0447/doc_00052749 [18:20:20]save last doc name /storage/0447/doc_00052749 to /storage/kkm_last_doc_name [18:20:20]save OK [18:20:20]Clear old archive folders... [18:20:20]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:20:20]tlvbuf is B6DFB950 [18:20:20]SAM_PROTO_ClearQueue [18:20:20]wFMCommunicate request_size=4 [18:20:20]MH_SAM_APDU [18:20:20]CAPDU: 80 09 00 00 [18:20:20]Write to MH i2c: E2 08 00 4B 26 80 09 00 00 00 00 00 00 E3 [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:20]Read from MH i2c: E2 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 4B 26 00 90 00 E5 [18:20:20]RAPDU: 90 00 [18:20:20]wFMCommunicate OK [18:20:20]SAM_PROTO_ClearQueue done [18:20:20]KKMCreateOFDPacket [18:20:20]OFDProtocolAddRootSTLVToBuf [18:20:20]FM_MakeSignedData [18:20:20]FM_MakeSignedData [18:20:20]SAM_PROTO_SignData [18:20:20]wFMCommunicate request_size=4 [18:20:20]MH_SAM_APDU [18:20:20]CAPDU: 80 0D 01 02 [18:20:20]Write to MH i2c: E2 08 00 4C 26 80 0D 01 02 00 00 00 00 EB [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:20]Read from MH i2c: E2 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [18:20:20]RAPDU: 90 00 [18:20:20]wFMCommunicate OK [18:20:20]wFMCommunicate request_size=255 [18:20:20]MH_SAM_APDU [18:20:20]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 69 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:20:20]Write to MH i2c: E2 02 01 4D 26 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 69 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 2C [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:20]Read from MH i2c: E2 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [18:20:20]RAPDU: 90 00 [18:20:20]wFMCommunicate OK [18:20:20]wFMCommunicate request_size=30 [18:20:20]MH_SAM_APDU [18:20:20]CAPDU: 80 0D 02 02 19 30 38 37 34 37 31 35 10 04 04 00 0D CE 00 00 35 04 06 00 4D 18 D6 66 2F 2D [18:20:20]Write to MH i2c: E2 21 00 4E 26 80 0D 02 02 19 00 30 38 37 34 37 31 35 10 04 04 00 0D CE 00 00 35 04 06 00 4D 18 D6 66 2F 2D 00 00 BF [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:20]Read from MH i2c: E2 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 03 00 4E 26 00 90 00 E8 [18:20:20]RAPDU: 90 00 [18:20:20]wFMCommunicate OK [18:20:20]wFMCommunicate request_size=4 [18:20:20]MH_SAM_APDU [18:20:20]CAPDU: 80 0D 03 02 [18:20:20]Write to MH i2c: E2 08 00 4F 26 80 0D 03 02 00 00 00 00 F0 [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:20]Read from MH i2c: E2 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 0B 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 0B 00 4F 26 00 0A CC C4 4F 9F 85 7F B3 90 00 30 [18:20:20]RAPDU: 0A CC C4 4F 9F 85 7F B3 90 00 [18:20:20]wFMCommunicate OK [18:20:20]SAM_PROTO_SignData done [18:20:20]FM_MakeSignedData done [18:20:20]CreateOFDProtocolMessage [18:20:20]wFMCommunicate request_size=4 [18:20:20]MH_SAM_APDU [18:20:20]CAPDU: 80 11 00 00 [18:20:20]Write to MH i2c: E2 08 00 50 26 80 11 00 00 00 00 00 00 F0 [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:20]Read from MH i2c: E2 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 17 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: E2 17 00 50 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 43 [18:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:20:20]wFMCommunicate OK [18:20:20]CreateOFDProtocolMessage done [18:20:20]OFDSenderStorePacket 52749 [18:20:20]StoreOFDPacket docnum=52749 [18:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 55 56 1B 01 B1 9A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 69 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0D CE 00 00 35 04 06 00 4D 18 D6 66 2F 2D 0A CC C4 4F 9F 85 7F B3 [18:20:20]CheckFolder [18:20:20]dirname=/storage/ofd_packets [18:20:20]CheckFolder done [18:20:20]ProducePacketName [18:20:20]name=ofd_packets/00052749 [18:20:20]NVStorageSaveData ofd_packets/00052749 [18:20:20]File name is /storage/ofd_packets/00052749 [18:20:20]Write 321 bytes [18:20:20]NVStorageSaveData done [18:20:20]OFDSenderStorePacket done [18:20:20]KKMCreateOFDPacket done [18:20:20]NVStorageSaveData kkm_last_timestamp [18:20:20]File name is /storage/kkm_last_timestamp [18:20:20]Write 4 bytes [18:20:20]NVStorageSaveData done [18:20:20]ExternCall_PrintAddStr [18:20:20]wPrintStart [18:20:20]Write to MH i2c: 01 00 00 51 26 77 [18:20:20]Write i2c OK [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: 01 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: 01 07 00 [18:20:20]MH_I2C_Read... [18:20:20]Read from MH i2c: 01 07 00 51 26 00 00 00 00 00 FF 0F 8C [18:20:20]RasterBufferAndPrint [18:20:20]line Счет N : (3)122881 [18:20:20]line ИНН: 02508201610067 [18:20:20]line Контрольно-Кассовый Чек [18:20:20]line ПРОДАЖА [18:20:20]line Товар: 4700000160204 [18:20:20]line Вода Легенда 1,5л [18:20:20]line 2.000 * 60.00 [18:20:20]line = 120.00 [18:20:20]line НДС 12% НСП 1% [18:20:20]line > о реализуемом товаре [18:20:20]line ИТОГО: 120.00 [18:20:20]line НСП 1% : 1.06 [18:20:20]line НДС 12% : 12.74 [18:20:20]line Наличными: 120.00 [18:20:20]line Безнал.: 0.00 [18:20:20]line Место: АЗС № 54 "Партнер Нефть" [18:20:20]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:20:20]line СНО: Общий режим [18:20:20]line Чек 67 12.08.2024 18:20 [18:20:20]line Смена: 447 ФФД: 1.0 [18:20:20]line ЗНМ: 0300000007 [18:20:20]line РНМ: 0000000000090834 [18:20:20]line Версия ККМ: 001 [18:20:20]line ФМ: 0000000000874715 [18:20:20]line ФД: 52749 [18:20:20]line ФПД: 84769071574829 [18:20:20]line /tax-web-control/client/api/v1/ticket?date=20240812T182025&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52749&fm=84769071574829&tin=02508201610067®Number=0000000000090834&sum=12000 [18:20:20]line 0 [18:20:20]written 0, free lines is 4095 [18:20:20]OFD Sender: Processing packet 52749 [packets to send 55, broken 54] [18:20:20]ProducePacketName [18:20:20]name=ofd_packets/00052749 [18:20:20]OFD Sender: To server: pG, [18:20:20]CommunicateWithHost lk.salyk.kg:30040 [18:20:20]ConnectInit lk.salyk.kg [18:20:21]Connected sock=10 [18:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 55 56 1B 01 B1 9A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 69 52 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0D CE 00 00 35 04 06 00 4D 18 D6 66 2F 2D 0A CC C4 4F 9F 85 7F B3 [18:20:21]Write to MH i2c: 01 00 00 78 26 9E [18:20:21]Write i2c OK [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: 01 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: 01 07 00 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: 01 07 00 78 26 00 00 00 00 00 F5 0C A6 [18:20:21]RasterBufferAndPrint [18:20:21]line [18:20:21]line [18:20:21]line [18:20:21]line [18:20:21]line [18:20:21]written 0, free lines is 3324 [18:20:21]MH_Cut [18:20:21]Write to MH i2c: D1 01 00 7F 26 01 77 [18:20:21]Write i2c OK [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: D1 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: D1 01 00 [18:20:21]MH_I2C_Read... [18:20:21]Read from MH i2c: D1 01 00 7F 26 00 76 [18:20:21]Write to MH i2c: 01 00 00 80 26 A6 [18:20:21]Write i2c OK [18:20:21]MH_I2C_Read... [18:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 23 93 47 00 CA D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0D CE 00 00 F4 03 04 00 01 FA B9 66 B6 04 01 00 00 02 F0 91 38 22 D6 2B 5A [18:20:21]CommunicateWithHost err = 0 [18:20:21]CheckOFDResponse [18:20:21]1017 (14) - 77093643461234 [18:20:21]1041 (16) - 0000000000874715 [18:20:21]1040 (4) - 52749 [18:20:21]1012 (4) - 12.08.2024 12:03 [18:20:21]1206 (1) - 0 [18:20:21]OFD Sender: Remove packet 52749 [18:20:21]ProducePacketName [18:20:21]name=ofd_packets/00052749 [18:20:21]NVStorageDeleteData [18:20:21]OFD Sender: No OFD packet to send [18:20:22]*** Cut start [18:20:22]*** Purtial cut [18:20:22]*** Stage 1: CUTSNS_PIN = 1 [18:20:22]Read from MH i2c: 01 [18:20:22]MH_I2C_Read... [18:20:22]*** Stop cut motor [18:20:22]*** Cut end [18:20:22]Read from MH i2c: 01 07 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 FF 0F BB [18:20:22]process_action close_receipt done [18:20:22]requested_data is exist [18:20:22]produce_requested_data [18:20:22]requested_item fm.sn is exist - process it [18:20:22]wFMCommunicate request_size=4 [18:20:22]MH_SAM_APDU [18:20:22]CAPDU: 80 11 00 00 [18:20:22]Write to MH i2c: E2 08 00 81 26 80 11 00 00 00 00 00 00 21 [18:20:22]Write i2c OK [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 [18:20:22]MH_I2C_Read... [18:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:22]Read from MH i2c: E2 17 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 17 00 81 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 74 [18:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:20:22]wFMCommunicate OK [18:20:22]requested_item fd.num is exist - process it [18:20:22]SAM_PROTO_GetFieldsCounters [18:20:22]wFMCommunicate request_size=4 [18:20:22]MH_SAM_APDU [18:20:22]CAPDU: 80 13 00 00 [18:20:22]Write to MH i2c: E2 08 00 82 26 80 13 00 00 00 00 00 00 24 [18:20:22]Write i2c OK [18:20:22]MH_I2C_Read... [18:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:22]Read from MH i2c: E2 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 62 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 62 00 82 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0D CE 00 00 0E 04 04 00 BF 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 A8 [18:20: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0D CE 00 00 0E 04 04 00 BF 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 [18:20:22]wFMCommunicate OK [18:20:22]SAM_PROTO_GetFieldsCounters done [18:20:22]requested_item shift.num is exist - process it [18:20:22]requested_item shift.opened is exist - process it [18:20:22]req_shift_opened [18:20:22]FM_GetShiftState [18:20:22]SAM_PROTO_GetShiftState [18:20:22]wFMCommunicate request_size=4 [18:20:22]MH_SAM_APDU [18:20:22]CAPDU: 80 13 01 00 [18:20:22]Write to MH i2c: E2 08 00 83 26 80 13 01 00 00 00 00 00 26 [18:20:22]Write i2c OK [18:20:22]MH_I2C_Read... [18:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:22]Read from MH i2c: E2 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 0E 00 [18:20:22]MH_I2C_Read... [18:20:22]Read from MH i2c: E2 0E 00 83 26 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 84 [18:20:22]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:20:22]wFMCommunicate OK [18:20:22]SAM_PROTO_GetShiftState done [18:20:22]FM_GetShiftState done [18:20:22]req_shift_opened done [18:20:22]requested_item shift.open_date is exist - process it [18:20:22]req_shift_open_date [18:20:22]req_shift_open_date done [18:20:22]produce_requested_data done [18:20:22]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52749,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:20:22]process_action_free close_receipt [18:20:22]json_value_free [18:20:22]json_value_free done [18:20:22]process_json_proto returns [18:20:22]Send response to host [18:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52749,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:20:22]free response buf [18:20:22]execute_script done [18:20:22]execute_script returns [18:20:22]free content buf [18:20:22]Sock 9.Close socket [18:20:22]Sock 9.Thread stoped [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:15]accept exits with 7 [18:27:15]New connection [18:27:15]New thread 3067149668 created [18:27:15]Thread 3067293028 joined [18:27:15]Waiting for new connection... [18:27:15] Sock 7.Parse request [18:27:15]Sock 7.Check first char [18:27:15]Sock 7.First char is OK [18:27:15]request: POST /json_proto HTTP/1.0 [18:27:15]Method: POST [18:27:15]URL: /json_proto [18:27:15]Method is POST - this is cgi request [18:27:15]url: /json_proto [18:27:15]query_string will be loaded in cgi processing [18:27:15]execute_cgi json_proto POST (null) [18:27:15]execute_cgi path=json_proto method=POST [18:27:15]POST find Content-Length [18:27:15]Host: 172.17.60.7:8080 [18:27:15]Content-Length: 865 [18:27:15]Content-Type: application/json [18:27:15] [18:27:15]POST finish read [18:27:15]Found Content-Length = 865 [18:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122882", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:15]execute_script... [18:27:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122882", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:15]POST & json_proto [18:27:15]process_json_proto [18:27:15]json parsed OK: [18:27:15]protocol is kg_v1.0 [18:27:15]action value=close_receipt [18:27:15]process_action close_receipt [18:27:15]cmd_close_receipt [18:27:15]MH_GetDate [18:27:15]Write to MH i2c: F0 00 00 84 26 99 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: F0 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: F0 09 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: F0 09 00 84 26 00 0A 54 BA 66 63 9B 67 64 E9 [18:27:15]GetLastDocTimeStamp 1723486825 [18:27:15]current date 1723487242 [18:27:15]FM_GetShiftState [18:27:15]SAM_PROTO_GetShiftState [18:27:15]wFMCommunicate request_size=4 [18:27:15]MH_SAM_APDU [18:27:15]CAPDU: 80 13 01 00 [18:27:15]Write to MH i2c: E2 08 00 85 26 80 13 01 00 00 00 00 00 28 [18:27:15]Write i2c OK [18:27:15]MH_I2C_Read... [18:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:15]Read from MH i2c: E2 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 0E 00 [18:27:15]MH_I2C_Read... [18:27:15]Read from MH i2c: E2 0E 00 85 26 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 86 [18:27:15]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:27:15]wFMCommunicate OK [18:27:15]SAM_PROTO_GetShiftState done [18:27:15]FM_GetShiftState done [18:27:15]opened in 1723422684 [18:27:15]opened+sec_in_day 1723509084 [18:27:15]quantity*price = 9500 [18:27:15]sum+1 = 9501 [18:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 68 12.08.2024 18:27 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52750 ФПД: 86442578832292 /tax-web-control/client/api/v1/ticket?date=20240812T182722&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52750&fm=86442578832292&tin=02508201610067®Number=0000000000090834&sum=9500 0 [18:27:17]StoreToDocumentArchive [18:27:17]shift 447 fd 52750 [18:27:17]save to /storage/0447/doc_00052750 [18:27:17]save last doc name /storage/0447/doc_00052750 to /storage/kkm_last_doc_name [18:27:17]save OK [18:27:17]Clear old archive folders... [18:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=302 [18:27:17]tlvbuf is 01296260 [18:27:17]SAM_PROTO_ClearQueue [18:27:17]wFMCommunicate request_size=4 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 09 00 00 [18:27:17]Write to MH i2c: E2 08 00 92 26 80 09 00 00 00 00 00 00 2A [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [18:27:17]RAPDU: 90 00 [18:27:17]wFMCommunicate OK [18:27:17]SAM_PROTO_ClearQueue done [18:27:17]KKMCreateOFDPacket [18:27:17]OFDProtocolAddRootSTLVToBuf [18:27:17]FM_MakeSignedData [18:27:17]FM_MakeSignedData [18:27:17]SAM_PROTO_SignData [18:27:17]wFMCommunicate request_size=4 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 0D 01 02 [18:27:17]Write to MH i2c: E2 08 00 93 26 80 0D 01 02 00 00 00 00 32 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:17]OFD Sender: No OFD packet to send [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 93 26 00 90 00 2D [18:27:17]RAPDU: 90 00 [18:27:17]wFMCommunicate OK [18:27:17]wFMCommunicate request_size=255 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 54 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 [18:27:17]Write to MH i2c: E2 02 01 94 26 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 54 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 00 00 D6 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 94 26 00 90 00 2E [18:27:17]RAPDU: 90 00 [18:27:17]wFMCommunicate OK [18:27:17]wFMCommunicate request_size=61 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0E CE 00 00 35 04 06 00 4E 9E 7B 34 6B A4 [18:27:17]Write to MH i2c: E2 40 00 95 26 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0E CE 00 00 35 04 06 00 4E 9E 7B 34 6B A4 00 00 EF [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 03 00 95 26 00 90 00 2F [18:27:17]RAPDU: 90 00 [18:27:17]wFMCommunicate OK [18:27:17]wFMCommunicate request_size=4 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 0D 03 02 [18:27:17]Write to MH i2c: E2 08 00 96 26 80 0D 03 02 00 00 00 00 37 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 0B 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 0B 00 96 26 00 CB 6C B3 69 A8 D5 FF 48 90 00 4F [18:27:17]RAPDU: CB 6C B3 69 A8 D5 FF 48 90 00 [18:27:17]wFMCommunicate OK [18:27:17]SAM_PROTO_SignData done [18:27:17]FM_MakeSignedData done [18:27:17]CreateOFDProtocolMessage [18:27:17]wFMCommunicate request_size=4 [18:27:17]MH_SAM_APDU [18:27:17]CAPDU: 80 11 00 00 [18:27:17]Write to MH i2c: E2 08 00 97 26 80 11 00 00 00 00 00 00 37 [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:17]Read from MH i2c: E2 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 17 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: E2 17 00 97 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 8A [18:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:27:17]wFMCommunicate OK [18:27:17]CreateOFDProtocolMessage done [18:27:17]OFDSenderStorePacket 52750 [18:27:17]StoreOFDPacket docnum=52750 [18:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 FD 8B 3A 01 79 B8 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 54 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0E CE 00 00 35 04 06 00 4E 9E 7B 34 6B A4 CB 6C B3 69 A8 D5 FF 48 [18:27:17]CheckFolder [18:27:17]dirname=/storage/ofd_packets [18:27:17]CheckFolder done [18:27:17]ProducePacketName [18:27:17]name=ofd_packets/00052750 [18:27:17]NVStorageSaveData ofd_packets/00052750 [18:27:17]File name is /storage/ofd_packets/00052750 [18:27:17]Write 352 bytes [18:27:17]NVStorageSaveData done [18:27:17]OFDSenderStorePacket done [18:27:17]KKMCreateOFDPacket done [18:27:17]NVStorageSaveData kkm_last_timestamp [18:27:17]File name is /storage/kkm_last_timestamp [18:27:17]Write 4 bytes [18:27:17]NVStorageSaveData done [18:27:17]ExternCall_PrintAddStr [18:27:17]wPrintStart [18:27:17]Write to MH i2c: 01 00 00 98 26 BE [18:27:17]Write i2c OK [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: 01 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: 01 07 00 [18:27:17]MH_I2C_Read... [18:27:17]Read from MH i2c: 01 07 00 98 26 00 00 00 00 00 FF 0F D3 [18:27:17]RasterBufferAndPrint [18:27:17]line Счет N : (3)122882 [18:27:17]line ИНН: 02508201610067 [18:27:17]line Контрольно-Кассовый Чек [18:27:17]line ПРОДАЖА [18:27:17]line Товар: 4700000482740 [18:27:17]line Напиток Nitro Fr газ апельсин ж/б 0,45л [18:27:17]line 1.000 * 95.00 [18:27:17]line = 95.00 [18:27:17]line НДС 12% НСП 1% [18:27:17]line > о реализуемом товаре [18:27:17]line ИТОГО: 95.00 [18:27:17]line НСП 1% : 0.84 [18:27:17]line НДС 12% : 10.09 [18:27:17]line Наличными: 0.00 [18:27:17]line Безнал.: 95.00 [18:27:17]line Место: АЗС № 54 "Партнер Нефть" [18:27:17]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:27:17]line СНО: Общий режим [18:27:17]line Чек 68 12.08.2024 18:27 [18:27:17]line Смена: 447 ФФД: 1.0 [18:27:17]line ЗНМ: 0300000007 [18:27:17]line РНМ: 0000000000090834 [18:27:17]line Версия ККМ: 001 [18:27:17]line Платежная система: О! деньги [18:27:17]line ФМ: 0000000000874715 [18:27:17]line ФД: 52750 [18:27:17]line ФПД: 86442578832292 [18:27:18]line /tax-web-control/client/api/v1/ticket?date=20240812T182722&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52750&fm=86442578832292&tin=02508201610067®Number=0000000000090834&sum=9500 [18:27:18]line 0 [18:27:18]OFD Sender: Processing packet 52750 [packets to send 55, broken 54] [18:27:18]ProducePacketName [18:27:18]name=ofd_packets/00052750 [18:27:18]OFD Sender: To server: pG, [18:27:18]CommunicateWithHost lk.salyk.kg:30040 [18:27:18]ConnectInit lk.salyk.kg [18:27:18]written 0, free lines is 4095 [18:27:18]Connected sock=10 [18:27:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 FD 8B 3A 01 79 B8 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 54 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0E CE 00 00 35 04 06 00 4E 9E 7B 34 6B A4 CB 6C B3 69 A8 D5 FF 48 [18:27:18]Write to MH i2c: 01 00 00 C2 26 E8 [18:27:18]Write i2c OK [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: 01 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: 01 07 00 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: 01 07 00 C2 26 00 00 00 00 00 B6 0C B1 [18:27:18]RasterBufferAndPrint [18:27:18]line [18:27:18]line [18:27:18]line [18:27:18]line [18:27:18]line [18:27:18]written 0, free lines is 3260 [18:27:18]MH_Cut [18:27:18]Write to MH i2c: D1 01 00 C9 26 01 C1 [18:27:18]Write i2c OK [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: D1 [18:27:18]MH_I2C_Read... [18:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F2 E8 47 00 5A 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0E CE 00 00 F4 03 04 00 A2 FB B9 66 B6 04 01 00 00 B1 9B CE CC 33 A4 E9 E2 [18:27:18]CommunicateWithHost err = 0 [18:27:18]CheckOFDResponse [18:27:18]1017 (14) - 77093643461234 [18:27:18]1041 (16) - 0000000000874715 [18:27:18]1040 (4) - 52750 [18:27:18]1012 (4) - 12.08.2024 12:10 [18:27:18]1206 (1) - 0 [18:27:18]OFD Sender: Remove packet 52750 [18:27:18]ProducePacketName [18:27:18]name=ofd_packets/00052750 [18:27:18]NVStorageDeleteData [18:27:18]Read from MH i2c: D1 01 00 [18:27:18]MH_I2C_Read... [18:27:18]Read from MH i2c: D1 01 00 C9 26 00 C0 [18:27:18]Write to MH i2c: 01 00 00 CA 26 F0 [18:27:18]Write i2c OK [18:27:18]MH_I2C_Read... [18:27:19]OFD Sender: No OFD packet to send [18:27:19]*** Cut start [18:27:19]*** Purtial cut [18:27:19]*** Stage 1: CUTSNS_PIN = 1 [18:27:19]Read from MH i2c: 01 [18:27:19]MH_I2C_Read... [18:27:19]*** Stop cut motor [18:27:19]*** Cut end [18:27:19]Read from MH i2c: 01 07 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: 01 07 00 CA 26 00 00 00 00 00 FF 0F 05 [18:27:19]process_action close_receipt done [18:27:19]requested_data is exist [18:27:19]produce_requested_data [18:27:19]requested_item fm.sn is exist - process it [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 11 00 00 [18:27:19]Write to MH i2c: E2 08 00 CB 26 80 11 00 00 00 00 00 00 6B [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 17 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 17 00 CB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 BE [18:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:27:19]wFMCommunicate OK [18:27:19]requested_item fd.num is exist - process it [18:27:19]SAM_PROTO_GetFieldsCounters [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 13 00 00 [18:27:19]Write to MH i2c: E2 08 00 CC 26 80 13 00 00 00 00 00 00 6E [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 62 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 62 00 CC 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0E CE 00 00 0E 04 04 00 BF 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 F6 [18:27: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0E CE 00 00 0E 04 04 00 BF 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 [18:27:19]wFMCommunicate OK [18:27:19]SAM_PROTO_GetFieldsCounters done [18:27:19]requested_item shift.num is exist - process it [18:27:19]requested_item shift.opened is exist - process it [18:27:19]req_shift_opened [18:27:19]FM_GetShiftState [18:27:19]SAM_PROTO_GetShiftState [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 13 01 00 [18:27:19]Write to MH i2c: E2 08 00 CD 26 80 13 01 00 00 00 00 00 70 [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 CD 26 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CE [18:27:19]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:27:19]wFMCommunicate OK [18:27:19]SAM_PROTO_GetShiftState done [18:27:19]FM_GetShiftState done [18:27:19]req_shift_opened done [18:27:19]requested_item shift.open_date is exist - process it [18:27:19]req_shift_open_date [18:27:19]req_shift_open_date done [18:27:19]produce_requested_data done [18:27:19]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52750,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:27:19]process_action_free close_receipt [18:27:19]json_value_free [18:27:19]json_value_free done [18:27:19]process_json_proto returns [18:27:19]Send response to host [18:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52750,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:27:19]free response buf [18:27:19]execute_script done [18:27:19]execute_script returns [18:27:19]free content buf [18:27:19]Sock 7.Close socket [18:27:19]Sock 7.Thread stoped [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:16]accept exits with 9 [18:36:16]New connection [18:36:16]New thread 3067293028 created [18:36:16]Thread 3067149668 joined [18:36:16]Waiting for new connection... [18:36:16] Sock 9.Parse request [18:36:16]Sock 9.Check first char [18:36:16]Sock 9.First char is OK [18:36:16]request: POST /json_proto HTTP/1.0 [18:36:16]Method: POST [18:36:16]URL: /json_proto [18:36:16]Method is POST - this is cgi request [18:36:16]url: /json_proto [18:36:16]query_string will be loaded in cgi processing [18:36:16]execute_cgi json_proto POST (null) [18:36:16]execute_cgi path=json_proto method=POST [18:36:16]POST find Content-Length [18:36:16]Host: 172.17.60.7:8080 [18:36:16]Content-Length: 798 [18:36:16]Content-Type: application/json [18:36:16] [18:36:16]POST finish read [18:36:16]Found Content-Length = 798 [18:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122883", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:16]execute_script... [18:36: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)122883", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:16]POST & json_proto [18:36:16]process_json_proto [18:36:16]json parsed OK: [18:36:16]protocol is kg_v1.0 [18:36:16]action value=close_receipt [18:36:16]process_action close_receipt [18:36:16]cmd_close_receipt [18:36:16]MH_GetDate [18:36:16]Write to MH i2c: F0 00 00 CE 26 E3 [18:36:16]Write i2c OK [18:36:16]MH_I2C_Read... [18:36:16]Read from MH i2c: F0 [18:36:16]MH_I2C_Read... [18:36:16]Read from MH i2c: F0 09 00 [18:36:16]MH_I2C_Read... [18:36:16]Read from MH i2c: F0 09 00 CE 26 00 26 56 BA 66 63 9B 67 64 51 [18:36:16]GetLastDocTimeStamp 1723487242 [18:36:16]current date 1723487782 [18:36:16]FM_GetShiftState [18:36:16]SAM_PROTO_GetShiftState [18:36:16]wFMCommunicate request_size=4 [18:36:16]MH_SAM_APDU [18:36:16]CAPDU: 80 13 01 00 [18:36:16]Write to MH i2c: E2 08 00 CF 26 80 13 01 00 00 00 00 00 72 [18:36:16]Write i2c OK [18:36:16]MH_I2C_Read... [18:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:16]Read from MH i2c: E2 [18:36:16]MH_I2C_Read... [18:36:16]Read from MH i2c: E2 0E 00 [18:36:16]MH_I2C_Read... [18:36:16]Read from MH i2c: E2 0E 00 CF 26 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D0 [18:36:16]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:36:16]wFMCommunicate OK [18:36:16]SAM_PROTO_GetShiftState done [18:36:16]FM_GetShiftState done [18:36:16]opened in 1723422684 [18:36:16]opened+sec_in_day 1723509084 [18:36:16]quantity*price = 6000 [18:36:16]sum+1 = 6001 [18:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 0.00 Безнал.: 60.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 69 12.08.2024 18:36 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52751 ФПД: 6689886733457 /tax-web-control/client/api/v1/ticket?date=20240812T183622&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52751&fm=6689886733457&tin=02508201610067®Number=0000000000090834&sum=6000 0 [18:36:17]StoreToDocumentArchive [18:36:17]shift 447 fd 52751 [18:36:17]save to /storage/0447/doc_00052751 [18:36:17]save last doc name /storage/0447/doc_00052751 to /storage/kkm_last_doc_name [18:36:17]save OK [18:36:17]Clear old archive folders... [18:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [18:36:17]tlvbuf is B6FA83B0 [18:36:17]SAM_PROTO_ClearQueue [18:36:17]wFMCommunicate request_size=4 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 09 00 00 [18:36:17]Write to MH i2c: E2 08 00 DC 26 80 09 00 00 00 00 00 00 74 [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [18:36:17]RAPDU: 90 00 [18:36:17]wFMCommunicate OK [18:36:17]SAM_PROTO_ClearQueue done [18:36:17]KKMCreateOFDPacket [18:36:17]OFDProtocolAddRootSTLVToBuf [18:36:17]FM_MakeSignedData [18:36:17]FM_MakeSignedData [18:36:17]SAM_PROTO_SignData [18:36:17]wFMCommunicate request_size=4 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 0D 01 02 [18:36:17]Write to MH i2c: E2 08 00 DD 26 80 0D 01 02 00 00 00 00 7C [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 DD 26 00 90 00 77 [18:36:17]RAPDU: 90 00 [18:36:17]wFMCommunicate OK [18:36:17]wFMCommunicate request_size=255 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 26 56 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [18:36:17]Write to MH i2c: E2 02 01 DE 26 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 26 56 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 4B [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 DE 26 00 90 00 78 [18:36:17]RAPDU: 90 00 [18:36:17]wFMCommunicate OK [18:36:17]wFMCommunicate request_size=30 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 0D 02 02 19 30 38 37 34 37 31 35 10 04 04 00 0F CE 00 00 35 04 06 00 06 15 9C 52 84 91 [18:36:17]Write to MH i2c: E2 21 00 DF 26 80 0D 02 02 19 00 30 38 37 34 37 31 35 10 04 04 00 0F CE 00 00 35 04 06 00 06 15 9C 52 84 91 00 00 73 [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 03 00 DF 26 00 90 00 79 [18:36:17]RAPDU: 90 00 [18:36:17]wFMCommunicate OK [18:36:17]wFMCommunicate request_size=4 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 0D 03 02 [18:36:17]Write to MH i2c: E2 08 00 E0 26 80 0D 03 02 00 00 00 00 81 [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 0B 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 0B 00 E0 26 00 6C 4E 5D 74 11 E3 D4 C7 90 00 9C [18:36:17]RAPDU: 6C 4E 5D 74 11 E3 D4 C7 90 00 [18:36:17]wFMCommunicate OK [18:36:17]SAM_PROTO_SignData done [18:36:17]FM_MakeSignedData done [18:36:17]CreateOFDProtocolMessage [18:36:17]wFMCommunicate request_size=4 [18:36:17]MH_SAM_APDU [18:36:17]CAPDU: 80 11 00 00 [18:36:17]Write to MH i2c: E2 08 00 E1 26 80 11 00 00 00 00 00 00 81 [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:17]Read from MH i2c: E2 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 17 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: E2 17 00 E1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D4 [18:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:36:17]wFMCommunicate OK [18:36:17]CreateOFDProtocolMessage done [18:36:17]OFDSenderStorePacket 52751 [18:36:17]StoreOFDPacket docnum=52751 [18:36:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 85 29 1B 01 13 B0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 26 56 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0F CE 00 00 35 04 06 00 06 15 9C 52 84 91 6C 4E 5D 74 11 E3 D4 C7 [18:36:17]CheckFolder [18:36:17]dirname=/storage/ofd_packets [18:36:17]CheckFolder done [18:36:17]ProducePacketName [18:36:17]name=ofd_packets/00052751 [18:36:17]NVStorageSaveData ofd_packets/00052751 [18:36:17]File name is /storage/ofd_packets/00052751 [18:36:17]Write 321 bytes [18:36:17]NVStorageSaveData done [18:36:17]OFDSenderStorePacket done [18:36:17]KKMCreateOFDPacket done [18:36:17]NVStorageSaveData kkm_last_timestamp [18:36:17]File name is /storage/kkm_last_timestamp [18:36:17]Write 4 bytes [18:36:17]NVStorageSaveData done [18:36:17]ExternCall_PrintAddStr [18:36:17]wPrintStart [18:36:17]Write to MH i2c: 01 00 00 E2 26 08 [18:36:17]Write i2c OK [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: 01 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: 01 07 00 [18:36:17]MH_I2C_Read... [18:36:17]Read from MH i2c: 01 07 00 E2 26 00 00 00 00 00 FF 0F 1D [18:36:17]RasterBufferAndPrint [18:36:17]line Счет N : (3)122883 [18:36:17]line ИНН: 02508201610067 [18:36:17]line Контрольно-Кассовый Чек [18:36:17]line ПРОДАЖА [18:36:17]line Товар: 4700000160204 [18:36:17]line Вода Легенда 1,5л [18:36:17]line 1.000 * 60.00 [18:36:17]line = 60.00 [18:36:17]line НДС 12% НСП 1% [18:36:17]line > о реализуемом товаре [18:36:17]line ИТОГО: 60.00 [18:36:17]line НСП 1% : 0.53 [18:36:17]line НДС 12% : 6.37 [18:36:17]line Наличными: 0.00 [18:36:17]line Безнал.: 60.00 [18:36:17]line Место: АЗС № 54 "Партнер Нефть" [18:36:17]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:36:17]line СНО: Общий режим [18:36:17]line Чек 69 12.08.2024 18:36 [18:36:17]line Смена: 447 ФФД: 1.0 [18:36:17]line ЗНМ: 0300000007 [18:36:17]line РНМ: 0000000000090834 [18:36:17]line Версия ККМ: 001 [18:36:17]line Платежная система: О! деньги [18:36:17]line ФМ: 0000000000874715 [18:36:17]line ФД: 52751 [18:36:17]line ФПД: 6689886733457 [18:36:17]line /tax-web-control/client/api/v1/ticket?date=20240812T183622&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52751&fm=6689886733457&tin=02508201610067®Number=0000000000090834&sum=6000 [18:36:17]line 0 [18:36:17]written 0, free lines is 4095 [18:36:17]OFD Sender: Processing packet 52751 [packets to send 55, broken 54] [18:36:17]ProducePacketName [18:36:17]name=ofd_packets/00052751 [18:36:18]OFD Sender: To server: pG, [18:36:18]CommunicateWithHost lk.salyk.kg:30040 [18:36:18]ConnectInit lk.salyk.kg [18:36:18]Write to MH i2c: 01 00 00 0B 27 32 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: 01 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: 01 07 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: 01 07 00 0B 27 00 00 00 00 00 CA 0C 0F [18:36:18]RasterBufferAndPrint [18:36:18]line [18:36:18]line [18:36:18]line [18:36:18]line [18:36:18]line [18:36:18]written 0, free lines is 3280 [18:36:18]MH_Cut [18:36:18]Write to MH i2c: D1 01 00 12 27 01 0B [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: D1 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: D1 01 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: D1 01 00 12 27 00 0A [18:36:18]Write to MH i2c: 01 00 00 13 27 3A [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Connected sock=10 [18:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 85 29 1B 01 13 B0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 26 56 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 0F CE 00 00 35 04 06 00 06 15 9C 52 84 91 6C 4E 5D 74 11 E3 D4 C7 [18:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B7 F8 47 00 A5 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 34 37 31 35 10 04 04 00 0F CE 00 00 F4 03 04 00 BE FD B9 66 B6 04 01 00 00 23 AF C7 3E 3B C4 1C BD [18:36:18]CommunicateWithHost err = 0 [18:36:18]CheckOFDResponse [18:36:18]1017 (14) - 77093643461234 [18:36:18]1041 (16) - 0000000000874715 [18:36:18]1040 (4) - 52751 [18:36:18]1012 (4) - 12.08.2024 12:19 [18:36:18]1206 (1) - 0 [18:36:18]OFD Sender: Remove packet 52751 [18:36:18]ProducePacketName [18:36:18]name=ofd_packets/00052751 [18:36:18]NVStorageDeleteData [18:36:19]*** Cut start [18:36:19]*** Purtial cut [18:36:19]*** Stage 1: CUTSNS_PIN = 1 [18:36:19]OFD Sender: No OFD packet to send [18:36:19]Read from MH i2c: 01 [18:36:19]MH_I2C_Read... [18:36:19]*** Stop cut motor [18:36:19]*** Cut end [18:36:19]Read from MH i2c: 01 07 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 07 00 13 27 00 00 00 00 00 FF 0F 4F [18:36:19]process_action close_receipt done [18:36:19]requested_data is exist [18:36:19]produce_requested_data [18:36:19]requested_item fm.sn is exist - process it [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 11 00 00 [18:36:19]Write to MH i2c: E2 08 00 14 27 80 11 00 00 00 00 00 00 B5 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 17 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 17 00 14 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 08 [18:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:36:19]wFMCommunicate OK [18:36:19]requested_item fd.num is exist - process it [18:36:19]SAM_PROTO_GetFieldsCounters [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 13 00 00 [18:36:19]Write to MH i2c: E2 08 00 15 27 80 13 00 00 00 00 00 00 B8 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 62 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 62 00 15 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0F CE 00 00 0E 04 04 00 BF 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 44 [18:36: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 0F CE 00 00 0E 04 04 00 BF 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 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_GetFieldsCounters done [18:36:19]requested_item shift.num is exist - process it [18:36:19]requested_item shift.opened is exist - process it [18:36:19]req_shift_opened [18:36:19]FM_GetShiftState [18:36:19]SAM_PROTO_GetShiftState [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 13 01 00 [18:36:19]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 0E 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 18 [18:36:19]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_GetShiftState done [18:36:19]FM_GetShiftState done [18:36:19]req_shift_opened done [18:36:19]requested_item shift.open_date is exist - process it [18:36:19]req_shift_open_date [18:36:19]req_shift_open_date done [18:36:19]produce_requested_data done [18:36:19]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52751,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:36:19]process_action_free close_receipt [18:36:19]json_value_free [18:36:19]json_value_free done [18:36:19]process_json_proto returns [18:36:19]Send response to host [18:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52751,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:36:19]free response buf [18:36:19]execute_script done [18:36:19]execute_script returns [18:36:19]free content buf [18:36:19]Sock 9.Close socket [18:36:19]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]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:00]accept exits with 7 [18:54:00]New connection [18:54:00]New thread 3067149668 created [18:54:00]Thread 3067293028 joined [18:54:00]Waiting for new connection... [18:54:00] Sock 7.Parse request [18:54:00]Sock 7.Check first char [18:54:00]Sock 7.First char is OK [18:54:00]request: POST /json_proto HTTP/1.0 [18:54:00]Method: POST [18:54:00]URL: /json_proto [18:54:00]Method is POST - this is cgi request [18:54:00]url: /json_proto [18:54:00]query_string will be loaded in cgi processing [18:54:00]execute_cgi json_proto POST (null) [18:54:00]execute_cgi path=json_proto method=POST [18:54:00]POST find Content-Length [18:54:00]Host: 172.17.60.7:8080 [18:54:00]Content-Length: 1798 [18:54:00]Content-Type: application/json [18:54:00] [18:54:00]POST finish read [18:54:00]Found Content-Length = 1798 [18:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122884", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 486.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:00]execute_script... [18:54: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)122884", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 486.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:01]POST & json_proto [18:54:01]process_json_proto [18:54:01]json parsed OK: [18:54:01]protocol is kg_v1.0 [18:54:01]action value=close_receipt [18:54:01]process_action close_receipt [18:54:01]cmd_close_receipt [18:54:01]MH_GetDate [18:54:01]Write to MH i2c: F0 00 00 17 27 2D [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: F0 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: F0 09 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: F0 09 00 17 27 00 4F 5A BA 66 63 9B 67 64 C8 [18:54:01]GetLastDocTimeStamp 1723487782 [18:54:01]current date 1723488847 [18:54:01]FM_GetShiftState [18:54:01]SAM_PROTO_GetShiftState [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 01 00 [18:54:01]Write to MH i2c: E2 08 00 18 27 80 13 01 00 00 00 00 00 BC [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 18 27 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 1A [18:54:01]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_GetShiftState done [18:54:01]FM_GetShiftState done [18:54:01]opened in 1723422684 [18:54:01]opened+sec_in_day 1723509084 [18:54:01]quantity*price = 11100 [18:54:01]sum+1 = 11101 [18:54:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 486.00 НСП 1% : 4.29 НДС 12% : 51.61 Наличными: 0.00 Безнал.: 486.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 70 12.08.2024 18:54 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52752 ФПД: 197419223645108 /tax-web-control/client/api/v1/ticket?date=20240812T185407&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52752&fm=197419223645108&tin=02508201610067®Number=0000000000090834&sum=48600 0 [18:54:02]StoreToDocumentArchive [18:54:02]shift 447 fd 52752 [18:54:02]save to /storage/0447/doc_00052752 [18:54:02]save last doc name /storage/0447/doc_00052752 to /storage/kkm_last_doc_name [18:54:02]save OK [18:54:02]Clear old archive folders... [18:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=676 [18:54:02]tlvbuf is 0126E470 [18:54:02]SAM_PROTO_ClearQueue [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 09 00 00 [18:54:02]Write to MH i2c: E2 08 00 25 27 80 09 00 00 00 00 00 00 BE [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]SAM_PROTO_ClearQueue done [18:54:02]KKMCreateOFDPacket [18:54:02]OFDProtocolAddRootSTLVToBuf [18:54:02]FM_MakeSignedData [18:54:02]FM_MakeSignedData [18:54:02]SAM_PROTO_SignData [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 01 02 [18:54:02]Write to MH i2c: E2 08 00 26 27 80 0D 01 02 00 00 00 00 C6 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=255 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 02 02 FA 03 00 A4 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 [18:54:02]Write to MH i2c: E2 02 01 27 27 80 0D 02 02 FA 00 03 00 A4 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 00 00 07 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=255 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 02 02 FA B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [18:54:02]Write to MH i2c: E2 02 01 28 27 80 0D 02 02 FA 00 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 2F [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 28 27 00 90 00 C3 [18:54:02]RAPDU: 90 00 [18:54:03]wFMCommunicate OK [18:54:03]wFMCommunicate request_size=185 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 0D 02 02 B4 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 BD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 4F 5A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 10 CE 00 00 35 04 06 00 B3 8D 3E B2 7B B4 [18:54:03]Write to MH i2c: E2 BC 00 29 27 80 0D 02 02 B4 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 BD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 4F 5A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 10 CE 00 00 35 04 06 00 B3 8D 3E B2 7B B4 00 00 48 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 03 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 03 00 29 27 00 90 00 C4 [18:54:03]RAPDU: 90 00 [18:54:03]wFMCommunicate OK [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 0D 03 02 [18:54:03]Write to MH i2c: E2 08 00 2A 27 80 0D 03 02 00 00 00 00 CC [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 0B 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 0B 00 2A 27 00 E9 E9 99 78 F3 87 35 87 90 00 E6 [18:54:03]RAPDU: E9 E9 99 78 F3 87 35 87 90 00 [18:54:03]wFMCommunicate OK [18:54:03]SAM_PROTO_SignData done [18:54:03]FM_MakeSignedData done [18:54:03]CreateOFDProtocolMessage [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 11 00 00 [18:54:03]Write to MH i2c: E2 08 00 2B 27 80 11 00 00 00 00 00 00 CC [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 17 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 17 00 2B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 1F [18:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:54:03]wFMCommunicate OK [18:54:03]CreateOFDProtocolMessage done [18:54:03]OFDSenderStorePacket 52752 [18:54:03]StoreOFDPacket docnum=52752 [18:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 B8 02 00 00 0D C5 B0 02 74 62 5A 03 01 00 03 00 A4 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 BD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 4F 5A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 10 CE 00 00 35 04 06 00 B3 8D 3E B2 7B B4 E9 E9 99 78 F3 87 35 87 [18:54:03]CheckFolder [18:54:03]dirname=/storage/ofd_packets [18:54:03]CheckFolder done [18:54:03]ProducePacketName [18:54:03]name=ofd_packets/00052752 [18:54:03]NVStorageSaveData ofd_packets/00052752 [18:54:03]File name is /storage/ofd_packets/00052752 [18:54:03]Write 726 bytes [18:54:03]NVStorageSaveData done [18:54:03]OFDSenderStorePacket done [18:54:03]KKMCreateOFDPacket done [18:54:03]NVStorageSaveData kkm_last_timestamp [18:54:03]File name is /storage/kkm_last_timestamp [18:54:03]Write 4 bytes [18:54:03]NVStorageSaveData done [18:54:03]ExternCall_PrintAddStr [18:54:03]wPrintStart [18:54:03]Write to MH i2c: 01 00 00 2C 27 53 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 2C 27 00 00 00 00 00 FF 0F 68 [18:54:03]RasterBufferAndPrint [18:54:03]line Счет N : (3)122884 [18:54:03]line ИНН: 02508201610067 [18:54:03]line Контрольно-Кассовый Чек [18:54:03]line ПРОДАЖА [18:54:03]line Товар: 4870001570071 [18:54:03]line Напиток Pepsi 1л [18:54:03]line 1.000 * 111.00 [18:54:03]line = 111.00 [18:54:03]line НДС 12% НСП 1% [18:54:03]line > о реализуемом товаре [18:54:03]line Товар: 54491472 [18:54:03]line Напиток Кока-Кола 0,5л [18:54:03]line 1.000 * 75.00 [18:54:03]line = 75.00 [18:54:03]line НДС 12% НСП 1% [18:54:03]line > о реализуемом товаре [18:54:03]line Товар: 40822426 [18:54:03]line Вода Бонаква 0,5л б/г [18:54:03]line 1.000 * 40.00 [18:54:03]line = 40.00 [18:54:03]line НДС 12% НСП 1% [18:54:03]line > о реализуемом товаре [18:54:03]line Товар: 48745000 [18:54:03]line Сигареты Winston Purple Mix [18:54:03]line 1.000 * 135.00 [18:54:03]line = 135.00 [18:54:03]line НДС 12% НСП 1% [18:54:03]line > о реализуемом товаре [18:54:03]line Товар: 5449000006271 [18:54:03]line Напиток Фанта 1л [18:54:03]line 1.000 * 125.00 [18:54:03]line = 125.00 [18:54:03]line НДС 12% НСП 1% [18:54:03]line > о реализуемом товаре [18:54:03]line ИТОГО: 486.00 [18:54:03]line НСП 1% : 4.29 [18:54:03]line НДС 12% : 51.61 [18:54:03]line Наличными: 0.00 [18:54:03]line Безнал.: 486.00 [18:54:03]line Место: АЗС № 54 "Партнер Нефть" [18:54:03]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:54:03]line СНО: Общий режим [18:54:03]line Чек 70 12.08.2024 18:54 [18:54:03]line Смена: 447 ФФД: 1.0 [18:54:03]line ЗНМ: 0300000007 [18:54:03]line РНМ: 0000000000090834 [18:54:03]line Версия ККМ: 001 [18:54:03]line Платежная система: О! деньги [18:54:03]line ФМ: 0000000000874715 [18:54:03]line ФД: 52752 [18:54:03]line ФПД: 197419223645108 [18:54:03]line /tax-web-control/client/api/v1/ticket?date=20240812T185407&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52752&fm=197419223645108&tin=02508201610067®Number=0000000000090834&sum=48600 [18:54:03]line 0 [18:54:03]written 0, free lines is 4095 [18:54:03]OFD Sender: Processing packet 52752 [packets to send 55, broken 54] [18:54:03]ProducePacketName [18:54:03]name=ofd_packets/00052752 [18:54:03]OFD Sender: To server: pG, [18:54:03]CommunicateWithHost lk.salyk.kg:30040 [18:54:03]ConnectInit lk.salyk.kg [18:54:03]Connected sock=10 [18:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 B8 02 00 00 0D C5 B0 02 74 62 5A 03 01 00 03 00 A4 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 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 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 D8 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 BD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 4F 5A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 10 CE 00 00 35 04 06 00 B3 8D 3E B2 7B B4 E9 E9 99 78 F3 87 35 87 [18:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 2E 94 47 00 A0 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 34 37 31 35 10 04 04 00 10 CE 00 00 F4 03 04 00 E8 01 BA 66 B6 04 01 00 00 6F EF 61 24 50 B9 A7 FE [18:54:04]CommunicateWithHost err = 0 [18:54:04]CheckOFDResponse [18:54:04]1017 (14) - 77093643461234 [18:54:04]1041 (16) - 0000000000874715 [18:54:04]1040 (4) - 52752 [18:54:04]1012 (4) - 12.08.2024 12:36 [18:54:04]1206 (1) - 0 [18:54:04]OFD Sender: Remove packet 52752 [18:54:04]ProducePacketName [18:54:04]name=ofd_packets/00052752 [18:54:04]NVStorageDeleteData [18:54:04]Write to MH i2c: 01 00 00 6D 27 94 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: 01 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: 01 07 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: 01 07 00 6D 27 00 00 00 00 00 52 0B F8 [18:54:04]RasterBufferAndPrint [18:54:04]line [18:54:04]line [18:54:04]line [18:54:04]line [18:54:04]line [18:54:04]written 0, free lines is 2906 [18:54:04]MH_Cut [18:54:04]Write to MH i2c: D1 01 00 74 27 01 6D [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: D1 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: D1 01 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: D1 01 00 74 27 00 6C [18:54:04]Write to MH i2c: 01 00 00 75 27 9C [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]OFD Sender: No OFD packet to send [18:54:05]*** Cut start [18:54:05]*** Purtial cut [18:54:05]*** Stage 1: CUTSNS_PIN = 1 [18:54:05]Read from MH i2c: 01 [18:54:05]MH_I2C_Read... [18:54:05]*** Stop cut motor [18:54:05]*** Cut end [18:54:05]Read from MH i2c: 01 07 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 FF 0F B1 [18:54:05]process_action close_receipt done [18:54:05]requested_data is exist [18:54:05]produce_requested_data [18:54:05]requested_item fm.sn is exist - process it [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 11 00 00 [18:54:05]Write to MH i2c: E2 08 00 76 27 80 11 00 00 00 00 00 00 17 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 76 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 6A [18:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:54:05]wFMCommunicate OK [18:54:05]requested_item fd.num is exist - process it [18:54:05]SAM_PROTO_GetFieldsCounters [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 00 00 [18:54:05]Write to MH i2c: E2 08 00 77 27 80 13 00 00 00 00 00 00 1A [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 62 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 62 00 77 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 10 CE 00 00 0E 04 04 00 BF 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 AA [18:54: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 10 CE 00 00 0E 04 04 00 BF 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 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_GetFieldsCounters done [18:54:05]requested_item shift.num is exist - process it [18:54:05]requested_item shift.opened is exist - process it [18:54:05]req_shift_opened [18:54:05]FM_GetShiftState [18:54:05]SAM_PROTO_GetShiftState [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 01 00 [18:54:05]Write to MH i2c: E2 08 00 78 27 80 13 01 00 00 00 00 00 1C [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0E 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0E 00 78 27 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 7A [18:54:06]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:54:06]wFMCommunicate OK [18:54:06]SAM_PROTO_GetShiftState done [18:54:06]FM_GetShiftState done [18:54:06]req_shift_opened done [18:54:06]requested_item shift.open_date is exist - process it [18:54:06]req_shift_open_date [18:54:06]req_shift_open_date done [18:54:06]produce_requested_data done [18:54:06]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52752,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:54:06]process_action_free close_receipt [18:54:06]json_value_free [18:54:06]json_value_free done [18:54:06]process_json_proto returns [18:54:06]Send response to host [18:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52752,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:54:06]free response buf [18:54:06]execute_script done [18:54:06]execute_script returns [18:54:06]free content buf [18:54:06]Sock 7.Close socket [18:54:06]Sock 7.Thread stoped [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:26]accept exits with 9 [18:59:26]New connection [18:59:26]New thread 3067293028 created [18:59:26]Thread 3067149668 joined [18:59:26]Waiting for new connection... [18:59:26] Sock 9.Parse request [18:59:26]Sock 9.Check first char [18:59:26]Sock 9.First char is OK [18:59:26]request: POST /json_proto HTTP/1.0 [18:59:26]Method: POST [18:59:26]URL: /json_proto [18:59:26]Method is POST - this is cgi request [18:59:26]url: /json_proto [18:59:26]query_string will be loaded in cgi processing [18:59:26]execute_cgi json_proto POST (null) [18:59:26]execute_cgi path=json_proto method=POST [18:59:26]POST find Content-Length [18:59:26]Host: 172.17.60.7:8080 [18:59:26]Content-Length: 994 [18:59:26]Content-Type: application/json [18:59:26] [18:59:26]POST finish read [18:59:26]Found Content-Length = 994 [18:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122885", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:26]execute_script... [18: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)122885", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:26]POST & json_proto [18:59:26]process_json_proto [18:59:26]json parsed OK: [18:59:26]protocol is kg_v1.0 [18:59:26]action value=close_receipt [18:59:26]process_action close_receipt [18:59:26]cmd_close_receipt [18:59:26]MH_GetDate [18:59:26]Write to MH i2c: F0 00 00 79 27 8F [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: F0 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: F0 09 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: F0 09 00 79 27 00 94 5B BA 66 63 9B 67 64 70 [18:59:26]GetLastDocTimeStamp 1723488847 [18:59:26]current date 1723489172 [18:59:26]FM_GetShiftState [18:59:26]SAM_PROTO_GetShiftState [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 13 01 00 [18:59:26]Write to MH i2c: E2 08 00 7A 27 80 13 01 00 00 00 00 00 1E [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0E 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0E 00 7A 27 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 7C [18:59:26]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_GetShiftState done [18:59:26]FM_GetShiftState done [18:59:26]opened in 1723422684 [18:59:26]opened+sec_in_day 1723509084 [18:59:26]quantity*price = 14000 [18:59:26]sum+1 = 14001 [18:59:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 0.00 Безнал.: 185.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 71 12.08.2024 18:59 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52753 ФПД: 13529451500660 /tax-web-control/client/api/v1/ticket?date=20240812T185932&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52753&fm=13529451500660&tin=02508201610067®Number=0000000000090834&sum=18500 0 [18:59:27]StoreToDocumentArchive [18:59:27]shift 447 fd 52753 [18:59:27]save to /storage/0447/doc_00052753 [18:59:27]save last doc name /storage/0447/doc_00052753 to /storage/kkm_last_doc_name [18:59:27]save OK [18:59:27]Clear old archive folders... [18:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=368 [18:59:27]tlvbuf is B6DFB6D0 [18:59:27]SAM_PROTO_ClearQueue [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 09 00 00 [18:59:27]Write to MH i2c: E2 08 00 87 27 80 09 00 00 00 00 00 00 20 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [18:59:27]RAPDU: 90 00 [18:59:27]wFMCommunicate OK [18:59:27]SAM_PROTO_ClearQueue done [18:59:27]KKMCreateOFDPacket [18:59:27]OFDProtocolAddRootSTLVToBuf [18:59:27]FM_MakeSignedData [18:59:27]FM_MakeSignedData [18:59:27]SAM_PROTO_SignData [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 0D 01 02 [18:59:27]Write to MH i2c: E2 08 00 88 27 80 0D 01 02 00 00 00 00 28 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [18:59:27]RAPDU: 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=255 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 0D 02 02 FA 03 00 70 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [18:59:27]Write to MH i2c: E2 02 01 89 27 80 0D 02 02 FA 00 03 00 70 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 09 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [18:59:27]RAPDU: 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=127 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 0D 02 02 7A 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 5B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 11 CE 00 00 35 04 06 00 0C 4E 12 26 94 74 [18:59:27]Write to MH i2c: E2 82 00 8A 27 80 0D 02 02 7A 00 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 5B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 11 CE 00 00 35 04 06 00 0C 4E 12 26 94 74 00 00 30 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [18:59:27]RAPDU: 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 0D 03 02 [18:59:27]Write to MH i2c: E2 08 00 8B 27 80 0D 03 02 00 00 00 00 2D [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 0B 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 0B 00 8B 27 00 DF A6 AE 63 A1 82 36 CA 90 00 E7 [18:59:27]RAPDU: DF A6 AE 63 A1 82 36 CA 90 00 [18:59:27]wFMCommunicate OK [18:59:27]SAM_PROTO_SignData done [18:59:27]FM_MakeSignedData done [18:59:27]CreateOFDProtocolMessage [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 11 00 00 [18:59:27]Write to MH i2c: E2 08 00 8C 27 80 11 00 00 00 00 00 00 2D [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 17 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 17 00 8C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 80 [18:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:59:28]wFMCommunicate OK [18:59:28]CreateOFDProtocolMessage done [18:59:28]OFDSenderStorePacket 52753 [18:59:28]StoreOFDPacket docnum=52753 [18:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 84 01 00 00 43 90 7C 01 C8 E3 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 5B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 11 CE 00 00 35 04 06 00 0C 4E 12 26 94 74 DF A6 AE 63 A1 82 36 CA [18:59:28]CheckFolder [18:59:28]dirname=/storage/ofd_packets [18:59:28]CheckFolder done [18:59:28]ProducePacketName [18:59:28]name=ofd_packets/00052753 [18:59:28]NVStorageSaveData ofd_packets/00052753 [18:59:28]File name is /storage/ofd_packets/00052753 [18:59:28]Write 418 bytes [18:59:28]NVStorageSaveData done [18:59:28]OFDSenderStorePacket done [18:59:28]KKMCreateOFDPacket done [18:59:28]NVStorageSaveData kkm_last_timestamp [18:59:28]File name is /storage/kkm_last_timestamp [18:59:28]Write 4 bytes [18:59:28]NVStorageSaveData done [18:59:28]ExternCall_PrintAddStr [18:59:28]wPrintStart [18:59:28]Write to MH i2c: 01 00 00 8D 27 B4 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 8D 27 00 00 00 00 00 FF 0F C9 [18:59:28]RasterBufferAndPrint [18:59:28]line Счет N : (3)122885 [18:59:28]line ИНН: 02508201610067 [18:59:28]line Контрольно-Кассовый Чек [18:59:28]line ПРОДАЖА [18:59:28]line Товар: 48747059 [18:59:28]line Сигареты Winston Legend Blue [18:59:28]line 1.000 * 140.00 [18:59:28]line = 140.00 [18:59:28]line НДС 12% НСП 1% [18:59:28]line > о реализуемом товаре [18:59:28]line Товар: 42113164 [18:59:28]line Жев Orbit White Spearmint [18:59:28]line 1.000 * 45.00 [18:59:28]line = 45.00 [18:59:28]line НДС 12% НСП 1% [18:59:28]line > о реализуемом товаре [18:59:28]line ИТОГО: 185.00 [18:59:28]line НСП 1% : 1.64 [18:59:28]line НДС 12% : 19.65 [18:59:28]line Наличными: 0.00 [18:59:28]line Безнал.: 185.00 [18:59:28]line Место: АЗС № 54 "Партнер Нефть" [18:59:28]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [18:59:28]line СНО: Общий режим [18:59:28]line Чек 71 12.08.2024 18:59 [18:59:28]line Смена: 447 ФФД: 1.0 [18:59:28]line ЗНМ: 0300000007 [18:59:28]line РНМ: 0000000000090834 [18:59:28]line Версия ККМ: 001 [18:59:28]line Платежная система: О! деньги [18:59:28]line ФМ: 0000000000874715 [18:59:28]line ФД: 52753 [18:59:28]line ФПД: 13529451500660 [18:59:28]line /tax-web-control/client/api/v1/ticket?date=20240812T185932&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52753&fm=13529451500660&tin=02508201610067®Number=0000000000090834&sum=18500 [18:59:28]OFD Sender: Processing packet 52753 [packets to send 55, broken 54] [18:59:28]ProducePacketName [18:59:28]name=ofd_packets/00052753 [18:59:28]OFD Sender: To server: pG, [18:59:28]CommunicateWithHost lk.salyk.kg:30040 [18:59:28]ConnectInit lk.salyk.kg [18:59:28]line 0 [18:59:28]written 0, free lines is 4095 [18:59:28]Connected sock=10 [18: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 34 37 31 35 84 01 00 00 43 90 7C 01 C8 E3 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 94 5B BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 11 CE 00 00 35 04 06 00 0C 4E 12 26 94 74 DF A6 AE 63 A1 82 36 CA [18:59:28]Write to MH i2c: 01 00 00 BD 27 E4 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 BD 27 00 00 00 00 00 5B 0C 52 [18:59:28]RasterBufferAndPrint [18:59:28]line [18:59:28]line [18:59:28]line [18:59:28]line [18:59:28]line [18:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 62 21 47 00 10 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 11 CE 00 00 F4 03 04 00 2D 03 BA 66 B6 04 01 00 00 C8 1E 3B BC 12 15 EE 79 [18:59:28]CommunicateWithHost err = 0 [18:59:28]CheckOFDResponse [18:59:28]1017 (14) - 77093643461234 [18:59:28]1041 (16) - 0000000000874715 [18:59:28]1040 (4) - 52753 [18:59:28]1012 (4) - 12.08.2024 12:42 [18:59:28]1206 (1) - 0 [18:59:28]OFD Sender: Remove packet 52753 [18:59:28]ProducePacketName [18:59:28]name=ofd_packets/00052753 [18:59:28]NVStorageDeleteData [18:59:28]written 0, free lines is 3170 [18:59:28]MH_Cut [18:59:28]Write to MH i2c: D1 01 00 C4 27 01 BD [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: D1 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: D1 01 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: D1 01 00 C4 27 00 BC [18:59:28]Write to MH i2c: 01 00 00 C5 27 EC [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:29]OFD Sender: No OFD packet to send [18:59:29]*** Cut start [18:59:29]*** Purtial cut [18:59:29]*** Stage 1: CUTSNS_PIN = 1 [18:59:30]Read from MH i2c: 01 [18:59:30]MH_I2C_Read... [18:59:30]*** Stop cut motor [18:59:30]*** Cut end [18:59:30]Read from MH i2c: 01 07 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: 01 07 00 C5 27 00 00 00 00 00 FF 0F 01 [18:59:30]process_action close_receipt done [18:59:30]requested_data is exist [18:59:30]produce_requested_data [18:59:30]requested_item fm.sn is exist - process it [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 11 00 00 [18:59:30]Write to MH i2c: E2 08 00 C6 27 80 11 00 00 00 00 00 00 67 [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 17 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 17 00 C6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 BA [18:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [18:59:30]wFMCommunicate OK [18:59:30]requested_item fd.num is exist - process it [18:59:30]SAM_PROTO_GetFieldsCounters [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 00 00 [18:59:30]Write to MH i2c: E2 08 00 C7 27 80 13 00 00 00 00 00 00 6A [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 62 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 62 00 C7 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 11 CE 00 00 0E 04 04 00 BF 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 FE [18:59: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 11 CE 00 00 0E 04 04 00 BF 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 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetFieldsCounters done [18:59:30]requested_item shift.num is exist - process it [18:59:30]requested_item shift.opened is exist - process it [18:59:30]req_shift_opened [18:59:30]FM_GetShiftState [18:59:30]SAM_PROTO_GetShiftState [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 01 00 [18:59:30]Write to MH i2c: E2 08 00 C8 27 80 13 01 00 00 00 00 00 6C [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 C8 27 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CA [18:59:30]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetShiftState done [18:59:30]FM_GetShiftState done [18:59:30]req_shift_opened done [18:59:30]requested_item shift.open_date is exist - process it [18:59:30]req_shift_open_date [18:59:30]req_shift_open_date done [18:59:30]produce_requested_data done [18:59:30]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52753,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [18:59:30]process_action_free close_receipt [18:59:30]json_value_free [18:59:30]json_value_free done [18:59:30]process_json_proto returns [18:59:30]Send response to host [18:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52753,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [18:59:30]free response buf [18:59:30]execute_script done [18:59:30]execute_script returns [18:59:30]free content buf [18:59:30]Sock 9.Close socket [18:59:30]Sock 9.Thread stoped [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:17]accept exits with 7 [19:15:17]New connection [19:15:17]New thread 3067149668 created [19:15:17]Thread 3067293028 joined [19:15:17]Waiting for new connection... [19:15:17] Sock 7.Parse request [19:15:17]Sock 7.Check first char [19:15:17]Sock 7.First char is OK [19:15:17]request: POST /json_proto HTTP/1.0 [19:15:17]Method: POST [19:15:17]URL: /json_proto [19:15:17]Method is POST - this is cgi request [19:15:17]url: /json_proto [19:15:17]query_string will be loaded in cgi processing [19:15:17]execute_cgi json_proto POST (null) [19:15:17]execute_cgi path=json_proto method=POST [19:15:17]POST find Content-Length [19:15:17]Host: 172.17.60.7:8080 [19:15:17]Content-Length: 824 [19:15:17]Content-Type: application/json [19:15:17] [19:15:17]POST finish read [19:15:17]Found Content-Length = 824 [19:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122886", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:17]execute_script... [19:15: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)122886", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:17]POST & json_proto [19:15:17]process_json_proto [19:15:17]json parsed OK: [19:15:17]protocol is kg_v1.0 [19:15:17]action value=close_receipt [19:15:17]process_action close_receipt [19:15:17]cmd_close_receipt [19:15:17]MH_GetDate [19:15:17]Write to MH i2c: F0 00 00 C9 27 DF [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: F0 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: F0 09 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: F0 09 00 C9 27 00 4B 5F BA 66 63 9B 67 64 7B [19:15:17]GetLastDocTimeStamp 1723489172 [19:15:17]current date 1723490123 [19:15:17]FM_GetShiftState [19:15:17]SAM_PROTO_GetShiftState [19:15:17]wFMCommunicate request_size=4 [19:15:17]MH_SAM_APDU [19:15:17]CAPDU: 80 13 01 00 [19:15:17]Write to MH i2c: E2 08 00 CA 27 80 13 01 00 00 00 00 00 6E [19:15:17]Write i2c OK [19:15:17]MH_I2C_Read... [19:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:17]Read from MH i2c: E2 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0E 00 [19:15:17]MH_I2C_Read... [19:15:17]Read from MH i2c: E2 0E 00 CA 27 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CC [19:15:17]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:15:17]wFMCommunicate OK [19:15:17]SAM_PROTO_GetShiftState done [19:15:17]FM_GetShiftState done [19:15:17]opened in 1723422684 [19:15:17]opened+sec_in_day 1723509084 [19:15:17]quantity*price = 20500 [19:15:17]sum+1 = 20501 [19:15:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 72 12.08.2024 19:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52754 ФПД: 278817334879935 /tax-web-control/client/api/v1/ticket?date=20240812T191523&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52754&fm=278817334879935&tin=02508201610067®Number=0000000000090834&sum=20500 0 [19:15:18]StoreToDocumentArchive [19:15:18]shift 447 fd 52754 [19:15:18]save to /storage/0447/doc_00052754 [19:15:18]save last doc name /storage/0447/doc_00052754 to /storage/kkm_last_doc_name [19:15:18]save OK [19:15:18]Clear old archive folders... [19:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=278 [19:15:18]tlvbuf is 0126E200 [19:15:18]SAM_PROTO_ClearQueue [19:15:18]wFMCommunicate request_size=4 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 09 00 00 [19:15:18]Write to MH i2c: E2 08 00 D7 27 80 09 00 00 00 00 00 00 70 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 D7 27 00 90 00 72 [19:15:18]RAPDU: 90 00 [19:15:18]wFMCommunicate OK [19:15:18]SAM_PROTO_ClearQueue done [19:15:18]KKMCreateOFDPacket [19:15:18]OFDProtocolAddRootSTLVToBuf [19:15:18]FM_MakeSignedData [19:15:18]FM_MakeSignedData [19:15:18]SAM_PROTO_SignData [19:15:18]wFMCommunicate request_size=4 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 0D 01 02 [19:15:18]Write to MH i2c: E2 08 00 D8 27 80 0D 01 02 00 00 00 00 78 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 D8 27 00 90 00 73 [19:15:18]RAPDU: 90 00 [19:15:18]wFMCommunicate OK [19:15:18]wFMCommunicate request_size=255 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4B 5F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 [19:15:18]Write to MH i2c: E2 02 01 D9 27 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4B 5F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 00 00 0D [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 D9 27 00 90 00 74 [19:15:18]RAPDU: 90 00 [19:15:18]wFMCommunicate OK [19:15:18]wFMCommunicate request_size=37 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 12 CE 00 00 35 04 06 00 FD 95 38 33 E6 BF [19:15:18]Write to MH i2c: E2 28 00 DA 27 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 12 CE 00 00 35 04 06 00 FD 95 38 33 E6 BF 00 00 54 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 03 00 DA 27 00 90 00 75 [19:15:18]RAPDU: 90 00 [19:15:18]wFMCommunicate OK [19:15:18]wFMCommunicate request_size=4 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 0D 03 02 [19:15:18]Write to MH i2c: E2 08 00 DB 27 80 0D 03 02 00 00 00 00 7D [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 0B 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 0B 00 DB 27 00 C8 45 2D 7B 95 E7 8C C2 90 00 FD [19:15:18]RAPDU: C8 45 2D 7B 95 E7 8C C2 90 00 [19:15:18]wFMCommunicate OK [19:15:18]SAM_PROTO_SignData done [19:15:18]FM_MakeSignedData done [19:15:18]CreateOFDProtocolMessage [19:15:18]wFMCommunicate request_size=4 [19:15:18]MH_SAM_APDU [19:15:18]CAPDU: 80 11 00 00 [19:15:18]Write to MH i2c: E2 08 00 DC 27 80 11 00 00 00 00 00 00 7D [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:18]Read from MH i2c: E2 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 17 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: E2 17 00 DC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D0 [19:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:15:18]wFMCommunicate OK [19:15:18]CreateOFDProtocolMessage done [19:15:18]OFDSenderStorePacket 52754 [19:15:18]StoreOFDPacket docnum=52754 [19:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2A 01 00 00 26 E9 22 01 24 43 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4B 5F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 12 CE 00 00 35 04 06 00 FD 95 38 33 E6 BF C8 45 2D 7B 95 E7 8C C2 [19:15:18]CheckFolder [19:15:18]dirname=/storage/ofd_packets [19:15:18]CheckFolder done [19:15:18]ProducePacketName [19:15:18]name=ofd_packets/00052754 [19:15:18]NVStorageSaveData ofd_packets/00052754 [19:15:18]File name is /storage/ofd_packets/00052754 [19:15:18]Write 328 bytes [19:15:18]NVStorageSaveData done [19:15:18]OFDSenderStorePacket done [19:15:18]KKMCreateOFDPacket done [19:15:18]NVStorageSaveData kkm_last_timestamp [19:15:18]File name is /storage/kkm_last_timestamp [19:15:18]Write 4 bytes [19:15:18]NVStorageSaveData done [19:15:18]ExternCall_PrintAddStr [19:15:18]wPrintStart [19:15:18]Write to MH i2c: 01 00 00 DD 27 04 [19:15:18]Write i2c OK [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 [19:15:18]MH_I2C_Read... [19:15:18]Read from MH i2c: 01 07 00 DD 27 00 00 00 00 00 FF 0F 19 [19:15:18]RasterBufferAndPrint [19:15:18]line Счет N : (3)122886 [19:15:18]line ИНН: 02508201610067 [19:15:18]line Контрольно-Кассовый Чек [19:15:18]line ПРОДАЖА [19:15:18]line Товар: 5449000000286 [19:15:18]line Напиток Кока-Кола 2л [19:15:18]line 1.000 * 205.00 [19:15:18]line = 205.00 [19:15:18]line НДС 12% НСП 1% [19:15:18]line > о реализуемом товаре [19:15:18]line ИТОГО: 205.00 [19:15:18]line НСП 1% : 1.81 [19:15:18]line НДС 12% : 21.77 [19:15:18]line Наличными: 0.00 [19:15:18]line Безнал.: 205.00 [19:15:18]line Место: АЗС № 54 "Партнер Нефть" [19:15:18]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [19:15:18]line СНО: Общий режим [19:15:18]line Чек 72 12.08.2024 19:15 [19:15:18]line Смена: 447 ФФД: 1.0 [19:15:18]line ЗНМ: 0300000007 [19:15:18]line РНМ: 0000000000090834 [19:15:18]line Версия ККМ: 001 [19:15:18]line Платежная система: О! деньги [19:15:18]line ФМ: 0000000000874715 [19:15:18]line ФД: 52754 [19:15:18]line ФПД: 278817334879935 [19:15:18]line /tax-web-control/client/api/v1/ticket?date=20240812T191523&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52754&fm=278817334879935&tin=02508201610067®Number=0000000000090834&sum=20500 [19:15:19]OFD Sender: Processing packet 52754 [packets to send 55, broken 54] [19:15:19]ProducePacketName [19:15:19]name=ofd_packets/00052754 [19:15:19]OFD Sender: To server: pG, [19:15:19]CommunicateWithHost lk.salyk.kg:30040 [19:15:19]ConnectInit lk.salyk.kg [19:15:19]line 0 [19:15:19]written 0, free lines is 4095 [19:15:19]Connected sock=9 [19:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2A 01 00 00 26 E9 22 01 24 43 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4B 5F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 12 CE 00 00 35 04 06 00 FD 95 38 33 E6 BF C8 45 2D 7B 95 E7 8C C2 [19:15:19]Write to MH i2c: 01 00 00 06 28 2E [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 07 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: 01 07 00 06 28 00 00 00 00 00 CE 0C 0F [19:15:19]RasterBufferAndPrint [19:15:19]line [19:15:19]line [19:15:19]line [19:15:19]line [19:15:19]line [19:15:19]written 0, free lines is 3285 [19:15:19]MH_Cut [19:15:19]Write to MH i2c: D1 01 00 0D 28 01 07 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: D1 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: D1 01 00 [19:15:19]MH_I2C_Read... [19:15:19]Read from MH i2c: D1 01 00 0D 28 00 06 [19:15:19]Write to MH i2c: 01 00 00 0E 28 36 [19:15:19]Write i2c OK [19:15:19]MH_I2C_Read... [19:15:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 8D 9E 47 00 77 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 34 37 31 35 10 04 04 00 12 CE 00 00 F4 03 04 00 E4 06 BA 66 B6 04 01 00 00 FC 3A E0 B6 98 71 BB 8E [19:15:19]CommunicateWithHost err = 0 [19:15:19]CheckOFDResponse [19:15:19]1017 (14) - 77093643461234 [19:15:19]1041 (16) - 0000000000874715 [19:15:19]1040 (4) - 52754 [19:15:19]1012 (4) - 12.08.2024 12:58 [19:15:19]1206 (1) - 0 [19:15:19]OFD Sender: Remove packet 52754 [19:15:19]ProducePacketName [19:15:19]name=ofd_packets/00052754 [19:15:19]NVStorageDeleteData [19:15:20]OFD Sender: No OFD packet to send [19:15:20]*** Cut start [19:15:20]*** Purtial cut [19:15:20]*** Stage 1: CUTSNS_PIN = 1 [19:15:20]Read from MH i2c: 01 [19:15:20]MH_I2C_Read... [19:15:20]*** Stop cut motor [19:15:20]*** Cut end [19:15:20]Read from MH i2c: 01 07 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: 01 07 00 0E 28 00 00 00 00 00 FF 0F 4B [19:15:20]process_action close_receipt done [19:15:20]requested_data is exist [19:15:20]produce_requested_data [19:15:20]requested_item fm.sn is exist - process it [19:15:20]wFMCommunicate request_size=4 [19:15:20]MH_SAM_APDU [19:15:20]CAPDU: 80 11 00 00 [19:15:20]Write to MH i2c: E2 08 00 0F 28 80 11 00 00 00 00 00 00 B1 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:20]Read from MH i2c: E2 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 17 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 17 00 0F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 04 [19:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:15:20]wFMCommunicate OK [19:15:20]requested_item fd.num is exist - process it [19:15:20]SAM_PROTO_GetFieldsCounters [19:15:20]wFMCommunicate request_size=4 [19:15:20]MH_SAM_APDU [19:15:20]CAPDU: 80 13 00 00 [19:15:20]Write to MH i2c: E2 08 00 10 28 80 13 00 00 00 00 00 00 B4 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:20]Read from MH i2c: E2 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 62 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 62 00 10 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 12 CE 00 00 0E 04 04 00 BF 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 4C [19:15: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 12 CE 00 00 0E 04 04 00 BF 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 [19:15:20]wFMCommunicate OK [19:15:20]SAM_PROTO_GetFieldsCounters done [19:15:20]requested_item shift.num is exist - process it [19:15:20]requested_item shift.opened is exist - process it [19:15:20]req_shift_opened [19:15:20]FM_GetShiftState [19:15:20]SAM_PROTO_GetShiftState [19:15:20]wFMCommunicate request_size=4 [19:15:20]MH_SAM_APDU [19:15:20]CAPDU: 80 13 01 00 [19:15:20]Write to MH i2c: E2 08 00 11 28 80 13 01 00 00 00 00 00 B6 [19:15:20]Write i2c OK [19:15:20]MH_I2C_Read... [19:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:20]Read from MH i2c: E2 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 0E 00 [19:15:20]MH_I2C_Read... [19:15:20]Read from MH i2c: E2 0E 00 11 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 14 [19:15:20]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:15:20]wFMCommunicate OK [19:15:20]SAM_PROTO_GetShiftState done [19:15:20]FM_GetShiftState done [19:15:20]req_shift_opened done [19:15:20]requested_item shift.open_date is exist - process it [19:15:20]req_shift_open_date [19:15:20]req_shift_open_date done [19:15:20]produce_requested_data done [19:15:20]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52754,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [19:15:20]process_action_free close_receipt [19:15:20]json_value_free [19:15:20]json_value_free done [19:15:20]process_json_proto returns [19:15:20]Send response to host [19:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52754,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [19:15:20]free response buf [19:15:20]execute_script done [19:15:20]execute_script returns [19:15:20]free content buf [19:15:20]Sock 7.Close socket [19:15:20]Sock 7.Thread stoped [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]accept exits with 10 [19:31:25]New connection [19:31:25]New thread 3067293028 created [19:31:25]Thread 3067149668 joined [19:31:25]Waiting for new connection... [19:31:25] Sock 10.Parse request [19:31:25]Sock 10.Check first char [19:31:25]Sock 10.First char is OK [19:31:25]request: POST /json_proto HTTP/1.0 [19:31:25]Method: POST [19:31:25]URL: /json_proto [19:31:25]Method is POST - this is cgi request [19:31:25]url: /json_proto [19:31:25]query_string will be loaded in cgi processing [19:31:25]execute_cgi json_proto POST (null) [19:31:25]execute_cgi path=json_proto method=POST [19:31:25]POST find Content-Length [19:31:25]Host: 172.17.60.7:8080 [19:31:25]Content-Length: 1210 [19:31:25]Content-Type: application/json [19:31:25] [19:31:25]POST finish read [19:31:25]Found Content-Length = 1210 [19:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122887", "tax_sys" : 0, "items" : [ { "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:25]execute_script... [19:31: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)122887", "tax_sys" : 0, "items" : [ { "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:25]POST & json_proto [19:31:25]process_json_proto [19:31:25]json parsed OK: [19:31:25]protocol is kg_v1.0 [19:31:25]action value=close_receipt [19:31:25]process_action close_receipt [19:31:25]cmd_close_receipt [19:31:25]MH_GetDate [19:31:25]Write to MH i2c: F0 00 00 12 28 29 [19:31:25]Write i2c OK [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: F0 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: F0 09 00 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: F0 09 00 12 28 00 13 63 BA 66 63 9B 67 64 91 [19:31:25]GetLastDocTimeStamp 1723490123 [19:31:25]current date 1723491091 [19:31:25]FM_GetShiftState [19:31:25]SAM_PROTO_GetShiftState [19:31:25]wFMCommunicate request_size=4 [19:31:25]MH_SAM_APDU [19:31:25]CAPDU: 80 13 01 00 [19:31:25]Write to MH i2c: E2 08 00 13 28 80 13 01 00 00 00 00 00 B8 [19:31:25]Write i2c OK [19:31:25]MH_I2C_Read... [19:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:25]Read from MH i2c: E2 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: E2 0E 00 [19:31:25]MH_I2C_Read... [19:31:25]Read from MH i2c: E2 0E 00 13 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 16 [19:31:25]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:31:25]wFMCommunicate OK [19:31:25]SAM_PROTO_GetShiftState done [19:31:25]FM_GetShiftState done [19:31:25]opened in 1723422684 [19:31:25]opened+sec_in_day 1723509084 [19:31:25]quantity*price = 14900 [19:31:25]sum+1 = 14901 [19:31:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003312 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.12 НДС 12% : 25.38 Наличными: 0.00 Безнал.: 239.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 73 12.08.2024 19:31 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52755 ФПД: 154274139846369 /tax-web-control/client/api/v1/ticket?date=20240812T193131&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52755&fm=154274139846369&tin=02508201610067®Number=0000000000090834&sum=23900 0 [19:31:26]StoreToDocumentArchive [19:31:26]shift 447 fd 52755 [19:31:26]save to /storage/0447/doc_00052755 [19:31:26]save last doc name /storage/0447/doc_00052755 to /storage/kkm_last_doc_name [19:31:26]save OK [19:31:26]Clear old archive folders... [19:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=436 [19:31:26]tlvbuf is B6FA8B20 [19:31:26]SAM_PROTO_ClearQueue [19:31:26]wFMCommunicate request_size=4 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 09 00 00 [19:31:26]Write to MH i2c: E2 08 00 20 28 80 09 00 00 00 00 00 00 BA [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]SAM_PROTO_ClearQueue done [19:31:26]KKMCreateOFDPacket [19:31:26]OFDProtocolAddRootSTLVToBuf [19:31:26]FM_MakeSignedData [19:31:26]FM_MakeSignedData [19:31:26]SAM_PROTO_SignData [19:31:26]wFMCommunicate request_size=4 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 01 02 [19:31:26]Write to MH i2c: E2 08 00 21 28 80 0D 01 02 00 00 00 00 C2 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 21 28 00 90 00 BD [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]wFMCommunicate request_size=255 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 02 02 FA 03 00 B4 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 [19:31:26]Write to MH i2c: E2 02 01 22 28 80 0D 02 02 FA 00 03 00 B4 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 00 00 8D [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:26]Read from MH i2c: E2 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 [19:31:26]MH_I2C_Read... [19:31:26]Read from MH i2c: E2 03 00 22 28 00 90 00 BE [19:31:26]RAPDU: 90 00 [19:31:26]wFMCommunicate OK [19:31:26]wFMCommunicate request_size=195 [19:31:26]MH_SAM_APDU [19:31:26]CAPDU: 80 0D 02 02 BE 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 13 63 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 13 CE 00 00 35 04 06 00 8C 4F BF 4D B6 E1 [19:31:26]Write to MH i2c: E2 C6 00 23 28 80 0D 02 02 BE 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 13 63 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 13 CE 00 00 35 04 06 00 8C 4F BF 4D B6 E1 00 00 D5 [19:31:26]Write i2c OK [19:31:26]MH_I2C_Read... [19:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:27]Read from MH i2c: E2 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: E2 03 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: E2 03 00 23 28 00 90 00 BF [19:31:27]RAPDU: 90 00 [19:31:27]wFMCommunicate OK [19:31:27]wFMCommunicate request_size=4 [19:31:27]MH_SAM_APDU [19:31:27]CAPDU: 80 0D 03 02 [19:31:27]Write to MH i2c: E2 08 00 24 28 80 0D 03 02 00 00 00 00 C7 [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:27]Read from MH i2c: E2 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: E2 0B 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: E2 0B 00 24 28 00 48 59 CA 15 43 6F C0 8B 90 00 45 [19:31:27]RAPDU: 48 59 CA 15 43 6F C0 8B 90 00 [19:31:27]wFMCommunicate OK [19:31:27]SAM_PROTO_SignData done [19:31:27]FM_MakeSignedData done [19:31:27]CreateOFDProtocolMessage [19:31:27]wFMCommunicate request_size=4 [19:31:27]MH_SAM_APDU [19:31:27]CAPDU: 80 11 00 00 [19:31:27]Write to MH i2c: E2 08 00 25 28 80 11 00 00 00 00 00 00 C7 [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:27]Read from MH i2c: E2 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: E2 17 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: E2 17 00 25 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 1A [19:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:31:27]wFMCommunicate OK [19:31:27]CreateOFDProtocolMessage done [19:31:27]OFDSenderStorePacket 52755 [19:31:27]StoreOFDPacket docnum=52755 [19:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 C8 01 00 00 2C 49 C0 01 34 4E 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 13 63 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 13 CE 00 00 35 04 06 00 8C 4F BF 4D B6 E1 48 59 CA 15 43 6F C0 8B [19:31:27]CheckFolder [19:31:27]dirname=/storage/ofd_packets [19:31:27]CheckFolder done [19:31:27]ProducePacketName [19:31:27]name=ofd_packets/00052755 [19:31:27]NVStorageSaveData ofd_packets/00052755 [19:31:27]File name is /storage/ofd_packets/00052755 [19:31:27]Write 486 bytes [19:31:27]NVStorageSaveData done [19:31:27]OFDSenderStorePacket done [19:31:27]KKMCreateOFDPacket done [19:31:27]NVStorageSaveData kkm_last_timestamp [19:31:27]File name is /storage/kkm_last_timestamp [19:31:27]Write 4 bytes [19:31:27]NVStorageSaveData done [19:31:27]ExternCall_PrintAddStr [19:31:27]wPrintStart [19:31:27]Write to MH i2c: 01 00 00 26 28 4E [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 07 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 07 00 26 28 00 00 00 00 00 FF 0F 63 [19:31:27]RasterBufferAndPrint [19:31:27]line Счет N : (3)122887 [19:31:27]line ИНН: 02508201610067 [19:31:27]line Контрольно-Кассовый Чек [19:31:27]line ПРОДАЖА [19:31:27]line Товар: 4607015235333 [19:31:27]line Пряники Яшкино с вареной сгущенкой 350г [19:31:27]line 1.000 * 149.00 [19:31:27]line = 149.00 [19:31:27]line НДС 12% НСП 1% [19:31:27]line > о реализуемом товаре [19:31:27]line Товар: 4870022003312 [19:31:27]line Gorilla эн нап манго-кокос 0,45 ж/б [19:31:27]line 1.000 * 90.00 [19:31:27]line = 90.00 [19:31:27]line НДС 12% НСП 1% [19:31:27]line > о реализуемом товаре [19:31:27]line ИТОГО: 239.00 [19:31:27]line НСП 1% : 2.12 [19:31:27]line НДС 12% : 25.38 [19:31:27]line Наличными: 0.00 [19:31:27]line Безнал.: 239.00 [19:31:27]line Место: АЗС № 54 "Партнер Нефть" [19:31:27]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [19:31:27]line СНО: Общий режим [19:31:27]line Чек 73 12.08.2024 19:31 [19:31:27]line Смена: 447 ФФД: 1.0 [19:31:27]line ЗНМ: 0300000007 [19:31:27]line РНМ: 0000000000090834 [19:31:27]line Версия ККМ: 001 [19:31:27]line Платежная система: О! деньги [19:31:27]line ФМ: 0000000000874715 [19:31:27]line ФД: 52755 [19:31:27]line ФПД: 154274139846369 [19:31:27]line /tax-web-control/client/api/v1/ticket?date=20240812T193131&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52755&fm=154274139846369&tin=02508201610067®Number=0000000000090834&sum=23900 [19:31:27]line 0 [19:31:27]written 0, free lines is 4095 [19:31:27]OFD Sender: Processing packet 52755 [packets to send 55, broken 54] [19:31:27]ProducePacketName [19:31:27]name=ofd_packets/00052755 [19:31:27]OFD Sender: To server: pG, [19:31:27]CommunicateWithHost lk.salyk.kg:30040 [19:31:27]ConnectInit lk.salyk.kg [19:31:27]Connected sock=9 [19:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 C8 01 00 00 2C 49 C0 01 34 4E 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 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 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 13 63 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 13 CE 00 00 35 04 06 00 8C 4F BF 4D B6 E1 48 59 CA 15 43 6F C0 8B [19:31:27]Write to MH i2c: 01 00 00 57 28 7F [19:31:27]Write i2c OK [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 07 00 [19:31:27]MH_I2C_Read... [19:31:27]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 6B 0C FD [19:31:27]RasterBufferAndPrint [19:31:27]line [19:31:27]line [19:31:27]line [19:31:27]line [19:31:27]line [19:31:27]written 0, free lines is 3184 [19:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 61 AF 47 00 6E 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 13 CE 00 00 F4 03 04 00 AC 0A BA 66 B6 04 01 00 00 5E D7 31 DE A8 43 AA 27 [19:31:28]CommunicateWithHost err = 0 [19:31:28]CheckOFDResponse [19:31:28]1017 (14) - 77093643461234 [19:31:28]1041 (16) - 0000000000874715 [19:31:28]1040 (4) - 52755 [19:31:28]1012 (4) - 12.08.2024 13:14 [19:31:28]1206 (1) - 0 [19:31:28]OFD Sender: Remove packet 52755 [19:31:28]ProducePacketName [19:31:28]name=ofd_packets/00052755 [19:31:28]NVStorageDeleteData [19:31:28]MH_Cut [19:31:28]Write to MH i2c: D1 01 00 5E 28 01 58 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: D1 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: D1 01 00 [19:31:28]MH_I2C_Read... [19:31:28]Read from MH i2c: D1 01 00 5E 28 00 57 [19:31:28]Write to MH i2c: 01 00 00 5F 28 87 [19:31:28]Write i2c OK [19:31:28]MH_I2C_Read... [19:31:28]OFD Sender: No OFD packet to send [19:31:28]*** Cut start [19:31:28]*** Purtial cut [19:31:28]*** Stage 1: CUTSNS_PIN = 1 [19:31:29]Read from MH i2c: 01 [19:31:29]MH_I2C_Read... [19:31:29]*** Stop cut motor [19:31:29]*** Cut end [19:31:29]Read from MH i2c: 01 07 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: 01 07 00 5F 28 00 00 00 00 00 FF 0F 9C [19:31:29]process_action close_receipt done [19:31:29]requested_data is exist [19:31:29]produce_requested_data [19:31:29]requested_item fm.sn is exist - process it [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 11 00 00 [19:31:29]Write to MH i2c: E2 08 00 60 28 80 11 00 00 00 00 00 00 02 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 17 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 17 00 60 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 55 [19:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:31:29]wFMCommunicate OK [19:31:29]requested_item fd.num is exist - process it [19:31:29]SAM_PROTO_GetFieldsCounters [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 13 00 00 [19:31:29]Write to MH i2c: E2 08 00 61 28 80 13 00 00 00 00 00 00 05 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 62 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 62 00 61 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 13 CE 00 00 0E 04 04 00 BF 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 A1 [19:31: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 13 CE 00 00 0E 04 04 00 BF 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 [19:31:29]wFMCommunicate OK [19:31:29]SAM_PROTO_GetFieldsCounters done [19:31:29]requested_item shift.num is exist - process it [19:31:29]requested_item shift.opened is exist - process it [19:31:29]req_shift_opened [19:31:29]FM_GetShiftState [19:31:29]SAM_PROTO_GetShiftState [19:31:29]wFMCommunicate request_size=4 [19:31:29]MH_SAM_APDU [19:31:29]CAPDU: 80 13 01 00 [19:31:29]Write to MH i2c: E2 08 00 62 28 80 13 01 00 00 00 00 00 07 [19:31:29]Write i2c OK [19:31:29]MH_I2C_Read... [19:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:29]Read from MH i2c: E2 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0E 00 [19:31:29]MH_I2C_Read... [19:31:29]Read from MH i2c: E2 0E 00 62 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 65 [19:31:29]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:31:29]wFMCommunicate OK [19:31:29]SAM_PROTO_GetShiftState done [19:31:29]FM_GetShiftState done [19:31:29]req_shift_opened done [19:31:29]requested_item shift.open_date is exist - process it [19:31:29]req_shift_open_date [19:31:29]req_shift_open_date done [19:31:29]produce_requested_data done [19:31:29]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52755,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [19:31:29]process_action_free close_receipt [19:31:29]json_value_free [19:31:29]json_value_free done [19:31:29]process_json_proto returns [19:31:29]Send response to host [19:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52755,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [19:31:29]free response buf [19:31:29]execute_script done [19:31:29]execute_script returns [19:31:29]free content buf [19:31:29]Sock 10.Close socket [19:31:29]Sock 10.Thread stoped [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:40]accept exits with 7 [19:38:40]New connection [19:38:40]New thread 3067149668 created [19:38:40]Thread 3067293028 joined [19:38:40]Waiting for new connection... [19:38:40] Sock 7.Parse request [19:38:40]Sock 7.Check first char [19:38:40]Sock 7.First char is OK [19:38:40]request: POST /json_proto HTTP/1.0 [19:38:40]Method: POST [19:38:40]URL: /json_proto [19:38:40]Method is POST - this is cgi request [19:38:40]url: /json_proto [19:38:40]query_string will be loaded in cgi processing [19:38:40]execute_cgi json_proto POST (null) [19:38:40]execute_cgi path=json_proto method=POST [19:38:40]POST find Content-Length [19:38:40]Host: 172.17.60.7:8080 [19:38:40]Content-Length: 622 [19:38:40]Content-Type: application/json [19:38:40] [19:38:40]POST finish read [19:38:40]Found Content-Length = 622 [19:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122889", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:40]execute_script... [19:38: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)122889", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:40]POST & json_proto [19:38:40]process_json_proto [19:38:40]json parsed OK: [19:38:40]protocol is kg_v1.0 [19:38:40]action value=close_receipt [19:38:40]process_action close_receipt [19:38:40]cmd_close_receipt [19:38:40]MH_GetDate [19:38:40]Write to MH i2c: F0 00 00 63 28 7A [19:38:40]Write i2c OK [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: F0 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: F0 09 00 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: F0 09 00 63 28 00 C7 64 BA 66 63 9B 67 64 97 [19:38:40]GetLastDocTimeStamp 1723491091 [19:38:40]current date 1723491527 [19:38:40]FM_GetShiftState [19:38:40]SAM_PROTO_GetShiftState [19:38:40]wFMCommunicate request_size=4 [19:38:40]MH_SAM_APDU [19:38:40]CAPDU: 80 13 01 00 [19:38:40]Write to MH i2c: E2 08 00 64 28 80 13 01 00 00 00 00 00 09 [19:38:40]Write i2c OK [19:38:40]MH_I2C_Read... [19:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:41]Read from MH i2c: E2 [19:38:41]MH_I2C_Read... [19:38:41]Read from MH i2c: E2 0E 00 [19:38:41]MH_I2C_Read... [19:38:41]Read from MH i2c: E2 0E 00 64 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 67 [19:38:41]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:38:41]wFMCommunicate OK [19:38:41]SAM_PROTO_GetShiftState done [19:38:41]FM_GetShiftState done [19:38:41]opened in 1723422684 [19:38:41]opened+sec_in_day 1723509084 [19:38:41]quantity*price = 15100 [19:38:41]sum+1 = 15101 [19:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 74 12.08.2024 19:38 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52756 ФПД: 105296118841883 /tax-web-control/client/api/v1/ticket?date=20240812T193847&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52756&fm=105296118841883&tin=02508201610067®Number=0000000000090834&sum=15100 0 [19:38:42]StoreToDocumentArchive [19:38:42]shift 447 fd 52756 [19:38:42]save to /storage/0447/doc_00052756 [19:38:42]save last doc name /storage/0447/doc_00052756 to /storage/kkm_last_doc_name [19:38:42]save OK [19:38:42]Clear old archive folders... [19:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:38:42]tlvbuf is B6DFB010 [19:38:42]SAM_PROTO_ClearQueue [19:38:42]wFMCommunicate request_size=4 [19:38:42]MH_SAM_APDU [19:38:42]CAPDU: 80 09 00 00 [19:38:42]Write to MH i2c: E2 08 00 71 28 80 09 00 00 00 00 00 00 0B [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:42]Read from MH i2c: E2 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 71 28 00 90 00 0D [19:38:42]RAPDU: 90 00 [19:38:42]wFMCommunicate OK [19:38:42]SAM_PROTO_ClearQueue done [19:38:42]KKMCreateOFDPacket [19:38:42]OFDProtocolAddRootSTLVToBuf [19:38:42]FM_MakeSignedData [19:38:42]FM_MakeSignedData [19:38:42]SAM_PROTO_SignData [19:38:42]wFMCommunicate request_size=4 [19:38:42]MH_SAM_APDU [19:38:42]CAPDU: 80 0D 01 02 [19:38:42]Write to MH i2c: E2 08 00 72 28 80 0D 01 02 00 00 00 00 13 [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:42]Read from MH i2c: E2 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 72 28 00 90 00 0E [19:38:42]RAPDU: 90 00 [19:38:42]wFMCommunicate OK [19:38:42]wFMCommunicate request_size=255 [19:38:42]MH_SAM_APDU [19:38:42]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C7 64 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 [19:38:42]Write to MH i2c: E2 02 01 73 28 80 0D 02 02 FA 00 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C7 64 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 00 00 30 [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:42]Read from MH i2c: E2 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 73 28 00 90 00 0F [19:38:42]RAPDU: 90 00 [19:38:42]wFMCommunicate OK [19:38:42]wFMCommunicate request_size=33 [19:38:42]MH_SAM_APDU [19:38:42]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 31 35 10 04 04 00 14 CE 00 00 35 04 06 00 5F C4 29 C2 82 1B [19:38:42]Write to MH i2c: E2 24 00 74 28 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 31 35 10 04 04 00 14 CE 00 00 35 04 06 00 5F C4 29 C2 82 1B 00 00 32 [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:42]Read from MH i2c: E2 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 03 00 74 28 00 90 00 10 [19:38:42]RAPDU: 90 00 [19:38:42]wFMCommunicate OK [19:38:42]wFMCommunicate request_size=4 [19:38:42]MH_SAM_APDU [19:38:42]CAPDU: 80 0D 03 02 [19:38:42]Write to MH i2c: E2 08 00 75 28 80 0D 03 02 00 00 00 00 18 [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:42]Read from MH i2c: E2 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 0B 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 0B 00 75 28 00 65 30 39 5B 7C EA 94 56 90 00 92 [19:38:42]RAPDU: 65 30 39 5B 7C EA 94 56 90 00 [19:38:42]wFMCommunicate OK [19:38:42]SAM_PROTO_SignData done [19:38:42]FM_MakeSignedData done [19:38:42]CreateOFDProtocolMessage [19:38:42]wFMCommunicate request_size=4 [19:38:42]MH_SAM_APDU [19:38:42]CAPDU: 80 11 00 00 [19:38:42]Write to MH i2c: E2 08 00 76 28 80 11 00 00 00 00 00 00 18 [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:42]Read from MH i2c: E2 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 17 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: E2 17 00 76 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 6B [19:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:38:42]wFMCommunicate OK [19:38:42]CreateOFDProtocolMessage done [19:38:42]OFDSenderStorePacket 52756 [19:38:42]StoreOFDPacket docnum=52756 [19:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 26 01 00 00 F3 21 1E 01 67 16 5A 03 01 00 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C7 64 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 14 CE 00 00 35 04 06 00 5F C4 29 C2 82 1B 65 30 39 5B 7C EA 94 56 [19:38:42]CheckFolder [19:38:42]dirname=/storage/ofd_packets [19:38:42]CheckFolder done [19:38:42]ProducePacketName [19:38:42]name=ofd_packets/00052756 [19:38:42]NVStorageSaveData ofd_packets/00052756 [19:38:42]File name is /storage/ofd_packets/00052756 [19:38:42]Write 324 bytes [19:38:42]NVStorageSaveData done [19:38:42]OFDSenderStorePacket done [19:38:42]KKMCreateOFDPacket done [19:38:42]NVStorageSaveData kkm_last_timestamp [19:38:42]File name is /storage/kkm_last_timestamp [19:38:42]Write 4 bytes [19:38:42]NVStorageSaveData done [19:38:42]ExternCall_PrintAddStr [19:38:42]wPrintStart [19:38:42]Write to MH i2c: 01 00 00 77 28 9F [19:38:42]Write i2c OK [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: 01 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: 01 07 00 [19:38:42]MH_I2C_Read... [19:38:42]Read from MH i2c: 01 07 00 77 28 00 00 00 00 00 FF 0F B4 [19:38:42]RasterBufferAndPrint [19:38:42]line Счет N : (3)122889 [19:38:42]line ИНН: 02508201610067 [19:38:42]line Контрольно-Кассовый Чек [19:38:42]line ПРОДАЖА [19:38:42]line Товар: 48741958 [19:38:42]line Сигареты Parliament Aqua Blue [19:38:42]line 1.000 * 151.00 [19:38:42]line = 151.00 [19:38:42]line НДС 12% НСП 1% [19:38:42]line > о реализуемом товаре [19:38:42]line ИТОГО: 151.00 [19:38:42]line НСП 1% : 1.34 [19:38:42]line НДС 12% : 16.03 [19:38:42]line Наличными: 151.00 [19:38:42]line Безнал.: 0.00 [19:38:42]line Место: АЗС № 54 "Партнер Нефть" [19:38:42]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [19:38:42]line СНО: Общий режим [19:38:42]line Чек 74 12.08.2024 19:38 [19:38:42]line Смена: 447 ФФД: 1.0 [19:38:42]line ЗНМ: 0300000007 [19:38:42]line РНМ: 0000000000090834 [19:38:42]line Версия ККМ: 001 [19:38:42]line ФМ: 0000000000874715 [19:38:42]line ФД: 52756 [19:38:42]line ФПД: 105296118841883 [19:38:42]line /tax-web-control/client/api/v1/ticket?date=20240812T193847&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52756&fm=105296118841883&tin=02508201610067®Number=0000000000090834&sum=15100 [19:38:42]line 0 [19:38:42]written 0, free lines is 4095 [19:38:42]OFD Sender: Processing packet 52756 [packets to send 55, broken 54] [19:38:42]ProducePacketName [19:38:42]name=ofd_packets/00052756 [19:38:42]OFD Sender: To server: pG, [19:38:42]CommunicateWithHost lk.salyk.kg:30040 [19:38:42]ConnectInit lk.salyk.kg [19:38:43]Connected sock=11 [19:38:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 26 01 00 00 F3 21 1E 01 67 16 5A 03 01 00 03 00 12 01 1E 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 C7 64 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 14 CE 00 00 35 04 06 00 5F C4 29 C2 82 1B 65 30 39 5B 7C EA 94 56 [19:38:43]Write to MH i2c: 01 00 00 9F 28 C7 [19:38:43]Write i2c OK [19:38:43]MH_I2C_Read... [19:38:43]Read from MH i2c: 01 [19:38:43]MH_I2C_Read... [19:38:43]Read from MH i2c: 01 07 00 [19:38:43]MH_I2C_Read... [19:38:43]Read from MH i2c: 01 07 00 9F 28 00 00 00 00 00 DE 0C B8 [19:38:43]RasterBufferAndPrint [19:38:43]line [19:38:43]line [19:38:43]line [19:38:43]line [19:38:43]line [19:38:43]written 0, free lines is 3299 [19:38:43]MH_Cut [19:38:43]Write to MH i2c: D1 01 00 A6 28 01 A0 [19:38:43]Write i2c OK [19:38:43]MH_I2C_Read... [19:38:43]Read from MH i2c: D1 [19:38:43]MH_I2C_Read... [19:38:43]Read from MH i2c: D1 01 00 [19:38:43]MH_I2C_Read... [19:38:43]Read from MH i2c: D1 01 00 A6 28 00 9F [19:38:43]Write to MH i2c: 01 00 00 A7 28 CF [19:38:43]Write i2c OK [19:38:43]MH_I2C_Read... [19:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 C8 47 47 00 5A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 14 CE 00 00 F4 03 04 00 5F 0C BA 66 B6 04 01 00 00 9F AE 5E 9C 6C 7C 50 5F [19:38:43]CommunicateWithHost err = 0 [19:38:43]CheckOFDResponse [19:38:43]1017 (14) - 77093643461234 [19:38:43]1041 (16) - 0000000000874715 [19:38:43]1040 (4) - 52756 [19:38:43]1012 (4) - 12.08.2024 13:21 [19:38:43]1206 (1) - 0 [19:38:43]OFD Sender: Remove packet 52756 [19:38:43]ProducePacketName [19:38:43]name=ofd_packets/00052756 [19:38:43]NVStorageDeleteData [19:38:43]OFD Sender: No OFD packet to send [19:38:43]*** Cut start [19:38:43]*** Purtial cut [19:38:43]*** Stage 1: CUTSNS_PIN = 1 [19:38:44]Read from MH i2c: 01 [19:38:44]MH_I2C_Read... [19:38:44]*** Stop cut motor [19:38:44]*** Cut end [19:38:44]Read from MH i2c: 01 07 00 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: 01 07 00 A7 28 00 00 00 00 00 FF 0F E4 [19:38:44]process_action close_receipt done [19:38:44]requested_data is exist [19:38:44]produce_requested_data [19:38:44]requested_item fm.sn is exist - process it [19:38:44]wFMCommunicate request_size=4 [19:38:44]MH_SAM_APDU [19:38:44]CAPDU: 80 11 00 00 [19:38:44]Write to MH i2c: E2 08 00 A8 28 80 11 00 00 00 00 00 00 4A [19:38:44]Write i2c OK [19:38:44]MH_I2C_Read... [19:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:44]Read from MH i2c: E2 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: E2 17 00 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: E2 17 00 A8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9D [19:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:38:44]wFMCommunicate OK [19:38:44]requested_item fd.num is exist - process it [19:38:44]SAM_PROTO_GetFieldsCounters [19:38:44]wFMCommunicate request_size=4 [19:38:44]MH_SAM_APDU [19:38:44]CAPDU: 80 13 00 00 [19:38:44]Write to MH i2c: E2 08 00 A9 28 80 13 00 00 00 00 00 00 4D [19:38:44]Write i2c OK [19:38:44]MH_I2C_Read... [19:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:44]Read from MH i2c: E2 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: E2 62 00 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: E2 62 00 A9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 14 CE 00 00 0E 04 04 00 BF 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 ED [19:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 14 CE 00 00 0E 04 04 00 BF 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 [19:38:44]wFMCommunicate OK [19:38:44]SAM_PROTO_GetFieldsCounters done [19:38:44]requested_item shift.num is exist - process it [19:38:44]requested_item shift.opened is exist - process it [19:38:44]req_shift_opened [19:38:44]FM_GetShiftState [19:38:44]SAM_PROTO_GetShiftState [19:38:44]wFMCommunicate request_size=4 [19:38:44]MH_SAM_APDU [19:38:44]CAPDU: 80 13 01 00 [19:38:44]Write to MH i2c: E2 08 00 AA 28 80 13 01 00 00 00 00 00 4F [19:38:44]Write i2c OK [19:38:44]MH_I2C_Read... [19:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:44]Read from MH i2c: E2 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: E2 0E 00 [19:38:44]MH_I2C_Read... [19:38:44]Read from MH i2c: E2 0E 00 AA 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AD [19:38:44]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:38:44]wFMCommunicate OK [19:38:44]SAM_PROTO_GetShiftState done [19:38:44]FM_GetShiftState done [19:38:44]req_shift_opened done [19:38:44]requested_item shift.open_date is exist - process it [19:38:44]req_shift_open_date [19:38:44]req_shift_open_date done [19:38:44]produce_requested_data done [19:38:44]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52756,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [19:38:44]process_action_free close_receipt [19:38:44]json_value_free [19:38:44]json_value_free done [19:38:44]process_json_proto returns [19:38:44]Send response to host [19:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52756,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [19:38:44]free response buf [19:38:44]execute_script done [19:38:44]execute_script returns [19:38:44]free content buf [19:38:44]Sock 7.Close socket [19:38:44]Sock 7.Thread stoped [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:32]accept exits with 9 [19:41:32]New connection [19:41:32]New thread 3067293028 created [19:41:32]Thread 3067149668 joined [19:41:32]Waiting for new connection... [19:41:32] Sock 9.Parse request [19:41:32]Sock 9.Check first char [19:41:32]Sock 9.First char is OK [19:41:32]request: POST /json_proto HTTP/1.0 [19:41:32]Method: POST [19:41:32]URL: /json_proto [19:41:32]Method is POST - this is cgi request [19:41:32]url: /json_proto [19:41:32]query_string will be loaded in cgi processing [19:41:32]execute_cgi json_proto POST (null) [19:41:32]execute_cgi path=json_proto method=POST [19:41:32]POST find Content-Length [19:41:32]Host: 172.17.60.7:8080 [19:41:32]Content-Length: 821 [19:41:32]Content-Type: application/json [19:41:32] [19:41:32]POST finish read [19:41:32]Found Content-Length = 821 [19:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122890", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:32]execute_script... [19:41: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)122890", "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" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:32]POST & json_proto [19:41:32]process_json_proto [19:41:32]json parsed OK: [19:41:32]protocol is kg_v1.0 [19:41:32]action value=close_receipt [19:41:32]process_action close_receipt [19:41:32]cmd_close_receipt [19:41:32]MH_GetDate [19:41:32]Write to MH i2c: F0 00 00 AB 28 C2 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: F0 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: F0 09 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: F0 09 00 AB 28 00 73 65 BA 66 63 9B 67 64 8C [19:41:32]GetLastDocTimeStamp 1723491527 [19:41:32]current date 1723491699 [19:41:32]FM_GetShiftState [19:41:32]SAM_PROTO_GetShiftState [19:41:32]wFMCommunicate request_size=4 [19:41:32]MH_SAM_APDU [19:41:32]CAPDU: 80 13 01 00 [19:41:32]Write to MH i2c: E2 08 00 AC 28 80 13 01 00 00 00 00 00 51 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:32]Read from MH i2c: E2 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 0E 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: E2 0E 00 AC 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AF [19:41:32]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:41:32]wFMCommunicate OK [19:41:32]SAM_PROTO_GetShiftState done [19:41:32]FM_GetShiftState done [19:41:32]opened in 1723422684 [19:41:32]opened+sec_in_day 1723509084 [19:41:32]quantity*price = 8500 [19:41:32]sum+1 = 8501 [19:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 75 12.08.2024 19:41 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52757 ФПД: 269956278082541 /tax-web-control/client/api/v1/ticket?date=20240812T194139&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52757&fm=269956278082541&tin=02508201610067®Number=0000000000090834&sum=8500 0 [19:41:34]StoreToDocumentArchive [19:41:34]shift 447 fd 52757 [19:41:34]save to /storage/0447/doc_00052757 [19:41:34]save last doc name /storage/0447/doc_00052757 to /storage/kkm_last_doc_name [19:41:34]save OK [19:41:34]Clear old archive folders... [19:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=294 [19:41:34]tlvbuf is 012FE4C0 [19:41:34]SAM_PROTO_ClearQueue [19:41:34]wFMCommunicate request_size=4 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 09 00 00 [19:41:34]Write to MH i2c: E2 08 00 B9 28 80 09 00 00 00 00 00 00 53 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 B9 28 00 90 00 55 [19:41:34]RAPDU: 90 00 [19:41:34]wFMCommunicate OK [19:41:34]SAM_PROTO_ClearQueue done [19:41:34]KKMCreateOFDPacket [19:41:34]OFDProtocolAddRootSTLVToBuf [19:41:34]FM_MakeSignedData [19:41:34]FM_MakeSignedData [19:41:34]SAM_PROTO_SignData [19:41:34]wFMCommunicate request_size=4 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 0D 01 02 [19:41:34]Write to MH i2c: E2 08 00 BA 28 80 0D 01 02 00 00 00 00 5B [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 BA 28 00 90 00 56 [19:41:34]RAPDU: 90 00 [19:41:34]wFMCommunicate OK [19:41:34]wFMCommunicate request_size=255 [19:41:34]MH_SAM_APDU [19:41:34]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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 73 65 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [19:41:34]Write to MH i2c: E2 02 01 BB 28 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 73 65 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 42 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 BB 28 00 90 00 57 [19:41:34]RAPDU: 90 00 [19:41:34]wFMCommunicate OK [19:41:34]wFMCommunicate request_size=53 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 15 CE 00 00 35 04 06 00 F5 86 18 0F 5B ED [19:41:34]Write to MH i2c: E2 38 00 BC 28 80 0D 02 02 30 00 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 15 CE 00 00 35 04 06 00 F5 86 18 0F 5B ED 00 00 1F [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 03 00 BC 28 00 90 00 58 [19:41:34]RAPDU: 90 00 [19:41:34]wFMCommunicate OK [19:41:34]wFMCommunicate request_size=4 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 0D 03 02 [19:41:34]Write to MH i2c: E2 08 00 BD 28 80 0D 03 02 00 00 00 00 60 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 0B 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 0B 00 BD 28 00 E3 7C 06 C0 F2 F0 F3 5D 90 00 B8 [19:41:34]RAPDU: E3 7C 06 C0 F2 F0 F3 5D 90 00 [19:41:34]wFMCommunicate OK [19:41:34]SAM_PROTO_SignData done [19:41:34]FM_MakeSignedData done [19:41:34]CreateOFDProtocolMessage [19:41:34]wFMCommunicate request_size=4 [19:41:34]MH_SAM_APDU [19:41:34]CAPDU: 80 11 00 00 [19:41:34]Write to MH i2c: E2 08 00 BE 28 80 11 00 00 00 00 00 00 60 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:34]Read from MH i2c: E2 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 17 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: E2 17 00 BE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B3 [19:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:41:34]wFMCommunicate OK [19:41:34]CreateOFDProtocolMessage done [19:41:34]OFDSenderStorePacket 52757 [19:41:34]StoreOFDPacket docnum=52757 [19:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3A 01 00 00 0A DA 32 01 B6 B3 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 73 65 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 15 CE 00 00 35 04 06 00 F5 86 18 0F 5B ED E3 7C 06 C0 F2 F0 F3 5D [19:41:34]CheckFolder [19:41:34]dirname=/storage/ofd_packets [19:41:34]CheckFolder done [19:41:34]ProducePacketName [19:41:34]name=ofd_packets/00052757 [19:41:34]NVStorageSaveData ofd_packets/00052757 [19:41:34]File name is /storage/ofd_packets/00052757 [19:41:34]Write 344 bytes [19:41:34]NVStorageSaveData done [19:41:34]OFDSenderStorePacket done [19:41:34]KKMCreateOFDPacket done [19:41:34]NVStorageSaveData kkm_last_timestamp [19:41:34]File name is /storage/kkm_last_timestamp [19:41:34]Write 4 bytes [19:41:34]NVStorageSaveData done [19:41:34]ExternCall_PrintAddStr [19:41:34]wPrintStart [19:41:34]Write to MH i2c: 01 00 00 BF 28 E7 [19:41:34]Write i2c OK [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: 01 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: 01 07 00 [19:41:34]MH_I2C_Read... [19:41:34]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 FF 0F FC [19:41:34]RasterBufferAndPrint [19:41:34]line Счет N : (3)122890 [19:41:34]line ИНН: 02508201610067 [19:41:34]line Контрольно-Кассовый Чек [19:41:34]line ПРОДАЖА [19:41:34]line Товар: 4600682557456 [19:41:34]line Напиток FLash up energy эн ж/б 0,5/0,45л [19:41:34]line 1.000 * 85.00 [19:41:34]line = 85.00 [19:41:34]line НДС 12% НСП 1% [19:41:34]line > о реализуемом товаре [19:41:34]line ИТОГО: 85.00 [19:41:34]line НСП 1% : 0.75 [19:41:34]line НДС 12% : 9.03 [19:41:34]line Наличными: 0.00 [19:41:34]line Безнал.: 85.00 [19:41:34]line Место: АЗС № 54 "Партнер Нефть" [19:41:34]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [19:41:34]line СНО: Общий режим [19:41:34]line Чек 75 12.08.2024 19:41 [19:41:34]line Смена: 447 ФФД: 1.0 [19:41:34]line ЗНМ: 0300000007 [19:41:34]line РНМ: 0000000000090834 [19:41:34]line Версия ККМ: 001 [19:41:34]line Платежная система: О! деньги [19:41:34]line ФМ: 0000000000874715 [19:41:34]line ФД: 52757 [19:41:34]line ФПД: 269956278082541 [19:41:34]line /tax-web-control/client/api/v1/ticket?date=20240812T194139&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52757&fm=269956278082541&tin=02508201610067®Number=0000000000090834&sum=8500 [19:41:34]line 0 [19:41:35]written 0, free lines is 4095 [19:41:35]OFD Sender: Processing packet 52757 [packets to send 55, broken 54] [19:41:35]ProducePacketName [19:41:35]name=ofd_packets/00052757 [19:41:35]OFD Sender: To server: pG, [19:41:35]CommunicateWithHost lk.salyk.kg:30040 [19:41:35]ConnectInit lk.salyk.kg [19:41:35]Connected sock=10 [19:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3A 01 00 00 0A DA 32 01 B6 B3 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 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 73 65 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 15 CE 00 00 35 04 06 00 F5 86 18 0F 5B ED E3 7C 06 C0 F2 F0 F3 5D [19:41:35]Write to MH i2c: 01 00 00 E9 28 11 [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: 01 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: 01 07 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: 01 07 00 E9 28 00 00 00 00 00 C3 0C E7 [19:41:35]RasterBufferAndPrint [19:41:35]line [19:41:35]line [19:41:35]line [19:41:35]line [19:41:35]line [19:41:35]written 0, free lines is 3273 [19:41:35]MH_Cut [19:41:35]Write to MH i2c: D1 01 00 F0 28 01 EA [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: D1 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: D1 01 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: D1 01 00 F0 28 00 E9 [19:41:35]Write to MH i2c: 01 00 00 F1 28 19 [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 7B 13 47 00 34 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 15 CE 00 00 F4 03 04 00 0B 0D BA 66 B6 04 01 00 00 28 00 E1 34 94 2B 33 62 [19:41:35]CommunicateWithHost err = 0 [19:41:35]CheckOFDResponse [19:41:35]1017 (14) - 77093643461234 [19:41:35]1041 (16) - 0000000000874715 [19:41:35]1040 (4) - 52757 [19:41:35]1012 (4) - 12.08.2024 13:24 [19:41:35]1206 (1) - 0 [19:41:35]OFD Sender: Remove packet 52757 [19:41:35]ProducePacketName [19:41:35]name=ofd_packets/00052757 [19:41:35]NVStorageDeleteData [19:41:36]OFD Sender: No OFD packet to send [19:41:36]*** Cut start [19:41:36]*** Purtial cut [19:41:36]*** Stage 1: CUTSNS_PIN = 1 [19:41:36]Read from MH i2c: 01 [19:41:36]MH_I2C_Read... [19:41:36]*** Stop cut motor [19:41:36]*** Cut end [19:41:36]Read from MH i2c: 01 07 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 F1 28 00 00 00 00 00 FF 0F 2E [19:41:36]process_action close_receipt done [19:41:36]requested_data is exist [19:41:36]produce_requested_data [19:41:36]requested_item fm.sn is exist - process it [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 11 00 00 [19:41:36]Write to MH i2c: E2 08 00 F2 28 80 11 00 00 00 00 00 00 94 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 F2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 E7 [19:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:41:36]wFMCommunicate OK [19:41:36]requested_item fd.num is exist - process it [19:41:36]SAM_PROTO_GetFieldsCounters [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 13 00 00 [19:41:36]Write to MH i2c: E2 08 00 F3 28 80 13 00 00 00 00 00 00 97 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 62 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 62 00 F3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 15 CE 00 00 0E 04 04 00 BF 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 3B [19:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 15 CE 00 00 0E 04 04 00 BF 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 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_GetFieldsCounters done [19:41:36]requested_item shift.num is exist - process it [19:41:36]requested_item shift.opened is exist - process it [19:41:36]req_shift_opened [19:41:36]FM_GetShiftState [19:41:36]SAM_PROTO_GetShiftState [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 13 01 00 [19:41:36]Write to MH i2c: E2 08 00 F4 28 80 13 01 00 00 00 00 00 99 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0E 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0E 00 F4 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 F7 [19:41:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_GetShiftState done [19:41:36]FM_GetShiftState done [19:41:36]req_shift_opened done [19:41:36]requested_item shift.open_date is exist - process it [19:41:36]req_shift_open_date [19:41:36]req_shift_open_date done [19:41:36]produce_requested_data done [19:41:36]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52757,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [19:41:36]process_action_free close_receipt [19:41:36]json_value_free [19:41:36]json_value_free done [19:41:36]process_json_proto returns [19:41:36]Send response to host [19:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52757,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [19:41:36]free response buf [19:41:36]execute_script done [19:41:36]execute_script returns [19:41:36]free content buf [19:41:36]Sock 9.Close socket [19:41:36]Sock 9.Thread stoped [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:53]accept exits with 7 [19:45:53]New connection [19:45:53]New thread 3067149668 created [19:45:53]Thread 3067293028 joined [19:45:53]Waiting for new connection... [19:45:53] Sock 7.Parse request [19:45:53]Sock 7.Check first char [19:45:53]Sock 7.First char is OK [19:45:53]request: POST /json_proto HTTP/1.0 [19:45:53]Method: POST [19:45:53]URL: /json_proto [19:45:53]Method is POST - this is cgi request [19:45:53]url: /json_proto [19:45:53]query_string will be loaded in cgi processing [19:45:53]execute_cgi json_proto POST (null) [19:45:53]execute_cgi path=json_proto method=POST [19:45:53]POST find Content-Length [19:45:53]Host: 172.17.60.7:8080 [19:45:53]Content-Length: 1094 [19:45:53]Content-Type: application/json [19:45:53] [19:45:53]POST finish read [19:45:53]Found Content-Length = 1094 [19:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122891", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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: \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 52.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:53]execute_script... [19:45: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)122891", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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: \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 52.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:53]POST & json_proto [19:45:53]process_json_proto [19:45:53]json parsed OK: [19:45:53]protocol is kg_v1.0 [19:45:53]action value=close_receipt [19:45:53]process_action close_receipt [19:45:53]cmd_close_receipt [19:45:53]MH_GetDate [19:45:53]Write to MH i2c: F0 00 00 F5 28 0C [19:45:53]Write i2c OK [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: F0 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: F0 09 00 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: F0 09 00 F5 28 00 77 66 BA 66 63 9B 67 64 DB [19:45:53]GetLastDocTimeStamp 1723491699 [19:45:53]current date 1723491959 [19:45:53]FM_GetShiftState [19:45:53]SAM_PROTO_GetShiftState [19:45:53]wFMCommunicate request_size=4 [19:45:53]MH_SAM_APDU [19:45:53]CAPDU: 80 13 01 00 [19:45:53]Write to MH i2c: E2 08 00 F6 28 80 13 01 00 00 00 00 00 9B [19:45:53]Write i2c OK [19:45:53]MH_I2C_Read... [19:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:53]Read from MH i2c: E2 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: E2 0E 00 [19:45:53]MH_I2C_Read... [19:45:53]Read from MH i2c: E2 0E 00 F6 28 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 F9 [19:45:53]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:45:53]wFMCommunicate OK [19:45:53]SAM_PROTO_GetShiftState done [19:45:53]FM_GetShiftState done [19:45:53]opened in 1723422684 [19:45:53]opened+sec_in_day 1723509084 [19:45:53]quantity*price = 4200 [19:45:53]sum+1 = 4201 [19:45:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 52.00 НСП 1% : 0.46 НДС 12% : 5.52 Наличными: 0.00 Безнал.: 52.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 76 12.08.2024 19:45 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Кыргызстан Банк ФМ: 0000000000874715 ФД: 52758 ФПД: 60359928599566 /tax-web-control/client/api/v1/ticket?date=20240812T194559&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52758&fm=60359928599566&tin=02508201610067®Number=0000000000090834&sum=5200 0 [19:45:54]StoreToDocumentArchive [19:45:54]shift 447 fd 52758 [19:45:54]save to /storage/0447/doc_00052758 [19:45:54]save last doc name /storage/0447/doc_00052758 to /storage/kkm_last_doc_name [19:45:54]save OK [19:45:54]Clear old archive folders... [19:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=378 [19:45:54]tlvbuf is 0126E180 [19:45:54]SAM_PROTO_ClearQueue [19:45:54]wFMCommunicate request_size=4 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 09 00 00 [19:45:54]Write to MH i2c: E2 08 00 03 29 80 09 00 00 00 00 00 00 9E [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 03 29 00 90 00 A0 [19:45:54]RAPDU: 90 00 [19:45:54]wFMCommunicate OK [19:45:54]SAM_PROTO_ClearQueue done [19:45:54]KKMCreateOFDPacket [19:45:54]OFDProtocolAddRootSTLVToBuf [19:45:54]FM_MakeSignedData [19:45:54]FM_MakeSignedData [19:45:54]SAM_PROTO_SignData [19:45:54]wFMCommunicate request_size=4 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 0D 01 02 [19:45:54]Write to MH i2c: E2 08 00 04 29 80 0D 01 02 00 00 00 00 A6 [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 04 29 00 90 00 A1 [19:45:54]RAPDU: 90 00 [19:45:54]wFMCommunicate OK [19:45:54]wFMCommunicate request_size=255 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 0D 02 02 FA 03 00 7A 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 68 10 00 00 00 00 13 04 06 00 68 10 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 00 00 00 00 00 [19:45:54]Write to MH i2c: E2 02 01 05 29 80 0D 02 02 FA 00 03 00 7A 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 68 10 00 00 00 00 13 04 06 00 68 10 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 00 00 00 00 00 00 00 48 [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 05 29 00 90 00 A2 [19:45:54]RAPDU: 90 00 [19:45:54]wFMCommunicate OK [19:45:54]wFMCommunicate request_size=137 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 14 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 77 66 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 16 CE 00 00 35 04 06 00 36 E5 A4 1A 54 0E [19:45:54]Write to MH i2c: E2 8C 00 06 29 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 14 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 77 66 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 16 CE 00 00 35 04 06 00 36 E5 A4 1A 54 0E 00 00 93 [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 03 00 06 29 00 90 00 A3 [19:45:54]RAPDU: 90 00 [19:45:54]wFMCommunicate OK [19:45:54]wFMCommunicate request_size=4 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 0D 03 02 [19:45:54]Write to MH i2c: E2 08 00 07 29 80 0D 03 02 00 00 00 00 AB [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 0B 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 0B 00 07 29 00 ED 32 2F 4D 89 A7 E8 FB 90 00 5A [19:45:54]RAPDU: ED 32 2F 4D 89 A7 E8 FB 90 00 [19:45:54]wFMCommunicate OK [19:45:54]SAM_PROTO_SignData done [19:45:54]FM_MakeSignedData done [19:45:54]CreateOFDProtocolMessage [19:45:54]wFMCommunicate request_size=4 [19:45:54]MH_SAM_APDU [19:45:54]CAPDU: 80 11 00 00 [19:45:54]Write to MH i2c: E2 08 00 08 29 80 11 00 00 00 00 00 00 AB [19:45:54]Write i2c OK [19:45:54]MH_I2C_Read... [19:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:54]Read from MH i2c: E2 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 17 00 [19:45:54]MH_I2C_Read... [19:45:54]Read from MH i2c: E2 17 00 08 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 FE [19:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:45:54]wFMCommunicate OK [19:45:54]CreateOFDProtocolMessage done [19:45:54]OFDSenderStorePacket 52758 [19:45:54]StoreOFDPacket docnum=52758 [19:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8E 01 00 00 D0 9A 86 01 B0 13 5A 03 01 00 03 00 7A 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 68 10 00 00 00 00 13 04 06 00 68 10 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 14 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 77 66 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 16 CE 00 00 35 04 06 00 36 E5 A4 1A 54 0E ED 32 2F 4D 89 A7 E8 FB [19:45:54]CheckFolder [19:45:54]dirname=/storage/ofd_packets [19:45:54]CheckFolder done [19:45:54]ProducePacketName [19:45:54]name=ofd_packets/00052758 [19:45:54]NVStorageSaveData ofd_packets/00052758 [19:45:54]File name is /storage/ofd_packets/00052758 [19:45:54]Write 428 bytes [19:45:54]NVStorageSaveData done [19:45:54]OFDSenderStorePacket done [19:45:54]KKMCreateOFDPacket done [19:45:54]NVStorageSaveData kkm_last_timestamp [19:45:54]File name is /storage/kkm_last_timestamp [19:45:54]Write 4 bytes [19:45:55]NVStorageSaveData done [19:45:55]ExternCall_PrintAddStr [19:45:55]wPrintStart [19:45:55]Write to MH i2c: 01 00 00 09 29 32 [19:45:55]OFD Sender: Processing packet 52758 [packets to send 55, broken 54] [19:45:55]ProducePacketName [19:45:55]name=ofd_packets/00052758 [19:45:55]OFD Sender: To server: pG, [19:45:55]CommunicateWithHost lk.salyk.kg:30040 [19:45:55]ConnectInit lk.salyk.kg [19:45:55]Write i2c OK [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: 01 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: 01 07 00 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: 01 07 00 09 29 00 00 00 00 00 FF 0F 47 [19:45:55]RasterBufferAndPrint [19:45:55]line Счет N : (3)122891 [19:45:55]line ИНН: 02508201610067 [19:45:55]line Контрольно-Кассовый Чек [19:45:55]line ПРОДАЖА [19:45:55]line Товар: 5449000005489 [19:45:55]line Вода Бонаква 1л б/г [19:45:55]line 1.000 * 42.00 [19:45:55]line = 42.00 [19:45:55]line НДС 12% НСП 1% [19:45:55]line > о реализуемом товаре [19:45:55]line Товар: 46226624 [19:45:55]line Mentos ПВ Клубника 6*100*2 [19:45:55]line 1.000 * 10.00 [19:45:55]line = 10.00 [19:45:55]line НДС 12% НСП 1% [19:45:55]line > о реализуемом товаре [19:45:55]line ИТОГО: 52.00 [19:45:55]line НСП 1% : 0.46 [19:45:55]line НДС 12% : 5.52 [19:45:55]line Наличными: 0.00 [19:45:55]line Безнал.: 52.00 [19:45:55]line Место: АЗС № 54 "Партнер Нефть" [19:45:55]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [19:45:55]line СНО: Общий режим [19:45:55]line Чек 76 12.08.2024 19:45 [19:45:55]line Смена: 447 ФФД: 1.0 [19:45:55]line ЗНМ: 0300000007 [19:45:55]line РНМ: 0000000000090834 [19:45:55]line Версия ККМ: 001 [19:45:55]line Платежная система: Кыргызстан Банк [19:45:55]line ФМ: 0000000000874715 [19:45:55]line ФД: 52758 [19:45:55]line ФПД: 60359928599566 [19:45:55]line /tax-web-control/client/api/v1/ticket?date=20240812T194559&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52758&fm=60359928599566&tin=02508201610067®Number=0000000000090834&sum=5200 [19:45:55]line 0 [19:45:55]written 0, free lines is 4095 [19:45:55]Connected sock=10 [19:45:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8E 01 00 00 D0 9A 86 01 B0 13 5A 03 01 00 03 00 7A 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 68 10 00 00 00 00 13 04 06 00 68 10 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 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 14 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 77 66 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 16 CE 00 00 35 04 06 00 36 E5 A4 1A 54 0E ED 32 2F 4D 89 A7 E8 FB [19:45:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 ED 62 47 00 0D 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 34 37 31 35 10 04 04 00 16 CE 00 00 F4 03 04 00 10 0E BA 66 B6 04 01 00 00 C7 76 0F 34 6F 2B 96 42 [19:45:55]CommunicateWithHost err = 0 [19:45:55]CheckOFDResponse [19:45:55]1017 (14) - 77093643461234 [19:45:55]1041 (16) - 0000000000874715 [19:45:55]1040 (4) - 52758 [19:45:55]1012 (4) - 12.08.2024 13:28 [19:45:55]1206 (1) - 0 [19:45:55]OFD Sender: Remove packet 52758 [19:45:55]ProducePacketName [19:45:55]name=ofd_packets/00052758 [19:45:55]NVStorageDeleteData [19:45:55]Write to MH i2c: 01 00 00 38 29 61 [19:45:55]Write i2c OK [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: 01 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: 01 07 00 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: 01 07 00 38 29 00 00 00 00 00 8C 0C 00 [19:45:55]RasterBufferAndPrint [19:45:55]line [19:45:55]line [19:45:55]line [19:45:55]line [19:45:55]line [19:45:55]written 0, free lines is 3218 [19:45:55]MH_Cut [19:45:55]Write to MH i2c: D1 01 00 3F 29 01 3A [19:45:55]Write i2c OK [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: D1 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: D1 01 00 [19:45:55]MH_I2C_Read... [19:45:55]Read from MH i2c: D1 01 00 3F 29 00 39 [19:45:55]Write to MH i2c: 01 00 00 40 29 69 [19:45:55]Write i2c OK [19:45:55]MH_I2C_Read... [19:45:56]OFD Sender: No OFD packet to send [19:45:56]*** Cut start [19:45:56]*** Purtial cut [19:45:56]*** Stage 1: CUTSNS_PIN = 1 [19:45:56]Read from MH i2c: 01 [19:45:56]MH_I2C_Read... [19:45:56]*** Stop cut motor [19:45:56]*** Cut end [19:45:56]Read from MH i2c: 01 07 00 [19:45:56]MH_I2C_Read... [19:45:56]Read from MH i2c: 01 07 00 40 29 00 00 00 00 00 FF 0F 7E [19:45:56]process_action close_receipt done [19:45:56]requested_data is exist [19:45:56]produce_requested_data [19:45:56]requested_item fm.sn is exist - process it [19:45:56]wFMCommunicate request_size=4 [19:45:56]MH_SAM_APDU [19:45:56]CAPDU: 80 11 00 00 [19:45:56]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [19:45:56]Write i2c OK [19:45:56]MH_I2C_Read... [19:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:56]Read from MH i2c: E2 [19:45:56]MH_I2C_Read... [19:45:56]Read from MH i2c: E2 17 00 [19:45:56]MH_I2C_Read... [19:45:56]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 37 [19:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:45:56]wFMCommunicate OK [19:45:56]requested_item fd.num is exist - process it [19:45:56]SAM_PROTO_GetFieldsCounters [19:45:56]wFMCommunicate request_size=4 [19:45:56]MH_SAM_APDU [19:45:56]CAPDU: 80 13 00 00 [19:45:56]Write to MH i2c: E2 08 00 42 29 80 13 00 00 00 00 00 00 E7 [19:45:56]Write i2c OK [19:45:57]MH_I2C_Read... [19:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:57]Read from MH i2c: E2 [19:45:57]MH_I2C_Read... [19:45:57]Read from MH i2c: E2 62 00 [19:45:57]MH_I2C_Read... [19:45:57]Read from MH i2c: E2 62 00 42 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 16 CE 00 00 0E 04 04 00 BF 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 8F [19:45:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 16 CE 00 00 0E 04 04 00 BF 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 [19:45:57]wFMCommunicate OK [19:45:57]SAM_PROTO_GetFieldsCounters done [19:45:57]requested_item shift.num is exist - process it [19:45:57]requested_item shift.opened is exist - process it [19:45:57]req_shift_opened [19:45:57]FM_GetShiftState [19:45:57]SAM_PROTO_GetShiftState [19:45:57]wFMCommunicate request_size=4 [19:45:57]MH_SAM_APDU [19:45:57]CAPDU: 80 13 01 00 [19:45:57]Write to MH i2c: E2 08 00 43 29 80 13 01 00 00 00 00 00 E9 [19:45:57]Write i2c OK [19:45:57]MH_I2C_Read... [19:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:57]Read from MH i2c: E2 [19:45:57]MH_I2C_Read... [19:45:57]Read from MH i2c: E2 0E 00 [19:45:57]MH_I2C_Read... [19:45:57]Read from MH i2c: E2 0E 00 43 29 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 47 [19:45:57]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:45:57]wFMCommunicate OK [19:45:57]SAM_PROTO_GetShiftState done [19:45:57]FM_GetShiftState done [19:45:57]req_shift_opened done [19:45:57]requested_item shift.open_date is exist - process it [19:45:57]req_shift_open_date [19:45:57]req_shift_open_date done [19:45:57]produce_requested_data done [19:45:57]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52758,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [19:45:57]process_action_free close_receipt [19:45:57]json_value_free [19:45:57]json_value_free done [19:45:57]process_json_proto returns [19:45:57]Send response to host [19:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52758,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [19:45:57]free response buf [19:45:57]execute_script done [19:45:57]execute_script returns [19:45:57]free content buf [19:45:57]Sock 7.Close socket [19:45:57]Sock 7.Thread stoped [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:23]accept exits with 9 [19:53:23]New connection [19:53:23]New thread 3067293028 created [19:53:23]Thread 3067149668 joined [19:53:23]Waiting for new connection... [19:53:23] Sock 9.Parse request [19:53:23]Sock 9.Check first char [19:53:23]Sock 9.First char is OK [19:53:23]request: POST /json_proto HTTP/1.0 [19:53:23]Method: POST [19:53:23]URL: /json_proto [19:53:23]Method is POST - this is cgi request [19:53:23]url: /json_proto [19:53:23]query_string will be loaded in cgi processing [19:53:23]execute_cgi json_proto POST (null) [19:53:23]execute_cgi path=json_proto method=POST [19:53:23]POST find Content-Length [19:53:23]Host: 172.17.60.7:8080 [19:53:23]Content-Length: 1293 [19:53:23]Content-Type: application/json [19:53:23] [19:53:23]POST finish read [19:53:23]Found Content-Length = 1293 [19:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122892", "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 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 351.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:23]execute_script... [19:53: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)122892", "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 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 351.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:23]POST & json_proto [19:53:23]process_json_proto [19:53:23]json parsed OK: [19:53:23]protocol is kg_v1.0 [19:53:23]action value=close_receipt [19:53:23]process_action close_receipt [19:53:23]cmd_close_receipt [19:53:23]MH_GetDate [19:53:23]Write to MH i2c: F0 00 00 44 29 5C [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: F0 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: F0 09 00 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: F0 09 00 44 29 00 39 68 BA 66 63 9B 67 64 EF [19:53:23]GetLastDocTimeStamp 1723491959 [19:53:23]current date 1723492409 [19:53:23]FM_GetShiftState [19:53:23]SAM_PROTO_GetShiftState [19:53:23]wFMCommunicate request_size=4 [19:53:23]MH_SAM_APDU [19:53:23]CAPDU: 80 13 01 00 [19:53:23]Write to MH i2c: E2 08 00 45 29 80 13 01 00 00 00 00 00 EB [19:53:23]Write i2c OK [19:53:23]MH_I2C_Read... [19:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:23]Read from MH i2c: E2 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 0E 00 [19:53:23]MH_I2C_Read... [19:53:23]Read from MH i2c: E2 0E 00 45 29 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 49 [19:53:23]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:53:23]wFMCommunicate OK [19:53:23]SAM_PROTO_GetShiftState done [19:53:23]FM_GetShiftState done [19:53:23]opened in 1723422684 [19:53:23]opened+sec_in_day 1723509084 [19:53:23]quantity*price = 12500 [19:53:23]sum+1 = 12501 [19:53:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 351.00 НСП 1% : 3.11 НДС 12% : 37.26 Наличными: 0.00 Безнал.: 351.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 77 12.08.2024 19:53 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52759 ФПД: 82845048117385 /tax-web-control/client/api/v1/ticket?date=20240812T195330&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52759&fm=82845048117385&tin=02508201610067®Number=0000000000090834&sum=35100 0 [19:53:24]StoreToDocumentArchive [19:53:24]shift 447 fd 52759 [19:53:24]save to /storage/0447/doc_00052759 [19:53:24]save last doc name /storage/0447/doc_00052759 to /storage/kkm_last_doc_name [19:53:24]save OK [19:53:24]Clear old archive folders... [19:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=473 [19:53:24]tlvbuf is 012F17E0 [19:53:24]SAM_PROTO_ClearQueue [19:53:24]wFMCommunicate request_size=4 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 09 00 00 [19:53:24]Write to MH i2c: E2 08 00 52 29 80 09 00 00 00 00 00 00 ED [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 52 29 00 90 00 EF [19:53:24]RAPDU: 90 00 [19:53:24]wFMCommunicate OK [19:53:24]SAM_PROTO_ClearQueue done [19:53:24]KKMCreateOFDPacket [19:53:24]OFDProtocolAddRootSTLVToBuf [19:53:24]FM_MakeSignedData [19:53:24]FM_MakeSignedData [19:53:24]SAM_PROTO_SignData [19:53:24]wFMCommunicate request_size=4 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 0D 01 02 [19:53:24]Write to MH i2c: E2 08 00 53 29 80 0D 01 02 00 00 00 00 F5 [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 03 00 53 29 00 90 00 F0 [19:53:24]RAPDU: 90 00 [19:53:24]wFMCommunicate OK [19:53:24]wFMCommunicate request_size=255 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 0D 02 02 FA 03 00 D9 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 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 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 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 [19:53:24]Write to MH i2c: E2 02 01 54 29 80 0D 02 02 FA 00 03 00 D9 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 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 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 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 00 00 57 [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 54 29 00 90 00 F1 [19:53:25]RAPDU: 90 00 [19:53:25]wFMCommunicate OK [19:53:25]wFMCommunicate request_size=232 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 0D 02 02 E3 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 1C 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 68 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 17 CE 00 00 35 04 06 00 4B 58 DD AA 18 89 [19:53:25]Write to MH i2c: E2 EB 00 55 29 80 0D 02 02 E3 00 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 1C 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 68 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 17 CE 00 00 35 04 06 00 4B 58 DD AA 18 89 00 00 38 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 55 29 00 90 00 F2 [19:53:25]RAPDU: 90 00 [19:53:25]wFMCommunicate OK [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 0D 03 02 [19:53:25]Write to MH i2c: E2 08 00 56 29 80 0D 03 02 00 00 00 00 FA [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 0B 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 0B 00 56 29 00 EA 1C B0 6B BB 3D 6A C6 90 00 44 [19:53:25]RAPDU: EA 1C B0 6B BB 3D 6A C6 90 00 [19:53:25]wFMCommunicate OK [19:53:25]SAM_PROTO_SignData done [19:53:25]FM_MakeSignedData done [19:53:25]CreateOFDProtocolMessage [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 11 00 00 [19:53:25]Write to MH i2c: E2 08 00 57 29 80 11 00 00 00 00 00 00 FA [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 17 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 17 00 57 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 4D [19:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:53:25]wFMCommunicate OK [19:53:25]CreateOFDProtocolMessage done [19:53:25]OFDSenderStorePacket 52759 [19:53:25]StoreOFDPacket docnum=52759 [19:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 ED 01 00 00 53 2A E5 01 82 4D 5A 03 01 00 03 00 D9 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 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 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 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 1C 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 68 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 17 CE 00 00 35 04 06 00 4B 58 DD AA 18 89 EA 1C B0 6B BB 3D 6A C6 [19:53:25]CheckFolder [19:53:25]dirname=/storage/ofd_packets [19:53:25]CheckFolder done [19:53:25]ProducePacketName [19:53:25]name=ofd_packets/00052759 [19:53:25]NVStorageSaveData ofd_packets/00052759 [19:53:25]File name is /storage/ofd_packets/00052759 [19:53:25]Write 523 bytes [19:53:25]NVStorageSaveData done [19:53:25]OFDSenderStorePacket done [19:53:25]KKMCreateOFDPacket done [19:53:25]NVStorageSaveData kkm_last_timestamp [19:53:25]File name is /storage/kkm_last_timestamp [19:53:25]Write 4 bytes [19:53:25]NVStorageSaveData done [19:53:25]ExternCall_PrintAddStr [19:53:25]wPrintStart [19:53:25]Write to MH i2c: 01 00 00 58 29 81 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 07 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 07 00 58 29 00 00 00 00 00 FF 0F 96 [19:53:25]RasterBufferAndPrint [19:53:25]line Счет N : (3)122892 [19:53:25]line ИНН: 02508201610067 [19:53:25]line Контрольно-Кассовый Чек [19:53:25]line ПРОДАЖА [19:53:25]line Товар: 5449000006271 [19:53:25]line Напиток Фанта 1л [19:53:25]line 1.000 * 125.00 [19:53:25]line = 125.00 [19:53:25]line НДС 12% НСП 1% [19:53:25]line > о реализуемом товаре [19:53:25]line Товар: 48741958 [19:53:25]line Сигареты Parliament Aqua Blue [19:53:25]line 1.000 * 151.00 [19:53:25]line = 151.00 [19:53:25]line НДС 12% НСП 1% [19:53:25]line > о реализуемом товаре [19:53:25]line Товар: 40822938 [19:53:25]line Напиток Фанта 0,5л [19:53:25]line 1.000 * 75.00 [19:53:25]line = 75.00 [19:53:25]line НДС 12% НСП 1% [19:53:25]line > о реализуемом товаре [19:53:25]line ИТОГО: 351.00 [19:53:25]line НСП 1% : 3.11 [19:53:25]line НДС 12% : 37.26 [19:53:25]line Наличными: 0.00 [19:53:25]line Безнал.: 351.00 [19:53:25]line Место: АЗС № 54 "Партнер Нефть" [19:53:25]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [19:53:25]line СНО: Общий режим [19:53:25]line Чек 77 12.08.2024 19:53 [19:53:25]line Смена: 447 ФФД: 1.0 [19:53:25]line ЗНМ: 0300000007 [19:53:25]line РНМ: 0000000000090834 [19:53:25]line Версия ККМ: 001 [19:53:25]line Платежная система: О! деньги [19:53:25]line ФМ: 0000000000874715 [19:53:25]line ФД: 52759 [19:53:25]line ФПД: 82845048117385 [19:53:25]line /tax-web-control/client/api/v1/ticket?date=20240812T195330&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52759&fm=82845048117385&tin=02508201610067®Number=0000000000090834&sum=35100 [19:53:25]line 0 [19:53:25]written 0, free lines is 4095 [19:53:25]OFD Sender: Processing packet 52759 [packets to send 55, broken 54] [19:53:25]ProducePacketName [19:53:25]name=ofd_packets/00052759 [19:53:25]OFD Sender: To server: pG, [19:53:25]CommunicateWithHost lk.salyk.kg:30040 [19:53:25]ConnectInit lk.salyk.kg [19:53:26]Write to MH i2c: 01 00 00 8E 29 B7 [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: 01 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: 01 07 00 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: 01 07 00 8E 29 00 00 00 00 00 F3 0B BC [19:53:26]RasterBufferAndPrint [19:53:26]line [19:53:26]line [19:53:26]line [19:53:26]line [19:53:26]line [19:53:26]written 0, free lines is 3065 [19:53:26]MH_Cut [19:53:26]Write to MH i2c: D1 01 00 95 29 01 90 [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: D1 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: D1 01 00 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: D1 01 00 95 29 00 8F [19:53:26]Write to MH i2c: 01 00 00 96 29 BF [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:27]*** Cut start [19:53:27]*** Purtial cut [19:53:27]*** Stage 1: CUTSNS_PIN = 1 [19:53:27]Read from MH i2c: 01 [19:53:27]MH_I2C_Read... [19:53:27]*** Stop cut motor [19:53:27]*** Cut end [19:53:27]Read from MH i2c: 01 07 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: 01 07 00 96 29 00 00 00 00 00 FF 0F D4 [19:53:27]process_action close_receipt done [19:53:27]requested_data is exist [19:53:27]produce_requested_data [19:53:27]requested_item fm.sn is exist - process it [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 11 00 00 [19:53:27]Write to MH i2c: E2 08 00 97 29 80 11 00 00 00 00 00 00 3A [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:27]Read from MH i2c: E2 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 17 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 17 00 97 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 8D [19:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [19:53:27]wFMCommunicate OK [19:53:27]requested_item fd.num is exist - process it [19:53:27]SAM_PROTO_GetFieldsCounters [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 13 00 00 [19:53:27]Write to MH i2c: E2 08 00 98 29 80 13 00 00 00 00 00 00 3D [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:27]Read from MH i2c: E2 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 62 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 62 00 98 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 17 CE 00 00 0E 04 04 00 BF 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 E9 [19:53: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 17 CE 00 00 0E 04 04 00 BF 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:53:27]wFMCommunicate OK [19:53:27]SAM_PROTO_GetFieldsCounters done [19:53:27]requested_item shift.num is exist - process it [19:53:27]requested_item shift.opened is exist - process it [19:53:27]req_shift_opened [19:53:27]FM_GetShiftState [19:53:27]SAM_PROTO_GetShiftState [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 13 01 00 [19:53:27]Write to MH i2c: E2 08 00 99 29 80 13 01 00 00 00 00 00 3F [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:27]Read from MH i2c: E2 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 0E 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 0E 00 99 29 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 9D [19:53:27]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [19:53:27]wFMCommunicate OK [19:53:27]SAM_PROTO_GetShiftState done [19:53:27]FM_GetShiftState done [19:53:27]req_shift_opened done [19:53:27]requested_item shift.open_date is exist - process it [19:53:27]req_shift_open_date [19:53:27]req_shift_open_date done [19:53:27]produce_requested_data done [19:53:27]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52759,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [19:53:27]process_action_free close_receipt [19:53:27]json_value_free [19:53:27]json_value_free done [19:53:27]process_json_proto returns [19:53:27]Send response to host [19:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52759,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [19:53:27]free response buf [19:53:27]execute_script done [19:53:27]execute_script returns [19:53:27]free content buf [19:53:27]Sock 9.Close socket [19:53:27]Sock 9.Thread stoped [19:55:37]ConnectInit Can't connect to host [19:55:37]CommunicateWithHost connect error [19:55:37]CommunicateWithHost err = -1 [19:55:37]OFD Sender: Server communicate error [19:55:42]OFD Sender: Processing packet 52759 [packets to send 55, broken 54] [19:55:42]ProducePacketName [19:55:42]name=ofd_packets/00052759 [19:55:42]OFD Sender: To server: pG, [19:55:42]CommunicateWithHost lk.salyk.kg:30040 [19:55:42]ConnectInit lk.salyk.kg [19:55:42]Connected sock=10 [19:55:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 ED 01 00 00 53 2A E5 01 82 4D 5A 03 01 00 03 00 D9 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 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 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 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 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 1C 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 89 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 68 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 17 CE 00 00 35 04 06 00 4B 58 DD AA 18 89 EA 1C B0 6B BB 3D 6A C6 [19:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 34 53 47 00 C3 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 17 CE 00 00 F4 03 04 00 5B 10 BA 66 B6 04 01 00 00 7C 27 0A AA E4 D3 08 49 [19:55:42]CommunicateWithHost err = 0 [19:55:42]CheckOFDResponse [19:55:42]1017 (14) - 77093643461234 [19:55:42]1041 (16) - 0000000000874715 [19:55:42]1040 (4) - 52759 [19:55:42]1012 (4) - 12.08.2024 13:38 [19:55:42]1206 (1) - 0 [19:55:42]OFD Sender: Remove packet 52759 [19:55:42]ProducePacketName [19:55:42]name=ofd_packets/00052759 [19:55:42]NVStorageDeleteData [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]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:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [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: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:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:40]ConnectInit Can't connect to host [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]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:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]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:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:46]accept exits with 7 [21:07:46]New connection [21:07:46]New thread 3067149668 created [21:07:46]Thread 3067293028 joined [21:07:46]Waiting for new connection... [21:07:46] Sock 7.Parse request [21:07:46]Sock 7.Check first char [21:07:46]Sock 7.First char is OK [21:07:46]request: POST /json_proto HTTP/1.0 [21:07:46]Method: POST [21:07:46]URL: /json_proto [21:07:46]Method is POST - this is cgi request [21:07:46]url: /json_proto [21:07:46]query_string will be loaded in cgi processing [21:07:46]execute_cgi json_proto POST (null) [21:07:46]execute_cgi path=json_proto method=POST [21:07:46]POST find Content-Length [21:07:46]Host: 172.17.60.7:8080 [21:07:46]Content-Length: 785 [21:07:46]Content-Type: application/json [21:07:46] [21:07:46]POST finish read [21:07:46]Found Content-Length = 785 [21:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122893", "tax_sys" : 0, "items" : [ { "code": "4640030090051", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Menthol", "price" : 138.00, "quantity" : 2.000, "sum" : 276.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:46]execute_script... [21:07: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)122893", "tax_sys" : 0, "items" : [ { "code": "4640030090051", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Menthol", "price" : 138.00, "quantity" : 2.000, "sum" : 276.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:46]POST & json_proto [21:07:46]process_json_proto [21:07:46]json parsed OK: [21:07:46]protocol is kg_v1.0 [21:07:46]action value=close_receipt [21:07:46]process_action close_receipt [21:07:46]cmd_close_receipt [21:07:46]MH_GetDate [21:07:46]Write to MH i2c: F0 00 00 9A 29 B2 [21:07:46]Write i2c OK [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: F0 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: F0 09 00 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: F0 09 00 9A 29 00 A9 79 BA 66 63 9B 67 64 C6 [21:07:46]GetLastDocTimeStamp 1723492410 [21:07:46]current date 1723496873 [21:07:46]FM_GetShiftState [21:07:46]SAM_PROTO_GetShiftState [21:07:46]wFMCommunicate request_size=4 [21:07:46]MH_SAM_APDU [21:07:46]CAPDU: 80 13 01 00 [21:07:46]Write to MH i2c: E2 08 00 9B 29 80 13 01 00 00 00 00 00 41 [21:07:46]Write i2c OK [21:07:46]MH_I2C_Read... [21:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:46]Read from MH i2c: E2 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: E2 0E 00 [21:07:46]MH_I2C_Read... [21:07:46]Read from MH i2c: E2 0E 00 9B 29 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 9F [21:07:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [21:07:46]wFMCommunicate OK [21:07:46]SAM_PROTO_GetShiftState done [21:07:46]FM_GetShiftState done [21:07:46]opened in 1723422684 [21:07:46]opened+sec_in_day 1723509084 [21:07:46]quantity*price = 27600 [21:07:46]sum+1 = 27601 [21:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 0.00 Безнал.: 276.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 78 12.08.2024 21:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52760 ФПД: 95062497048525 /tax-web-control/client/api/v1/ticket?date=20240812T210753&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52760&fm=95062497048525&tin=02508201610067®Number=0000000000090834&sum=27600 0 [21:07:48]StoreToDocumentArchive [21:07:48]shift 447 fd 52760 [21:07:48]save to /storage/0447/doc_00052760 [21:07:48]save last doc name /storage/0447/doc_00052760 to /storage/kkm_last_doc_name [21:07:48]save OK [21:07:48]Clear old archive folders... [21:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:07:48]tlvbuf is 0129C6E0 [21:07:48]SAM_PROTO_ClearQueue [21:07:48]wFMCommunicate request_size=4 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 09 00 00 [21:07:48]Write to MH i2c: E2 08 00 A8 29 80 09 00 00 00 00 00 00 43 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 A8 29 00 90 00 45 [21:07:48]RAPDU: 90 00 [21:07:48]wFMCommunicate OK [21:07:48]SAM_PROTO_ClearQueue done [21:07:48]KKMCreateOFDPacket [21:07:48]OFDProtocolAddRootSTLVToBuf [21:07:48]FM_MakeSignedData [21:07:48]FM_MakeSignedData [21:07:48]SAM_PROTO_SignData [21:07:48]wFMCommunicate request_size=4 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 0D 01 02 [21:07:48]Write to MH i2c: E2 08 00 A9 29 80 0D 01 02 00 00 00 00 4B [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 A9 29 00 90 00 46 [21:07:48]RAPDU: 90 00 [21:07:48]wFMCommunicate OK [21:07:48]wFMCommunicate request_size=255 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 35 31 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A9 79 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:07:48]Write to MH i2c: E2 02 01 AA 29 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 35 31 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A9 79 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 7B [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 AA 29 00 90 00 47 [21:07:48]RAPDU: 90 00 [21:07:48]wFMCommunicate OK [21:07:48]wFMCommunicate request_size=30 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 0D 02 02 19 30 38 37 34 37 31 35 10 04 04 00 18 CE 00 00 35 04 06 00 56 75 76 5E 37 CD [21:07:48]Write to MH i2c: E2 21 00 AB 29 80 0D 02 02 19 00 30 38 37 34 37 31 35 10 04 04 00 18 CE 00 00 35 04 06 00 56 75 76 5E 37 CD 00 00 D0 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 03 00 AB 29 00 90 00 48 [21:07:48]RAPDU: 90 00 [21:07:48]wFMCommunicate OK [21:07:48]wFMCommunicate request_size=4 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 0D 03 02 [21:07:48]Write to MH i2c: E2 08 00 AC 29 80 0D 03 02 00 00 00 00 50 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 0B 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 0B 00 AC 29 00 37 CD C1 62 06 15 A1 9B 90 00 CF [21:07:48]RAPDU: 37 CD C1 62 06 15 A1 9B 90 00 [21:07:48]wFMCommunicate OK [21:07:48]SAM_PROTO_SignData done [21:07:48]FM_MakeSignedData done [21:07:48]CreateOFDProtocolMessage [21:07:48]wFMCommunicate request_size=4 [21:07:48]MH_SAM_APDU [21:07:48]CAPDU: 80 11 00 00 [21:07:48]Write to MH i2c: E2 08 00 AD 29 80 11 00 00 00 00 00 00 50 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:48]Read from MH i2c: E2 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 17 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: E2 17 00 AD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 A3 [21:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [21:07:48]wFMCommunicate OK [21:07:48]CreateOFDProtocolMessage done [21:07:48]OFDSenderStorePacket 52760 [21:07:48]StoreOFDPacket docnum=52760 [21:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 85 AB 1B 01 30 5E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 35 31 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A9 79 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 18 CE 00 00 35 04 06 00 56 75 76 5E 37 CD 37 CD C1 62 06 15 A1 9B [21:07:48]CheckFolder [21:07:48]dirname=/storage/ofd_packets [21:07:48]CheckFolder done [21:07:48]ProducePacketName [21:07:48]name=ofd_packets/00052760 [21:07:48]NVStorageSaveData ofd_packets/00052760 [21:07:48]File name is /storage/ofd_packets/00052760 [21:07:48]Write 321 bytes [21:07:48]NVStorageSaveData done [21:07:48]OFDSenderStorePacket done [21:07:48]KKMCreateOFDPacket done [21:07:48]NVStorageSaveData kkm_last_timestamp [21:07:48]File name is /storage/kkm_last_timestamp [21:07:48]Write 4 bytes [21:07:48]NVStorageSaveData done [21:07:48]ExternCall_PrintAddStr [21:07:48]wPrintStart [21:07:48]Write to MH i2c: 01 00 00 AE 29 D7 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 07 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 07 00 AE 29 00 00 00 00 00 FF 0F EC [21:07:48]RasterBufferAndPrint [21:07:48]line Счет N : (3)122893 [21:07:48]line ИНН: 02508201610067 [21:07:48]line Контрольно-Кассовый Чек [21:07:48]line ПРОДАЖА [21:07:48]line Товар: 4640030090051 [21:07:48]line Сигареты Esse Menthol [21:07:48]line 2.000 * 138.00 [21:07:48]line = 276.00 [21:07:48]line НДС 12% НСП 1% [21:07:48]line > о реализуемом товаре [21:07:48]line ИТОГО: 276.00 [21:07:48]line НСП 1% : 2.44 [21:07:48]line НДС 12% : 29.31 [21:07:48]line Наличными: 0.00 [21:07:48]line Безнал.: 276.00 [21:07:48]line Место: АЗС № 54 "Партнер Нефть" [21:07:48]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [21:07:48]line СНО: Общий режим [21:07:48]line Чек 78 12.08.2024 21:07 [21:07:48]line Смена: 447 ФФД: 1.0 [21:07:48]line ЗНМ: 0300000007 [21:07:48]line РНМ: 0000000000090834 [21:07:48]line Версия ККМ: 001 [21:07:48]line Платежная система: О! деньги [21:07:48]line ФМ: 0000000000874715 [21:07:48]line ФД: 52760 [21:07:48]line ФПД: 95062497048525 [21:07:48]line /tax-web-control/client/api/v1/ticket?date=20240812T210753&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52760&fm=95062497048525&tin=02508201610067®Number=0000000000090834&sum=27600 [21:07:48]line 0 [21:07:48]written 0, free lines is 4095 [21:07:48]OFD Sender: Processing packet 52760 [packets to send 55, broken 54] [21:07:48]ProducePacketName [21:07:48]name=ofd_packets/00052760 [21:07:48]OFD Sender: To server: pG, [21:07:48]CommunicateWithHost lk.salyk.kg:30040 [21:07:48]ConnectInit lk.salyk.kg [21:07:49]Connected sock=10 [21:07:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 23 01 00 00 85 AB 1B 01 30 5E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 35 31 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 4D 65 6E 74 68 6F 6C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A9 79 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 18 CE 00 00 35 04 06 00 56 75 76 5E 37 CD 37 CD C1 62 06 15 A1 9B [21:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 63 92 47 00 E8 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 18 CE 00 00 F4 03 04 00 42 21 BA 66 B6 04 01 00 00 5E 78 B1 25 07 E8 DB 67 [21:07:49]CommunicateWithHost err = 0 [21:07:49]CheckOFDResponse [21:07:49]1017 (14) - 77093643461234 [21:07:49]1041 (16) - 0000000000874715 [21:07:49]1040 (4) - 52760 [21:07:49]1012 (4) - 12.08.2024 14:50 [21:07:49]1206 (1) - 0 [21:07:49]OFD Sender: Remove packet 52760 [21:07:49]ProducePacketName [21:07:49]name=ofd_packets/00052760 [21:07:49]NVStorageDeleteData [21:07:49]Write to MH i2c: 01 00 00 D7 29 00 [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: 01 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: 01 07 00 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: 01 07 00 D7 29 00 00 00 00 00 D3 0C E6 [21:07:49]RasterBufferAndPrint [21:07:49]line [21:07:49]line [21:07:49]line [21:07:49]line [21:07:49]line [21:07:49]written 0, free lines is 3289 [21:07:49]MH_Cut [21:07:49]Write to MH i2c: D1 01 00 DE 29 01 D9 [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: D1 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: D1 01 00 [21:07:49]MH_I2C_Read... [21:07:49]Read from MH i2c: D1 01 00 DE 29 00 D8 [21:07:49]Write to MH i2c: 01 00 00 DF 29 08 [21:07:49]Write i2c OK [21:07:49]MH_I2C_Read... [21:07:49]OFD Sender: No OFD packet to send [21:07:50]*** Cut start [21:07:50]*** Purtial cut [21:07:50]*** Stage 1: CUTSNS_PIN = 1 [21:07:50]Read from MH i2c: 01 [21:07:50]MH_I2C_Read... [21:07:50]*** Stop cut motor [21:07:50]*** Cut end [21:07:50]Read from MH i2c: 01 07 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: 01 07 00 DF 29 00 00 00 00 00 FF 0F 1D [21:07:50]process_action close_receipt done [21:07:50]requested_data is exist [21:07:50]produce_requested_data [21:07:50]requested_item fm.sn is exist - process it [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 11 00 00 [21:07:50]Write to MH i2c: E2 08 00 E0 29 80 11 00 00 00 00 00 00 83 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 17 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 17 00 E0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D6 [21:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [21:07:50]wFMCommunicate OK [21:07:50]requested_item fd.num is exist - process it [21:07:50]SAM_PROTO_GetFieldsCounters [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 13 00 00 [21:07:50]Write to MH i2c: E2 08 00 E1 29 80 13 00 00 00 00 00 00 86 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 62 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 62 00 E1 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 18 CE 00 00 0E 04 04 00 BF 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 36 [21:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 18 CE 00 00 0E 04 04 00 BF 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 [21:07:50]wFMCommunicate OK [21:07:50]SAM_PROTO_GetFieldsCounters done [21:07:50]requested_item shift.num is exist - process it [21:07:50]requested_item shift.opened is exist - process it [21:07:50]req_shift_opened [21:07:50]FM_GetShiftState [21:07:50]SAM_PROTO_GetShiftState [21:07:50]wFMCommunicate request_size=4 [21:07:50]MH_SAM_APDU [21:07:50]CAPDU: 80 13 01 00 [21:07:50]Write to MH i2c: E2 08 00 E2 29 80 13 01 00 00 00 00 00 88 [21:07:50]Write i2c OK [21:07:50]MH_I2C_Read... [21:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:50]Read from MH i2c: E2 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 0E 00 [21:07:50]MH_I2C_Read... [21:07:50]Read from MH i2c: E2 0E 00 E2 29 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E6 [21:07:50]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [21:07:50]wFMCommunicate OK [21:07:50]SAM_PROTO_GetShiftState done [21:07:50]FM_GetShiftState done [21:07:50]req_shift_opened done [21:07:50]requested_item shift.open_date is exist - process it [21:07:50]req_shift_open_date [21:07:50]req_shift_open_date done [21:07:50]produce_requested_data done [21:07:50]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52760,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [21:07:50]process_action_free close_receipt [21:07:50]json_value_free [21:07:50]json_value_free done [21:07:50]process_json_proto returns [21:07:50]Send response to host [21:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52760,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [21:07:50]free response buf [21:07:50]execute_script done [21:07:50]execute_script returns [21:07:50]free content buf [21:07:50]Sock 7.Close socket [21:07:50]Sock 7.Thread stoped [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:25]accept exits with 9 [21:11:25]New connection [21:11:25]New thread 3067293028 created [21:11:25]Thread 3067149668 joined [21:11:25]Waiting for new connection... [21:11:25] Sock 9.Parse request [21:11:25]Sock 9.Check first char [21:11:25]Sock 9.First char is OK [21:11:25]request: POST /json_proto HTTP/1.0 [21:11:25]Method: POST [21:11:25]URL: /json_proto [21:11:25]Method is POST - this is cgi request [21:11:25]url: /json_proto [21:11:25]query_string will be loaded in cgi processing [21:11:25]execute_cgi json_proto POST (null) [21:11:25]execute_cgi path=json_proto method=POST [21:11:25]POST find Content-Length [21:11:25]Host: 172.17.60.7:8080 [21:11:25]Content-Length: 779 [21:11:25]Content-Type: application/json [21:11:25] [21:11:25]POST finish read [21:11:25]Found Content-Length = 779 [21:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122894", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:25]execute_script... [21:11: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)122894", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:25]POST & json_proto [21:11:25]process_json_proto [21:11:25]json parsed OK: [21:11:25]protocol is kg_v1.0 [21:11:25]action value=close_receipt [21:11:25]process_action close_receipt [21:11:25]cmd_close_receipt [21:11:25]MH_GetDate [21:11:25]Write to MH i2c: F0 00 00 E3 29 FB [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: F0 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: F0 09 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: F0 09 00 E3 29 00 84 7A BA 66 63 9B 67 64 EB [21:11:25]GetLastDocTimeStamp 1723496873 [21:11:25]current date 1723497092 [21:11:25]FM_GetShiftState [21:11:25]SAM_PROTO_GetShiftState [21:11:25]wFMCommunicate request_size=4 [21:11:25]MH_SAM_APDU [21:11:25]CAPDU: 80 13 01 00 [21:11:25]Write to MH i2c: E2 08 00 E4 29 80 13 01 00 00 00 00 00 8A [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:25]Read from MH i2c: E2 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 0E 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 0E 00 E4 29 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E8 [21:11:25]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [21:11:25]wFMCommunicate OK [21:11:25]SAM_PROTO_GetShiftState done [21:11:25]FM_GetShiftState done [21:11:25]opened in 1723422684 [21:11:25]opened+sec_in_day 1723509084 [21:11:25]quantity*price = 8000 [21:11:25]sum+1 = 8001 [21:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 79 12.08.2024 21:11 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52761 ФПД: 32858783047309 /tax-web-control/client/api/v1/ticket?date=20240812T211132&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52761&fm=32858783047309&tin=02508201610067®Number=0000000000090834&sum=8000 0 [21:11:27]StoreToDocumentArchive [21:11:27]shift 447 fd 52761 [21:11:27]save to /storage/0447/doc_00052761 [21:11:27]save last doc name /storage/0447/doc_00052761 to /storage/kkm_last_doc_name [21:11:27]save OK [21:11:27]Clear old archive folders... [21:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=268 [21:11:27]tlvbuf is 0126E180 [21:11:27]SAM_PROTO_ClearQueue [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 09 00 00 [21:11:27]Write to MH i2c: E2 08 00 F1 29 80 09 00 00 00 00 00 00 8C [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 F1 29 00 90 00 8E [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_ClearQueue done [21:11:27]KKMCreateOFDPacket [21:11:27]OFDProtocolAddRootSTLVToBuf [21:11:27]FM_MakeSignedData [21:11:27]FM_MakeSignedData [21:11:27]SAM_PROTO_SignData [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 01 02 [21:11:27]Write to MH i2c: E2 08 00 F2 29 80 0D 01 02 00 00 00 00 94 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 F2 29 00 90 00 8F [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]wFMCommunicate request_size=255 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 84 7A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [21:11:27]Write to MH i2c: E2 02 01 F3 29 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 84 7A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 D3 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 F3 29 00 90 00 90 [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]wFMCommunicate request_size=27 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 02 02 16 34 37 31 35 10 04 04 00 19 CE 00 00 35 04 06 00 1D E2 88 17 5E 8D [21:11:27]Write to MH i2c: E2 1E 00 F4 29 80 0D 02 02 16 00 34 37 31 35 10 04 04 00 19 CE 00 00 35 04 06 00 1D E2 88 17 5E 8D 00 00 5B [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 F4 29 00 90 00 91 [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 03 02 [21:11:27]Write to MH i2c: E2 08 00 F5 29 80 0D 03 02 00 00 00 00 99 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0B 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0B 00 F5 29 00 80 70 ED 0F 25 18 BA FC 90 00 79 [21:11:27]RAPDU: 80 70 ED 0F 25 18 BA FC 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_SignData done [21:11:27]FM_MakeSignedData done [21:11:27]CreateOFDProtocolMessage [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 11 00 00 [21:11:27]Write to MH i2c: E2 08 00 F6 29 80 11 00 00 00 00 00 00 99 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 17 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 17 00 F6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 EC [21:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [21:11:27]wFMCommunicate OK [21:11:27]CreateOFDProtocolMessage done [21:11:27]OFDSenderStorePacket 52761 [21:11:27]StoreOFDPacket docnum=52761 [21:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 20 01 00 00 CF 7E 18 01 09 29 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 84 7A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 19 CE 00 00 35 04 06 00 1D E2 88 17 5E 8D 80 70 ED 0F 25 18 BA FC [21:11:27]CheckFolder [21:11:27]dirname=/storage/ofd_packets [21:11:27]CheckFolder done [21:11:27]ProducePacketName [21:11:27]name=ofd_packets/00052761 [21:11:27]NVStorageSaveData ofd_packets/00052761 [21:11:27]File name is /storage/ofd_packets/00052761 [21:11:27]Write 318 bytes [21:11:27]NVStorageSaveData done [21:11:27]OFDSenderStorePacket done [21:11:27]KKMCreateOFDPacket done [21:11:27]NVStorageSaveData kkm_last_timestamp [21:11:27]File name is /storage/kkm_last_timestamp [21:11:27]Write 4 bytes [21:11:27]NVStorageSaveData done [21:11:27]ExternCall_PrintAddStr [21:11:27]wPrintStart [21:11:27]Write to MH i2c: 01 00 00 F7 29 20 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 07 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 FF 0F 35 [21:11:27]RasterBufferAndPrint [21:11:27]line Счет N : (3)122894 [21:11:27]line ИНН: 02508201610067 [21:11:27]line Контрольно-Кассовый Чек [21:11:27]line ПРОДАЖА [21:11:27]line Товар: 4870001570057 [21:11:27]line Напиток Pepsi 0,5л [21:11:27]line 1.000 * 80.00 [21:11:27]line = 80.00 [21:11:27]line НДС 12% НСП 1% [21:11:27]line > о реализуемом товаре [21:11:27]line ИТОГО: 80.00 [21:11:27]line НСП 1% : 0.71 [21:11:27]line НДС 12% : 8.50 [21:11:27]line Наличными: 0.00 [21:11:27]line Безнал.: 80.00 [21:11:27]line Место: АЗС № 54 "Партнер Нефть" [21:11:27]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [21:11:27]line СНО: Общий режим [21:11:27]line Чек 79 12.08.2024 21:11 [21:11:27]line Смена: 447 ФФД: 1.0 [21:11:27]line ЗНМ: 0300000007 [21:11:27]line РНМ: 0000000000090834 [21:11:27]line Версия ККМ: 001 [21:11:27]line Платежная система: О! деньги [21:11:27]line ФМ: 0000000000874715 [21:11:27]line ФД: 52761 [21:11:27]line ФПД: 32858783047309 [21:11:27]line /tax-web-control/client/api/v1/ticket?date=20240812T211132&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52761&fm=32858783047309&tin=02508201610067®Number=0000000000090834&sum=8000 [21:11:27]OFD Sender: Processing packet 52761 [packets to send 55, broken 54] [21:11:27]ProducePacketName [21:11:27]name=ofd_packets/00052761 [21:11:27]OFD Sender: To server: pG, [21:11:27]CommunicateWithHost lk.salyk.kg:30040 [21:11:27]ConnectInit lk.salyk.kg [21:11:27]line 0 [21:11:27]written 0, free lines is 4095 [21:11:28]Connected sock=10 [21:11:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 20 01 00 00 CF 7E 18 01 09 29 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 84 7A BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 19 CE 00 00 35 04 06 00 1D E2 88 17 5E 8D 80 70 ED 0F 25 18 BA FC [21:11:28]Write to MH i2c: 01 00 00 20 2A 4A [21:11:28]Write i2c OK [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: 01 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: 01 07 00 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: 01 07 00 20 2A 00 00 00 00 00 CB 0C 28 [21:11:28]RasterBufferAndPrint [21:11:28]line [21:11:28]line [21:11:28]line [21:11:28]line [21:11:28]line [21:11:28]written 0, free lines is 3283 [21:11:28]MH_Cut [21:11:28]Write to MH i2c: D1 01 00 27 2A 01 23 [21:11:28]Write i2c OK [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: D1 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: D1 01 00 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: D1 01 00 27 2A 00 22 [21:11:28]Write to MH i2c: 01 00 00 28 2A 52 [21:11:28]Write i2c OK [21:11:28]MH_I2C_Read... [21:11:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 DA 18 47 00 31 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 19 CE 00 00 F4 03 04 00 1D 22 BA 66 B6 04 01 00 00 FA E2 08 48 87 8B 15 64 [21:11:28]CommunicateWithHost err = 0 [21:11:28]CheckOFDResponse [21:11:28]1017 (14) - 77093643461234 [21:11:28]1041 (16) - 0000000000874715 [21:11:28]1040 (4) - 52761 [21:11:28]1012 (4) - 12.08.2024 14:54 [21:11:28]1206 (1) - 0 [21:11:28]OFD Sender: Remove packet 52761 [21:11:28]ProducePacketName [21:11:28]name=ofd_packets/00052761 [21:11:28]NVStorageDeleteData [21:11:29]OFD Sender: No OFD packet to send [21:11:29]*** Cut start [21:11:29]*** Purtial cut [21:11:29]*** Stage 1: CUTSNS_PIN = 1 [21:11:29]Read from MH i2c: 01 [21:11:29]MH_I2C_Read... [21:11:29]*** Stop cut motor [21:11:29]*** Cut end [21:11:29]Read from MH i2c: 01 07 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: 01 07 00 28 2A 00 00 00 00 00 FF 0F 67 [21:11:29]process_action close_receipt done [21:11:29]requested_data is exist [21:11:29]produce_requested_data [21:11:29]requested_item fm.sn is exist - process it [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 11 00 00 [21:11:29]Write to MH i2c: E2 08 00 29 2A 80 11 00 00 00 00 00 00 CD [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 17 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 17 00 29 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 20 [21:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [21:11:29]wFMCommunicate OK [21:11:29]requested_item fd.num is exist - process it [21:11:29]SAM_PROTO_GetFieldsCounters [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 13 00 00 [21:11:29]Write to MH i2c: E2 08 00 2A 2A 80 13 00 00 00 00 00 00 D0 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 62 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 62 00 2A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 19 CE 00 00 0E 04 04 00 BF 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 84 [21:11: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 19 CE 00 00 0E 04 04 00 BF 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 [21:11:29]wFMCommunicate OK [21:11:29]SAM_PROTO_GetFieldsCounters done [21:11:29]requested_item shift.num is exist - process it [21:11:29]requested_item shift.opened is exist - process it [21:11:29]req_shift_opened [21:11:29]FM_GetShiftState [21:11:29]SAM_PROTO_GetShiftState [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 13 01 00 [21:11:29]Write to MH i2c: E2 08 00 2B 2A 80 13 01 00 00 00 00 00 D2 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 0E 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 0E 00 2B 2A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 30 [21:11:29]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [21:11:29]wFMCommunicate OK [21:11:29]SAM_PROTO_GetShiftState done [21:11:29]FM_GetShiftState done [21:11:29]req_shift_opened done [21:11:29]requested_item shift.open_date is exist - process it [21:11:29]req_shift_open_date [21:11:29]req_shift_open_date done [21:11:29]produce_requested_data done [21:11:29]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52761,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [21:11:29]process_action_free close_receipt [21:11:29]json_value_free [21:11:29]json_value_free done [21:11:29]process_json_proto returns [21:11:29]Send response to host [21:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52761,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [21:11:29]free response buf [21:11:29]execute_script done [21:11:29]execute_script returns [21:11:29]free content buf [21:11:29]Sock 9.Close socket [21:11:29]Sock 9.Thread stoped [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:33]accept exits with 7 [21:33:33]New connection [21:33:33]New thread 3067149668 created [21:33:33]Thread 3067293028 joined [21:33:33]Waiting for new connection... [21:33:33] Sock 7.Parse request [21:33:33]Sock 7.Check first char [21:33:33]Sock 7.First char is OK [21:33:33]request: POST /json_proto HTTP/1.0 [21:33:33]Method: POST [21:33:33]URL: /json_proto [21:33:33]Method is POST - this is cgi request [21:33:33]url: /json_proto [21:33:33]query_string will be loaded in cgi processing [21:33:33]execute_cgi json_proto POST (null) [21:33:33]execute_cgi path=json_proto method=POST [21:33:33]POST find Content-Length [21:33:33]Host: 172.17.60.7:8080 [21:33:33]Content-Length: 1111 [21:33:33]Content-Type: application/json [21:33:33] [21:33:33]POST finish read [21:33:33]Found Content-Length = 1111 [21:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122895", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:33]execute_script... [21:33: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)122895", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:33]POST & json_proto [21:33:33]process_json_proto [21:33:33]json parsed OK: [21:33:33]protocol is kg_v1.0 [21:33:33]action value=close_receipt [21:33:33]process_action close_receipt [21:33:33]cmd_close_receipt [21:33:33]MH_GetDate [21:33:33]Write to MH i2c: F0 00 00 2C 2A 45 [21:33:33]Write i2c OK [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: F0 [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: F0 09 00 [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: F0 09 00 2C 2A 00 B3 7F BA 66 63 9B 67 64 69 [21:33:33]GetLastDocTimeStamp 1723497092 [21:33:33]current date 1723498419 [21:33:33]FM_GetShiftState [21:33:33]SAM_PROTO_GetShiftState [21:33:33]wFMCommunicate request_size=4 [21:33:33]MH_SAM_APDU [21:33:33]CAPDU: 80 13 01 00 [21:33:33]Write to MH i2c: E2 08 00 2D 2A 80 13 01 00 00 00 00 00 D4 [21:33:33]Write i2c OK [21:33:33]MH_I2C_Read... [21:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:33]Read from MH i2c: E2 [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: E2 0E 00 [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: E2 0E 00 2D 2A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 32 [21:33:33]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [21:33:33]wFMCommunicate OK [21:33:33]SAM_PROTO_GetShiftState done [21:33:33]FM_GetShiftState done [21:33:33]opened in 1723422684 [21:33:33]opened+sec_in_day 1723509084 [21:33:33]quantity*price = 6000 [21:33:33]sum+1 = 6001 [21:33:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631162227163 Напиток газированный Mojito LEMON LIME ж 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 80 12.08.2024 21:33 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52762 ФПД: 277825031259183 /tax-web-control/client/api/v1/ticket?date=20240812T213339&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52762&fm=277825031259183&tin=02508201610067®Number=0000000000090834&sum=15500 0 [21:33:34]StoreToDocumentArchive [21:33:34]shift 447 fd 52762 [21:33:34]save to /storage/0447/doc_00052762 [21:33:34]save last doc name /storage/0447/doc_00052762 to /storage/kkm_last_doc_name [21:33:34]save OK [21:33:34]Clear old archive folders... [21:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=403 [21:33:34]tlvbuf is 012F1300 [21:33:34]SAM_PROTO_ClearQueue [21:33:34]wFMCommunicate request_size=4 [21:33:34]MH_SAM_APDU [21:33:34]CAPDU: 80 09 00 00 [21:33:34]Write to MH i2c: E2 08 00 3A 2A 80 09 00 00 00 00 00 00 D6 [21:33:34]Write i2c OK [21:33:34]MH_I2C_Read... [21:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:34]Read from MH i2c: E2 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 3A 2A 00 90 00 D8 [21:33:34]RAPDU: 90 00 [21:33:34]wFMCommunicate OK [21:33:34]SAM_PROTO_ClearQueue done [21:33:34]KKMCreateOFDPacket [21:33:34]OFDProtocolAddRootSTLVToBuf [21:33:34]FM_MakeSignedData [21:33:34]FM_MakeSignedData [21:33:34]SAM_PROTO_SignData [21:33:34]wFMCommunicate request_size=4 [21:33:34]MH_SAM_APDU [21:33:34]CAPDU: 80 0D 01 02 [21:33:34]Write to MH i2c: E2 08 00 3B 2A 80 0D 01 02 00 00 00 00 DE [21:33:34]Write i2c OK [21:33:34]MH_I2C_Read... [21:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:34]Read from MH i2c: E2 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 3B 2A 00 90 00 D9 [21:33:34]RAPDU: 90 00 [21:33:34]wFMCommunicate OK [21:33:34]wFMCommunicate request_size=255 [21:33:34]MH_SAM_APDU [21:33:34]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8C 3C 00 00 [21:33:34]Write to MH i2c: E2 02 01 3C 2A 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8C 3C 00 00 00 00 6C [21:33:34]Write i2c OK [21:33:34]MH_I2C_Read... [21:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:34]Read from MH i2c: E2 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 3C 2A 00 90 00 DA [21:33:34]RAPDU: 90 00 [21:33:34]wFMCommunicate OK [21:33:34]wFMCommunicate request_size=162 [21:33:34]MH_SAM_APDU [21:33:34]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B3 7F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1A CE 00 00 35 04 06 00 FC AE 2E 4C 44 2F [21:33:34]Write to MH i2c: E2 A5 00 3D 2A 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B3 7F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1A CE 00 00 35 04 06 00 FC AE 2E 4C 44 2F 00 00 FD [21:33:34]Write i2c OK [21:33:34]MH_I2C_Read... [21:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:34]Read from MH i2c: E2 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 03 00 3D 2A 00 90 00 DB [21:33:34]RAPDU: 90 00 [21:33:34]wFMCommunicate OK [21:33:34]wFMCommunicate request_size=4 [21:33:34]MH_SAM_APDU [21:33:34]CAPDU: 80 0D 03 02 [21:33:34]Write to MH i2c: E2 08 00 3E 2A 80 0D 03 02 00 00 00 00 E3 [21:33:34]Write i2c OK [21:33:34]MH_I2C_Read... [21:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:34]Read from MH i2c: E2 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 0B 00 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 0B 00 3E 2A 00 CD 99 34 20 BF BE 17 66 90 00 98 [21:33:34]RAPDU: CD 99 34 20 BF BE 17 66 90 00 [21:33:34]wFMCommunicate OK [21:33:34]SAM_PROTO_SignData done [21:33:34]FM_MakeSignedData done [21:33:34]CreateOFDProtocolMessage [21:33:34]wFMCommunicate request_size=4 [21:33:34]MH_SAM_APDU [21:33:34]CAPDU: 80 11 00 00 [21:33:34]Write to MH i2c: E2 08 00 3F 2A 80 11 00 00 00 00 00 00 E3 [21:33:34]Write i2c OK [21:33:34]MH_I2C_Read... [21:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:34]Read from MH i2c: E2 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 17 00 [21:33:34]MH_I2C_Read... [21:33:34]Read from MH i2c: E2 17 00 3F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 36 [21:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [21:33:34]wFMCommunicate OK [21:33:34]CreateOFDProtocolMessage done [21:33:34]OFDSenderStorePacket 52762 [21:33:34]StoreOFDPacket docnum=52762 [21:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A7 01 00 00 95 D2 9F 01 D2 1D 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B3 7F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1A CE 00 00 35 04 06 00 FC AE 2E 4C 44 2F CD 99 34 20 BF BE 17 66 [21:33:34]CheckFolder [21:33:34]dirname=/storage/ofd_packets [21:33:34]CheckFolder done [21:33:34]ProducePacketName [21:33:34]name=ofd_packets/00052762 [21:33:34]NVStorageSaveData ofd_packets/00052762 [21:33:34]File name is /storage/ofd_packets/00052762 [21:33:34]Write 453 bytes [21:33:34]NVStorageSaveData done [21:33:34]OFDSenderStorePacket done [21:33:34]KKMCreateOFDPacket done [21:33:34]NVStorageSaveData kkm_last_timestamp [21:33:34]File name is /storage/kkm_last_timestamp [21:33:34]Write 4 bytes [21:33:35]NVStorageSaveData done [21:33:35]ExternCall_PrintAddStr [21:33:35]wPrintStart [21:33:35]Write to MH i2c: 01 00 00 40 2A 6A [21:33:35]OFD Sender: Processing packet 52762 [packets to send 55, broken 54] [21:33:35]ProducePacketName [21:33:35]name=ofd_packets/00052762 [21:33:35]OFD Sender: To server: pG, [21:33:35]CommunicateWithHost lk.salyk.kg:30040 [21:33:35]ConnectInit lk.salyk.kg [21:33:35]Write i2c OK [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: 01 [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: 01 07 00 [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [21:33:35]RasterBufferAndPrint [21:33:35]line Счет N : (3)122895 [21:33:35]line ИНН: 02508201610067 [21:33:35]line Контрольно-Кассовый Чек [21:33:35]line ПРОДАЖА [21:33:35]line Товар: 4700000160204 [21:33:35]line Вода Легенда 1,5л [21:33:35]line 1.000 * 60.00 [21:33:35]line = 60.00 [21:33:35]line НДС 12% НСП 1% [21:33:35]line > о реализуемом товаре [21:33:35]line Товар: 4631162227163 [21:33:35]line Напиток газированный Mojito LEMON LIME ж [21:33:35]line 1.000 * 95.00 [21:33:35]line = 95.00 [21:33:35]line НДС 12% НСП 1% [21:33:35]line > о реализуемом товаре [21:33:35]line ИТОГО: 155.00 [21:33:35]line НСП 1% : 1.37 [21:33:35]line НДС 12% : 16.46 [21:33:35]line Наличными: 0.00 [21:33:35]line Безнал.: 155.00 [21:33:35]line Место: АЗС № 54 "Партнер Нефть" [21:33:35]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [21:33:35]line СНО: Общий режим [21:33:35]line Чек 80 12.08.2024 21:33 [21:33:35]line Смена: 447 ФФД: 1.0 [21:33:35]line ЗНМ: 0300000007 [21:33:35]line РНМ: 0000000000090834 [21:33:35]line Версия ККМ: 001 [21:33:35]line Платежная система: О! деньги [21:33:35]line ФМ: 0000000000874715 [21:33:35]line ФД: 52762 [21:33:35]line ФПД: 277825031259183 [21:33:35]line /tax-web-control/client/api/v1/ticket?date=20240812T213339&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52762&fm=277825031259183&tin=02508201610067®Number=0000000000090834&sum=15500 [21:33:35]line 0 [21:33:35]written 0, free lines is 4095 [21:33:35]Connected sock=10 [21:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A7 01 00 00 95 D2 9F 01 D2 1D 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 B3 7F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1A CE 00 00 35 04 06 00 FC AE 2E 4C 44 2F CD 99 34 20 BF BE 17 66 [21:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 D3 DE 47 00 14 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1A CE 00 00 F4 03 04 00 4C 27 BA 66 B6 04 01 00 00 75 A6 80 F0 5C 41 9B 87 [21:33:35]CommunicateWithHost err = 0 [21:33:35]CheckOFDResponse [21:33:35]1017 (14) - 77093643461234 [21:33:35]1041 (16) - 0000000000874715 [21:33:35]1040 (4) - 52762 [21:33:35]1012 (4) - 12.08.2024 15:16 [21:33:35]1206 (1) - 0 [21:33:35]OFD Sender: Remove packet 52762 [21:33:35]ProducePacketName [21:33:35]name=ofd_packets/00052762 [21:33:35]NVStorageDeleteData [21:33:35]Write to MH i2c: 01 00 00 70 2A 9A [21:33:35]Write i2c OK [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: 01 [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: 01 07 00 [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: 01 07 00 70 2A 00 00 00 00 00 63 0C 10 [21:33:35]RasterBufferAndPrint [21:33:35]line [21:33:35]line [21:33:35]line [21:33:35]line [21:33:35]line [21:33:35]written 0, free lines is 3178 [21:33:35]MH_Cut [21:33:35]Write to MH i2c: D1 01 00 77 2A 01 73 [21:33:35]Write i2c OK [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: D1 [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: D1 01 00 [21:33:35]MH_I2C_Read... [21:33:35]Read from MH i2c: D1 01 00 77 2A 00 72 [21:33:35]Write to MH i2c: 01 00 00 78 2A A2 [21:33:35]Write i2c OK [21:33:35]MH_I2C_Read... [21:33:36]OFD Sender: No OFD packet to send [21:33:36]*** Cut start [21:33:36]*** Purtial cut [21:33:36]*** Stage 1: CUTSNS_PIN = 1 [21:33:36]Read from MH i2c: 01 [21:33:36]MH_I2C_Read... [21:33:36]*** Stop cut motor [21:33:36]*** Cut end [21:33:36]Read from MH i2c: 01 07 00 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: 01 07 00 78 2A 00 00 00 00 00 FF 0F B7 [21:33:36]process_action close_receipt done [21:33:36]requested_data is exist [21:33:36]produce_requested_data [21:33:36]requested_item fm.sn is exist - process it [21:33:36]wFMCommunicate request_size=4 [21:33:36]MH_SAM_APDU [21:33:36]CAPDU: 80 11 00 00 [21:33:36]Write to MH i2c: E2 08 00 79 2A 80 11 00 00 00 00 00 00 1D [21:33:36]Write i2c OK [21:33:36]MH_I2C_Read... [21:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:36]Read from MH i2c: E2 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: E2 17 00 [21:33:36]MH_I2C_Read... [21:33:36]Read from MH i2c: E2 17 00 79 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 70 [21:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [21:33:36]wFMCommunicate OK [21:33:36]requested_item fd.num is exist - process it [21:33:36]SAM_PROTO_GetFieldsCounters [21:33:36]wFMCommunicate request_size=4 [21:33:36]MH_SAM_APDU [21:33:36]CAPDU: 80 13 00 00 [21:33:36]Write to MH i2c: E2 08 00 7A 2A 80 13 00 00 00 00 00 00 20 [21:33:36]Write i2c OK [21:33:36]MH_I2C_Read... [21:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:37]Read from MH i2c: E2 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 62 00 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 62 00 7A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1A CE 00 00 0E 04 04 00 BF 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 D8 [21:33: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1A CE 00 00 0E 04 04 00 BF 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 [21:33:37]wFMCommunicate OK [21:33:37]SAM_PROTO_GetFieldsCounters done [21:33:37]requested_item shift.num is exist - process it [21:33:37]requested_item shift.opened is exist - process it [21:33:37]req_shift_opened [21:33:37]FM_GetShiftState [21:33:37]SAM_PROTO_GetShiftState [21:33:37]wFMCommunicate request_size=4 [21:33:37]MH_SAM_APDU [21:33:37]CAPDU: 80 13 01 00 [21:33:37]Write to MH i2c: E2 08 00 7B 2A 80 13 01 00 00 00 00 00 22 [21:33:37]Write i2c OK [21:33:37]MH_I2C_Read... [21:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:37]Read from MH i2c: E2 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 0E 00 [21:33:37]MH_I2C_Read... [21:33:37]Read from MH i2c: E2 0E 00 7B 2A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 80 [21:33:37]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [21:33:37]wFMCommunicate OK [21:33:37]SAM_PROTO_GetShiftState done [21:33:37]FM_GetShiftState done [21:33:37]req_shift_opened done [21:33:37]requested_item shift.open_date is exist - process it [21:33:37]req_shift_open_date [21:33:37]req_shift_open_date done [21:33:37]produce_requested_data done [21:33:37]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52762,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [21:33:37]process_action_free close_receipt [21:33:37]json_value_free [21:33:37]json_value_free done [21:33:37]process_json_proto returns [21:33:37]Send response to host [21:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52762,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [21:33:37]free response buf [21:33:37]execute_script done [21:33:37]execute_script returns [21:33:37]free content buf [21:33:37]Sock 7.Close socket [21:33:37]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]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:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:57]accept exits with 9 [22:08:57]New connection [22:08:57]New thread 3067293028 created [22:08:57]Thread 3067149668 joined [22:08:57]Waiting for new connection... [22:08:57] Sock 9.Parse request [22:08:57]Sock 9.Check first char [22:08:57]Sock 9.First char is OK [22:08:57]request: POST /json_proto HTTP/1.0 [22:08:57]Method: POST [22:08:57]URL: /json_proto [22:08:57]Method is POST - this is cgi request [22:08:57]url: /json_proto [22:08:57]query_string will be loaded in cgi processing [22:08:57]execute_cgi json_proto POST (null) [22:08:57]execute_cgi path=json_proto method=POST [22:08:57]POST find Content-Length [22:08:57]Host: 172.17.60.7:8080 [22:08:57]Content-Length: 697 [22:08:57]Content-Type: application/json [22:08:57] [22:08:57]POST finish read [22:08:57]Found Content-Length = 697 [22:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122896", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "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" ] } } [22:08:57]execute_script... [22:08:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122896", "tax_sys" : 0, "items" : [ { "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "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" ] } } [22:08:57]POST & json_proto [22:08:57]process_json_proto [22:08:57]json parsed OK: [22:08:57]protocol is kg_v1.0 [22:08:57]action value=close_receipt [22:08:57]process_action close_receipt [22:08:57]cmd_close_receipt [22:08:57]MH_GetDate [22:08:57]Write to MH i2c: F0 00 00 7C 2A 95 [22:08:57]Write i2c OK [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: F0 [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: F0 09 00 [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: F0 09 00 7C 2A 00 00 88 BA 66 63 9B 67 64 0F [22:08:57]GetLastDocTimeStamp 1723498419 [22:08:57]current date 1723500544 [22:08:57]FM_GetShiftState [22:08:57]SAM_PROTO_GetShiftState [22:08:57]wFMCommunicate request_size=4 [22:08:57]MH_SAM_APDU [22:08:57]CAPDU: 80 13 01 00 [22:08:57]Write to MH i2c: E2 08 00 7D 2A 80 13 01 00 00 00 00 00 24 [22:08:57]Write i2c OK [22:08:57]MH_I2C_Read... [22:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:57]Read from MH i2c: E2 [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: E2 0E 00 [22:08:57]MH_I2C_Read... [22:08:57]Read from MH i2c: E2 0E 00 7D 2A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 82 [22:08:57]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:08:57]wFMCommunicate OK [22:08:57]SAM_PROTO_GetShiftState done [22:08:57]FM_GetShiftState done [22:08:57]opened in 1723422684 [22:08:57]opened+sec_in_day 1723509084 [22:08:57]quantity*price = 13000 [22:08:57]sum+1 = 13001 [22:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 81 12.08.2024 22:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52763 ФПД: 189027957171705 /tax-web-control/client/api/v1/ticket?date=20240812T220904&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52763&fm=189027957171705&tin=02508201610067®Number=0000000000090834&sum=13000 0 [22:08:58]StoreToDocumentArchive [22:08:58]shift 447 fd 52763 [22:08:58]save to /storage/0447/doc_00052763 [22:08:58]save last doc name /storage/0447/doc_00052763 to /storage/kkm_last_doc_name [22:08:58]save OK [22:08:58]Clear old archive folders... [22:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=294 [22:08:58]tlvbuf is 012FE250 [22:08:58]SAM_PROTO_ClearQueue [22:08:58]wFMCommunicate request_size=4 [22:08:58]MH_SAM_APDU [22:08:58]CAPDU: 80 09 00 00 [22:08:58]Write to MH i2c: E2 08 00 8A 2A 80 09 00 00 00 00 00 00 26 [22:08:58]Write i2c OK [22:08:58]MH_I2C_Read... [22:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:58]Read from MH i2c: E2 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 03 00 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 03 00 8A 2A 00 90 00 28 [22:08:58]RAPDU: 90 00 [22:08:58]wFMCommunicate OK [22:08:58]SAM_PROTO_ClearQueue done [22:08:58]KKMCreateOFDPacket [22:08:58]OFDProtocolAddRootSTLVToBuf [22:08:58]FM_MakeSignedData [22:08:58]FM_MakeSignedData [22:08:58]SAM_PROTO_SignData [22:08:58]wFMCommunicate request_size=4 [22:08:58]MH_SAM_APDU [22:08:58]CAPDU: 80 0D 01 02 [22:08:58]Write to MH i2c: E2 08 00 8B 2A 80 0D 01 02 00 00 00 00 2E [22:08:58]Write i2c OK [22:08:58]MH_I2C_Read... [22:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:58]Read from MH i2c: E2 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 03 00 [22:08:58]MH_I2C_Read... [22:08:58]Read from MH i2c: E2 03 00 8B 2A 00 90 00 29 [22:08:58]RAPDU: 90 00 [22:08:58]wFMCommunicate OK [22:08:58]wFMCommunicate request_size=255 [22:08:58]MH_SAM_APDU [22:08:58]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 51 00 00 00 F4 03 04 00 00 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [22:08:58]Write to MH i2c: E2 02 01 8C 2A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 51 00 00 00 F4 03 04 00 00 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 E2 [22:08:58]Write i2c OK [22:08:58]MH_I2C_Read... [22:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:59]Read from MH i2c: E2 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 03 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 03 00 8C 2A 00 90 00 2A [22:08:59]RAPDU: 90 00 [22:08:59]wFMCommunicate OK [22:08:59]wFMCommunicate request_size=53 [22:08:59]MH_SAM_APDU [22:08:59]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1B CE 00 00 35 04 06 00 AB EB 80 3D 65 F9 [22:08:59]Write to MH i2c: E2 38 00 8D 2A 80 0D 02 02 30 00 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1B CE 00 00 35 04 06 00 AB EB 80 3D 65 F9 00 00 BF [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:59]Read from MH i2c: E2 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 03 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 03 00 8D 2A 00 90 00 2B [22:08:59]RAPDU: 90 00 [22:08:59]wFMCommunicate OK [22:08:59]wFMCommunicate request_size=4 [22:08:59]MH_SAM_APDU [22:08:59]CAPDU: 80 0D 03 02 [22:08:59]Write to MH i2c: E2 08 00 8E 2A 80 0D 03 02 00 00 00 00 33 [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:59]Read from MH i2c: E2 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 0B 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 0B 00 8E 2A 00 2C F4 C6 A8 88 48 62 25 90 00 19 [22:08:59]RAPDU: 2C F4 C6 A8 88 48 62 25 90 00 [22:08:59]wFMCommunicate OK [22:08:59]SAM_PROTO_SignData done [22:08:59]FM_MakeSignedData done [22:08:59]CreateOFDProtocolMessage [22:08:59]wFMCommunicate request_size=4 [22:08:59]MH_SAM_APDU [22:08:59]CAPDU: 80 11 00 00 [22:08:59]Write to MH i2c: E2 08 00 8F 2A 80 11 00 00 00 00 00 00 33 [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:59]Read from MH i2c: E2 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 17 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: E2 17 00 8F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 86 [22:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:08:59]wFMCommunicate OK [22:08:59]CreateOFDProtocolMessage done [22:08:59]OFDSenderStorePacket 52763 [22:08:59]StoreOFDPacket docnum=52763 [22:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3A 01 00 00 A0 F8 32 01 D3 BC 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 51 00 00 00 F4 03 04 00 00 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1B CE 00 00 35 04 06 00 AB EB 80 3D 65 F9 2C F4 C6 A8 88 48 62 25 [22:08:59]CheckFolder [22:08:59]dirname=/storage/ofd_packets [22:08:59]CheckFolder done [22:08:59]ProducePacketName [22:08:59]name=ofd_packets/00052763 [22:08:59]NVStorageSaveData ofd_packets/00052763 [22:08:59]File name is /storage/ofd_packets/00052763 [22:08:59]Write 344 bytes [22:08:59]NVStorageSaveData done [22:08:59]OFDSenderStorePacket done [22:08:59]KKMCreateOFDPacket done [22:08:59]NVStorageSaveData kkm_last_timestamp [22:08:59]File name is /storage/kkm_last_timestamp [22:08:59]Write 4 bytes [22:08:59]NVStorageSaveData done [22:08:59]ExternCall_PrintAddStr [22:08:59]wPrintStart [22:08:59]Write to MH i2c: 01 00 00 90 2A BA [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: 01 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: 01 07 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: 01 07 00 90 2A 00 00 00 00 00 FF 0F CF [22:08:59]RasterBufferAndPrint [22:08:59]line Счет N : (3)122896 [22:08:59]line ИНН: 02508201610067 [22:08:59]line Контрольно-Кассовый Чек [22:08:59]line ПРОДАЖА [22:08:59]line Товар: 2000032760017 [22:08:59]line Слойка DC треугольная мясо110г [22:08:59]line 2.000 * 65.00 [22:08:59]line = 130.00 [22:08:59]line НДС 12% НСП 1% [22:08:59]line > о реализуемом товаре [22:08:59]line ИТОГО: 130.00 [22:08:59]line НСП 1% : 1.15 [22:08:59]line НДС 12% : 13.80 [22:08:59]line Наличными: 130.00 [22:08:59]line Безнал.: 0.00 [22:08:59]line Место: АЗС № 54 "Партнер Нефть" [22:08:59]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:08:59]line СНО: Общий режим [22:08:59]line Чек 81 12.08.2024 22:09 [22:08:59]line Смена: 447 ФФД: 1.0 [22:08:59]line ЗНМ: 0300000007 [22:08:59]line РНМ: 0000000000090834 [22:08:59]line Версия ККМ: 001 [22:08:59]line ФМ: 0000000000874715 [22:08:59]line ФД: 52763 [22:08:59]line ФПД: 189027957171705 [22:08:59]line /tax-web-control/client/api/v1/ticket?date=20240812T220904&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52763&fm=189027957171705&tin=02508201610067®Number=0000000000090834&sum=13000 [22:08:59]line 0 [22:08:59]written 0, free lines is 4095 [22:08:59]OFD Sender: Processing packet 52763 [packets to send 55, broken 54] [22:08:59]ProducePacketName [22:08:59]name=ofd_packets/00052763 [22:08:59]OFD Sender: To server: pG, [22:08:59]CommunicateWithHost lk.salyk.kg:30040 [22:08:59]ConnectInit lk.salyk.kg [22:08:59]Connected sock=11 [22:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3A 01 00 00 A0 F8 32 01 D3 BC 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 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 51 00 00 00 F4 03 04 00 00 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1B CE 00 00 35 04 06 00 AB EB 80 3D 65 F9 2C F4 C6 A8 88 48 62 25 [22:08:59]Write to MH i2c: 01 00 00 B8 2A E2 [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: 01 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: 01 07 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: 01 07 00 B8 2A 00 00 00 00 00 D4 0C C9 [22:08:59]RasterBufferAndPrint [22:08:59]line [22:08:59]line [22:08:59]line [22:08:59]line [22:08:59]line [22:08:59]written 0, free lines is 3288 [22:08:59]MH_Cut [22:08:59]Write to MH i2c: D1 01 00 BF 2A 01 BB [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: D1 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: D1 01 00 [22:08:59]MH_I2C_Read... [22:08:59]Read from MH i2c: D1 01 00 BF 2A 00 BA [22:08:59]Write to MH i2c: 01 00 00 C0 2A EA [22:08:59]Write i2c OK [22:08:59]MH_I2C_Read... [22:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F9 13 47 00 9C 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1B CE 00 00 F4 03 04 00 98 2F BA 66 B6 04 01 00 00 18 D7 2D 95 E7 A2 8C AE [22:09:00]CommunicateWithHost err = 0 [22:09:00]CheckOFDResponse [22:09:00]1017 (14) - 77093643461234 [22:09:00]1041 (16) - 0000000000874715 [22:09:00]1040 (4) - 52763 [22:09:00]1012 (4) - 12.08.2024 15:51 [22:09:00]1206 (1) - 0 [22:09:00]OFD Sender: Remove packet 52763 [22:09:00]ProducePacketName [22:09:00]name=ofd_packets/00052763 [22:09:00]NVStorageDeleteData [22:09:00]OFD Sender: No OFD packet to send [22:09:00]*** Cut start [22:09:00]*** Purtial cut [22:09:00]*** Stage 1: CUTSNS_PIN = 1 [22:09:00]Read from MH i2c: 01 [22:09:00]MH_I2C_Read... [22:09:00]*** Stop cut motor [22:09:00]*** Cut end [22:09:00]Read from MH i2c: 01 07 00 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: 01 07 00 C0 2A 00 00 00 00 00 FF 0F FF [22:09:00]process_action close_receipt done [22:09:00]requested_data is exist [22:09:00]produce_requested_data [22:09:00]requested_item fm.sn is exist - process it [22:09:00]wFMCommunicate request_size=4 [22:09:00]MH_SAM_APDU [22:09:00]CAPDU: 80 11 00 00 [22:09:00]Write to MH i2c: E2 08 00 C1 2A 80 11 00 00 00 00 00 00 65 [22:09:00]Write i2c OK [22:09:00]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:01]Read from MH i2c: E2 17 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 17 00 C1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B8 [22:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:09:01]wFMCommunicate OK [22:09:01]requested_item fd.num is exist - process it [22:09:01]SAM_PROTO_GetFieldsCounters [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 13 00 00 [22:09:01]Write to MH i2c: E2 08 00 C2 2A 80 13 00 00 00 00 00 00 68 [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 62 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 62 00 C2 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1B CE 00 00 0E 04 04 00 BF 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 24 [22:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1B CE 00 00 0E 04 04 00 BF 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 [22:09:01]wFMCommunicate OK [22:09:01]SAM_PROTO_GetFieldsCounters done [22:09:01]requested_item shift.num is exist - process it [22:09:01]requested_item shift.opened is exist - process it [22:09:01]req_shift_opened [22:09:01]FM_GetShiftState [22:09:01]SAM_PROTO_GetShiftState [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 13 01 00 [22:09:01]Write to MH i2c: E2 08 00 C3 2A 80 13 01 00 00 00 00 00 6A [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:01]Read from MH i2c: E2 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 0E 00 [22:09:01]MH_I2C_Read... [22:09:01]Read from MH i2c: E2 0E 00 C3 2A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C8 [22:09:01]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:09:01]wFMCommunicate OK [22:09:01]SAM_PROTO_GetShiftState done [22:09:01]FM_GetShiftState done [22:09:01]req_shift_opened done [22:09:01]requested_item shift.open_date is exist - process it [22:09:01]req_shift_open_date [22:09:01]req_shift_open_date done [22:09:01]produce_requested_data done [22:09:01]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52763,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:09:01]process_action_free close_receipt [22:09:01]json_value_free [22:09:01]json_value_free done [22:09:01]process_json_proto returns [22:09:01]Send response to host [22:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52763,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:09:01]free response buf [22:09:01]execute_script done [22:09:01]execute_script returns [22:09:01]free content buf [22:09:01]Sock 9.Close socket [22:09:01]Sock 9.Thread stoped [22:09:05]OFD Sender: No OFD packet to send [22:09:08]accept exits with 7 [22:09:08]New connection [22:09:08]New thread 3067149668 created [22:09:08]Thread 3067293028 joined [22:09:08]Waiting for new connection... [22:09:08] Sock 7.Parse request [22:09:08]Sock 7.Check first char [22:09:08]Sock 7.First char is OK [22:09:08]request: POST /json_proto HTTP/1.0 [22:09:08]Method: POST [22:09:08]URL: /json_proto [22:09:08]Method is POST - this is cgi request [22:09:08]url: /json_proto [22:09:08]query_string will be loaded in cgi processing [22:09:08]execute_cgi json_proto POST (null) [22:09:08]execute_cgi path=json_proto method=POST [22:09:08]POST find Content-Length [22:09:08]Host: 172.17.60.7:8080 [22:09:08]Content-Length: 708 [22:09:08]Content-Type: application/json [22:09:08] [22:09:08]POST finish read [22:09:08]Found Content-Length = 708 [22:09:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122897", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:08]execute_script... [22:09: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)122897", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:08]POST & json_proto [22:09:08]process_json_proto [22:09:08]json parsed OK: [22:09:08]protocol is kg_v1.0 [22:09:08]action value=close_receipt [22:09:08]process_action close_receipt [22:09:08]cmd_close_receipt [22:09:08]MH_GetDate [22:09:08]Write to MH i2c: F0 00 00 C4 2A DD [22:09:08]Write i2c OK [22:09:08]MH_I2C_Read... [22:09:08]Read from MH i2c: F0 [22:09:08]MH_I2C_Read... [22:09:08]Read from MH i2c: F0 09 00 [22:09:08]MH_I2C_Read... [22:09:08]Read from MH i2c: F0 09 00 C4 2A 00 0B 88 BA 66 63 9B 67 64 62 [22:09:08]GetLastDocTimeStamp 1723500544 [22:09:08]current date 1723500555 [22:09:08]FM_GetShiftState [22:09:08]SAM_PROTO_GetShiftState [22:09:08]wFMCommunicate request_size=4 [22:09:08]MH_SAM_APDU [22:09:08]CAPDU: 80 13 01 00 [22:09:08]Write to MH i2c: E2 08 00 C5 2A 80 13 01 00 00 00 00 00 6C [22:09:08]Write i2c OK [22:09:08]MH_I2C_Read... [22:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:08]Read from MH i2c: E2 [22:09:08]MH_I2C_Read... [22:09:08]Read from MH i2c: E2 0E 00 [22:09:08]MH_I2C_Read... [22:09:08]Read from MH i2c: E2 0E 00 C5 2A 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CA [22:09:08]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:09:08]wFMCommunicate OK [22:09:08]SAM_PROTO_GetShiftState done [22:09:08]FM_GetShiftState done [22:09:08]opened in 1723422684 [22:09:08]opened+sec_in_day 1723509084 [22:09:08]quantity*price = 6500 [22:09:08]sum+1 = 6501 [22:09:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 82 12.08.2024 22:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52764 ФПД: 73498647116129 /tax-web-control/client/api/v1/ticket?date=20240812T220915&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52764&fm=73498647116129&tin=02508201610067®Number=0000000000090834&sum=6500 0 [22:09:09]StoreToDocumentArchive [22:09:09]shift 447 fd 52764 [22:09:09]save to /storage/0447/doc_00052764 [22:09:09]save last doc name /storage/0447/doc_00052764 to /storage/kkm_last_doc_name [22:09:09]save OK [22:09:09]Clear old archive folders... [22:09:09]ProcessDocumentItem done err = 0, tmpTLVsize=299 [22:09:09]tlvbuf is B6DFB010 [22:09:09]SAM_PROTO_ClearQueue [22:09:09]wFMCommunicate request_size=4 [22:09:09]MH_SAM_APDU [22:09:09]CAPDU: 80 09 00 00 [22:09:09]Write to MH i2c: E2 08 00 D2 2A 80 09 00 00 00 00 00 00 6E [22:09:09]Write i2c OK [22:09:09]MH_I2C_Read... [22:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:10]Read from MH i2c: E2 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 D2 2A 00 90 00 70 [22:09:10]RAPDU: 90 00 [22:09:10]wFMCommunicate OK [22:09:10]SAM_PROTO_ClearQueue done [22:09:10]KKMCreateOFDPacket [22:09:10]OFDProtocolAddRootSTLVToBuf [22:09:10]FM_MakeSignedData [22:09:10]FM_MakeSignedData [22:09:10]SAM_PROTO_SignData [22:09:10]wFMCommunicate request_size=4 [22:09:10]MH_SAM_APDU [22:09:10]CAPDU: 80 0D 01 02 [22:09:10]Write to MH i2c: E2 08 00 D3 2A 80 0D 01 02 00 00 00 00 76 [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:10]Read from MH i2c: E2 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 D3 2A 00 90 00 71 [22:09:10]RAPDU: 90 00 [22:09:10]wFMCommunicate OK [22:09:10]wFMCommunicate request_size=255 [22:09:10]MH_SAM_APDU [22:09:10]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0B 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [22:09:10]Write to MH i2c: E2 02 01 D4 2A 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0B 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 E5 [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:10]Read from MH i2c: E2 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 D4 2A 00 90 00 72 [22:09:10]RAPDU: 90 00 [22:09:10]wFMCommunicate OK [22:09:10]wFMCommunicate request_size=58 [22:09:10]MH_SAM_APDU [22:09:10]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1C CE 00 00 35 04 06 00 42 D8 BC C0 B9 61 [22:09:10]Write to MH i2c: E2 3D 00 D5 2A 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1C CE 00 00 35 04 06 00 42 D8 BC C0 B9 61 00 00 01 [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:10]Read from MH i2c: E2 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 03 00 D5 2A 00 90 00 73 [22:09:10]RAPDU: 90 00 [22:09:10]wFMCommunicate OK [22:09:10]wFMCommunicate request_size=4 [22:09:10]MH_SAM_APDU [22:09:10]CAPDU: 80 0D 03 02 [22:09:10]Write to MH i2c: E2 08 00 D6 2A 80 0D 03 02 00 00 00 00 7B [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:10]Read from MH i2c: E2 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 0B 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 0B 00 D6 2A 00 EE A9 7B BA 60 D6 24 4C 90 00 EE [22:09:10]RAPDU: EE A9 7B BA 60 D6 24 4C 90 00 [22:09:10]wFMCommunicate OK [22:09:10]SAM_PROTO_SignData done [22:09:10]FM_MakeSignedData done [22:09:10]CreateOFDProtocolMessage [22:09:10]wFMCommunicate request_size=4 [22:09:10]MH_SAM_APDU [22:09:10]CAPDU: 80 11 00 00 [22:09:10]Write to MH i2c: E2 08 00 D7 2A 80 11 00 00 00 00 00 00 7B [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:10]Read from MH i2c: E2 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 17 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: E2 17 00 D7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 CE [22:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:09:10]wFMCommunicate OK [22:09:10]CreateOFDProtocolMessage done [22:09:10]OFDSenderStorePacket 52764 [22:09:10]StoreOFDPacket docnum=52764 [22:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3F 01 00 00 B6 4D 37 01 6B 26 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0B 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1C CE 00 00 35 04 06 00 42 D8 BC C0 B9 61 EE A9 7B BA 60 D6 24 4C [22:09:10]CheckFolder [22:09:10]dirname=/storage/ofd_packets [22:09:10]CheckFolder done [22:09:10]ProducePacketName [22:09:10]name=ofd_packets/00052764 [22:09:10]NVStorageSaveData ofd_packets/00052764 [22:09:10]File name is /storage/ofd_packets/00052764 [22:09:10]Write 349 bytes [22:09:10]NVStorageSaveData done [22:09:10]OFDSenderStorePacket done [22:09:10]KKMCreateOFDPacket done [22:09:10]NVStorageSaveData kkm_last_timestamp [22:09:10]File name is /storage/kkm_last_timestamp [22:09:10]Write 4 bytes [22:09:10]NVStorageSaveData done [22:09:10]ExternCall_PrintAddStr [22:09:10]wPrintStart [22:09:10]Write to MH i2c: 01 00 00 D8 2A 02 [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: 01 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: 01 07 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: 01 07 00 D8 2A 00 00 00 00 00 FF 0F 17 [22:09:10]RasterBufferAndPrint [22:09:10]line Счет N : (3)122897 [22:09:10]line ИНН: 02508201610067 [22:09:10]line Контрольно-Кассовый Чек [22:09:10]line ПРОДАЖА [22:09:10]line Товар: 2000032780015 [22:09:10]line Слойка DC треугольная курица 110г [22:09:10]line 1.000 * 65.00 [22:09:10]line = 65.00 [22:09:10]line НДС 12% НСП 1% [22:09:10]line > о реализуемом товаре [22:09:10]line ИТОГО: 65.00 [22:09:10]line НСП 1% : 0.57 [22:09:10]line НДС 12% : 6.90 [22:09:10]line Наличными: 65.00 [22:09:10]line Безнал.: 0.00 [22:09:10]line Место: АЗС № 54 "Партнер Нефть" [22:09:10]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:09:10]line СНО: Общий режим [22:09:10]line Чек 82 12.08.2024 22:09 [22:09:10]line Смена: 447 ФФД: 1.0 [22:09:10]line ЗНМ: 0300000007 [22:09:10]line РНМ: 0000000000090834 [22:09:10]line Версия ККМ: 001 [22:09:10]line ФМ: 0000000000874715 [22:09:10]line ФД: 52764 [22:09:10]line ФПД: 73498647116129 [22:09:10]line /tax-web-control/client/api/v1/ticket?date=20240812T220915&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52764&fm=73498647116129&tin=02508201610067®Number=0000000000090834&sum=6500 [22:09:10]line 0 [22:09:10]written 0, free lines is 4095 [22:09:10]OFD Sender: Processing packet 52764 [packets to send 55, broken 54] [22:09:10]ProducePacketName [22:09:10]name=ofd_packets/00052764 [22:09:10]OFD Sender: To server: pG, [22:09:10]CommunicateWithHost lk.salyk.kg:30040 [22:09:10]ConnectInit lk.salyk.kg [22:09:10]Write to MH i2c: 01 00 00 00 2B 2B [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: 01 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: 01 07 00 [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: 01 07 00 00 2B 00 00 00 00 00 D9 0C 17 [22:09:10]RasterBufferAndPrint [22:09:10]line [22:09:10]line [22:09:10]line [22:09:10]line [22:09:10]line [22:09:10]written 0, free lines is 3294 [22:09:10]MH_Cut [22:09:10]Write to MH i2c: D1 01 00 07 2B 01 04 [22:09:10]Write i2c OK [22:09:10]MH_I2C_Read... [22:09:10]Read from MH i2c: D1 [22:09:10]MH_I2C_Read... [22:09:11]Read from MH i2c: D1 01 00 [22:09:11]MH_I2C_Read... [22:09:11]Read from MH i2c: D1 01 00 07 2B 00 03 [22:09:11]Write to MH i2c: 01 00 00 08 2B 33 [22:09:11]Write i2c OK [22:09:11]MH_I2C_Read... [22:09:11]Connected sock=10 [22:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 3F 01 00 00 B6 4D 37 01 6B 26 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0B 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1C CE 00 00 35 04 06 00 42 D8 BC C0 B9 61 EE A9 7B BA 60 D6 24 4C [22:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 6B FC 47 00 D4 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1C CE 00 00 F4 03 04 00 A4 2F BA 66 B6 04 01 00 00 DE 6B B7 25 FD D5 4F D9 [22:09:11]CommunicateWithHost err = 0 [22:09:11]CheckOFDResponse [22:09:11]1017 (14) - 77093643461234 [22:09:11]1041 (16) - 0000000000874715 [22:09:11]1040 (4) - 52764 [22:09:11]1012 (4) - 12.08.2024 15:52 [22:09:11]1206 (1) - 0 [22:09:11]OFD Sender: Remove packet 52764 [22:09:11]ProducePacketName [22:09:11]name=ofd_packets/00052764 [22:09:11]NVStorageDeleteData [22:09:11]*** Cut start [22:09:11]*** Purtial cut [22:09:11]*** Stage 1: CUTSNS_PIN = 1 [22:09:11]OFD Sender: No OFD packet to send [22:09:12]Read from MH i2c: 01 [22:09:12]MH_I2C_Read... [22:09:12]*** Stop cut motor [22:09:12]*** Cut end [22:09:12]Read from MH i2c: 01 07 00 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: 01 07 00 08 2B 00 00 00 00 00 FF 0F 48 [22:09:12]process_action close_receipt done [22:09:12]requested_data is exist [22:09:12]produce_requested_data [22:09:12]requested_item fm.sn is exist - process it [22:09:12]wFMCommunicate request_size=4 [22:09:12]MH_SAM_APDU [22:09:12]CAPDU: 80 11 00 00 [22:09:12]Write to MH i2c: E2 08 00 09 2B 80 11 00 00 00 00 00 00 AE [22:09:12]Write i2c OK [22:09:12]MH_I2C_Read... [22:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:12]Read from MH i2c: E2 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: E2 17 00 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: E2 17 00 09 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 01 [22:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:09:12]wFMCommunicate OK [22:09:12]requested_item fd.num is exist - process it [22:09:12]SAM_PROTO_GetFieldsCounters [22:09:12]wFMCommunicate request_size=4 [22:09:12]MH_SAM_APDU [22:09:12]CAPDU: 80 13 00 00 [22:09:12]Write to MH i2c: E2 08 00 0A 2B 80 13 00 00 00 00 00 00 B1 [22:09:12]Write i2c OK [22:09:12]MH_I2C_Read... [22:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:12]Read from MH i2c: E2 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: E2 62 00 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: E2 62 00 0A 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1C CE 00 00 0E 04 04 00 BF 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 71 [22:09: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1C CE 00 00 0E 04 04 00 BF 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 [22:09:12]wFMCommunicate OK [22:09:12]SAM_PROTO_GetFieldsCounters done [22:09:12]requested_item shift.num is exist - process it [22:09:12]requested_item shift.opened is exist - process it [22:09:12]req_shift_opened [22:09:12]FM_GetShiftState [22:09:12]SAM_PROTO_GetShiftState [22:09:12]wFMCommunicate request_size=4 [22:09:12]MH_SAM_APDU [22:09:12]CAPDU: 80 13 01 00 [22:09:12]Write to MH i2c: E2 08 00 0B 2B 80 13 01 00 00 00 00 00 B3 [22:09:12]Write i2c OK [22:09:12]MH_I2C_Read... [22:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:12]Read from MH i2c: E2 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: E2 0E 00 [22:09:12]MH_I2C_Read... [22:09:12]Read from MH i2c: E2 0E 00 0B 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 11 [22:09:12]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:09:12]wFMCommunicate OK [22:09:12]SAM_PROTO_GetShiftState done [22:09:12]FM_GetShiftState done [22:09:12]req_shift_opened done [22:09:12]requested_item shift.open_date is exist - process it [22:09:12]req_shift_open_date [22:09:12]req_shift_open_date done [22:09:12]produce_requested_data done [22:09:12]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52764,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:09:12]process_action_free close_receipt [22:09:12]json_value_free [22:09:12]json_value_free done [22:09:12]process_json_proto returns [22:09:12]Send response to host [22:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52764,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:09:12]free response buf [22:09:12]execute_script done [22:09:12]execute_script returns [22:09:12]free content buf [22:09:12]Sock 7.Close socket [22:09:12]Sock 7.Thread stoped [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:38]accept exits with 9 [22:09:38]New connection [22:09:38]New thread 3067293028 created [22:09:38]Thread 3067149668 joined [22:09:38]Waiting for new connection... [22:09:38] Sock 9.Parse request [22:09:38]Sock 9.Check first char [22:09:38]Sock 9.First char is OK [22:09:38]request: POST /json_proto HTTP/1.0 [22:09:38]Method: POST [22:09:38]URL: /json_proto [22:09:38]Method is POST - this is cgi request [22:09:38]url: /json_proto [22:09:38]query_string will be loaded in cgi processing [22:09:38]execute_cgi json_proto POST (null) [22:09:38]execute_cgi path=json_proto method=POST [22:09:38]POST find Content-Length [22:09:38]Host: 172.17.60.7:8080 [22:09:38]Content-Length: 650 [22:09:38]Content-Type: application/json [22:09:38] [22:09:38]POST finish read [22:09:38]Found Content-Length = 650 [22:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122898", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 5.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:38]execute_script... [22:09: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)122898", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 5.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:38]POST & json_proto [22:09:38]process_json_proto [22:09:38]json parsed OK: [22:09:38]protocol is kg_v1.0 [22:09:38]action value=close_receipt [22:09:38]process_action close_receipt [22:09:38]cmd_close_receipt [22:09:38]MH_GetDate [22:09:38]Write to MH i2c: F0 00 00 0C 2B 26 [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: F0 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: F0 09 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: F0 09 00 0C 2B 00 29 88 BA 66 63 9B 67 64 C9 [22:09:38]GetLastDocTimeStamp 1723500555 [22:09:38]current date 1723500585 [22:09:38]FM_GetShiftState [22:09:38]SAM_PROTO_GetShiftState [22:09:38]wFMCommunicate request_size=4 [22:09:38]MH_SAM_APDU [22:09:38]CAPDU: 80 13 01 00 [22:09:38]Write to MH i2c: E2 08 00 0D 2B 80 13 01 00 00 00 00 00 B5 [22:09:38]Write i2c OK [22:09:38]MH_I2C_Read... [22:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:38]Read from MH i2c: E2 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 0E 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 0E 00 0D 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 13 [22:09:38]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:09:38]wFMCommunicate OK [22:09:38]SAM_PROTO_GetShiftState done [22:09:38]FM_GetShiftState done [22:09:38]opened in 1723422684 [22:09:38]opened+sec_in_day 1723509084 [22:09:38]quantity*price = 30000 [22:09:38]sum+1 = 30001 [22:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 83 12.08.2024 22:09 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52765 ФПД: 112430719333730 /tax-web-control/client/api/v1/ticket?date=20240812T220945&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52765&fm=112430719333730&tin=02508201610067®Number=0000000000090834&sum=30000 0 [22:09:40]StoreToDocumentArchive [22:09:40]shift 447 fd 52765 [22:09:40]save to /storage/0447/doc_00052765 [22:09:40]save last doc name /storage/0447/doc_00052765 to /storage/kkm_last_doc_name [22:09:40]save OK [22:09:40]Clear old archive folders... [22:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:09:40]tlvbuf is 0129D000 [22:09:40]SAM_PROTO_ClearQueue [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 09 00 00 [22:09:40]Write to MH i2c: E2 08 00 1A 2B 80 09 00 00 00 00 00 00 B7 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 1A 2B 00 90 00 B9 [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]SAM_PROTO_ClearQueue done [22:09:40]KKMCreateOFDPacket [22:09:40]OFDProtocolAddRootSTLVToBuf [22:09:40]FM_MakeSignedData [22:09:40]FM_MakeSignedData [22:09:40]SAM_PROTO_SignData [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 01 02 [22:09:40]Write to MH i2c: E2 08 00 1B 2B 80 0D 01 02 00 00 00 00 BF [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 1B 2B 00 90 00 BA [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]wFMCommunicate request_size=255 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 29 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 [22:09:40]Write to MH i2c: E2 02 01 1C 2B 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 29 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 00 00 47 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 1C 2B 00 90 00 BB [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]wFMCommunicate request_size=38 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1D CE 00 00 35 04 06 00 66 41 51 16 75 62 [22:09:40]Write to MH i2c: E2 29 00 1D 2B 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1D CE 00 00 35 04 06 00 66 41 51 16 75 62 00 00 1B [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 03 00 1D 2B 00 90 00 BC [22:09:40]RAPDU: 90 00 [22:09:40]wFMCommunicate OK [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 0D 03 02 [22:09:40]Write to MH i2c: E2 08 00 1E 2B 80 0D 03 02 00 00 00 00 C4 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 0B 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 0B 00 1E 2B 00 3E F8 1E EE 29 98 75 1A 90 00 57 [22:09:40]RAPDU: 3E F8 1E EE 29 98 75 1A 90 00 [22:09:40]wFMCommunicate OK [22:09:40]SAM_PROTO_SignData done [22:09:40]FM_MakeSignedData done [22:09:40]CreateOFDProtocolMessage [22:09:40]wFMCommunicate request_size=4 [22:09:40]MH_SAM_APDU [22:09:40]CAPDU: 80 11 00 00 [22:09:40]Write to MH i2c: E2 08 00 1F 2B 80 11 00 00 00 00 00 00 C4 [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:40]Read from MH i2c: E2 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 17 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: E2 17 00 1F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 17 [22:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:09:40]wFMCommunicate OK [22:09:40]CreateOFDProtocolMessage done [22:09:40]OFDSenderStorePacket 52765 [22:09:40]StoreOFDPacket docnum=52765 [22:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2B 01 00 00 53 40 23 01 D5 08 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 29 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1D CE 00 00 35 04 06 00 66 41 51 16 75 62 3E F8 1E EE 29 98 75 1A [22:09:40]CheckFolder [22:09:40]dirname=/storage/ofd_packets [22:09:40]CheckFolder done [22:09:40]ProducePacketName [22:09:40]name=ofd_packets/00052765 [22:09:40]NVStorageSaveData ofd_packets/00052765 [22:09:40]File name is /storage/ofd_packets/00052765 [22:09:40]Write 329 bytes [22:09:40]NVStorageSaveData done [22:09:40]OFDSenderStorePacket done [22:09:40]KKMCreateOFDPacket done [22:09:40]NVStorageSaveData kkm_last_timestamp [22:09:40]File name is /storage/kkm_last_timestamp [22:09:40]Write 4 bytes [22:09:40]NVStorageSaveData done [22:09:40]ExternCall_PrintAddStr [22:09:40]wPrintStart [22:09:40]Write to MH i2c: 01 00 00 20 2B 4B [22:09:40]Write i2c OK [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: 01 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: 01 07 00 [22:09:40]MH_I2C_Read... [22:09:40]Read from MH i2c: 01 07 00 20 2B 00 00 00 00 00 FF 0F 60 [22:09:40]RasterBufferAndPrint [22:09:40]line Счет N : (3)122898 [22:09:40]line ИНН: 02508201610067 [22:09:40]line Контрольно-Кассовый Чек [22:09:40]line ПРОДАЖА [22:09:40]line Товар: 2000032780025 [22:09:40]line Сосиска в тесте DC 110г [22:09:40]line 5.000 * 60.00 [22:09:40]line = 300.00 [22:09:40]line НДС 12% НСП 1% [22:09:40]line > о реализуемом товаре [22:09:40]line ИТОГО: 300.00 [22:09:40]line НСП 1% : 2.65 [22:09:40]line НДС 12% : 31.86 [22:09:40]line Наличными: 300.00 [22:09:40]line Безнал.: 0.00 [22:09:40]line Место: АЗС № 54 "Партнер Нефть" [22:09:40]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:09:40]line СНО: Общий режим [22:09:40]line Чек 83 12.08.2024 22:09 [22:09:40]line Смена: 447 ФФД: 1.0 [22:09:40]line ЗНМ: 0300000007 [22:09:40]line РНМ: 0000000000090834 [22:09:40]line Версия ККМ: 001 [22:09:40]line ФМ: 0000000000874715 [22:09:40]line ФД: 52765 [22:09:40]line ФПД: 112430719333730 [22:09:40]line /tax-web-control/client/api/v1/ticket?date=20240812T220945&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52765&fm=112430719333730&tin=02508201610067®Number=0000000000090834&sum=30000 [22:09:40]line 0 [22:09:40]OFD Sender: Processing packet 52765 [packets to send 55, broken 54] [22:09:40]ProducePacketName [22:09:40]name=ofd_packets/00052765 [22:09:40]OFD Sender: To server: pG, [22:09:40]CommunicateWithHost lk.salyk.kg:30040 [22:09:40]ConnectInit lk.salyk.kg [22:09:40]written 0, free lines is 4095 [22:09:40]Connected sock=10 [22:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2B 01 00 00 53 40 23 01 D5 08 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 29 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1D CE 00 00 35 04 06 00 66 41 51 16 75 62 3E F8 1E EE 29 98 75 1A [22:09:41]Write to MH i2c: 01 00 00 47 2B 72 [22:09:41]Write i2c OK [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: 01 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: 01 07 00 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: 01 07 00 47 2B 00 00 00 00 00 F4 0C 79 [22:09:41]RasterBufferAndPrint [22:09:41]line [22:09:41]line [22:09:41]line [22:09:41]line [22:09:41]line [22:09:41]written 0, free lines is 3321 [22:09:41]MH_Cut [22:09:41]Write to MH i2c: D1 01 00 4E 2B 01 4B [22:09:41]Write i2c OK [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: D1 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: D1 01 00 [22:09:41]MH_I2C_Read... [22:09:41]Read from MH i2c: D1 01 00 4E 2B 00 4A [22:09:41]Write to MH i2c: 01 00 00 4F 2B 7A [22:09:41]Write i2c OK [22:09:41]MH_I2C_Read... [22:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 09 DC 47 00 83 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1D CE 00 00 F4 03 04 00 C1 2F BA 66 B6 04 01 00 00 56 7B 15 72 F8 B8 93 44 [22:09:41]CommunicateWithHost err = 0 [22:09:41]CheckOFDResponse [22:09:41]1017 (14) - 77093643461234 [22:09:41]1041 (16) - 0000000000874715 [22:09:41]1040 (4) - 52765 [22:09:41]1012 (4) - 12.08.2024 15:52 [22:09:41]1206 (1) - 0 [22:09:41]OFD Sender: Remove packet 52765 [22:09:41]ProducePacketName [22:09:41]name=ofd_packets/00052765 [22:09:41]NVStorageDeleteData [22:09:41]OFD Sender: No OFD packet to send [22:09:41]*** Cut start [22:09:41]*** Purtial cut [22:09:41]*** Stage 1: CUTSNS_PIN = 1 [22:09:42]Read from MH i2c: 01 [22:09:42]MH_I2C_Read... [22:09:42]*** Stop cut motor [22:09:42]*** Cut end [22:09:42]Read from MH i2c: 01 07 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: 01 07 00 4F 2B 00 00 00 00 00 FF 0F 8F [22:09:42]process_action close_receipt done [22:09:42]requested_data is exist [22:09:42]produce_requested_data [22:09:42]requested_item fm.sn is exist - process it [22:09:42]wFMCommunicate request_size=4 [22:09:42]MH_SAM_APDU [22:09:42]CAPDU: 80 11 00 00 [22:09:42]Write to MH i2c: E2 08 00 50 2B 80 11 00 00 00 00 00 00 F5 [22:09:42]Write i2c OK [22:09:42]MH_I2C_Read... [22:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:42]Read from MH i2c: E2 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 17 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 17 00 50 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 48 [22:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:09:42]wFMCommunicate OK [22:09:42]requested_item fd.num is exist - process it [22:09:42]SAM_PROTO_GetFieldsCounters [22:09:42]wFMCommunicate request_size=4 [22:09:42]MH_SAM_APDU [22:09:42]CAPDU: 80 13 00 00 [22:09:42]Write to MH i2c: E2 08 00 51 2B 80 13 00 00 00 00 00 00 F8 [22:09:42]Write i2c OK [22:09:42]MH_I2C_Read... [22:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:42]Read from MH i2c: E2 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 62 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 62 00 51 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1D CE 00 00 0E 04 04 00 BF 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 BC [22:09: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1D CE 00 00 0E 04 04 00 BF 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 [22:09:42]wFMCommunicate OK [22:09:42]SAM_PROTO_GetFieldsCounters done [22:09:42]requested_item shift.num is exist - process it [22:09:42]requested_item shift.opened is exist - process it [22:09:42]req_shift_opened [22:09:42]FM_GetShiftState [22:09:42]SAM_PROTO_GetShiftState [22:09:42]wFMCommunicate request_size=4 [22:09:42]MH_SAM_APDU [22:09:42]CAPDU: 80 13 01 00 [22:09:42]Write to MH i2c: E2 08 00 52 2B 80 13 01 00 00 00 00 00 FA [22:09:42]Write i2c OK [22:09:42]MH_I2C_Read... [22:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:42]Read from MH i2c: E2 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 0E 00 [22:09:42]MH_I2C_Read... [22:09:42]Read from MH i2c: E2 0E 00 52 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 58 [22:09:42]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:09:42]wFMCommunicate OK [22:09:42]SAM_PROTO_GetShiftState done [22:09:42]FM_GetShiftState done [22:09:42]req_shift_opened done [22:09:42]requested_item shift.open_date is exist - process it [22:09:42]req_shift_open_date [22:09:42]req_shift_open_date done [22:09:42]produce_requested_data done [22:09:42]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52765,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:09:42]process_action_free close_receipt [22:09:42]json_value_free [22:09:42]json_value_free done [22:09:42]process_json_proto returns [22:09:42]Send response to host [22:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52765,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:09:42]free response buf [22:09:42]execute_script done [22:09:42]execute_script returns [22:09:42]free content buf [22:09:42]Sock 9.Close socket [22:09:42]Sock 9.Thread stoped [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:23]accept exits with 7 [22:12:23]New connection [22:12:23]New thread 3067149668 created [22:12:23]Thread 3067293028 joined [22:12:23]Waiting for new connection... [22:12:23] Sock 7.Parse request [22:12:23]Sock 7.Check first char [22:12:23]Sock 7.First char is OK [22:12:23]request: POST /json_proto HTTP/1.0 [22:12:23]Method: POST [22:12:23]URL: /json_proto [22:12:23]Method is POST - this is cgi request [22:12:23]url: /json_proto [22:12:23]query_string will be loaded in cgi processing [22:12:23]execute_cgi json_proto POST (null) [22:12:23]execute_cgi path=json_proto method=POST [22:12:23]POST find Content-Length [22:12:23]Host: 172.17.60.7:8080 [22:12:23]Content-Length: 626 [22:12:23]Content-Type: application/json [22:12:23] [22:12:23]POST finish read [22:12:23]Found Content-Length = 626 [22:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122899", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 5.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" ] } } [22:12:23]execute_script... [22:12: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)122899", "tax_sys" : 0, "items" : [ { "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 5.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" ] } } [22:12:23]POST & json_proto [22:12:23]process_json_proto [22:12:23]json parsed OK: [22:12:23]protocol is kg_v1.0 [22:12:23]action value=close_receipt [22:12:23]process_action close_receipt [22:12:23]cmd_close_receipt [22:12:23]MH_GetDate [22:12:23]Write to MH i2c: F0 00 00 53 2B 6D [22:12:23]Write i2c OK [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: F0 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: F0 09 00 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: F0 09 00 53 2B 00 CE 88 BA 66 63 9B 67 64 B5 [22:12:23]GetLastDocTimeStamp 1723500585 [22:12:23]current date 1723500750 [22:12:23]FM_GetShiftState [22:12:23]SAM_PROTO_GetShiftState [22:12:23]wFMCommunicate request_size=4 [22:12:23]MH_SAM_APDU [22:12:23]CAPDU: 80 13 01 00 [22:12:23]Write to MH i2c: E2 08 00 54 2B 80 13 01 00 00 00 00 00 FC [22:12:23]Write i2c OK [22:12:23]MH_I2C_Read... [22:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:23]Read from MH i2c: E2 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: E2 0E 00 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: E2 0E 00 54 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 5A [22:12:23]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:12:23]wFMCommunicate OK [22:12:23]SAM_PROTO_GetShiftState done [22:12:23]FM_GetShiftState done [22:12:23]opened in 1723422684 [22:12:23]opened+sec_in_day 1723509084 [22:12:23]quantity*price = 5000 [22:12:23]sum+1 = 5001 [22:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 84 12.08.2024 22:12 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52766 ФПД: 55853251352591 /tax-web-control/client/api/v1/ticket?date=20240812T221230&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52766&fm=55853251352591&tin=02508201610067®Number=0000000000090834&sum=5000 0 [22:12:24]StoreToDocumentArchive [22:12:24]shift 447 fd 52766 [22:12:24]save to /storage/0447/doc_00052766 [22:12:24]save last doc name /storage/0447/doc_00052766 to /storage/kkm_last_doc_name [22:12:24]save OK [22:12:24]Clear old archive folders... [22:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:12:24]tlvbuf is 0129CB70 [22:12:24]SAM_PROTO_ClearQueue [22:12:24]wFMCommunicate request_size=4 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 09 00 00 [22:12:24]Write to MH i2c: E2 08 00 61 2B 80 09 00 00 00 00 00 00 FE [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 61 2B 00 90 00 00 [22:12:24]RAPDU: 90 00 [22:12:24]wFMCommunicate OK [22:12:24]SAM_PROTO_ClearQueue done [22:12:24]KKMCreateOFDPacket [22:12:24]OFDProtocolAddRootSTLVToBuf [22:12:24]FM_MakeSignedData [22:12:24]FM_MakeSignedData [22:12:24]SAM_PROTO_SignData [22:12:24]wFMCommunicate request_size=4 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 0D 01 02 [22:12:24]Write to MH i2c: E2 08 00 62 2B 80 0D 01 02 00 00 00 00 06 [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 62 2B 00 90 00 01 [22:12:24]RAPDU: 90 00 [22:12:24]wFMCommunicate OK [22:12:24]wFMCommunicate request_size=255 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 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 54 00 00 00 F4 03 04 00 CE 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 [22:12:24]Write to MH i2c: E2 02 01 63 2B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 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 54 00 00 00 F4 03 04 00 CE 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 00 00 5C [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 63 2B 00 90 00 02 [22:12:24]RAPDU: 90 00 [22:12:24]wFMCommunicate OK [22:12:24]wFMCommunicate request_size=32 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 37 31 35 10 04 04 00 1E CE 00 00 35 04 06 00 32 CC 59 34 D8 0F [22:12:24]Write to MH i2c: E2 23 00 64 2B 80 0D 02 02 1B 00 30 30 30 38 37 34 37 31 35 10 04 04 00 1E CE 00 00 35 04 06 00 32 CC 59 34 D8 0F 00 00 C4 [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 03 00 64 2B 00 90 00 03 [22:12:24]RAPDU: 90 00 [22:12:24]wFMCommunicate OK [22:12:24]wFMCommunicate request_size=4 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 0D 03 02 [22:12:24]Write to MH i2c: E2 08 00 65 2B 80 0D 03 02 00 00 00 00 0B [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 0B 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 0B 00 65 2B 00 A6 90 66 69 37 B8 24 CC 90 00 F0 [22:12:24]RAPDU: A6 90 66 69 37 B8 24 CC 90 00 [22:12:24]wFMCommunicate OK [22:12:24]SAM_PROTO_SignData done [22:12:24]FM_MakeSignedData done [22:12:24]CreateOFDProtocolMessage [22:12:24]wFMCommunicate request_size=4 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 11 00 00 [22:12:24]Write to MH i2c: E2 08 00 66 2B 80 11 00 00 00 00 00 00 0B [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 17 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 17 00 66 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 5E [22:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:12:24]wFMCommunicate OK [22:12:24]CreateOFDProtocolMessage done [22:12:24]OFDSenderStorePacket 52766 [22:12:24]StoreOFDPacket docnum=52766 [22:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 25 01 00 00 E5 8A 1D 01 FC BF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 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 54 00 00 00 F4 03 04 00 CE 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1E CE 00 00 35 04 06 00 32 CC 59 34 D8 0F A6 90 66 69 37 B8 24 CC [22:12:24]CheckFolder [22:12:24]dirname=/storage/ofd_packets [22:12:24]CheckFolder done [22:12:24]ProducePacketName [22:12:24]name=ofd_packets/00052766 [22:12:24]NVStorageSaveData ofd_packets/00052766 [22:12:24]File name is /storage/ofd_packets/00052766 [22:12:24]Write 323 bytes [22:12:24]NVStorageSaveData done [22:12:24]OFDSenderStorePacket done [22:12:24]KKMCreateOFDPacket done [22:12:24]NVStorageSaveData kkm_last_timestamp [22:12:24]File name is /storage/kkm_last_timestamp [22:12:24]Write 4 bytes [22:12:24]NVStorageSaveData done [22:12:24]ExternCall_PrintAddStr [22:12:24]wPrintStart [22:12:24]Write to MH i2c: 01 00 00 67 2B 92 [22:12:24]OFD Sender: Processing packet 52766 [packets to send 55, broken 54] [22:12:24]ProducePacketName [22:12:24]name=ofd_packets/00052766 [22:12:24]OFD Sender: To server: pG, [22:12:24]CommunicateWithHost lk.salyk.kg:30040 [22:12:24]ConnectInit lk.salyk.kg [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: 01 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: 01 07 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: 01 07 00 67 2B 00 00 00 00 00 FF 0F A7 [22:12:24]RasterBufferAndPrint [22:12:24]line Счет N : (3)122899 [22:12:24]line ИНН: 02508201610067 [22:12:24]line Контрольно-Кассовый Чек [22:12:24]line ПРОДАЖА [22:12:24]line Товар: 46226624 [22:12:24]line Mentos ПВ Клубника 6*100*2 [22:12:24]line 5.000 * 10.00 [22:12:24]line = 50.00 [22:12:24]line НДС 12% НСП 1% [22:12:24]line > о реализуемом товаре [22:12:24]line ИТОГО: 50.00 [22:12:24]line НСП 1% : 0.44 [22:12:24]line НДС 12% : 5.31 [22:12:24]line Наличными: 50.00 [22:12:24]line Безнал.: 0.00 [22:12:24]line Место: АЗС № 54 "Партнер Нефть" [22:12:24]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:12:24]line СНО: Общий режим [22:12:24]line Чек 84 12.08.2024 22:12 [22:12:24]line Смена: 447 ФФД: 1.0 [22:12:24]line ЗНМ: 0300000007 [22:12:24]line РНМ: 0000000000090834 [22:12:24]line Версия ККМ: 001 [22:12:24]line ФМ: 0000000000874715 [22:12:24]line ФД: 52766 [22:12:24]line ФПД: 55853251352591 [22:12:24]line /tax-web-control/client/api/v1/ticket?date=20240812T221230&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52766&fm=55853251352591&tin=02508201610067®Number=0000000000090834&sum=5000 [22:12:25]Connected sock=10 [22:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 25 01 00 00 E5 8A 1D 01 FC BF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E8 03 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 54 00 00 00 F4 03 04 00 CE 88 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1E CE 00 00 35 04 06 00 32 CC 59 34 D8 0F A6 90 66 69 37 B8 24 CC [22:12:25]line 0 [22:12:25]written 0, free lines is 4095 [22:12:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 82 F7 47 00 F8 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 34 37 31 35 10 04 04 00 1E CE 00 00 F4 03 04 00 66 30 BA 66 B6 04 01 00 00 78 F4 F0 84 98 0A 96 6E [22:12:25]CommunicateWithHost err = 0 [22:12:25]CheckOFDResponse [22:12:25]1017 (14) - 77093643461234 [22:12:25]1041 (16) - 0000000000874715 [22:12:25]1040 (4) - 52766 [22:12:25]1012 (4) - 12.08.2024 15:55 [22:12:25]1206 (1) - 0 [22:12:25]OFD Sender: Remove packet 52766 [22:12:25]ProducePacketName [22:12:25]name=ofd_packets/00052766 [22:12:25]NVStorageDeleteData [22:12:25]Write to MH i2c: 01 00 00 8E 2B B9 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: 01 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: 01 07 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: 01 07 00 8E 2B 00 00 00 00 00 EE 0C BA [22:12:25]RasterBufferAndPrint [22:12:25]line [22:12:25]line [22:12:25]line [22:12:25]line [22:12:25]line [22:12:25]written 0, free lines is 3316 [22:12:25]MH_Cut [22:12:25]Write to MH i2c: D1 01 00 95 2B 01 92 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: D1 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: D1 01 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: D1 01 00 95 2B 00 91 [22:12:25]Write to MH i2c: 01 00 00 96 2B C1 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:26]OFD Sender: No OFD packet to send [22:12:26]*** Cut start [22:12:26]*** Purtial cut [22:12:26]*** Stage 1: CUTSNS_PIN = 1 [22:12:26]Read from MH i2c: 01 [22:12:26]MH_I2C_Read... [22:12:26]*** Stop cut motor [22:12:26]*** Cut end [22:12:26]Read from MH i2c: 01 07 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 96 2B 00 00 00 00 00 FF 0F D6 [22:12:26]process_action close_receipt done [22:12:26]requested_data is exist [22:12:26]produce_requested_data [22:12:26]requested_item fm.sn is exist - process it [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 11 00 00 [22:12:26]Write to MH i2c: E2 08 00 97 2B 80 11 00 00 00 00 00 00 3C [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 17 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 17 00 97 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 8F [22:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:12:26]wFMCommunicate OK [22:12:26]requested_item fd.num is exist - process it [22:12:26]SAM_PROTO_GetFieldsCounters [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 13 00 00 [22:12:26]Write to MH i2c: E2 08 00 98 2B 80 13 00 00 00 00 00 00 3F [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:27]Read from MH i2c: E2 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 62 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 62 00 98 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1E CE 00 00 0E 04 04 00 BF 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 07 [22:12:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1E CE 00 00 0E 04 04 00 BF 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 [22:12:27]wFMCommunicate OK [22:12:27]SAM_PROTO_GetFieldsCounters done [22:12:27]requested_item shift.num is exist - process it [22:12:27]requested_item shift.opened is exist - process it [22:12:27]req_shift_opened [22:12:27]FM_GetShiftState [22:12:27]SAM_PROTO_GetShiftState [22:12:27]wFMCommunicate request_size=4 [22:12:27]MH_SAM_APDU [22:12:27]CAPDU: 80 13 01 00 [22:12:27]Write to MH i2c: E2 08 00 99 2B 80 13 01 00 00 00 00 00 41 [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:27]Read from MH i2c: E2 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 0E 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 0E 00 99 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 9F [22:12:27]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:12:27]wFMCommunicate OK [22:12:27]SAM_PROTO_GetShiftState done [22:12:27]FM_GetShiftState done [22:12:27]req_shift_opened done [22:12:27]requested_item shift.open_date is exist - process it [22:12:27]req_shift_open_date [22:12:27]req_shift_open_date done [22:12:27]produce_requested_data done [22:12:27]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52766,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:12:27]process_action_free close_receipt [22:12:27]json_value_free [22:12:27]json_value_free done [22:12:27]process_json_proto returns [22:12:27]Send response to host [22:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52766,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:12:27]free response buf [22:12:27]execute_script done [22:12:27]execute_script returns [22:12:27]free content buf [22:12:27]Sock 7.Close socket [22:12:27]Sock 7.Thread stoped [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:18]accept exits with 9 [22:15:18]New connection [22:15:18]New thread 3067293028 created [22:15:18]Thread 3067149668 joined [22:15:18]Waiting for new connection... [22:15:18] Sock 9.Parse request [22:15:18]Sock 9.Check first char [22:15:18]Sock 9.First char is OK [22:15:18]request: POST /json_proto HTTP/1.0 [22:15:18]Method: POST [22:15:18]URL: /json_proto [22:15:18]Method is POST - this is cgi request [22:15:18]url: /json_proto [22:15:18]query_string will be loaded in cgi processing [22:15:18]execute_cgi json_proto POST (null) [22:15:18]execute_cgi path=json_proto method=POST [22:15:18]POST find Content-Length [22:15:18]Host: 172.17.60.7:8080 [22:15:18]Content-Length: 799 [22:15:18]Content-Type: application/json [22:15:18] [22:15:18]POST finish read [22:15:18]Found Content-Length = 799 [22:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122900", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:18]execute_script... [22:15: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)122900", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:18]POST & json_proto [22:15:18]process_json_proto [22:15:18]json parsed OK: [22:15:18]protocol is kg_v1.0 [22:15:18]action value=close_receipt [22:15:18]process_action close_receipt [22:15:18]cmd_close_receipt [22:15:18]MH_GetDate [22:15:18]Write to MH i2c: F0 00 00 9A 2B B4 [22:15:18]Write i2c OK [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: F0 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: F0 09 00 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: F0 09 00 9A 2B 00 7D 89 BA 66 63 9B 67 64 AC [22:15:18]GetLastDocTimeStamp 1723500750 [22:15:18]current date 1723500925 [22:15:18]FM_GetShiftState [22:15:18]SAM_PROTO_GetShiftState [22:15:18]wFMCommunicate request_size=4 [22:15:18]MH_SAM_APDU [22:15:18]CAPDU: 80 13 01 00 [22:15:18]Write to MH i2c: E2 08 00 9B 2B 80 13 01 00 00 00 00 00 43 [22:15:18]Write i2c OK [22:15:18]MH_I2C_Read... [22:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:18]Read from MH i2c: E2 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: E2 0E 00 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: E2 0E 00 9B 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A1 [22:15:18]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:15:18]wFMCommunicate OK [22:15:18]SAM_PROTO_GetShiftState done [22:15:18]FM_GetShiftState done [22:15:18]opened in 1723422684 [22:15:18]opened+sec_in_day 1723509084 [22:15:18]quantity*price = 15000 [22:15:18]sum+1 = 15001 [22:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 85 12.08.2024 22:15 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874715 ФД: 52767 ФПД: 50239183783494 /tax-web-control/client/api/v1/ticket?date=20240812T221525&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52767&fm=50239183783494&tin=02508201610067®Number=0000000000090834&sum=15000 0 [22:15:19]StoreToDocumentArchive [22:15:19]shift 447 fd 52767 [22:15:19]save to /storage/0447/doc_00052767 [22:15:19]save last doc name /storage/0447/doc_00052767 to /storage/kkm_last_doc_name [22:15:19]save OK [22:15:19]Clear old archive folders... [22:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:15:19]tlvbuf is 01293970 [22:15:19]SAM_PROTO_ClearQueue [22:15:19]wFMCommunicate request_size=4 [22:15:19]MH_SAM_APDU [22:15:19]CAPDU: 80 09 00 00 [22:15:19]Write to MH i2c: E2 08 00 A8 2B 80 09 00 00 00 00 00 00 45 [22:15:19]Write i2c OK [22:15:19]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 A8 2B 00 90 00 47 [22:15:20]RAPDU: 90 00 [22:15:20]wFMCommunicate OK [22:15:20]SAM_PROTO_ClearQueue done [22:15:20]KKMCreateOFDPacket [22:15:20]OFDProtocolAddRootSTLVToBuf [22:15:20]FM_MakeSignedData [22:15:20]FM_MakeSignedData [22:15:20]SAM_PROTO_SignData [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 0D 01 02 [22:15:20]Write to MH i2c: E2 08 00 A9 2B 80 0D 01 02 00 00 00 00 4D [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 A9 2B 00 90 00 48 [22:15:20]RAPDU: 90 00 [22:15:20]wFMCommunicate OK [22:15:20]wFMCommunicate request_size=255 [22:15:20]MH_SAM_APDU [22:15:20]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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7D 89 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 [22:15:20]Write to MH i2c: E2 02 01 AA 2B 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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7D 89 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 00 00 30 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 AA 2B 00 90 00 49 [22:15:20]RAPDU: 90 00 [22:15:20]wFMCommunicate OK [22:15:20]wFMCommunicate request_size=33 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1F CE 00 00 35 04 06 00 2D B1 38 B4 06 46 [22:15:20]Write to MH i2c: E2 24 00 AB 2B 80 0D 02 02 1C 00 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1F CE 00 00 35 04 06 00 2D B1 38 B4 06 46 00 00 E2 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 03 00 AB 2B 00 90 00 4A [22:15:20]RAPDU: 90 00 [22:15:20]wFMCommunicate OK [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 0D 03 02 [22:15:20]Write to MH i2c: E2 08 00 AC 2B 80 0D 03 02 00 00 00 00 52 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 0B 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 0B 00 AC 2B 00 87 60 BD D1 ED C1 20 B6 90 00 4C [22:15:20]RAPDU: 87 60 BD D1 ED C1 20 B6 90 00 [22:15:20]wFMCommunicate OK [22:15:20]SAM_PROTO_SignData done [22:15:20]FM_MakeSignedData done [22:15:20]CreateOFDProtocolMessage [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 11 00 00 [22:15:20]Write to MH i2c: E2 08 00 AD 2B 80 11 00 00 00 00 00 00 52 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 17 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 17 00 AD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 A5 [22:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:15:20]wFMCommunicate OK [22:15:20]CreateOFDProtocolMessage done [22:15:20]OFDSenderStorePacket 52767 [22:15:20]StoreOFDPacket docnum=52767 [22:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 26 01 00 00 54 AE 1E 01 A8 D2 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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7D 89 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1F CE 00 00 35 04 06 00 2D B1 38 B4 06 46 87 60 BD D1 ED C1 20 B6 [22:15:20]CheckFolder [22:15:20]dirname=/storage/ofd_packets [22:15:20]CheckFolder done [22:15:20]ProducePacketName [22:15:20]name=ofd_packets/00052767 [22:15:20]NVStorageSaveData ofd_packets/00052767 [22:15:20]File name is /storage/ofd_packets/00052767 [22:15:20]Write 324 bytes [22:15:20]NVStorageSaveData done [22:15:20]OFDSenderStorePacket done [22:15:20]KKMCreateOFDPacket done [22:15:20]NVStorageSaveData kkm_last_timestamp [22:15:20]File name is /storage/kkm_last_timestamp [22:15:20]Write 4 bytes [22:15:20]NVStorageSaveData done [22:15:20]ExternCall_PrintAddStr [22:15:20]wPrintStart [22:15:20]Write to MH i2c: 01 00 00 AE 2B D9 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 AE 2B 00 00 00 00 00 FF 0F EE [22:15:20]RasterBufferAndPrint [22:15:20]line Счет N : (3)122900 [22:15:20]line ИНН: 02508201610067 [22:15:20]line Контрольно-Кассовый Чек [22:15:20]line ПРОДАЖА [22:15:20]line Товар: 4640030091669 [22:15:20]line Сигареты ESSE Exchange S [22:15:20]line 1.000 * 150.00 [22:15:20]line = 150.00 [22:15:20]line НДС 12% НСП 1% [22:15:20]line > о реализуемом товаре [22:15:20]line ИТОГО: 150.00 [22:15:20]line НСП 1% : 1.33 [22:15:20]line НДС 12% : 15.93 [22:15:20]line Наличными: 0.00 [22:15:20]line Безнал.: 150.00 [22:15:20]line Место: АЗС № 54 "Партнер Нефть" [22:15:20]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:15:20]line СНО: Общий режим [22:15:20]line Чек 85 12.08.2024 22:15 [22:15:20]line Смена: 447 ФФД: 1.0 [22:15:20]line ЗНМ: 0300000007 [22:15:20]line РНМ: 0000000000090834 [22:15:20]line Версия ККМ: 001 [22:15:20]line Платежная система: Бакай Банк [22:15:20]line ФМ: 0000000000874715 [22:15:20]line ФД: 52767 [22:15:20]line ФПД: 50239183783494 [22:15:20]line /tax-web-control/client/api/v1/ticket?date=20240812T221525&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52767&fm=50239183783494&tin=02508201610067®Number=0000000000090834&sum=15000 [22:15:20]line 0 [22:15:20]OFD Sender: Processing packet 52767 [packets to send 55, broken 54] [22:15:20]ProducePacketName [22:15:20]name=ofd_packets/00052767 [22:15:20]OFD Sender: To server: pG, [22:15:20]CommunicateWithHost lk.salyk.kg:30040 [22:15:20]ConnectInit lk.salyk.kg [22:15:20]written 0, free lines is 4095 [22:15:21]Connected sock=10 [22:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 26 01 00 00 54 AE 1E 01 A8 D2 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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7D 89 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1F CE 00 00 35 04 06 00 2D B1 38 B4 06 46 87 60 BD D1 ED C1 20 B6 [22:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 9B 50 47 00 82 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 1F CE 00 00 F4 03 04 00 16 31 BA 66 B6 04 01 00 00 9A DE 50 60 4B 0D 16 BC [22:15:21]CommunicateWithHost err = 0 [22:15:21]CheckOFDResponse [22:15:21]1017 (14) - 77093643461234 [22:15:21]1041 (16) - 0000000000874715 [22:15:21]1040 (4) - 52767 [22:15:21]1012 (4) - 12.08.2024 15:58 [22:15:21]1206 (1) - 0 [22:15:21]OFD Sender: Remove packet 52767 [22:15:21]ProducePacketName [22:15:21]name=ofd_packets/00052767 [22:15:21]NVStorageDeleteData [22:15:21]Write to MH i2c: 01 00 00 D7 2B 02 [22:15:21]Write i2c OK [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: 01 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: 01 07 00 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: 01 07 00 D7 2B 00 00 00 00 00 ED 0C 02 [22:15:21]RasterBufferAndPrint [22:15:21]line [22:15:21]line [22:15:21]line [22:15:21]line [22:15:21]line [22:15:21]written 0, free lines is 3315 [22:15:21]MH_Cut [22:15:21]Write to MH i2c: D1 01 00 DE 2B 01 DB [22:15:21]Write i2c OK [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: D1 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: D1 01 00 [22:15:21]MH_I2C_Read... [22:15:21]Read from MH i2c: D1 01 00 DE 2B 00 DA [22:15:21]Write to MH i2c: 01 00 00 DF 2B 0A [22:15:21]Write i2c OK [22:15:21]MH_I2C_Read... [22:15:21]OFD Sender: No OFD packet to send [22:15:22]*** Cut start [22:15:22]*** Purtial cut [22:15:22]*** Stage 1: CUTSNS_PIN = 1 [22:15:22]Read from MH i2c: 01 [22:15:22]MH_I2C_Read... [22:15:22]*** Stop cut motor [22:15:22]*** Cut end [22:15:22]Read from MH i2c: 01 07 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: 01 07 00 DF 2B 00 00 00 00 00 FF 0F 1F [22:15:22]process_action close_receipt done [22:15:22]requested_data is exist [22:15:22]produce_requested_data [22:15:22]requested_item fm.sn is exist - process it [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 11 00 00 [22:15:22]Write to MH i2c: E2 08 00 E0 2B 80 11 00 00 00 00 00 00 85 [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 17 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 17 00 E0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D8 [22:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:15:22]wFMCommunicate OK [22:15:22]requested_item fd.num is exist - process it [22:15:22]SAM_PROTO_GetFieldsCounters [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 13 00 00 [22:15:22]Write to MH i2c: E2 08 00 E1 2B 80 13 00 00 00 00 00 00 88 [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 62 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 62 00 E1 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1F CE 00 00 0E 04 04 00 BF 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 54 [22:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 1F CE 00 00 0E 04 04 00 BF 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 [22:15:22]wFMCommunicate OK [22:15:22]SAM_PROTO_GetFieldsCounters done [22:15:22]requested_item shift.num is exist - process it [22:15:22]requested_item shift.opened is exist - process it [22:15:22]req_shift_opened [22:15:22]FM_GetShiftState [22:15:22]SAM_PROTO_GetShiftState [22:15:22]wFMCommunicate request_size=4 [22:15:22]MH_SAM_APDU [22:15:22]CAPDU: 80 13 01 00 [22:15:22]Write to MH i2c: E2 08 00 E2 2B 80 13 01 00 00 00 00 00 8A [22:15:22]Write i2c OK [22:15:22]MH_I2C_Read... [22:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:22]Read from MH i2c: E2 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 0E 00 [22:15:22]MH_I2C_Read... [22:15:22]Read from MH i2c: E2 0E 00 E2 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 E8 [22:15:22]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:15:22]wFMCommunicate OK [22:15:22]SAM_PROTO_GetShiftState done [22:15:22]FM_GetShiftState done [22:15:22]req_shift_opened done [22:15:22]requested_item shift.open_date is exist - process it [22:15:22]req_shift_open_date [22:15:22]req_shift_open_date done [22:15:22]produce_requested_data done [22:15:22]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52767,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:15:22]process_action_free close_receipt [22:15:22]json_value_free [22:15:22]json_value_free done [22:15:22]process_json_proto returns [22:15:22]Send response to host [22:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52767,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:15:22]free response buf [22:15:22]execute_script done [22:15:22]execute_script returns [22:15:22]free content buf [22:15:22]Sock 9.Close socket [22:15:22]Sock 9.Thread stoped [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:40]accept exits with 7 [22:42:40]New connection [22:42:40]New thread 3067149668 created [22:42:40]Thread 3067293028 joined [22:42:40]Waiting for new connection... [22:42:40] Sock 7.Parse request [22:42:40]Sock 7.Check first char [22:42:40]Sock 7.First char is OK [22:42:40]request: POST /json_proto HTTP/1.0 [22:42:40]Method: POST [22:42:40]URL: /json_proto [22:42:40]Method is POST - this is cgi request [22:42:40]url: /json_proto [22:42:40]query_string will be loaded in cgi processing [22:42:40]execute_cgi json_proto POST (null) [22:42:40]execute_cgi path=json_proto method=POST [22:42:40]POST find Content-Length [22:42:40]Host: 172.17.60.7:8080 [22:42:40]Content-Length: 1060 [22:42:40]Content-Type: application/json [22:42:40] [22:42:40]POST finish read [22:42:40]Found Content-Length = 1060 [22:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122901", "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": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:40]execute_script... [22:42: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)122901", "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": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:40]POST & json_proto [22:42:40]process_json_proto [22:42:40]json parsed OK: [22:42:40]protocol is kg_v1.0 [22:42:40]action value=close_receipt [22:42:40]process_action close_receipt [22:42:40]cmd_close_receipt [22:42:40]MH_GetDate [22:42:40]Write to MH i2c: F0 00 00 E3 2B FD [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 09 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 09 00 E3 2B 00 E7 8F BA 66 63 9B 67 64 65 [22:42:40]GetLastDocTimeStamp 1723500925 [22:42:40]current date 1723502567 [22:42:40]FM_GetShiftState [22:42:40]SAM_PROTO_GetShiftState [22:42:40]wFMCommunicate request_size=4 [22:42:40]MH_SAM_APDU [22:42:40]CAPDU: 80 13 01 00 [22:42:40]Write to MH i2c: E2 08 00 E4 2B 80 13 01 00 00 00 00 00 8C [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:40]Read from MH i2c: E2 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 0E 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 0E 00 E4 2B 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 EA [22:42:40]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:42:40]wFMCommunicate OK [22:42:40]SAM_PROTO_GetShiftState done [22:42:40]FM_GetShiftState done [22:42:40]opened in 1723422684 [22:42:40]opened+sec_in_day 1723509084 [22:42:40]quantity*price = 12500 [22:42:40]sum+1 = 12501 [22:42:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 86 12.08.2024 22:42 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52768 ФПД: 151867183240867 /tax-web-control/client/api/v1/ticket?date=20240812T224247&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52768&fm=151867183240867&tin=02508201610067®Number=0000000000090834&sum=26000 0 [22:42:42]StoreToDocumentArchive [22:42:42]shift 447 fd 52768 [22:42:42]save to /storage/0447/doc_00052768 [22:42:42]save last doc name /storage/0447/doc_00052768 to /storage/kkm_last_doc_name [22:42:42]save OK [22:42:42]Clear old archive folders... [22:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=380 [22:42:42]tlvbuf is B6DFB610 [22:42:42]SAM_PROTO_ClearQueue [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 09 00 00 [22:42:42]Write to MH i2c: E2 08 00 F1 2B 80 09 00 00 00 00 00 00 8E [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 F1 2B 00 90 00 90 [22:42:42]RAPDU: 90 00 [22:42:42]wFMCommunicate OK [22:42:42]SAM_PROTO_ClearQueue done [22:42:42]KKMCreateOFDPacket [22:42:42]OFDProtocolAddRootSTLVToBuf [22:42:42]FM_MakeSignedData [22:42:42]FM_MakeSignedData [22:42:42]SAM_PROTO_SignData [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 0D 01 02 [22:42:42]Write to MH i2c: E2 08 00 F2 2B 80 0D 01 02 00 00 00 00 96 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 F2 2B 00 90 00 91 [22:42:42]RAPDU: 90 00 [22:42:42]wFMCommunicate OK [22:42:42]wFMCommunicate request_size=255 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 0D 02 02 FA 03 00 7C 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [22:42:42]Write to MH i2c: E2 02 01 F3 2B 80 0D 02 02 FA 00 03 00 7C 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0D [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 F3 2B 00 90 00 92 [22:42:42]RAPDU: 90 00 [22:42:42]wFMCommunicate OK [22:42:42]wFMCommunicate request_size=139 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 0D 02 02 86 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 56 00 00 00 F4 03 04 00 E7 8F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 20 CE 00 00 35 04 06 00 8A 1F 55 82 96 A3 [22:42:42]Write to MH i2c: E2 8E 00 F4 2B 80 0D 02 02 86 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 56 00 00 00 F4 03 04 00 E7 8F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 20 CE 00 00 35 04 06 00 8A 1F 55 82 96 A3 00 00 EC [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 F4 2B 00 90 00 93 [22:42:42]RAPDU: 90 00 [22:42:42]wFMCommunicate OK [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 0D 03 02 [22:42:42]Write to MH i2c: E2 08 00 F5 2B 80 0D 03 02 00 00 00 00 9B [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 0B 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 0B 00 F5 2B 00 DB 29 DF 3F D0 A2 2A 4A 90 00 A4 [22:42:42]RAPDU: DB 29 DF 3F D0 A2 2A 4A 90 00 [22:42:42]wFMCommunicate OK [22:42:42]SAM_PROTO_SignData done [22:42:42]FM_MakeSignedData done [22:42:42]CreateOFDProtocolMessage [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 11 00 00 [22:42:42]Write to MH i2c: E2 08 00 F6 2B 80 11 00 00 00 00 00 00 9B [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 17 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 17 00 F6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 EE [22:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:42:42]wFMCommunicate OK [22:42:42]CreateOFDProtocolMessage done [22:42:42]OFDSenderStorePacket 52768 [22:42:42]StoreOFDPacket docnum=52768 [22:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 01 00 00 C8 0C 88 01 17 29 5A 03 01 00 03 00 7C 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 56 00 00 00 F4 03 04 00 E7 8F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 20 CE 00 00 35 04 06 00 8A 1F 55 82 96 A3 DB 29 DF 3F D0 A2 2A 4A [22:42:42]CheckFolder [22:42:42]dirname=/storage/ofd_packets [22:42:42]CheckFolder done [22:42:42]ProducePacketName [22:42:42]name=ofd_packets/00052768 [22:42:42]NVStorageSaveData ofd_packets/00052768 [22:42:42]File name is /storage/ofd_packets/00052768 [22:42:42]Write 430 bytes [22:42:42]NVStorageSaveData done [22:42:42]OFDSenderStorePacket done [22:42:42]KKMCreateOFDPacket done [22:42:42]NVStorageSaveData kkm_last_timestamp [22:42:42]File name is /storage/kkm_last_timestamp [22:42:42]Write 4 bytes [22:42:42]NVStorageSaveData done [22:42:42]ExternCall_PrintAddStr [22:42:42]wPrintStart [22:42:42]Write to MH i2c: 01 00 00 F7 2B 22 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 [22:42:43]MH_I2C_Read... [22:42:43]OFD Sender: Processing packet 52768 [packets to send 55, broken 54] [22:42:43]ProducePacketName [22:42:43]name=ofd_packets/00052768 [22:42:43]OFD Sender: To server: pG, [22:42:43]CommunicateWithHost lk.salyk.kg:30040 [22:42:43]ConnectInit lk.salyk.kg [22:42:43]Read from MH i2c: 01 07 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 F7 2B 00 00 00 00 00 FF 0F 37 [22:42:43]RasterBufferAndPrint [22:42:43]line Счет N : (3)122901 [22:42:43]line ИНН: 02508201610067 [22:42:43]line Контрольно-Кассовый Чек [22:42:43]line ПРОДАЖА [22:42:43]line Товар: 5449000054227 [22:42:43]line Напиток Кока-Кола 1л [22:42:43]line 1.000 * 125.00 [22:42:43]line = 125.00 [22:42:43]line НДС 12% НСП 1% [22:42:43]line > о реализуемом товаре [22:42:43]line Товар: 48745000 [22:42:43]line Сигареты Winston Purple Mix [22:42:43]line 1.000 * 135.00 [22:42:43]line = 135.00 [22:42:43]line НДС 12% НСП 1% [22:42:43]line > о реализуемом товаре [22:42:43]line ИТОГО: 260.00 [22:42:43]line НСП 1% : 2.30 [22:42:43]line НДС 12% : 27.61 [22:42:43]line Наличными: 0.00 [22:42:43]line Безнал.: 260.00 [22:42:43]line Место: АЗС № 54 "Партнер Нефть" [22:42:43]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:42:43]line СНО: Общий режим [22:42:43]line Чек 86 12.08.2024 22:42 [22:42:43]line Смена: 447 ФФД: 1.0 [22:42:43]line ЗНМ: 0300000007 [22:42:43]line РНМ: 0000000000090834 [22:42:43]line Версия ККМ: 001 [22:42:43]line Платежная система: О! деньги [22:42:43]line ФМ: 0000000000874715 [22:42:43]line ФД: 52768 [22:42:43]line ФПД: 151867183240867 [22:42:43]line /tax-web-control/client/api/v1/ticket?date=20240812T224247&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52768&fm=151867183240867&tin=02508201610067®Number=0000000000090834&sum=26000 [22:42:43]line 0 [22:42:43]written 0, free lines is 4095 [22:42:43]Connected sock=9 [22:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 01 00 00 C8 0C 88 01 17 29 5A 03 01 00 03 00 7C 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 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 56 00 00 00 F4 03 04 00 E7 8F BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 20 CE 00 00 35 04 06 00 8A 1F 55 82 96 A3 DB 29 DF 3F D0 A2 2A 4A [22:42:43]Write to MH i2c: 01 00 00 26 2C 52 [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 5F 0C C4 [22:42:43]RasterBufferAndPrint [22:42:43]line [22:42:43]line [22:42:43]line [22:42:43]line [22:42:43]line [22:42:43]written 0, free lines is 3174 [22:42:43]MH_Cut [22:42:43]Write to MH i2c: D1 01 00 2D 2C 01 2B [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: D1 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: D1 01 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: D1 01 00 2D 2C 00 2A [22:42:43]Write to MH i2c: 01 00 00 2E 2C 5A [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 2A B8 47 00 7C 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 20 CE 00 00 F4 03 04 00 80 37 BA 66 B6 04 01 00 00 18 79 E0 13 8E 72 3C 14 [22:42:43]CommunicateWithHost err = 0 [22:42:43]CheckOFDResponse [22:42:43]1017 (14) - 77093643461234 [22:42:43]1041 (16) - 0000000000874715 [22:42:43]1040 (4) - 52768 [22:42:43]1012 (4) - 12.08.2024 16:25 [22:42:43]1206 (1) - 0 [22:42:43]OFD Sender: Remove packet 52768 [22:42:43]ProducePacketName [22:42:43]name=ofd_packets/00052768 [22:42:43]NVStorageDeleteData [22:42:44]OFD Sender: No OFD packet to send [22:42:44]*** Cut start [22:42:44]*** Purtial cut [22:42:44]*** Stage 1: CUTSNS_PIN = 1 [22:42:44]Read from MH i2c: 01 [22:42:44]MH_I2C_Read... [22:42:44]*** Stop cut motor [22:42:44]*** Cut end [22:42:44]Read from MH i2c: 01 07 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: 01 07 00 2E 2C 00 00 00 00 00 FF 0F 6F [22:42:44]process_action close_receipt done [22:42:44]requested_data is exist [22:42:44]produce_requested_data [22:42:44]requested_item fm.sn is exist - process it [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 11 00 00 [22:42:44]Write to MH i2c: E2 08 00 2F 2C 80 11 00 00 00 00 00 00 D5 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 2F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 28 [22:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:42:44]wFMCommunicate OK [22:42:44]requested_item fd.num is exist - process it [22:42:44]SAM_PROTO_GetFieldsCounters [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 00 00 [22:42:44]Write to MH i2c: E2 08 00 30 2C 80 13 00 00 00 00 00 00 D8 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 30 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 20 CE 00 00 0E 04 04 00 BF 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 A8 [22:42:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 20 CE 00 00 0E 04 04 00 BF 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 [22:42:45]wFMCommunicate OK [22:42:45]SAM_PROTO_GetFieldsCounters done [22:42:45]requested_item shift.num is exist - process it [22:42:45]requested_item shift.opened is exist - process it [22:42:45]req_shift_opened [22:42:45]FM_GetShiftState [22:42:45]SAM_PROTO_GetShiftState [22:42:45]wFMCommunicate request_size=4 [22:42:45]MH_SAM_APDU [22:42:45]CAPDU: 80 13 01 00 [22:42:45]Write to MH i2c: E2 08 00 31 2C 80 13 01 00 00 00 00 00 DA [22:42:45]Write i2c OK [22:42:45]MH_I2C_Read... [22:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:45]Read from MH i2c: E2 [22:42:45]MH_I2C_Read... [22:42:45]Read from MH i2c: E2 0E 00 [22:42:45]MH_I2C_Read... [22:42:45]Read from MH i2c: E2 0E 00 31 2C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 38 [22:42:45]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:42:45]wFMCommunicate OK [22:42:45]SAM_PROTO_GetShiftState done [22:42:45]FM_GetShiftState done [22:42:45]req_shift_opened done [22:42:45]requested_item shift.open_date is exist - process it [22:42:45]req_shift_open_date [22:42:45]req_shift_open_date done [22:42:45]produce_requested_data done [22:42:45]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52768,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:42:45]process_action_free close_receipt [22:42:45]json_value_free [22:42:45]json_value_free done [22:42:45]process_json_proto returns [22:42:45]Send response to host [22:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52768,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:42:45]free response buf [22:42:45]execute_script done [22:42:45]execute_script returns [22:42:45]free content buf [22:42:45]Sock 7.Close socket [22:42:45]Sock 7.Thread stoped [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]recv_with_timeout no data received [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:52]accept exits with 10 [22:59:52]New connection [22:59:52]New thread 3067293028 created [22:59:52]Thread 3067149668 joined [22:59:52]Waiting for new connection... [22:59:52] Sock 10.Parse request [22:59:52]Sock 10.Check first char [22:59:52]Sock 10.First char is OK [22:59:52]request: POST /json_proto HTTP/1.0 [22:59:52]Method: POST [22:59:52]URL: /json_proto [22:59:52]Method is POST - this is cgi request [22:59:52]url: /json_proto [22:59:52]query_string will be loaded in cgi processing [22:59:52]execute_cgi json_proto POST (null) [22:59:52]execute_cgi path=json_proto method=POST [22:59:52]POST find Content-Length [22:59:52]Host: 172.17.60.7:8080 [22:59:52]Content-Length: 913 [22:59:52]Content-Type: application/json [22:59:52] [22:59:52]POST finish read [22:59:52]Found Content-Length = 913 [22:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122902", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8801116005475", "name": "[\u0411\u041B\u041E\u041A\u0418\u0420\u041E\u0412\u0410\u041D]\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE CAFE", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:52]execute_script... [22:59:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122902", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8801116005475", "name": "[\u0411\u041B\u041E\u041A\u0418\u0420\u041E\u0412\u0410\u041D]\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE CAFE", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:52]POST & json_proto [22:59:52]process_json_proto [22:59:52]json parsed OK: [22:59:52]protocol is kg_v1.0 [22:59:52]action value=close_receipt [22:59:52]process_action close_receipt [22:59:52]cmd_close_receipt [22:59:52]MH_GetDate [22:59:52]Write to MH i2c: F0 00 00 32 2C 4D [22:59:52]Write i2c OK [22:59:52]MH_I2C_Read... [22:59:52]Read from MH i2c: F0 [22:59:52]MH_I2C_Read... [22:59:52]Read from MH i2c: F0 09 00 [22:59:52]MH_I2C_Read... [22:59:52]Read from MH i2c: F0 09 00 32 2C 00 EF 93 BA 66 63 9B 67 64 C1 [22:59:52]GetLastDocTimeStamp 1723502567 [22:59:52]current date 1723503599 [22:59:52]FM_GetShiftState [22:59:52]SAM_PROTO_GetShiftState [22:59:52]wFMCommunicate request_size=4 [22:59:52]MH_SAM_APDU [22:59:52]CAPDU: 80 13 01 00 [22:59:52]Write to MH i2c: E2 08 00 33 2C 80 13 01 00 00 00 00 00 DC [22:59:52]Write i2c OK [22:59:52]MH_I2C_Read... [22:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:52]Read from MH i2c: E2 [22:59:52]MH_I2C_Read... [22:59:52]Read from MH i2c: E2 0E 00 [22:59:52]MH_I2C_Read... [22:59:52]Read from MH i2c: E2 0E 00 33 2C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 3A [22:59:52]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:59:52]wFMCommunicate OK [22:59:52]SAM_PROTO_GetShiftState done [22:59:52]FM_GetShiftState done [22:59:52]opened in 1723422684 [22:59:52]opened+sec_in_day 1723509084 [22:59:52]quantity*price = 14500 [22:59:52]sum+1 = 14501 [22:59:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8801116005475 [БЛОКИРОВАН]Сигареты ESSE CAFE 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 238.00 НСП 1% : 2.10 НДС 12% : 25.28 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 87 12.08.2024 23:00 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52769 ФПД: 272262242029779 /tax-web-control/client/api/v1/ticket?date=20240812T230000&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52769&fm=272262242029779&tin=02508201610067®Number=0000000000090834&sum=23800 0 [22:59:54]StoreToDocumentArchive [22:59:54]shift 447 fd 52769 [22:59:54]save to /storage/0447/doc_00052769 [22:59:54]save last doc name /storage/0447/doc_00052769 to /storage/kkm_last_doc_name [22:59:54]save OK [22:59:54]Clear old archive folders... [22:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=393 [22:59:54]tlvbuf is 01291AA0 [22:59:54]SAM_PROTO_ClearQueue [22:59:54]wFMCommunicate request_size=4 [22:59:54]MH_SAM_APDU [22:59:54]CAPDU: 80 09 00 00 [22:59:54]Write to MH i2c: E2 08 00 40 2C 80 09 00 00 00 00 00 00 DE [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:54]Read from MH i2c: E2 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 40 2C 00 90 00 E0 [22:59:54]RAPDU: 90 00 [22:59:54]wFMCommunicate OK [22:59:54]SAM_PROTO_ClearQueue done [22:59:54]KKMCreateOFDPacket [22:59:54]OFDProtocolAddRootSTLVToBuf [22:59:54]FM_MakeSignedData [22:59:54]FM_MakeSignedData [22:59:54]SAM_PROTO_SignData [22:59:54]wFMCommunicate request_size=4 [22:59:54]MH_SAM_APDU [22:59:54]CAPDU: 80 0D 01 02 [22:59:54]Write to MH i2c: E2 08 00 41 2C 80 0D 01 02 00 00 00 00 E6 [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:54]Read from MH i2c: E2 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 41 2C 00 90 00 E1 [22:59:54]RAPDU: 90 00 [22:59:54]wFMCommunicate OK [22:59:54]wFMCommunicate request_size=255 [22:59:54]MH_SAM_APDU [22:59:54]CAPDU: 80 0D 02 02 FA 03 00 89 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 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 38 38 30 31 31 31 36 30 30 35 34 37 35 06 04 30 00 5B D0 91 D0 9B D0 9E D0 9A D0 98 D0 A0 D0 9E D0 92 D0 90 D0 9D 5D D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 43 41 46 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 [22:59:54]Write to MH i2c: E2 02 01 42 2C 80 0D 02 02 FA 00 03 00 89 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 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 38 38 30 31 31 31 36 30 30 35 34 37 35 06 04 30 00 5B D0 91 D0 9B D0 9E D0 9A D0 98 D0 A0 D0 9E D0 92 D0 90 D0 9D 5D D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 43 41 46 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 6D [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 [22:59:54]MH_I2C_Read... [22:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:54]Read from MH i2c: E2 03 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 42 2C 00 90 00 E2 [22:59:54]RAPDU: 90 00 [22:59:54]wFMCommunicate OK [22:59:54]wFMCommunicate request_size=152 [22:59:54]MH_SAM_APDU [22:59:54]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 09 00 00 00 00 07 04 06 00 F8 5C 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 F0 93 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 21 CE 00 00 35 04 06 00 F7 9E FE 38 D0 D3 [22:59:54]Write to MH i2c: E2 9B 00 43 2C 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 09 00 00 00 00 07 04 06 00 F8 5C 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 F0 93 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 21 CE 00 00 35 04 06 00 F7 9E FE 38 D0 D3 00 00 5C [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:54]Read from MH i2c: E2 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 03 00 43 2C 00 90 00 E3 [22:59:54]RAPDU: 90 00 [22:59:54]wFMCommunicate OK [22:59:54]wFMCommunicate request_size=4 [22:59:54]MH_SAM_APDU [22:59:54]CAPDU: 80 0D 03 02 [22:59:54]Write to MH i2c: E2 08 00 44 2C 80 0D 03 02 00 00 00 00 EB [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:54]Read from MH i2c: E2 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 0B 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 0B 00 44 2C 00 D5 20 3F 9F 37 24 A1 49 90 00 04 [22:59:54]RAPDU: D5 20 3F 9F 37 24 A1 49 90 00 [22:59:54]wFMCommunicate OK [22:59:54]SAM_PROTO_SignData done [22:59:54]FM_MakeSignedData done [22:59:54]CreateOFDProtocolMessage [22:59:54]wFMCommunicate request_size=4 [22:59:54]MH_SAM_APDU [22:59:54]CAPDU: 80 11 00 00 [22:59:54]Write to MH i2c: E2 08 00 45 2C 80 11 00 00 00 00 00 00 EB [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:54]Read from MH i2c: E2 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 17 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: E2 17 00 45 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 3E [22:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:59:54]wFMCommunicate OK [22:59:54]CreateOFDProtocolMessage done [22:59:54]OFDSenderStorePacket 52769 [22:59:54]StoreOFDPacket docnum=52769 [22:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 9D 01 00 00 68 86 95 01 97 85 5A 03 01 00 03 00 89 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 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 38 38 30 31 31 31 36 30 30 35 34 37 35 06 04 30 00 5B D0 91 D0 9B D0 9E D0 9A D0 98 D0 A0 D0 9E D0 92 D0 90 D0 9D 5D D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 43 41 46 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 09 00 00 00 00 07 04 06 00 F8 5C 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 F0 93 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 21 CE 00 00 35 04 06 00 F7 9E FE 38 D0 D3 D5 20 3F 9F 37 24 A1 49 [22:59:54]CheckFolder [22:59:54]dirname=/storage/ofd_packets [22:59:54]CheckFolder done [22:59:54]ProducePacketName [22:59:54]name=ofd_packets/00052769 [22:59:54]NVStorageSaveData ofd_packets/00052769 [22:59:54]File name is /storage/ofd_packets/00052769 [22:59:54]Write 443 bytes [22:59:54]NVStorageSaveData done [22:59:54]OFDSenderStorePacket done [22:59:54]KKMCreateOFDPacket done [22:59:54]NVStorageSaveData kkm_last_timestamp [22:59:54]File name is /storage/kkm_last_timestamp [22:59:54]Write 4 bytes [22:59:54]NVStorageSaveData done [22:59:54]ExternCall_PrintAddStr [22:59:54]wPrintStart [22:59:54]Write to MH i2c: 01 00 00 46 2C 72 [22:59:54]Write i2c OK [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: 01 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: 01 07 00 [22:59:54]MH_I2C_Read... [22:59:54]Read from MH i2c: 01 07 00 46 2C 00 00 00 00 00 FF 0F 87 [22:59:54]RasterBufferAndPrint [22:59:54]line Счет N : (3)122902 [22:59:54]line ИНН: 02508201610067 [22:59:54]line Контрольно-Кассовый Чек [22:59:54]line ПРОДАЖА [22:59:54]line Товар: 48744119 [22:59:54]line Сигареты Winston Xstyle Dual [22:59:54]line 1.000 * 145.00 [22:59:54]line = 145.00 [22:59:54]line НДС 12% НСП 1% [22:59:54]line > о реализуемом товаре [22:59:54]line Товар: 8801116005475 [22:59:54]line [БЛОКИРОВАН]Сигареты ESSE CAFE [22:59:54]line 1.000 * 93.00 [22:59:54]line = 93.00 [22:59:54]line НДС 12% НСП 1% [22:59:55]line > о реализуемом товаре [22:59:55]line ИТОГО: 238.00 [22:59:55]line НСП 1% : 2.10 [22:59:55]line НДС 12% : 25.28 [22:59:55]line Наличными: 238.00 [22:59:55]line Безнал.: 0.00 [22:59:55]line Место: АЗС № 54 "Партнер Нефть" [22:59:55]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [22:59:55]line СНО: Общий режим [22:59:55]line Чек 87 12.08.2024 23:00 [22:59:55]line Смена: 447 ФФД: 1.0 [22:59:55]line ЗНМ: 0300000007 [22:59:55]line РНМ: 0000000000090834 [22:59:55]line Версия ККМ: 001 [22:59:55]line ФМ: 0000000000874715 [22:59:55]line ФД: 52769 [22:59:55]line ФПД: 272262242029779 [22:59:55]line /tax-web-control/client/api/v1/ticket?date=20240812T230000&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52769&fm=272262242029779&tin=02508201610067®Number=0000000000090834&sum=23800 [22:59:55]line 0 [22:59:55]OFD Sender: Processing packet 52769 [packets to send 55, broken 54] [22:59:55]ProducePacketName [22:59:55]name=ofd_packets/00052769 [22:59:55]OFD Sender: To server: pG, [22:59:55]CommunicateWithHost lk.salyk.kg:30040 [22:59:55]ConnectInit lk.salyk.kg [22:59:55]written 0, free lines is 4095 [22:59:55]Connected sock=9 [22:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 9D 01 00 00 68 86 95 01 97 85 5A 03 01 00 03 00 89 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 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 38 38 30 31 31 31 36 30 30 35 34 37 35 06 04 30 00 5B D0 91 D0 9B D0 9E D0 9A D0 98 D0 A0 D0 9E D0 92 D0 90 D0 9D 5D D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 43 41 46 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 09 00 00 00 00 07 04 06 00 F8 5C 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 F0 93 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 21 CE 00 00 35 04 06 00 F7 9E FE 38 D0 D3 D5 20 3F 9F 37 24 A1 49 [22:59:55]Write to MH i2c: 01 00 00 74 2C A0 [22:59:55]Write i2c OK [22:59:55]MH_I2C_Read... [22:59:55]Read from MH i2c: 01 [22:59:55]MH_I2C_Read... [22:59:55]Read from MH i2c: 01 07 00 [22:59:55]MH_I2C_Read... [22:59:55]Read from MH i2c: 01 07 00 74 2C 00 00 00 00 00 74 0C 27 [22:59:55]RasterBufferAndPrint [22:59:55]line [22:59:55]line [22:59:55]line [22:59:55]line [22:59:55]line [22:59:55]written 0, free lines is 3196 [22:59:55]MH_Cut [22:59:55]Write to MH i2c: D1 01 00 7B 2C 01 79 [22:59:55]Write i2c OK [22:59:55]MH_I2C_Read... [22:59:55]Read from MH i2c: D1 [22:59:55]MH_I2C_Read... [22:59:55]Read from MH i2c: D1 01 00 [22:59:55]MH_I2C_Read... [22:59:55]Read from MH i2c: D1 01 00 7B 2C 00 78 [22:59:55]Write to MH i2c: 01 00 00 7C 2C A8 [22:59:55]Write i2c OK [22:59:55]MH_I2C_Read... [22:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 FC 3E 47 00 70 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 21 CE 00 00 F4 03 04 00 88 3B BA 66 B6 04 01 00 00 D4 BD A5 31 30 0D 59 BF [22:59:55]CommunicateWithHost err = 0 [22:59:55]CheckOFDResponse [22:59:55]1017 (14) - 77093643461234 [22:59:55]1041 (16) - 0000000000874715 [22:59:55]1040 (4) - 52769 [22:59:55]1012 (4) - 12.08.2024 16:42 [22:59:55]1206 (1) - 0 [22:59:55]OFD Sender: Remove packet 52769 [22:59:55]ProducePacketName [22:59:55]name=ofd_packets/00052769 [22:59:55]NVStorageDeleteData [22:59:56]OFD Sender: No OFD packet to send [22:59:56]*** Cut start [22:59:56]*** Purtial cut [22:59:56]*** Stage 1: CUTSNS_PIN = 1 [22:59:56]Read from MH i2c: 01 [22:59:56]MH_I2C_Read... [22:59:56]*** Stop cut motor [22:59:56]*** Cut end [22:59:56]Read from MH i2c: 01 07 00 [22:59:56]MH_I2C_Read... [22:59:56]Read from MH i2c: 01 07 00 7C 2C 00 00 00 00 00 FF 0F BD [22:59:56]process_action close_receipt done [22:59:56]requested_data is exist [22:59:56]produce_requested_data [22:59:56]requested_item fm.sn is exist - process it [22:59:56]wFMCommunicate request_size=4 [22:59:56]MH_SAM_APDU [22:59:56]CAPDU: 80 11 00 00 [22:59:56]Write to MH i2c: E2 08 00 7D 2C 80 11 00 00 00 00 00 00 23 [22:59:56]Write i2c OK [22:59:56]MH_I2C_Read... [22:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:56]Read from MH i2c: E2 [22:59:56]MH_I2C_Read... [22:59:56]Read from MH i2c: E2 17 00 [22:59:56]MH_I2C_Read... [22:59:56]Read from MH i2c: E2 17 00 7D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 76 [22:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [22:59:56]wFMCommunicate OK [22:59:56]requested_item fd.num is exist - process it [22:59:56]SAM_PROTO_GetFieldsCounters [22:59:56]wFMCommunicate request_size=4 [22:59:56]MH_SAM_APDU [22:59:56]CAPDU: 80 13 00 00 [22:59:56]Write to MH i2c: E2 08 00 7E 2C 80 13 00 00 00 00 00 00 26 [22:59:56]Write i2c OK [22:59:56]MH_I2C_Read... [22:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:57]Read from MH i2c: E2 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: E2 62 00 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: E2 62 00 7E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 21 CE 00 00 0E 04 04 00 BF 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 FA [22:59: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 21 CE 00 00 0E 04 04 00 BF 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 [22:59:57]wFMCommunicate OK [22:59:57]SAM_PROTO_GetFieldsCounters done [22:59:57]requested_item shift.num is exist - process it [22:59:57]requested_item shift.opened is exist - process it [22:59:57]req_shift_opened [22:59:57]FM_GetShiftState [22:59:57]SAM_PROTO_GetShiftState [22:59:57]wFMCommunicate request_size=4 [22:59:57]MH_SAM_APDU [22:59:57]CAPDU: 80 13 01 00 [22:59:57]Write to MH i2c: E2 08 00 7F 2C 80 13 01 00 00 00 00 00 28 [22:59:57]Write i2c OK [22:59:57]MH_I2C_Read... [22:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:57]Read from MH i2c: E2 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: E2 0E 00 [22:59:57]MH_I2C_Read... [22:59:57]Read from MH i2c: E2 0E 00 7F 2C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 86 [22:59:57]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [22:59:57]wFMCommunicate OK [22:59:57]SAM_PROTO_GetShiftState done [22:59:57]FM_GetShiftState done [22:59:57]req_shift_opened done [22:59:57]requested_item shift.open_date is exist - process it [22:59:57]req_shift_open_date [22:59:57]req_shift_open_date done [22:59:57]produce_requested_data done [22:59:57]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52769,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [22:59:57]process_action_free close_receipt [22:59:57]json_value_free [22:59:57]json_value_free done [22:59:57]process_json_proto returns [22:59:57]Send response to host [22:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52769,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [22:59:57]free response buf [22:59:57]execute_script done [22:59:57]execute_script returns [22:59:57]free content buf [22:59:57]Sock 10.Close socket [22:59:57]Sock 10.Thread stoped [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:15]accept exits with 7 [23:10:15]New connection [23:10:15]New thread 3067149668 created [23:10:15]Thread 3067293028 joined [23:10:15]Waiting for new connection... [23:10:15] Sock 7.Parse request [23:10:15]Sock 7.Check first char [23:10:15]Sock 7.First char is OK [23:10:15]request: POST /json_proto HTTP/1.0 [23:10:15]Method: POST [23:10:15]URL: /json_proto [23:10:15]Method is POST - this is cgi request [23:10:15]url: /json_proto [23:10:15]query_string will be loaded in cgi processing [23:10:15]execute_cgi json_proto POST (null) [23:10:15]execute_cgi path=json_proto method=POST [23:10:15]POST find Content-Length [23:10:15]Host: 172.17.60.7:8080 [23:10:15]Content-Length: 816 [23:10:15]Content-Type: application/json [23:10:15] [23:10:15]POST finish read [23:10:15]Found Content-Length = 816 [23:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122903", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:15]execute_script... [23:10:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122903", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:15]POST & json_proto [23:10:15]process_json_proto [23:10:15]json parsed OK: [23:10:15]protocol is kg_v1.0 [23:10:15]action value=close_receipt [23:10:15]process_action close_receipt [23:10:15]cmd_close_receipt [23:10:15]MH_GetDate [23:10:15]Write to MH i2c: F0 00 00 80 2C 9B [23:10:15]Write i2c OK [23:10:15]MH_I2C_Read... [23:10:15]Read from MH i2c: F0 [23:10:15]MH_I2C_Read... [23:10:15]Read from MH i2c: F0 09 00 [23:10:15]MH_I2C_Read... [23:10:15]Read from MH i2c: F0 09 00 80 2C 00 5E 96 BA 66 63 9B 67 64 81 [23:10:15]GetLastDocTimeStamp 1723503600 [23:10:15]current date 1723504222 [23:10:15]FM_GetShiftState [23:10:15]SAM_PROTO_GetShiftState [23:10:15]wFMCommunicate request_size=4 [23:10:15]MH_SAM_APDU [23:10:15]CAPDU: 80 13 01 00 [23:10:15]Write to MH i2c: E2 08 00 81 2C 80 13 01 00 00 00 00 00 2A [23:10:15]Write i2c OK [23:10:15]MH_I2C_Read... [23:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:15]Read from MH i2c: E2 [23:10:15]MH_I2C_Read... [23:10:15]Read from MH i2c: E2 0E 00 [23:10:15]MH_I2C_Read... [23:10:15]Read from MH i2c: E2 0E 00 81 2C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 88 [23:10:15]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [23:10:15]wFMCommunicate OK [23:10:15]SAM_PROTO_GetShiftState done [23:10:15]FM_GetShiftState done [23:10:15]opened in 1723422684 [23:10:15]opened+sec_in_day 1723509084 [23:10:15]quantity*price = 18000 [23:10:15]sum+1 = 18001 [23:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 0.00 Безнал.: 180.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 88 12.08.2024 23:10 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52770 ФПД: 209293541690891 /tax-web-control/client/api/v1/ticket?date=20240812T231022&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52770&fm=209293541690891&tin=02508201610067®Number=0000000000090834&sum=18000 0 [23:10:16]StoreToDocumentArchive [23:10:16]shift 447 fd 52770 [23:10:16]save to /storage/0447/doc_00052770 [23:10:16]save last doc name /storage/0447/doc_00052770 to /storage/kkm_last_doc_name [23:10:16]save OK [23:10:16]Clear old archive folders... [23:10:16]ProcessDocumentItem done err = 0, tmpTLVsize=279 [23:10:16]tlvbuf is 01344F90 [23:10:16]SAM_PROTO_ClearQueue [23:10:16]wFMCommunicate request_size=4 [23:10:16]MH_SAM_APDU [23:10:16]CAPDU: 80 09 00 00 [23:10:16]Write to MH i2c: E2 08 00 8E 2C 80 09 00 00 00 00 00 00 2C [23:10:16]Write i2c OK [23:10:16]MH_I2C_Read... [23:10:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:16]Read from MH i2c: E2 [23:10:16]MH_I2C_Read... [23:10:16]Read from MH i2c: E2 03 00 [23:10:16]MH_I2C_Read... [23:10:16]Read from MH i2c: E2 03 00 8E 2C 00 90 00 2E [23:10:16]RAPDU: 90 00 [23:10:16]wFMCommunicate OK [23:10:16]SAM_PROTO_ClearQueue done [23:10:16]KKMCreateOFDPacket [23:10:16]OFDProtocolAddRootSTLVToBuf [23:10:16]FM_MakeSignedData [23:10:16]FM_MakeSignedData [23:10:16]SAM_PROTO_SignData [23:10:16]wFMCommunicate request_size=4 [23:10:16]MH_SAM_APDU [23:10:16]CAPDU: 80 0D 01 02 [23:10:16]Write to MH i2c: E2 08 00 8F 2C 80 0D 01 02 00 00 00 00 34 [23:10:16]Write i2c OK [23:10:16]MH_I2C_Read... [23:10:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:16]Read from MH i2c: E2 [23:10:16]MH_I2C_Read... [23:10:16]Read from MH i2c: E2 03 00 [23:10:16]MH_I2C_Read... [23:10:16]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [23:10:16]RAPDU: 90 00 [23:10:16]wFMCommunicate OK [23:10:16]wFMCommunicate request_size=255 [23:10:16]MH_SAM_APDU [23:10:16]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 96 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 [23:10:16]Write to MH i2c: E2 02 01 90 2C 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 96 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 00 00 94 [23:10:17]Write i2c OK [23:10:17]MH_I2C_Read... [23:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:17]Read from MH i2c: E2 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 03 00 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 03 00 90 2C 00 90 00 30 [23:10:17]RAPDU: 90 00 [23:10:17]wFMCommunicate OK [23:10:17]wFMCommunicate request_size=38 [23:10:17]MH_SAM_APDU [23:10:17]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 22 CE 00 00 35 04 06 00 BE 59 F3 34 CE 0B [23:10:17]Write to MH i2c: E2 29 00 91 2C 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 22 CE 00 00 35 04 06 00 BE 59 F3 34 CE 0B 00 00 C7 [23:10:17]Write i2c OK [23:10:17]MH_I2C_Read... [23:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:17]Read from MH i2c: E2 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 03 00 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 03 00 91 2C 00 90 00 31 [23:10:17]RAPDU: 90 00 [23:10:17]wFMCommunicate OK [23:10:17]wFMCommunicate request_size=4 [23:10:17]MH_SAM_APDU [23:10:17]CAPDU: 80 0D 03 02 [23:10:17]Write to MH i2c: E2 08 00 92 2C 80 0D 03 02 00 00 00 00 39 [23:10:17]Write i2c OK [23:10:17]MH_I2C_Read... [23:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:17]Read from MH i2c: E2 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 0B 00 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 0B 00 92 2C 00 1A 27 1D E9 08 F2 D0 E8 90 00 33 [23:10:17]RAPDU: 1A 27 1D E9 08 F2 D0 E8 90 00 [23:10:17]wFMCommunicate OK [23:10:17]SAM_PROTO_SignData done [23:10:17]FM_MakeSignedData done [23:10:17]CreateOFDProtocolMessage [23:10:17]wFMCommunicate request_size=4 [23:10:17]MH_SAM_APDU [23:10:17]CAPDU: 80 11 00 00 [23:10:17]Write to MH i2c: E2 08 00 93 2C 80 11 00 00 00 00 00 00 39 [23:10:17]Write i2c OK [23:10:17]MH_I2C_Read... [23:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:17]Read from MH i2c: E2 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 17 00 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: E2 17 00 93 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 8C [23:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [23:10:17]wFMCommunicate OK [23:10:17]CreateOFDProtocolMessage done [23:10:17]OFDSenderStorePacket 52770 [23:10:17]StoreOFDPacket docnum=52770 [23:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2B 01 00 00 54 AF 23 01 EF 90 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 96 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 22 CE 00 00 35 04 06 00 BE 59 F3 34 CE 0B 1A 27 1D E9 08 F2 D0 E8 [23:10:17]CheckFolder [23:10:17]dirname=/storage/ofd_packets [23:10:17]CheckFolder done [23:10:17]ProducePacketName [23:10:17]name=ofd_packets/00052770 [23:10:17]NVStorageSaveData ofd_packets/00052770 [23:10:17]File name is /storage/ofd_packets/00052770 [23:10:17]Write 329 bytes [23:10:17]NVStorageSaveData done [23:10:17]OFDSenderStorePacket done [23:10:17]KKMCreateOFDPacket done [23:10:17]NVStorageSaveData kkm_last_timestamp [23:10:17]File name is /storage/kkm_last_timestamp [23:10:17]Write 4 bytes [23:10:17]NVStorageSaveData done [23:10:17]ExternCall_PrintAddStr [23:10:17]wPrintStart [23:10:17]Write to MH i2c: 01 00 00 94 2C C0 [23:10:17]Write i2c OK [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: 01 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: 01 07 00 [23:10:17]MH_I2C_Read... [23:10:17]Read from MH i2c: 01 07 00 94 2C 00 00 00 00 00 FF 0F D5 [23:10:17]RasterBufferAndPrint [23:10:17]line Счет N : (3)122903 [23:10:17]line ИНН: 02508201610067 [23:10:17]line Контрольно-Кассовый Чек [23:10:17]line ПРОДАЖА [23:10:17]line Товар: 2000032780025 [23:10:17]line Сосиска в тесте DC 110г [23:10:17]line 3.000 * 60.00 [23:10:17]line = 180.00 [23:10:17]line НДС 12% НСП 1% [23:10:17]line > о реализуемом товаре [23:10:17]line ИТОГО: 180.00 [23:10:17]line НСП 1% : 1.59 [23:10:17]line НДС 12% : 19.11 [23:10:17]line Наличными: 0.00 [23:10:17]line Безнал.: 180.00 [23:10:17]line Место: АЗС № 54 "Партнер Нефть" [23:10:17]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [23:10:17]line СНО: Общий режим [23:10:17]line Чек 88 12.08.2024 23:10 [23:10:17]line Смена: 447 ФФД: 1.0 [23:10:17]line ЗНМ: 0300000007 [23:10:17]line РНМ: 0000000000090834 [23:10:17]line Версия ККМ: 001 [23:10:17]line Платежная система: О! деньги [23:10:17]line ФМ: 0000000000874715 [23:10:17]line ФД: 52770 [23:10:17]line ФПД: 209293541690891 [23:10:17]line /tax-web-control/client/api/v1/ticket?date=20240812T231022&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52770&fm=209293541690891&tin=02508201610067®Number=0000000000090834&sum=18000 [23:10:17]OFD Sender: Processing packet 52770 [packets to send 55, broken 54] [23:10:17]ProducePacketName [23:10:17]name=ofd_packets/00052770 [23:10:17]OFD Sender: To server: pG, [23:10:17]CommunicateWithHost lk.salyk.kg:30040 [23:10:17]ConnectInit lk.salyk.kg [23:10:17]line 0 [23:10:17]written 0, free lines is 4095 [23:10:18]Connected sock=11 [23:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2B 01 00 00 54 AF 23 01 EF 90 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5E 96 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 22 CE 00 00 35 04 06 00 BE 59 F3 34 CE 0B 1A 27 1D E9 08 F2 D0 E8 [23:10:18]Write to MH i2c: 01 00 00 BD 2C E9 [23:10:18]Write i2c OK [23:10:18]MH_I2C_Read... [23:10:18]Read from MH i2c: 01 [23:10:18]MH_I2C_Read... [23:10:18]Read from MH i2c: 01 07 00 [23:10:18]MH_I2C_Read... [23:10:18]Read from MH i2c: 01 07 00 BD 2C 00 00 00 00 00 D5 0C D1 [23:10:18]RasterBufferAndPrint [23:10:18]line [23:10:18]line [23:10:18]line [23:10:18]line [23:10:18]line [23:10:18]written 0, free lines is 3290 [23:10:18]MH_Cut [23:10:18]Write to MH i2c: D1 01 00 C4 2C 01 C2 [23:10:18]Write i2c OK [23:10:18]MH_I2C_Read... [23:10:18]Read from MH i2c: D1 [23:10:18]MH_I2C_Read... [23:10:18]Read from MH i2c: D1 01 00 [23:10:18]MH_I2C_Read... [23:10:18]Read from MH i2c: D1 01 00 C4 2C 00 C1 [23:10:18]Write to MH i2c: 01 00 00 C5 2C F1 [23:10:18]Write i2c OK [23:10:18]MH_I2C_Read... [23:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B2 EA 47 00 CA EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 22 CE 00 00 F4 03 04 00 F7 3D BA 66 B6 04 01 00 00 5F D0 A2 7C 7B E1 2C 02 [23:10:18]CommunicateWithHost err = 0 [23:10:18]CheckOFDResponse [23:10:18]1017 (14) - 77093643461234 [23:10:18]1041 (16) - 0000000000874715 [23:10:18]1040 (4) - 52770 [23:10:18]1012 (4) - 12.08.2024 16:53 [23:10:18]1206 (1) - 0 [23:10:18]OFD Sender: Remove packet 52770 [23:10:18]ProducePacketName [23:10:18]name=ofd_packets/00052770 [23:10:18]NVStorageDeleteData [23:10:18]OFD Sender: No OFD packet to send [23:10:19]*** Cut start [23:10:19]*** Purtial cut [23:10:19]*** Stage 1: CUTSNS_PIN = 1 [23:10:19]Read from MH i2c: 01 [23:10:19]MH_I2C_Read... [23:10:19]*** Stop cut motor [23:10:19]*** Cut end [23:10:19]Read from MH i2c: 01 07 00 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: 01 07 00 C5 2C 00 00 00 00 00 FF 0F 06 [23:10:19]process_action close_receipt done [23:10:19]requested_data is exist [23:10:19]produce_requested_data [23:10:19]requested_item fm.sn is exist - process it [23:10:19]wFMCommunicate request_size=4 [23:10:19]MH_SAM_APDU [23:10:19]CAPDU: 80 11 00 00 [23:10:19]Write to MH i2c: E2 08 00 C6 2C 80 11 00 00 00 00 00 00 6C [23:10:19]Write i2c OK [23:10:19]MH_I2C_Read... [23:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:19]Read from MH i2c: E2 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: E2 17 00 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: E2 17 00 C6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 BF [23:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [23:10:19]wFMCommunicate OK [23:10:19]requested_item fd.num is exist - process it [23:10:19]SAM_PROTO_GetFieldsCounters [23:10:19]wFMCommunicate request_size=4 [23:10:19]MH_SAM_APDU [23:10:19]CAPDU: 80 13 00 00 [23:10:19]Write to MH i2c: E2 08 00 C7 2C 80 13 00 00 00 00 00 00 6F [23:10:19]Write i2c OK [23:10:19]MH_I2C_Read... [23:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:19]Read from MH i2c: E2 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: E2 62 00 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: E2 62 00 C7 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 22 CE 00 00 0E 04 04 00 BF 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 47 [23:10: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 22 CE 00 00 0E 04 04 00 BF 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 [23:10:19]wFMCommunicate OK [23:10:19]SAM_PROTO_GetFieldsCounters done [23:10:19]requested_item shift.num is exist - process it [23:10:19]requested_item shift.opened is exist - process it [23:10:19]req_shift_opened [23:10:19]FM_GetShiftState [23:10:19]SAM_PROTO_GetShiftState [23:10:19]wFMCommunicate request_size=4 [23:10:19]MH_SAM_APDU [23:10:19]CAPDU: 80 13 01 00 [23:10:19]Write to MH i2c: E2 08 00 C8 2C 80 13 01 00 00 00 00 00 71 [23:10:19]Write i2c OK [23:10:19]MH_I2C_Read... [23:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:19]Read from MH i2c: E2 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: E2 0E 00 [23:10:19]MH_I2C_Read... [23:10:19]Read from MH i2c: E2 0E 00 C8 2C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 CF [23:10:19]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [23:10:19]wFMCommunicate OK [23:10:19]SAM_PROTO_GetShiftState done [23:10:19]FM_GetShiftState done [23:10:19]req_shift_opened done [23:10:19]requested_item shift.open_date is exist - process it [23:10:19]req_shift_open_date [23:10:19]req_shift_open_date done [23:10:19]produce_requested_data done [23:10:19]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52770,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [23:10:19]process_action_free close_receipt [23:10:19]json_value_free [23:10:19]json_value_free done [23:10:19]process_json_proto returns [23:10:19]Send response to host [23:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52770,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [23:10:19]free response buf [23:10:19]execute_script done [23:10:19]execute_script returns [23:10:19]free content buf [23:10:19]Sock 7.Close socket [23:10:19]Sock 7.Thread stoped [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:33]accept exits with 9 [23:43:33]New connection [23:43:33]New thread 3067293028 created [23:43:33]Thread 3067149668 joined [23:43:33]Waiting for new connection... [23:43:33] Sock 9.Parse request [23:43:33]Sock 9.Check first char [23:43:33]Sock 9.First char is OK [23:43:33]request: POST /json_proto HTTP/1.0 [23:43:33]Method: POST [23:43:33]URL: /json_proto [23:43:33]Method is POST - this is cgi request [23:43:33]url: /json_proto [23:43:33]query_string will be loaded in cgi processing [23:43:33]execute_cgi json_proto POST (null) [23:43:33]execute_cgi path=json_proto method=POST [23:43:33]POST find Content-Length [23:43:33]Host: 172.17.60.7:8080 [23:43:33]Content-Length: 1294 [23:43:33]Content-Type: application/json [23:43:33] [23:43:33]POST finish read [23:43:33]Found Content-Length = 1294 [23:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122904", "tax_sys" : 0, "items" : [ { "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:33]execute_script... [23:43: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)122904", "tax_sys" : 0, "items" : [ { "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 435.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:33]POST & json_proto [23:43:33]process_json_proto [23:43:33]json parsed OK: [23:43:33]protocol is kg_v1.0 [23:43:33]action value=close_receipt [23:43:33]process_action close_receipt [23:43:33]cmd_close_receipt [23:43:33]MH_GetDate [23:43:33]Write to MH i2c: F0 00 00 C9 2C E4 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: F0 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: F0 09 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: F0 09 00 C9 2C 00 2C 9E BA 66 63 9B 67 64 A0 [23:43:33]GetLastDocTimeStamp 1723504222 [23:43:33]current date 1723506220 [23:43:33]FM_GetShiftState [23:43:33]SAM_PROTO_GetShiftState [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 13 01 00 [23:43:33]Write to MH i2c: E2 08 00 CA 2C 80 13 01 00 00 00 00 00 73 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 0E 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 0E 00 CA 2C 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D1 [23:43:33]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [23:43:33]wFMCommunicate OK [23:43:33]SAM_PROTO_GetShiftState done [23:43:33]FM_GetShiftState done [23:43:33]opened in 1723422684 [23:43:33]opened+sec_in_day 1723509084 [23:43:33]quantity*price = 34000 [23:43:33]sum+1 = 34001 [23:43:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173976 Жев Orbit Winterfresh под 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 435.00 НСП 1% : 3.85 НДС 12% : 46.20 Наличными: 0.00 Безнал.: 435.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 89 12.08.2024 23:43 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52771 ФПД: 179301123480258 /tax-web-control/client/api/v1/ticket?date=20240812T234340&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52771&fm=179301123480258&tin=02508201610067®Number=0000000000090834&sum=43500 0 [23:43:34]StoreToDocumentArchive [23:43:34]shift 447 fd 52771 [23:43:34]save to /storage/0447/doc_00052771 [23:43:34]save last doc name /storage/0447/doc_00052771 to /storage/kkm_last_doc_name [23:43:34]save OK [23:43:34]Clear old archive folders... [23:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=476 [23:43:34]tlvbuf is B6FABD30 [23:43:34]SAM_PROTO_ClearQueue [23:43:34]wFMCommunicate request_size=4 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 09 00 00 [23:43:34]Write to MH i2c: E2 08 00 D7 2C 80 09 00 00 00 00 00 00 75 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:34]Read from MH i2c: E2 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 03 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 03 00 D7 2C 00 90 00 77 [23:43:34]RAPDU: 90 00 [23:43:34]wFMCommunicate OK [23:43:34]SAM_PROTO_ClearQueue done [23:43:34]KKMCreateOFDPacket [23:43:34]OFDProtocolAddRootSTLVToBuf [23:43:34]FM_MakeSignedData [23:43:34]FM_MakeSignedData [23:43:34]SAM_PROTO_SignData [23:43:34]wFMCommunicate request_size=4 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 0D 01 02 [23:43:34]Write to MH i2c: E2 08 00 D8 2C 80 0D 01 02 00 00 00 00 7D [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:34]Read from MH i2c: E2 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 03 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 03 00 D8 2C 00 90 00 78 [23:43:34]RAPDU: 90 00 [23:43:34]wFMCommunicate OK [23:43:34]wFMCommunicate request_size=255 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 [23:43:34]Write to MH i2c: E2 02 01 D9 2C 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 00 00 98 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:34]Read from MH i2c: E2 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 03 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [23:43:34]RAPDU: 90 00 [23:43:34]wFMCommunicate OK [23:43:34]wFMCommunicate request_size=235 [23:43:34]MH_SAM_APDU [23:43:34]CAPDU: 80 0D 02 02 E6 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 23 CE 00 00 35 04 06 00 A3 12 CB C5 DA C2 [23:43:35]Write to MH i2c: E2 EE 00 DA 2C 80 0D 02 02 E6 00 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 23 CE 00 00 35 04 06 00 A3 12 CB C5 DA C2 00 00 D2 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:35]Read from MH i2c: E2 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 03 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 03 00 DA 2C 00 90 00 7A [23:43:35]RAPDU: 90 00 [23:43:35]wFMCommunicate OK [23:43:35]wFMCommunicate request_size=4 [23:43:35]MH_SAM_APDU [23:43:35]CAPDU: 80 0D 03 02 [23:43:35]Write to MH i2c: E2 08 00 DB 2C 80 0D 03 02 00 00 00 00 82 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:35]Read from MH i2c: E2 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 0B 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 0B 00 DB 2C 00 CC 65 82 26 D2 E2 6F 55 90 00 D4 [23:43:35]RAPDU: CC 65 82 26 D2 E2 6F 55 90 00 [23:43:35]wFMCommunicate OK [23:43:35]SAM_PROTO_SignData done [23:43:35]FM_MakeSignedData done [23:43:35]CreateOFDProtocolMessage [23:43:35]wFMCommunicate request_size=4 [23:43:35]MH_SAM_APDU [23:43:35]CAPDU: 80 11 00 00 [23:43:35]Write to MH i2c: E2 08 00 DC 2C 80 11 00 00 00 00 00 00 82 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:35]Read from MH i2c: E2 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 17 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: E2 17 00 DC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D5 [23:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [23:43:35]wFMCommunicate OK [23:43:35]CreateOFDProtocolMessage done [23:43:35]OFDSenderStorePacket 52771 [23:43:35]StoreOFDPacket docnum=52771 [23:43:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 F0 01 00 00 DD 76 E8 01 34 13 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 23 CE 00 00 35 04 06 00 A3 12 CB C5 DA C2 CC 65 82 26 D2 E2 6F 55 [23:43:35]CheckFolder [23:43:35]dirname=/storage/ofd_packets [23:43:35]CheckFolder done [23:43:35]ProducePacketName [23:43:35]name=ofd_packets/00052771 [23:43:35]NVStorageSaveData ofd_packets/00052771 [23:43:35]File name is /storage/ofd_packets/00052771 [23:43:35]Write 526 bytes [23:43:35]NVStorageSaveData done [23:43:35]OFDSenderStorePacket done [23:43:35]KKMCreateOFDPacket done [23:43:35]NVStorageSaveData kkm_last_timestamp [23:43:35]File name is /storage/kkm_last_timestamp [23:43:35]Write 4 bytes [23:43:35]NVStorageSaveData done [23:43:35]ExternCall_PrintAddStr [23:43:35]wPrintStart [23:43:35]Write to MH i2c: 01 00 00 DD 2C 09 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: 01 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: 01 07 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: 01 07 00 DD 2C 00 00 00 00 00 FF 0F 1E [23:43:35]RasterBufferAndPrint [23:43:35]line Счет N : (3)122904 [23:43:35]line ИНН: 02508201610067 [23:43:35]line Контрольно-Кассовый Чек [23:43:35]line ПРОДАЖА [23:43:35]line Товар: 4607084351385 [23:43:35]line Бисквит Чоко пай 12шт [23:43:35]line 1.000 * 340.00 [23:43:35]line = 340.00 [23:43:35]line НДС 12% НСП 1% [23:43:35]line > о реализуемом товаре [23:43:35]line Товар: 4700000160358 [23:43:35]line Вода Легенда 1л [23:43:35]line 1.000 * 50.00 [23:43:35]line = 50.00 [23:43:35]line НДС 12% НСП 1% [23:43:35]line > о реализуемом товаре [23:43:35]line Товар: 50173976 [23:43:35]line Жев Orbit Winterfresh под [23:43:35]line 1.000 * 45.00 [23:43:35]line = 45.00 [23:43:35]line НДС 12% НСП 1% [23:43:35]line > о реализуемом товаре [23:43:35]line ИТОГО: 435.00 [23:43:35]line НСП 1% : 3.85 [23:43:35]line НДС 12% : 46.20 [23:43:35]line Наличными: 0.00 [23:43:35]line Безнал.: 435.00 [23:43:35]line Место: АЗС № 54 "Партнер Нефть" [23:43:35]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [23:43:35]line СНО: Общий режим [23:43:35]line Чек 89 12.08.2024 23:43 [23:43:35]line Смена: 447 ФФД: 1.0 [23:43:35]line ЗНМ: 0300000007 [23:43:35]line РНМ: 0000000000090834 [23:43:35]line Версия ККМ: 001 [23:43:35]line Платежная система: О! деньги [23:43:35]line ФМ: 0000000000874715 [23:43:35]line ФД: 52771 [23:43:35]line ФПД: 179301123480258 [23:43:35]line /tax-web-control/client/api/v1/ticket?date=20240812T234340&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52771&fm=179301123480258&tin=02508201610067®Number=0000000000090834&sum=43500 [23:43:35]line 0 [23:43:35]written 0, free lines is 4095 [23:43:35]OFD Sender: Processing packet 52771 [packets to send 55, broken 54] [23:43:35]ProducePacketName [23:43:35]name=ofd_packets/00052771 [23:43:35]OFD Sender: To server: pG, [23:43:35]CommunicateWithHost lk.salyk.kg:30040 [23:43:35]ConnectInit lk.salyk.kg [23:43:35]Connected sock=10 [23:43:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 F0 01 00 00 DD 76 E8 01 34 13 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 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 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 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC A9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 2C 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 23 CE 00 00 35 04 06 00 A3 12 CB C5 DA C2 CC 65 82 26 D2 E2 6F 55 [23:43:35]Write to MH i2c: 01 00 00 12 2D 3F [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: 01 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: 01 07 00 [23:43:35]MH_I2C_Read... [23:43:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 8A FA 47 00 CB E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 23 CE 00 00 F4 03 04 00 C4 45 BA 66 B6 04 01 00 00 75 39 CE EF 7B F0 83 A0 [23:43:35]CommunicateWithHost err = 0 [23:43:35]CheckOFDResponse [23:43:35]1017 (14) - 77093643461234 [23:43:35]1041 (16) - 0000000000874715 [23:43:35]1040 (4) - 52771 [23:43:35]1012 (4) - 12.08.2024 17:26 [23:43:35]1206 (1) - 0 [23:43:35]OFD Sender: Remove packet 52771 [23:43:35]ProducePacketName [23:43:35]name=ofd_packets/00052771 [23:43:35]NVStorageDeleteData [23:43:35]Read from MH i2c: 01 07 00 12 2D 00 00 00 00 00 06 0C 58 [23:43:35]RasterBufferAndPrint [23:43:35]line [23:43:35]line [23:43:35]line [23:43:35]line [23:43:35]line [23:43:35]written 0, free lines is 3103 [23:43:35]MH_Cut [23:43:35]Write to MH i2c: D1 01 00 19 2D 01 18 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: D1 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: D1 01 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: D1 01 00 19 2D 00 17 [23:43:35]Write to MH i2c: 01 00 00 1A 2D 47 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:36]OFD Sender: No OFD packet to send [23:43:36]*** Cut start [23:43:36]*** Purtial cut [23:43:36]*** Stage 1: CUTSNS_PIN = 1 [23:43:37]Read from MH i2c: 01 [23:43:37]MH_I2C_Read... [23:43:37]*** Stop cut motor [23:43:37]*** Cut end [23:43:37]Read from MH i2c: 01 07 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 FF 0F 5C [23:43:37]process_action close_receipt done [23:43:37]requested_data is exist [23:43:37]produce_requested_data [23:43:37]requested_item fm.sn is exist - process it [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 11 00 00 [23:43:37]Write to MH i2c: E2 08 00 1B 2D 80 11 00 00 00 00 00 00 C2 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 17 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 17 00 1B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 15 [23:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [23:43:37]wFMCommunicate OK [23:43:37]requested_item fd.num is exist - process it [23:43:37]SAM_PROTO_GetFieldsCounters [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 13 00 00 [23:43:37]Write to MH i2c: E2 08 00 1C 2D 80 13 00 00 00 00 00 00 C5 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 62 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 62 00 1C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 23 CE 00 00 0E 04 04 00 BF 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 A1 [23:43: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 23 CE 00 00 0E 04 04 00 BF 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 [23:43:37]wFMCommunicate OK [23:43:37]SAM_PROTO_GetFieldsCounters done [23:43:37]requested_item shift.num is exist - process it [23:43:37]requested_item shift.opened is exist - process it [23:43:37]req_shift_opened [23:43:37]FM_GetShiftState [23:43:37]SAM_PROTO_GetShiftState [23:43:37]wFMCommunicate request_size=4 [23:43:37]MH_SAM_APDU [23:43:37]CAPDU: 80 13 01 00 [23:43:37]Write to MH i2c: E2 08 00 1D 2D 80 13 01 00 00 00 00 00 C7 [23:43:37]Write i2c OK [23:43:37]MH_I2C_Read... [23:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:37]Read from MH i2c: E2 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 0E 00 [23:43:37]MH_I2C_Read... [23:43:37]Read from MH i2c: E2 0E 00 1D 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 25 [23:43:37]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [23:43:37]wFMCommunicate OK [23:43:37]SAM_PROTO_GetShiftState done [23:43:37]FM_GetShiftState done [23:43:37]req_shift_opened done [23:43:37]requested_item shift.open_date is exist - process it [23:43:37]req_shift_open_date [23:43:37]req_shift_open_date done [23:43:37]produce_requested_data done [23:43:37]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52771,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [23:43:37]process_action_free close_receipt [23:43:37]json_value_free [23:43:37]json_value_free done [23:43:37]process_json_proto returns [23:43:37]Send response to host [23:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52771,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [23:43:37]free response buf [23:43:37]execute_script done [23:43:37]execute_script returns [23:43:37]free content buf [23:43:37]Sock 9.Close socket [23:43:37]Sock 9.Thread stoped [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:39]accept exits with 7 [23:44:39]New connection [23:44:39]New thread 3067149668 created [23:44:39]Thread 3067293028 joined [23:44:39]Waiting for new connection... [23:44:39] Sock 7.Parse request [23:44:39]Sock 7.Check first char [23:44:39]Sock 7.First char is OK [23:44:39]request: POST /json_proto HTTP/1.0 [23:44:39]Method: POST [23:44:39]URL: /json_proto [23:44:39]Method is POST - this is cgi request [23:44:39]url: /json_proto [23:44:39]query_string will be loaded in cgi processing [23:44:39]execute_cgi json_proto POST (null) [23:44:39]execute_cgi path=json_proto method=POST [23:44:39]POST find Content-Length [23:44:39]Host: 172.17.60.7:8080 [23:44:39]Content-Length: 1080 [23:44:39]Content-Type: application/json [23:44:39] [23:44:39]POST finish read [23:44:39]Found Content-Length = 1080 [23:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122905", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 4.000, "sum" : 500.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" : 3.000, "sum" : 390.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 890.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:39]execute_script... [23:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122905", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 4.000, "sum" : 500.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" : 3.000, "sum" : 390.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 890.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:39]POST & json_proto [23:44:39]process_json_proto [23:44:39]json parsed OK: [23:44:39]protocol is kg_v1.0 [23:44:39]action value=close_receipt [23:44:39]process_action close_receipt [23:44:39]cmd_close_receipt [23:44:39]MH_GetDate [23:44:39]Write to MH i2c: F0 00 00 1E 2D 3A [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: F0 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: F0 09 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: F0 09 00 1E 2D 00 6F 9E BA 66 63 9B 67 64 39 [23:44:39]GetLastDocTimeStamp 1723506220 [23:44:39]current date 1723506287 [23:44:39]FM_GetShiftState [23:44:39]SAM_PROTO_GetShiftState [23:44:39]wFMCommunicate request_size=4 [23:44:39]MH_SAM_APDU [23:44:39]CAPDU: 80 13 01 00 [23:44:39]Write to MH i2c: E2 08 00 1F 2D 80 13 01 00 00 00 00 00 C9 [23:44:39]Write i2c OK [23:44:39]MH_I2C_Read... [23:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:39]Read from MH i2c: E2 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 0E 00 [23:44:39]MH_I2C_Read... [23:44:39]Read from MH i2c: E2 0E 00 1F 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 27 [23:44:39]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [23:44:39]wFMCommunicate OK [23:44:39]SAM_PROTO_GetShiftState done [23:44:39]FM_GetShiftState done [23:44:39]opened in 1723422684 [23:44:39]opened+sec_in_day 1723509084 [23:44:39]quantity*price = 50000 [23:44:39]sum+1 = 50001 [23:44:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 3.000 * 130.00 = 390.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 890.00 НСП 1% : 7.87 НДС 12% : 94.52 Наличными: 0.00 Безнал.: 890.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 90 12.08.2024 23:44 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52772 ФПД: 269019839617384 /tax-web-control/client/api/v1/ticket?date=20240812T234447&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52772&fm=269019839617384&tin=02508201610067®Number=0000000000090834&sum=89000 0 [23:44:41]StoreToDocumentArchive [23:44:41]shift 447 fd 52772 [23:44:41]save to /storage/0447/doc_00052772 [23:44:41]save last doc name /storage/0447/doc_00052772 to /storage/kkm_last_doc_name [23:44:41]save OK [23:44:41]Clear old archive folders... [23:44:41]ProcessDocumentItem done err = 0, tmpTLVsize=396 [23:44:41]tlvbuf is 0129CFF0 [23:44:41]SAM_PROTO_ClearQueue [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 09 00 00 [23:44:41]Write to MH i2c: E2 08 00 2C 2D 80 09 00 00 00 00 00 00 CB [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [23:44:41]RAPDU: 90 00 [23:44:41]wFMCommunicate OK [23:44:41]SAM_PROTO_ClearQueue done [23:44:41]KKMCreateOFDPacket [23:44:41]OFDProtocolAddRootSTLVToBuf [23:44:41]FM_MakeSignedData [23:44:41]FM_MakeSignedData [23:44:41]SAM_PROTO_SignData [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 0D 01 02 [23:44:41]Write to MH i2c: E2 08 00 2D 2D 80 0D 01 02 00 00 00 00 D3 [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 2D 2D 00 90 00 CE [23:44:41]RAPDU: 90 00 [23:44:41]wFMCommunicate OK [23:44:41]wFMCommunicate request_size=255 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 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 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 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF [23:44:41]Write to MH i2c: E2 02 01 2E 2D 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 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 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 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 00 00 8C [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 2E 2D 00 90 00 CF [23:44:41]RAPDU: 90 00 [23:44:41]wFMCommunicate OK [23:44:41]wFMCommunicate request_size=155 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 24 CE 00 00 35 04 06 00 F4 AC 0F FA 59 68 [23:44:41]Write to MH i2c: E2 9E 00 2F 2D 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 24 CE 00 00 35 04 06 00 F4 AC 0F FA 59 68 00 00 08 [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]OFD Sender: No OFD packet to send [23:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 03 00 2F 2D 00 90 00 D0 [23:44:41]RAPDU: 90 00 [23:44:41]wFMCommunicate OK [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 0D 03 02 [23:44:41]Write to MH i2c: E2 08 00 30 2D 80 0D 03 02 00 00 00 00 D8 [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 0B 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 0B 00 30 2D 00 57 04 A6 60 49 45 76 BA 90 00 F8 [23:44:41]RAPDU: 57 04 A6 60 49 45 76 BA 90 00 [23:44:41]wFMCommunicate OK [23:44:41]SAM_PROTO_SignData done [23:44:41]FM_MakeSignedData done [23:44:41]CreateOFDProtocolMessage [23:44:41]wFMCommunicate request_size=4 [23:44:41]MH_SAM_APDU [23:44:41]CAPDU: 80 11 00 00 [23:44:41]Write to MH i2c: E2 08 00 31 2D 80 11 00 00 00 00 00 00 D8 [23:44:41]Write i2c OK [23:44:41]MH_I2C_Read... [23:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:41]Read from MH i2c: E2 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 17 00 [23:44:41]MH_I2C_Read... [23:44:41]Read from MH i2c: E2 17 00 31 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 2B [23:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [23:44:41]wFMCommunicate OK [23:44:41]CreateOFDProtocolMessage done [23:44:41]OFDSenderStorePacket 52772 [23:44:41]StoreOFDPacket docnum=52772 [23:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A0 01 00 00 00 7A 98 01 83 82 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 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 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 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 24 CE 00 00 35 04 06 00 F4 AC 0F FA 59 68 57 04 A6 60 49 45 76 BA [23:44:41]CheckFolder [23:44:41]dirname=/storage/ofd_packets [23:44:41]CheckFolder done [23:44:41]ProducePacketName [23:44:41]name=ofd_packets/00052772 [23:44:41]NVStorageSaveData ofd_packets/00052772 [23:44:41]File name is /storage/ofd_packets/00052772 [23:44:41]Write 446 bytes [23:44:41]NVStorageSaveData done [23:44:41]OFDSenderStorePacket done [23:44:41]KKMCreateOFDPacket done [23:44:41]NVStorageSaveData kkm_last_timestamp [23:44:42]File name is /storage/kkm_last_timestamp [23:44:42]Write 4 bytes [23:44:42]NVStorageSaveData done [23:44:42]ExternCall_PrintAddStr [23:44:42]wPrintStart [23:44:42]Write to MH i2c: 01 00 00 32 2D 5F [23:44:42]OFD Sender: Processing packet 52772 [packets to send 55, broken 54] [23:44:42]ProducePacketName [23:44:42]name=ofd_packets/00052772 [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 [23:44:42]MH_I2C_Read... [23:44:42]OFD Sender: To server: pG, [23:44:42]CommunicateWithHost lk.salyk.kg:30040 [23:44:42]ConnectInit lk.salyk.kg [23:44:42]Read from MH i2c: 01 07 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 07 00 32 2D 00 00 00 00 00 FF 0F 74 [23:44:42]RasterBufferAndPrint [23:44:42]line Счет N : (3)122905 [23:44:42]line ИНН: 02508201610067 [23:44:42]line Контрольно-Кассовый Чек [23:44:42]line ПРОДАЖА [23:44:42]line Товар: 2000036190018 [23:44:42]line Кофе Американо XL(GABB TRADE) [23:44:42]line 4.000 * 125.00 [23:44:42]line = 500.00 [23:44:42]line НДС 12% НСП 1% [23:44:42]line > о реализуемом товаре [23:44:42]line Товар: 2000036220012 [23:44:42]line Кофе Капучино XL(GABB TRADE) [23:44:42]line 3.000 * 130.00 [23:44:42]line = 390.00 [23:44:42]line НДС 12% НСП 1% [23:44:42]line > о реализуемом товаре [23:44:42]line ИТОГО: 890.00 [23:44:42]line НСП 1% : 7.87 [23:44:42]line НДС 12% : 94.52 [23:44:42]line Наличными: 0.00 [23:44:42]line Безнал.: 890.00 [23:44:42]line Место: АЗС № 54 "Партнер Нефть" [23:44:42]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [23:44:42]line СНО: Общий режим [23:44:42]line Чек 90 12.08.2024 23:44 [23:44:42]line Смена: 447 ФФД: 1.0 [23:44:42]line ЗНМ: 0300000007 [23:44:42]line РНМ: 0000000000090834 [23:44:42]line Версия ККМ: 001 [23:44:42]line Платежная система: О! деньги [23:44:42]line ФМ: 0000000000874715 [23:44:42]line ФД: 52772 [23:44:42]line ФПД: 269019839617384 [23:44:42]line /tax-web-control/client/api/v1/ticket?date=20240812T234447&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52772&fm=269019839617384&tin=02508201610067®Number=0000000000090834&sum=89000 [23:44:42]line 0 [23:44:42]written 0, free lines is 4095 [23:44:42]Connected sock=10 [23:44:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 A0 01 00 00 00 7A 98 01 83 82 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 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 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 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 5B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6F 9E BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 24 CE 00 00 35 04 06 00 F4 AC 0F FA 59 68 57 04 A6 60 49 45 76 BA [23:44:42]Write to MH i2c: 01 00 00 63 2D 90 [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 F0 3B 47 00 98 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 24 CE 00 00 F4 03 04 00 07 46 BA 66 B6 04 01 00 00 29 07 23 B8 C7 87 7C B7 [23:44:42]CommunicateWithHost err = 0 [23:44:42]CheckOFDResponse [23:44:42]1017 (14) - 77093643461234 [23:44:42]1041 (16) - 0000000000874715 [23:44:42]1040 (4) - 52772 [23:44:42]1012 (4) - 12.08.2024 17:27 [23:44:42]1206 (1) - 0 [23:44:42]OFD Sender: Remove packet 52772 [23:44:42]ProducePacketName [23:44:42]name=ofd_packets/00052772 [23:44:42]NVStorageDeleteData [23:44:42]Read from MH i2c: 01 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 07 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: 01 07 00 63 2D 00 00 00 00 00 5B 0C FE [23:44:42]RasterBufferAndPrint [23:44:42]line [23:44:42]line [23:44:42]line [23:44:42]line [23:44:42]line [23:44:42]written 0, free lines is 3195 [23:44:42]MH_Cut [23:44:42]Write to MH i2c: D1 01 00 6A 2D 01 69 [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: D1 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: D1 01 00 [23:44:42]MH_I2C_Read... [23:44:42]Read from MH i2c: D1 01 00 6A 2D 00 68 [23:44:42]Write to MH i2c: 01 00 00 6B 2D 98 [23:44:42]Write i2c OK [23:44:42]MH_I2C_Read... [23:44:43]OFD Sender: No OFD packet to send [23:44:43]*** Cut start [23:44:43]*** Purtial cut [23:44:43]*** Stage 1: CUTSNS_PIN = 1 [23:44:43]Read from MH i2c: 01 [23:44:43]MH_I2C_Read... [23:44:43]*** Stop cut motor [23:44:43]*** Cut end [23:44:43]Read from MH i2c: 01 07 00 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: 01 07 00 6B 2D 00 00 00 00 00 FF 0F AD [23:44:43]process_action close_receipt done [23:44:43]requested_data is exist [23:44:43]produce_requested_data [23:44:43]requested_item fm.sn is exist - process it [23:44:43]wFMCommunicate request_size=4 [23:44:43]MH_SAM_APDU [23:44:43]CAPDU: 80 11 00 00 [23:44:43]Write to MH i2c: E2 08 00 6C 2D 80 11 00 00 00 00 00 00 13 [23:44:43]Write i2c OK [23:44:43]MH_I2C_Read... [23:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:43]Read from MH i2c: E2 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: E2 17 00 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: E2 17 00 6C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 66 [23:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [23:44:43]wFMCommunicate OK [23:44:43]requested_item fd.num is exist - process it [23:44:43]SAM_PROTO_GetFieldsCounters [23:44:43]wFMCommunicate request_size=4 [23:44:43]MH_SAM_APDU [23:44:43]CAPDU: 80 13 00 00 [23:44:43]Write to MH i2c: E2 08 00 6D 2D 80 13 00 00 00 00 00 00 16 [23:44:43]Write i2c OK [23:44:43]MH_I2C_Read... [23:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:44]Read from MH i2c: E2 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 62 00 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 62 00 6D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 24 CE 00 00 0E 04 04 00 BF 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 F6 [23:44: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 24 CE 00 00 0E 04 04 00 BF 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 [23:44:44]wFMCommunicate OK [23:44:44]SAM_PROTO_GetFieldsCounters done [23:44:44]requested_item shift.num is exist - process it [23:44:44]requested_item shift.opened is exist - process it [23:44:44]req_shift_opened [23:44:44]FM_GetShiftState [23:44:44]SAM_PROTO_GetShiftState [23:44:44]wFMCommunicate request_size=4 [23:44:44]MH_SAM_APDU [23:44:44]CAPDU: 80 13 01 00 [23:44:44]Write to MH i2c: E2 08 00 6E 2D 80 13 01 00 00 00 00 00 18 [23:44:44]Write i2c OK [23:44:44]MH_I2C_Read... [23:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:44]Read from MH i2c: E2 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 0E 00 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 0E 00 6E 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 76 [23:44:44]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [23:44:44]wFMCommunicate OK [23:44:44]SAM_PROTO_GetShiftState done [23:44:44]FM_GetShiftState done [23:44:44]req_shift_opened done [23:44:44]requested_item shift.open_date is exist - process it [23:44:44]req_shift_open_date [23:44:44]req_shift_open_date done [23:44:44]produce_requested_data done [23:44:44]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52772,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [23:44:44]process_action_free close_receipt [23:44:44]json_value_free [23:44:44]json_value_free done [23:44:44]process_json_proto returns [23:44:44]Send response to host [23:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52772,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [23:44:44]free response buf [23:44:44]execute_script done [23:44:44]execute_script returns [23:44:44]free content buf [23:44:44]Sock 7.Close socket [23:44:44]Sock 7.Thread stoped [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:16]accept exits with 9 [00:07:16]New connection [00:07:16]New thread 3067293028 created [00:07:16]Thread 3067149668 joined [00:07:16]Waiting for new connection... [00:07:16] Sock 9.Parse request [00:07:16]Sock 9.Check first char [00:07:16]Sock 9.First char is OK [00:07:16]request: POST /json_proto HTTP/1.0 [00:07:16]Method: POST [00:07:16]URL: /json_proto [00:07:16]Method is POST - this is cgi request [00:07:16]url: /json_proto [00:07:16]query_string will be loaded in cgi processing [00:07:16]execute_cgi json_proto POST (null) [00:07:16]execute_cgi path=json_proto method=POST [00:07:16]POST find Content-Length [00:07:16]Host: 172.17.60.7:8080 [00:07:16]Content-Length: 706 [00:07:16]Content-Type: application/json [00:07:16] [00:07:16]POST finish read [00:07:16]Found Content-Length = 706 [00:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122906", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:16]execute_script... [00:07: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)122906", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:16]POST & json_proto [00:07:16]process_json_proto [00:07:16]json parsed OK: [00:07:16]protocol is kg_v1.0 [00:07:16]action value=close_receipt [00:07:16]process_action close_receipt [00:07:16]cmd_close_receipt [00:07:16]MH_GetDate [00:07:16]Write to MH i2c: F0 00 00 6F 2D 8B [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: F0 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: F0 09 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: F0 09 00 6F 2D 00 BB A3 BA 66 63 9B 67 64 DB [00:07:16]GetLastDocTimeStamp 1723506287 [00:07:16]current date 1723507643 [00:07:16]FM_GetShiftState [00:07:16]SAM_PROTO_GetShiftState [00:07:16]wFMCommunicate request_size=4 [00:07:16]MH_SAM_APDU [00:07:16]CAPDU: 80 13 01 00 [00:07:16]Write to MH i2c: E2 08 00 70 2D 80 13 01 00 00 00 00 00 1A [00:07:16]Write i2c OK [00:07:16]MH_I2C_Read... [00:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:16]Read from MH i2c: E2 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 0E 00 [00:07:16]MH_I2C_Read... [00:07:16]Read from MH i2c: E2 0E 00 70 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 78 [00:07:16]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:07:16]wFMCommunicate OK [00:07:16]SAM_PROTO_GetShiftState done [00:07:16]FM_GetShiftState done [00:07:16]opened in 1723422684 [00:07:16]opened+sec_in_day 1723509084 [00:07:16]quantity*price = 15500 [00:07:16]sum+1 = 15501 [00:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 91 13.08.2024 00:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52773 ФПД: 23069273988772 /tax-web-control/client/api/v1/ticket?date=20240813T000724&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52773&fm=23069273988772&tin=02508201610067®Number=0000000000090834&sum=15500 0 [00:07:17]StoreToDocumentArchive [00:07:17]shift 447 fd 52773 [00:07:17]save to /storage/0447/doc_00052773 [00:07:17]save last doc name /storage/0447/doc_00052773 to /storage/kkm_last_doc_name [00:07:17]save OK [00:07:17]Clear old archive folders... [00:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=302 [00:07:17]tlvbuf is B6DFBA90 [00:07:17]SAM_PROTO_ClearQueue [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 09 00 00 [00:07:17]Write to MH i2c: E2 08 00 7D 2D 80 09 00 00 00 00 00 00 1C [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 03 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 03 00 7D 2D 00 90 00 1E [00:07:17]RAPDU: 90 00 [00:07:17]wFMCommunicate OK [00:07:17]SAM_PROTO_ClearQueue done [00:07:17]KKMCreateOFDPacket [00:07:17]OFDProtocolAddRootSTLVToBuf [00:07:17]FM_MakeSignedData [00:07:17]FM_MakeSignedData [00:07:17]SAM_PROTO_SignData [00:07:17]wFMCommunicate request_size=4 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 0D 01 02 [00:07:17]Write to MH i2c: E2 08 00 7E 2D 80 0D 01 02 00 00 00 00 24 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:17]Read from MH i2c: E2 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 03 00 [00:07:17]MH_I2C_Read... [00:07:17]Read from MH i2c: E2 03 00 7E 2D 00 90 00 1F [00:07:17]RAPDU: 90 00 [00:07:17]wFMCommunicate OK [00:07:17]wFMCommunicate request_size=255 [00:07:17]MH_SAM_APDU [00:07:17]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BC A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 [00:07:17]Write to MH i2c: E2 02 01 7F 2D 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BC A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 00 00 05 [00:07:17]Write i2c OK [00:07:17]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 7F 2D 00 90 00 20 [00:07:18]RAPDU: 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=61 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 25 CE 00 00 35 04 06 00 14 FB 3B E1 9E A4 [00:07:18]Write to MH i2c: E2 40 00 80 2D 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 25 CE 00 00 35 04 06 00 14 FB 3B E1 9E A4 00 00 BB [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 03 00 80 2D 00 90 00 21 [00:07:18]RAPDU: 90 00 [00:07:18]wFMCommunicate OK [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 0D 03 02 [00:07:18]Write to MH i2c: E2 08 00 81 2D 80 0D 03 02 00 00 00 00 29 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 0B 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 0B 00 81 2D 00 70 16 9E 6B 14 51 A3 15 90 00 D6 [00:07:18]RAPDU: 70 16 9E 6B 14 51 A3 15 90 00 [00:07:18]wFMCommunicate OK [00:07:18]SAM_PROTO_SignData done [00:07:18]FM_MakeSignedData done [00:07:18]CreateOFDProtocolMessage [00:07:18]wFMCommunicate request_size=4 [00:07:18]MH_SAM_APDU [00:07:18]CAPDU: 80 11 00 00 [00:07:18]Write to MH i2c: E2 08 00 82 2D 80 11 00 00 00 00 00 00 29 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:18]Read from MH i2c: E2 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 17 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: E2 17 00 82 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 7C [00:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:07:18]wFMCommunicate OK [00:07:18]CreateOFDProtocolMessage done [00:07:18]OFDSenderStorePacket 52773 [00:07:18]StoreOFDPacket docnum=52773 [00:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 2D 40 3A 01 D7 EC 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BC A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 25 CE 00 00 35 04 06 00 14 FB 3B E1 9E A4 70 16 9E 6B 14 51 A3 15 [00:07:18]CheckFolder [00:07:18]dirname=/storage/ofd_packets [00:07:18]CheckFolder done [00:07:18]ProducePacketName [00:07:18]name=ofd_packets/00052773 [00:07:18]NVStorageSaveData ofd_packets/00052773 [00:07:18]File name is /storage/ofd_packets/00052773 [00:07:18]Write 352 bytes [00:07:18]NVStorageSaveData done [00:07:18]OFDSenderStorePacket done [00:07:18]KKMCreateOFDPacket done [00:07:18]NVStorageSaveData kkm_last_timestamp [00:07:18]File name is /storage/kkm_last_timestamp [00:07:18]Write 4 bytes [00:07:18]NVStorageSaveData done [00:07:18]ExternCall_PrintAddStr [00:07:18]wPrintStart [00:07:18]Write to MH i2c: 01 00 00 83 2D B0 [00:07:18]Write i2c OK [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 07 00 [00:07:18]MH_I2C_Read... [00:07:18]Read from MH i2c: 01 07 00 83 2D 00 00 00 00 00 FF 0F C5 [00:07:18]RasterBufferAndPrint [00:07:18]line Счет N : (3)122906 [00:07:18]line ИНН: 02508201610067 [00:07:18]line Контрольно-Кассовый Чек [00:07:18]line ПРОДАЖА [00:07:18]line Товар: 5449000273673 [00:07:18]line Сок Piko Pulpy красный виноград ПЭТ 1л [00:07:18]line 1.000 * 155.00 [00:07:18]line = 155.00 [00:07:18]line НДС 12% НСП 1% [00:07:18]line > о реализуемом товаре [00:07:18]line ИТОГО: 155.00 [00:07:18]line НСП 1% : 1.37 [00:07:18]line НДС 12% : 16.46 [00:07:18]line Наличными: 155.00 [00:07:18]line Безнал.: 0.00 [00:07:18]line Место: АЗС № 54 "Партнер Нефть" [00:07:18]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [00:07:18]line СНО: Общий режим [00:07:18]line Чек 91 13.08.2024 00:07 [00:07:18]line Смена: 447 ФФД: 1.0 [00:07:18]line ЗНМ: 0300000007 [00:07:18]line РНМ: 0000000000090834 [00:07:18]line Версия ККМ: 001 [00:07:18]line ФМ: 0000000000874715 [00:07:18]line ФД: 52773 [00:07:18]line ФПД: 23069273988772 [00:07:18]line /tax-web-control/client/api/v1/ticket?date=20240813T000724&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52773&fm=23069273988772&tin=02508201610067®Number=0000000000090834&sum=15500 [00:07:18]line 0 [00:07:18]OFD Sender: Processing packet 52773 [packets to send 55, broken 54] [00:07:18]ProducePacketName [00:07:18]name=ofd_packets/00052773 [00:07:18]OFD Sender: To server: pG, [00:07:18]CommunicateWithHost lk.salyk.kg:30040 [00:07:18]ConnectInit lk.salyk.kg [00:07:18]written 0, free lines is 4095 [00:07:19]Connected sock=10 [00:07:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 2D 40 3A 01 D7 EC 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 BC A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 25 CE 00 00 35 04 06 00 14 FB 3B E1 9E A4 70 16 9E 6B 14 51 A3 15 [00:07:19]Write to MH i2c: 01 00 00 AB 2D D8 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: 01 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: 01 07 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: 01 07 00 AB 2D 00 00 00 00 00 E3 0C CE [00:07:19]RasterBufferAndPrint [00:07:19]line [00:07:19]line [00:07:19]line [00:07:19]line [00:07:19]line [00:07:19]written 0, free lines is 3303 [00:07:19]MH_Cut [00:07:19]Write to MH i2c: D1 01 00 B2 2D 01 B1 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: D1 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: D1 01 00 [00:07:19]MH_I2C_Read... [00:07:19]Read from MH i2c: D1 01 00 B2 2D 00 B0 [00:07:19]Write to MH i2c: 01 00 00 B3 2D E0 [00:07:19]Write i2c OK [00:07:19]MH_I2C_Read... [00:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 BF BE 47 00 C3 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 25 CE 00 00 F4 03 04 00 54 4B BA 66 B6 04 01 00 00 0F 95 B3 6C 63 BE 15 00 [00:07:19]CommunicateWithHost err = 0 [00:07:19]CheckOFDResponse [00:07:19]1017 (14) - 77093643461234 [00:07:19]1041 (16) - 0000000000874715 [00:07:19]1040 (4) - 52773 [00:07:19]1012 (4) - 12.08.2024 17:50 [00:07:19]1206 (1) - 0 [00:07:19]OFD Sender: Remove packet 52773 [00:07:19]ProducePacketName [00:07:19]name=ofd_packets/00052773 [00:07:19]NVStorageDeleteData [00:07:19]OFD Sender: No OFD packet to send [00:07:20]*** Cut start [00:07:20]*** Purtial cut [00:07:20]*** Stage 1: CUTSNS_PIN = 1 [00:07:20]Read from MH i2c: 01 [00:07:20]MH_I2C_Read... [00:07:20]*** Stop cut motor [00:07:20]*** Cut end [00:07:20]Read from MH i2c: 01 07 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: 01 07 00 B3 2D 00 00 00 00 00 FF 0F F5 [00:07:20]process_action close_receipt done [00:07:20]requested_data is exist [00:07:20]produce_requested_data [00:07:20]requested_item fm.sn is exist - process it [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 11 00 00 [00:07:20]Write to MH i2c: E2 08 00 B4 2D 80 11 00 00 00 00 00 00 5B [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 17 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 17 00 B4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 AE [00:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:07:20]wFMCommunicate OK [00:07:20]requested_item fd.num is exist - process it [00:07:20]SAM_PROTO_GetFieldsCounters [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 13 00 00 [00:07:20]Write to MH i2c: E2 08 00 B5 2D 80 13 00 00 00 00 00 00 5E [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 62 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 62 00 B5 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 25 CE 00 00 0E 04 04 00 BF 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 42 [00:07: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 25 CE 00 00 0E 04 04 00 BF 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 [00:07:20]wFMCommunicate OK [00:07:20]SAM_PROTO_GetFieldsCounters done [00:07:20]requested_item shift.num is exist - process it [00:07:20]requested_item shift.opened is exist - process it [00:07:20]req_shift_opened [00:07:20]FM_GetShiftState [00:07:20]SAM_PROTO_GetShiftState [00:07:20]wFMCommunicate request_size=4 [00:07:20]MH_SAM_APDU [00:07:20]CAPDU: 80 13 01 00 [00:07:20]Write to MH i2c: E2 08 00 B6 2D 80 13 01 00 00 00 00 00 60 [00:07:20]Write i2c OK [00:07:20]MH_I2C_Read... [00:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:20]Read from MH i2c: E2 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 0E 00 [00:07:20]MH_I2C_Read... [00:07:20]Read from MH i2c: E2 0E 00 B6 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 BE [00:07:20]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:07:20]wFMCommunicate OK [00:07:20]SAM_PROTO_GetShiftState done [00:07:20]FM_GetShiftState done [00:07:20]req_shift_opened done [00:07:20]requested_item shift.open_date is exist - process it [00:07:20]req_shift_open_date [00:07:20]req_shift_open_date done [00:07:20]produce_requested_data done [00:07:20]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52773,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:07:20]process_action_free close_receipt [00:07:20]json_value_free [00:07:20]json_value_free done [00:07:20]process_json_proto returns [00:07:20]Send response to host [00:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52773,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:07:20]free response buf [00:07:20]execute_script done [00:07:20]execute_script returns [00:07:20]free content buf [00:07:20]Sock 9.Close socket [00:07:20]Sock 9.Thread stoped [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:52]accept exits with 7 [00:07:52]New connection [00:07:52]New thread 3067149668 created [00:07:52]Thread 3067293028 joined [00:07:52]Waiting for new connection... [00:07:52] Sock 7.Parse request [00:07:52]Sock 7.Check first char [00:07:52]Sock 7.First char is OK [00:07:52]request: POST /json_proto HTTP/1.0 [00:07:52]Method: POST [00:07:52]URL: /json_proto [00:07:52]Method is POST - this is cgi request [00:07:52]url: /json_proto [00:07:52]query_string will be loaded in cgi processing [00:07:52]execute_cgi json_proto POST (null) [00:07:52]execute_cgi path=json_proto method=POST [00:07:52]POST find Content-Length [00:07:52]Host: 172.17.60.7:8080 [00:07:52]Content-Length: 668 [00:07:52]Content-Type: application/json [00:07:52] [00:07:52]POST finish read [00:07:52]Found Content-Length = 668 [00:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122907", "tax_sys" : 0, "items" : [ { "code": "4700040110900", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0423\u043C\u0443\u0442 \u0421\u043C\u0430\u043A 80\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:52]execute_script... [00:07:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122907", "tax_sys" : 0, "items" : [ { "code": "4700040110900", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0423\u043C\u0443\u0442 \u0421\u043C\u0430\u043A 80\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:52]POST & json_proto [00:07:52]process_json_proto [00:07:52]json parsed OK: [00:07:52]protocol is kg_v1.0 [00:07:52]action value=close_receipt [00:07:52]process_action close_receipt [00:07:52]cmd_close_receipt [00:07:52]MH_GetDate [00:07:52]Write to MH i2c: F0 00 00 B7 2D D3 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: F0 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: F0 09 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: F0 09 00 B7 2D 00 DF A3 BA 66 63 9B 67 64 47 [00:07:52]GetLastDocTimeStamp 1723507644 [00:07:52]current date 1723507679 [00:07:52]FM_GetShiftState [00:07:52]SAM_PROTO_GetShiftState [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 13 01 00 [00:07:52]Write to MH i2c: E2 08 00 B8 2D 80 13 01 00 00 00 00 00 62 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 0E 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 0E 00 B8 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 C0 [00:07:52]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:07:52]wFMCommunicate OK [00:07:52]SAM_PROTO_GetShiftState done [00:07:52]FM_GetShiftState done [00:07:52]opened in 1723422684 [00:07:52]opened+sec_in_day 1723509084 [00:07:52]quantity*price = 4000 [00:07:52]sum+1 = 4001 [00:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 92 13.08.2024 00:07 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52774 ФПД: 59928404098948 /tax-web-control/client/api/v1/ticket?date=20240813T000759&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52774&fm=59928404098948&tin=02508201610067®Number=0000000000090834&sum=4000 0 [00:07:53]StoreToDocumentArchive [00:07:53]shift 447 fd 52774 [00:07:53]save to /storage/0447/doc_00052774 [00:07:53]save last doc name /storage/0447/doc_00052774 to /storage/kkm_last_doc_name [00:07:53]save OK [00:07:53]Clear old archive folders... [00:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=283 [00:07:53]tlvbuf is 0129C8E0 [00:07:53]SAM_PROTO_ClearQueue [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 09 00 00 [00:07:53]Write to MH i2c: E2 08 00 C5 2D 80 09 00 00 00 00 00 00 64 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C5 2D 00 90 00 66 [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_ClearQueue done [00:07:53]KKMCreateOFDPacket [00:07:53]OFDProtocolAddRootSTLVToBuf [00:07:53]FM_MakeSignedData [00:07:53]FM_MakeSignedData [00:07:53]SAM_PROTO_SignData [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 0D 01 02 [00:07:53]Write to MH i2c: E2 08 00 C6 2D 80 0D 01 02 00 00 00 00 6C [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 03 00 C6 2D 00 90 00 67 [00:07:53]RAPDU: 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=255 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 DF A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 [00:07:53]Write to MH i2c: E2 02 01 C7 2D 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 DF A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 00 00 15 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 03 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 03 00 C7 2D 00 90 00 68 [00:07:54]RAPDU: 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=42 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 26 CE 00 00 35 04 06 00 36 81 2B 3C FF 84 [00:07:54]Write to MH i2c: E2 2D 00 C8 2D 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 26 CE 00 00 35 04 06 00 36 81 2B 3C FF 84 00 00 D9 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 03 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 03 00 C8 2D 00 90 00 69 [00:07:54]RAPDU: 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 0D 03 02 [00:07:54]Write to MH i2c: E2 08 00 C9 2D 80 0D 03 02 00 00 00 00 71 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0B 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 0B 00 C9 2D 00 C9 5A B3 7D 5E DD 73 91 90 00 04 [00:07:54]RAPDU: C9 5A B3 7D 5E DD 73 91 90 00 [00:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_SignData done [00:07:54]FM_MakeSignedData done [00:07:54]CreateOFDProtocolMessage [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 11 00 00 [00:07:54]Write to MH i2c: E2 08 00 CA 2D 80 11 00 00 00 00 00 00 71 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 17 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 17 00 CA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C4 [00:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:07:54]wFMCommunicate OK [00:07:54]CreateOFDProtocolMessage done [00:07:54]OFDSenderStorePacket 52774 [00:07:54]StoreOFDPacket docnum=52774 [00:07:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2F 01 00 00 5A F5 27 01 47 34 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 DF A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 26 CE 00 00 35 04 06 00 36 81 2B 3C FF 84 C9 5A B3 7D 5E DD 73 91 [00:07:54]CheckFolder [00:07:54]dirname=/storage/ofd_packets [00:07:54]CheckFolder done [00:07:54]ProducePacketName [00:07:54]name=ofd_packets/00052774 [00:07:54]NVStorageSaveData ofd_packets/00052774 [00:07:54]File name is /storage/ofd_packets/00052774 [00:07:54]Write 333 bytes [00:07:54]NVStorageSaveData done [00:07:54]OFDSenderStorePacket done [00:07:54]KKMCreateOFDPacket done [00:07:54]NVStorageSaveData kkm_last_timestamp [00:07:54]File name is /storage/kkm_last_timestamp [00:07:54]Write 4 bytes [00:07:54]NVStorageSaveData done [00:07:54]ExternCall_PrintAddStr [00:07:54]wPrintStart [00:07:54]Write to MH i2c: 01 00 00 CB 2D F8 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: 01 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: 01 07 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: 01 07 00 CB 2D 00 00 00 00 00 FF 0F 0D [00:07:54]RasterBufferAndPrint [00:07:54]line Счет N : (3)122907 [00:07:54]line ИНН: 02508201610067 [00:07:54]line Контрольно-Кассовый Чек [00:07:54]line ПРОДАЖА [00:07:54]line Товар: 4700040110900 [00:07:54]line Мороженое Умут Смак 80г [00:07:54]line 1.000 * 40.00 [00:07:54]line = 40.00 [00:07:54]line НДС 12% НСП 1% [00:07:54]line > о реализуемом товаре [00:07:54]line ИТОГО: 40.00 [00:07:54]line НСП 1% : 0.35 [00:07:54]line НДС 12% : 4.25 [00:07:54]line Наличными: 40.00 [00:07:54]line Безнал.: 0.00 [00:07:54]line Место: АЗС № 54 "Партнер Нефть" [00:07:54]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [00:07:54]line СНО: Общий режим [00:07:54]line Чек 92 13.08.2024 00:07 [00:07:54]line Смена: 447 ФФД: 1.0 [00:07:54]line ЗНМ: 0300000007 [00:07:54]line РНМ: 0000000000090834 [00:07:54]line Версия ККМ: 001 [00:07:54]line ФМ: 0000000000874715 [00:07:54]line ФД: 52774 [00:07:54]line ФПД: 59928404098948 [00:07:54]line /tax-web-control/client/api/v1/ticket?date=20240813T000759&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52774&fm=59928404098948&tin=02508201610067®Number=0000000000090834&sum=4000 [00:07:54]OFD Sender: Processing packet 52774 [packets to send 55, broken 54] [00:07:54]ProducePacketName [00:07:54]name=ofd_packets/00052774 [00:07:54]OFD Sender: To server: pG, [00:07:54]CommunicateWithHost lk.salyk.kg:30040 [00:07:54]ConnectInit lk.salyk.kg [00:07:54]line 0 [00:07:54]written 0, free lines is 4095 [00:07:54]Connected sock=10 [00:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 2F 01 00 00 5A F5 27 01 47 34 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 30 39 30 30 06 04 29 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A3 D0 BC D1 83 D1 82 20 D0 A1 D0 BC D0 B0 D0 BA 20 38 30 D0 B3 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 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 DF A3 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 26 CE 00 00 35 04 06 00 36 81 2B 3C FF 84 C9 5A B3 7D 5E DD 73 91 [00:07:55]Write to MH i2c: 01 00 00 F2 2D 1F [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: 01 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: 01 07 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: 01 07 00 F2 2D 00 00 00 00 00 EA 0C 1C [00:07:55]RasterBufferAndPrint [00:07:55]line [00:07:55]line [00:07:55]line [00:07:55]line [00:07:55]line [00:07:55]written 0, free lines is 3313 [00:07:55]MH_Cut [00:07:55]Write to MH i2c: D1 01 00 F9 2D 01 F8 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: D1 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: D1 01 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: D1 01 00 F9 2D 00 F7 [00:07:55]Write to MH i2c: 01 00 00 FA 2D 27 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B0 7D 47 00 D7 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 26 CE 00 00 F4 03 04 00 78 4B BA 66 B6 04 01 00 00 D3 25 FA 4C 36 57 A3 AD [00:07:55]CommunicateWithHost err = 0 [00:07:55]CheckOFDResponse [00:07:55]1017 (14) - 77093643461234 [00:07:55]1041 (16) - 0000000000874715 [00:07:55]1040 (4) - 52774 [00:07:55]1012 (4) - 12.08.2024 17:50 [00:07:55]1206 (1) - 0 [00:07:55]OFD Sender: Remove packet 52774 [00:07:55]ProducePacketName [00:07:55]name=ofd_packets/00052774 [00:07:55]NVStorageDeleteData [00:07:55]OFD Sender: No OFD packet to send [00:07:55]*** Cut start [00:07:55]*** Purtial cut [00:07:55]*** Stage 1: CUTSNS_PIN = 1 [00:07:56]Read from MH i2c: 01 [00:07:56]MH_I2C_Read... [00:07:56]*** Stop cut motor [00:07:56]*** Cut end [00:07:56]Read from MH i2c: 01 07 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: 01 07 00 FA 2D 00 00 00 00 00 FF 0F 3C [00:07:56]process_action close_receipt done [00:07:56]requested_data is exist [00:07:56]produce_requested_data [00:07:56]requested_item fm.sn is exist - process it [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 11 00 00 [00:07:56]Write to MH i2c: E2 08 00 FB 2D 80 11 00 00 00 00 00 00 A2 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 17 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 17 00 FB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 F5 [00:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:07:56]wFMCommunicate OK [00:07:56]requested_item fd.num is exist - process it [00:07:56]SAM_PROTO_GetFieldsCounters [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 13 00 00 [00:07:56]Write to MH i2c: E2 08 00 FC 2D 80 13 00 00 00 00 00 00 A5 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 62 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 62 00 FC 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 26 CE 00 00 0E 04 04 00 BF 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 8D [00:07: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 26 CE 00 00 0E 04 04 00 BF 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:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_GetFieldsCounters done [00:07:56]requested_item shift.num is exist - process it [00:07:56]requested_item shift.opened is exist - process it [00:07:56]req_shift_opened [00:07:56]FM_GetShiftState [00:07:56]SAM_PROTO_GetShiftState [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 13 01 00 [00:07:56]Write to MH i2c: E2 08 00 FD 2D 80 13 01 00 00 00 00 00 A7 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 0E 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 0E 00 FD 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 05 [00:07:56]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_GetShiftState done [00:07:56]FM_GetShiftState done [00:07:56]req_shift_opened done [00:07:56]requested_item shift.open_date is exist - process it [00:07:56]req_shift_open_date [00:07:56]req_shift_open_date done [00:07:56]produce_requested_data done [00:07:56]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52774,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:07:56]process_action_free close_receipt [00:07:56]json_value_free [00:07:56]json_value_free done [00:07:56]process_json_proto returns [00:07:56]Send response to host [00:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52774,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:07:56]free response buf [00:07:56]execute_script done [00:07:56]execute_script returns [00:07:56]free content buf [00:07:56]Sock 7.Close socket [00:07:56]Sock 7.Thread stoped [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:33]accept exits with 9 [00:10:33]New connection [00:10:33]New thread 3067293028 created [00:10:33]Thread 3067149668 joined [00:10:33]Waiting for new connection... [00:10:33] Sock 9.Parse request [00:10:33]Sock 9.Check first char [00:10:33]Sock 9.First char is OK [00:10:33]request: POST /json_proto HTTP/1.0 [00:10:33]Method: POST [00:10:33]URL: /json_proto [00:10:33]Method is POST - this is cgi request [00:10:33]url: /json_proto [00:10:33]query_string will be loaded in cgi processing [00:10:33]execute_cgi json_proto POST (null) [00:10:33]execute_cgi path=json_proto method=POST [00:10:33]POST find Content-Length [00:10:33]Host: 172.17.60.7:8080 [00:10:33]Content-Length: 877 [00:10:33]Content-Type: application/json [00:10:33] [00:10:33]POST finish read [00:10:33]Found Content-Length = 877 [00:10:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122908", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:33]execute_script... [00:10: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)122908", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:33]POST & json_proto [00:10:33]process_json_proto [00:10:33]json parsed OK: [00:10:33]protocol is kg_v1.0 [00:10:33]action value=close_receipt [00:10:33]process_action close_receipt [00:10:33]cmd_close_receipt [00:10:33]MH_GetDate [00:10:33]Write to MH i2c: F0 00 00 FE 2D 1A [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: F0 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: F0 09 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: F0 09 00 FE 2D 00 80 A4 BA 66 63 9B 67 64 30 [00:10:33]GetLastDocTimeStamp 1723507679 [00:10:33]current date 1723507840 [00:10:33]FM_GetShiftState [00:10:33]SAM_PROTO_GetShiftState [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 13 01 00 [00:10:33]Write to MH i2c: E2 08 00 FF 2D 80 13 01 00 00 00 00 00 A9 [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 0E 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 0E 00 FF 2D 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 07 [00:10:33]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:10:33]wFMCommunicate OK [00:10:33]SAM_PROTO_GetShiftState done [00:10:33]FM_GetShiftState done [00:10:33]opened in 1723422684 [00:10:33]opened+sec_in_day 1723509084 [00:10:33]quantity*price = 8500 [00:10:33]sum+1 = 8501 [00:10:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 93 13.08.2024 00:10 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874715 ФД: 52775 ФПД: 2885075853669 /tax-web-control/client/api/v1/ticket?date=20240813T001040&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52775&fm=2885075853669&tin=02508201610067®Number=0000000000090834&sum=8500 0 [00:10:34]StoreToDocumentArchive [00:10:34]shift 447 fd 52775 [00:10:34]save to /storage/0447/doc_00052775 [00:10:34]save last doc name /storage/0447/doc_00052775 to /storage/kkm_last_doc_name [00:10:34]save OK [00:10:34]Clear old archive folders... [00:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=302 [00:10:34]tlvbuf is 0129CF70 [00:10:34]SAM_PROTO_ClearQueue [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 09 00 00 [00:10:34]Write to MH i2c: E2 08 00 0C 2E 80 09 00 00 00 00 00 00 AC [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]SAM_PROTO_ClearQueue done [00:10:34]KKMCreateOFDPacket [00:10:34]OFDProtocolAddRootSTLVToBuf [00:10:34]FM_MakeSignedData [00:10:34]FM_MakeSignedData [00:10:34]SAM_PROTO_SignData [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 0D 01 02 [00:10:34]Write to MH i2c: E2 08 00 0D 2E 80 0D 01 02 00 00 00 00 B4 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 03 00 0D 2E 00 90 00 AF [00:10:34]RAPDU: 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=255 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 80 A4 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 [00:10:34]Write to MH i2c: E2 02 01 0E 2E 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 80 A4 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 00 00 53 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 0E 2E 00 90 00 B0 [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=61 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 27 CE 00 00 35 04 06 00 02 9F BB EB E1 65 [00:10:35]Write to MH i2c: E2 40 00 0F 2E 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 27 CE 00 00 35 04 06 00 02 9F BB EB E1 65 00 00 6D [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 0F 2E 00 90 00 B1 [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 0D 03 02 [00:10:35]Write to MH i2c: E2 08 00 10 2E 80 0D 03 02 00 00 00 00 B9 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 0B 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 0B 00 10 2E 00 36 94 A4 B4 A1 20 6E F1 90 00 FC [00:10:35]RAPDU: 36 94 A4 B4 A1 20 6E F1 90 00 [00:10:35]wFMCommunicate OK [00:10:35]SAM_PROTO_SignData done [00:10:35]FM_MakeSignedData done [00:10:35]CreateOFDProtocolMessage [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 11 00 00 [00:10:35]Write to MH i2c: E2 08 00 11 2E 80 11 00 00 00 00 00 00 B9 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 17 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 17 00 11 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 0C [00:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:10:35]wFMCommunicate OK [00:10:35]CreateOFDProtocolMessage done [00:10:35]OFDSenderStorePacket 52775 [00:10:35]StoreOFDPacket docnum=52775 [00:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 5E 50 3A 01 C5 19 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 80 A4 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 27 CE 00 00 35 04 06 00 02 9F BB EB E1 65 36 94 A4 B4 A1 20 6E F1 [00:10:35]CheckFolder [00:10:35]dirname=/storage/ofd_packets [00:10:35]CheckFolder done [00:10:35]ProducePacketName [00:10:35]name=ofd_packets/00052775 [00:10:35]NVStorageSaveData ofd_packets/00052775 [00:10:35]File name is /storage/ofd_packets/00052775 [00:10:35]Write 352 bytes [00:10:35]NVStorageSaveData done [00:10:35]OFDSenderStorePacket done [00:10:35]KKMCreateOFDPacket done [00:10:35]NVStorageSaveData kkm_last_timestamp [00:10:35]File name is /storage/kkm_last_timestamp [00:10:35]Write 4 bytes [00:10:35]NVStorageSaveData done [00:10:35]ExternCall_PrintAddStr [00:10:35]wPrintStart [00:10:35]Write to MH i2c: 01 00 00 12 2E 40 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: 01 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: 01 07 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: 01 07 00 12 2E 00 00 00 00 00 FF 0F 55 [00:10:35]RasterBufferAndPrint [00:10:35]line Счет N : (3)122908 [00:10:35]line ИНН: 02508201610067 [00:10:35]line Контрольно-Кассовый Чек [00:10:35]line ПРОДАЖА [00:10:35]line Товар: 4870001571030 [00:10:35]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [00:10:35]line 1.000 * 85.00 [00:10:35]line = 85.00 [00:10:35]line НДС 12% НСП 1% [00:10:35]line > о реализуемом товаре [00:10:35]line ИТОГО: 85.00 [00:10:35]line НСП 1% : 0.75 [00:10:35]line НДС 12% : 9.03 [00:10:35]line Наличными: 0.00 [00:10:35]line Безнал.: 85.00 [00:10:35]line Место: АЗС № 54 "Партнер Нефть" [00:10:35]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [00:10:35]line СНО: Общий режим [00:10:35]line Чек 93 13.08.2024 00:10 [00:10:35]line Смена: 447 ФФД: 1.0 [00:10:35]line ЗНМ: 0300000007 [00:10:35]line РНМ: 0000000000090834 [00:10:35]line Версия ККМ: 001 [00:10:35]line Платежная система: О! деньги [00:10:35]line ФМ: 0000000000874715 [00:10:35]line ФД: 52775 [00:10:35]line ФПД: 2885075853669 [00:10:35]line /tax-web-control/client/api/v1/ticket?date=20240813T001040&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52775&fm=2885075853669&tin=02508201610067®Number=0000000000090834&sum=8500 [00:10:35]line 0 [00:10:35]OFD Sender: Processing packet 52775 [packets to send 55, broken 54] [00:10:35]ProducePacketName [00:10:35]name=ofd_packets/00052775 [00:10:35]OFD Sender: To server: pG, [00:10:35]CommunicateWithHost lk.salyk.kg:30040 [00:10:35]ConnectInit lk.salyk.kg [00:10:35]written 0, free lines is 4095 [00:10:35]Connected sock=11 [00:10:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 42 01 00 00 5E 50 3A 01 C5 19 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 80 A4 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 27 CE 00 00 35 04 06 00 02 9F BB EB E1 65 36 94 A4 B4 A1 20 6E F1 [00:10:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 AC 19 47 00 60 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 34 37 31 35 10 04 04 00 27 CE 00 00 F4 03 04 00 19 4C BA 66 B6 04 01 00 00 30 79 1D D3 7F 48 F4 9D [00:10:36]CommunicateWithHost err = 0 [00:10:36]CheckOFDResponse [00:10:36]1017 (14) - 77093643461234 [00:10:36]1041 (16) - 0000000000874715 [00:10:36]1040 (4) - 52775 [00:10:36]1012 (4) - 12.08.2024 17:53 [00:10:36]1206 (1) - 0 [00:10:36]OFD Sender: Remove packet 52775 [00:10:36]ProducePacketName [00:10:36]name=ofd_packets/00052775 [00:10:36]NVStorageDeleteData [00:10:36]Write to MH i2c: 01 00 00 3C 2E 6A [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: 01 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: 01 07 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: 01 07 00 3C 2E 00 00 00 00 00 C6 0C 43 [00:10:36]RasterBufferAndPrint [00:10:36]line [00:10:36]line [00:10:36]line [00:10:36]line [00:10:36]line [00:10:36]written 0, free lines is 3275 [00:10:36]MH_Cut [00:10:36]Write to MH i2c: D1 01 00 43 2E 01 43 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: D1 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: D1 01 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: D1 01 00 43 2E 00 42 [00:10:36]Write to MH i2c: 01 00 00 44 2E 72 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]OFD Sender: No OFD packet to send [00:10:37]*** Cut start [00:10:37]*** Purtial cut [00:10:37]*** Stage 1: CUTSNS_PIN = 1 [00:10:37]Read from MH i2c: 01 [00:10:37]MH_I2C_Read... [00:10:37]*** Stop cut motor [00:10:37]*** Cut end [00:10:37]Read from MH i2c: 01 07 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: 01 07 00 44 2E 00 00 00 00 00 FF 0F 87 [00:10:37]process_action close_receipt done [00:10:37]requested_data is exist [00:10:37]produce_requested_data [00:10:37]requested_item fm.sn is exist - process it [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 11 00 00 [00:10:37]Write to MH i2c: E2 08 00 45 2E 80 11 00 00 00 00 00 00 ED [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 17 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 17 00 45 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 40 [00:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:10:37]wFMCommunicate OK [00:10:37]requested_item fd.num is exist - process it [00:10:37]SAM_PROTO_GetFieldsCounters [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 13 00 00 [00:10:37]Write to MH i2c: E2 08 00 46 2E 80 13 00 00 00 00 00 00 F0 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 62 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 62 00 46 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 27 CE 00 00 0E 04 04 00 BF 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 DC [00:10: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 27 CE 00 00 0E 04 04 00 BF 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 [00:10:37]wFMCommunicate OK [00:10:37]SAM_PROTO_GetFieldsCounters done [00:10:37]requested_item shift.num is exist - process it [00:10:37]requested_item shift.opened is exist - process it [00:10:37]req_shift_opened [00:10:37]FM_GetShiftState [00:10:37]SAM_PROTO_GetShiftState [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 13 01 00 [00:10:37]Write to MH i2c: E2 08 00 47 2E 80 13 01 00 00 00 00 00 F2 [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 0E 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 0E 00 47 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 50 [00:10:37]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:10:37]wFMCommunicate OK [00:10:37]SAM_PROTO_GetShiftState done [00:10:37]FM_GetShiftState done [00:10:37]req_shift_opened done [00:10:37]requested_item shift.open_date is exist - process it [00:10:37]req_shift_open_date [00:10:37]req_shift_open_date done [00:10:37]produce_requested_data done [00:10:37]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52775,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:10:37]process_action_free close_receipt [00:10:37]json_value_free [00:10:37]json_value_free done [00:10:37]process_json_proto returns [00:10:37]Send response to host [00:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52775,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:10:37]free response buf [00:10:37]execute_script done [00:10:37]execute_script returns [00:10:37]free content buf [00:10:37]Sock 9.Close socket [00:10:37]Sock 9.Thread stoped [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:46]accept exits with 7 [00:19:46]New connection [00:19:46]New thread 3067149668 created [00:19:46]Thread 3067293028 joined [00:19:46]Waiting for new connection... [00:19:46] Sock 7.Parse request [00:19:46]Sock 7.Check first char [00:19:46]Sock 7.First char is OK [00:19:46]request: POST /json_proto HTTP/1.0 [00:19:46]Method: POST [00:19:46]URL: /json_proto [00:19:46]Method is POST - this is cgi request [00:19:46]url: /json_proto [00:19:46]query_string will be loaded in cgi processing [00:19:46]execute_cgi json_proto POST (null) [00:19:46]execute_cgi path=json_proto method=POST [00:19:46]POST find Content-Length [00:19:46]Host: 172.17.60.7:8080 [00:19:46]Content-Length: 900 [00:19:46]Content-Type: application/json [00:19:46] [00:19:46]POST finish read [00:19:46]Found Content-Length = 900 [00:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122909", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 14.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:46]execute_script... [00:19: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)122909", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 14.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:46]POST & json_proto [00:19:46]process_json_proto [00:19:46]json parsed OK: [00:19:46]protocol is kg_v1.0 [00:19:46]action value=close_receipt [00:19:46]process_action close_receipt [00:19:46]cmd_close_receipt [00:19:46]MH_GetDate [00:19:46]Write to MH i2c: F0 00 00 48 2E 65 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: F0 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: F0 09 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: F0 09 00 48 2E 00 AA A6 BA 66 63 9B 67 64 A7 [00:19:46]GetLastDocTimeStamp 1723507840 [00:19:46]current date 1723508394 [00:19:46]FM_GetShiftState [00:19:46]SAM_PROTO_GetShiftState [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 01 00 [00:19:46]Write to MH i2c: E2 08 00 49 2E 80 13 01 00 00 00 00 00 F4 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 49 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 52 [00:19:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetShiftState done [00:19:46]FM_GetShiftState done [00:19:46]opened in 1723422684 [00:19:46]opened+sec_in_day 1723509084 [00:19:46]quantity*price = 400 [00:19:46]sum+1 = 401 [00:19:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 14.00 НСП 1% : 0.12 НДС 12% : 1.48 Наличными: 14.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 94 13.08.2024 00:19 Смена: 447 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52776 ФПД: 277705315943227 /tax-web-control/client/api/v1/ticket?date=20240813T001954&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52776&fm=277705315943227&tin=02508201610067®Number=0000000000090834&sum=1400 0 [00:19:47]StoreToDocumentArchive [00:19:47]shift 447 fd 52776 [00:19:47]save to /storage/0447/doc_00052776 [00:19:47]save last doc name /storage/0447/doc_00052776 to /storage/kkm_last_doc_name [00:19:47]save OK [00:19:47]Clear old archive folders... [00:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=381 [00:19:47]tlvbuf is B6DFB840 [00:19:47]SAM_PROTO_ClearQueue [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 09 00 00 [00:19:47]Write to MH i2c: E2 08 00 56 2E 80 09 00 00 00 00 00 00 F6 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 56 2E 00 90 00 F8 [00:19:47]RAPDU: 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_ClearQueue done [00:19:47]KKMCreateOFDPacket [00:19:47]OFDProtocolAddRootSTLVToBuf [00:19:47]FM_MakeSignedData [00:19:47]FM_MakeSignedData [00:19:47]SAM_PROTO_SignData [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 0D 01 02 [00:19:47]Write to MH i2c: E2 08 00 57 2E 80 0D 01 02 00 00 00 00 FE [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 57 2E 00 90 00 F9 [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=255 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 [00:19:48]Write to MH i2c: E2 02 01 58 2E 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 71 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 58 2E 00 90 00 FA [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=140 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AA A6 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 28 CE 00 00 35 04 06 00 FC 92 4E B5 83 3B [00:19:48]Write to MH i2c: E2 8F 00 59 2E 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AA A6 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 28 CE 00 00 35 04 06 00 FC 92 4E B5 83 3B 00 00 1F [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 03 02 [00:19:48]Write to MH i2c: E2 08 00 5A 2E 80 0D 03 02 00 00 00 00 03 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 0B 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 0B 00 5A 2E 00 75 14 12 68 D0 51 D6 42 90 00 40 [00:19:48]RAPDU: 75 14 12 68 D0 51 D6 42 90 00 [00:19:48]wFMCommunicate OK [00:19:48]SAM_PROTO_SignData done [00:19:48]FM_MakeSignedData done [00:19:48]CreateOFDProtocolMessage [00:19:48]wFMCommunicate request_size=4 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 11 00 00 [00:19:48]Write to MH i2c: E2 08 00 5B 2E 80 11 00 00 00 00 00 00 03 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 17 00 5B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 56 [00:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:19:48]wFMCommunicate OK [00:19:48]CreateOFDProtocolMessage done [00:19:48]OFDSenderStorePacket 52776 [00:19:48]StoreOFDPacket docnum=52776 [00:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 91 01 00 00 B6 2C 89 01 CD C8 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AA A6 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 28 CE 00 00 35 04 06 00 FC 92 4E B5 83 3B 75 14 12 68 D0 51 D6 42 [00:19:48]CheckFolder [00:19:48]dirname=/storage/ofd_packets [00:19:48]CheckFolder done [00:19:48]ProducePacketName [00:19:48]name=ofd_packets/00052776 [00:19:48]NVStorageSaveData ofd_packets/00052776 [00:19:48]File name is /storage/ofd_packets/00052776 [00:19:48]Write 431 bytes [00:19:48]NVStorageSaveData done [00:19:48]OFDSenderStorePacket done [00:19:48]KKMCreateOFDPacket done [00:19:48]NVStorageSaveData kkm_last_timestamp [00:19:48]File name is /storage/kkm_last_timestamp [00:19:48]Write 4 bytes [00:19:48]NVStorageSaveData done [00:19:48]ExternCall_PrintAddStr [00:19:48]wPrintStart [00:19:48]Write to MH i2c: 01 00 00 5C 2E 8A [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 07 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: 01 07 00 5C 2E 00 00 00 00 00 FF 0F 9F [00:19:48]RasterBufferAndPrint [00:19:48]line Счет N : (3)122909 [00:19:48]line ИНН: 02508201610067 [00:19:48]line Контрольно-Кассовый Чек [00:19:48]line ПРОДАЖА [00:19:48]line Товар: 2000031750019 [00:19:48]line Пакет Партнер Нефть [00:19:48]line 1.000 * 4.00 [00:19:48]line = 4.00 [00:19:48]line НДС 12% НСП 1% [00:19:48]line > о реализуемом товаре [00:19:48]line Товар: 46226624 [00:19:48]line Mentos ПВ Клубника 6*100*2 [00:19:48]line 1.000 * 10.00 [00:19:48]line = 10.00 [00:19:48]line НДС 12% НСП 1% [00:19:48]line > о реализуемом товаре [00:19:48]line ИТОГО: 14.00 [00:19:48]line НСП 1% : 0.12 [00:19:48]line НДС 12% : 1.48 [00:19:48]line Наличными: 14.00 [00:19:48]line Безнал.: 0.00 [00:19:48]line Место: АЗС № 54 "Партнер Нефть" [00:19:48]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [00:19:48]line СНО: Общий режим [00:19:48]line Чек 94 13.08.2024 00:19 [00:19:48]line Смена: 447 ФФД: 1.0 [00:19:48]line ЗНМ: 0300000007 [00:19:48]line РНМ: 0000000000090834 [00:19:48]line Версия ККМ: 001 [00:19:48]line ФМ: 0000000000874715 [00:19:48]line ФД: 52776 [00:19:48]line ФПД: 277705315943227 [00:19:48]line /tax-web-control/client/api/v1/ticket?date=20240813T001954&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52776&fm=277705315943227&tin=02508201610067®Number=0000000000090834&sum=1400 [00:19:48]line 0 [00:19:48]OFD Sender: Processing packet 52776 [packets to send 55, broken 54] [00:19:48]ProducePacketName [00:19:48]name=ofd_packets/00052776 [00:19:48]OFD Sender: To server: pG, [00:19:48]CommunicateWithHost lk.salyk.kg:30040 [00:19:48]ConnectInit lk.salyk.kg [00:19:48]written 0, free lines is 4095 [00:19:49]Connected sock=10 [00:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 91 01 00 00 B6 2C 89 01 CD C8 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 00 00 00 00 00 07 04 06 00 78 05 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 AA A6 BA 66 0E 04 04 00 BF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 28 CE 00 00 35 04 06 00 FC 92 4E B5 83 3B 75 14 12 68 D0 51 D6 42 [00:19:49]Write to MH i2c: 01 00 00 89 2E B7 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 07 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: 01 07 00 89 2E 00 00 00 00 00 8E 0C 58 [00:19:49]RasterBufferAndPrint [00:19:49]line [00:19:49]line [00:19:49]line [00:19:49]line [00:19:49]line [00:19:49]written 0, free lines is 3221 [00:19:49]MH_Cut [00:19:49]Write to MH i2c: D1 01 00 90 2E 01 90 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: D1 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: D1 01 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: D1 01 00 90 2E 00 8F [00:19:49]Write to MH i2c: 01 00 00 91 2E BF [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 87 CD 47 00 EE 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 28 CE 00 00 F4 03 04 00 42 4E BA 66 B6 04 01 00 00 27 D6 46 A8 43 2A 0D ED [00:19:49]CommunicateWithHost err = 0 [00:19:49]CheckOFDResponse [00:19:49]1017 (14) - 77093643461234 [00:19:49]1041 (16) - 0000000000874715 [00:19:49]1040 (4) - 52776 [00:19:49]1012 (4) - 12.08.2024 18:02 [00:19:49]1206 (1) - 0 [00:19:49]OFD Sender: Remove packet 52776 [00:19:49]ProducePacketName [00:19:49]name=ofd_packets/00052776 [00:19:49]NVStorageDeleteData [00:19:49]OFD Sender: No OFD packet to send [00:19:50]*** Cut start [00:19:50]*** Purtial cut [00:19:50]*** Stage 1: CUTSNS_PIN = 1 [00:19:50]Read from MH i2c: 01 [00:19:50]MH_I2C_Read... [00:19:50]*** Stop cut motor [00:19:50]*** Cut end [00:19:50]Read from MH i2c: 01 07 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: 01 07 00 91 2E 00 00 00 00 00 FF 0F D4 [00:19:50]process_action close_receipt done [00:19:50]requested_data is exist [00:19:50]produce_requested_data [00:19:50]requested_item fm.sn is exist - process it [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 11 00 00 [00:19:50]Write to MH i2c: E2 08 00 92 2E 80 11 00 00 00 00 00 00 3A [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 17 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 17 00 92 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 8D [00:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:19:50]wFMCommunicate OK [00:19:50]requested_item fd.num is exist - process it [00:19:50]SAM_PROTO_GetFieldsCounters [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 13 00 00 [00:19:50]Write to MH i2c: E2 08 00 93 2E 80 13 00 00 00 00 00 00 3D [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 62 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 62 00 93 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 2D [00:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:19:50]wFMCommunicate OK [00:19:50]SAM_PROTO_GetFieldsCounters done [00:19:50]requested_item shift.num is exist - process it [00:19:50]requested_item shift.opened is exist - process it [00:19:50]req_shift_opened [00:19:50]FM_GetShiftState [00:19:50]SAM_PROTO_GetShiftState [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 13 01 00 [00:19:50]Write to MH i2c: E2 08 00 94 2E 80 13 01 00 00 00 00 00 3F [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 0E 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 0E 00 94 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 9D [00:19:50]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:19:50]wFMCommunicate OK [00:19:50]SAM_PROTO_GetShiftState done [00:19:50]FM_GetShiftState done [00:19:50]req_shift_opened done [00:19:50]requested_item shift.open_date is exist - process it [00:19:50]req_shift_open_date [00:19:50]req_shift_open_date done [00:19:50]produce_requested_data done [00:19:50]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:19:50]process_action_free close_receipt [00:19:50]json_value_free [00:19:50]json_value_free done [00:19:50]process_json_proto returns [00:19:50]Send response to host [00:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:19:50]free response buf [00:19:50]execute_script done [00:19:50]execute_script returns [00:19:50]free content buf [00:19:50]Sock 7.Close socket [00:19:50]Sock 7.Thread stoped [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:02]accept exits with 9 [00:20:02]New connection [00:20:02]New thread 3067293028 created [00:20:02]Thread 3067149668 joined [00:20:02]Waiting for new connection... [00:20:02] Sock 9.Parse request [00:20:02]Sock 9.Check first char [00:20:02]Sock 9.First char is OK [00:20:02]request: POST /json_proto HTTP/1.0 [00:20:02]Method: POST [00:20:02]URL: /json_proto [00:20:02]Method is POST - this is cgi request [00:20:02]url: /json_proto [00:20:02]query_string will be loaded in cgi processing [00:20:02]execute_cgi json_proto POST (null) [00:20:02]execute_cgi path=json_proto method=POST [00:20:02]POST find Content-Length [00:20:02]Host: 172.17.60.7:8080 [00:20:02]Content-Length: 215 [00:20:02]Content-Type: application/json [00:20:02] [00:20:02]POST finish read [00:20:02]Found Content-Length = 215 [00:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:02]execute_script... [00:20:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:02]POST & json_proto [00:20:02]process_json_proto [00:20:02]json parsed OK: [00:20:02]protocol is kg_v1.0 [00:20:02]action value=get_value [00:20:02]process_action get_value [00:20:02]cmd_get_value [00:20:02]process_action get_value done [00:20:02]requested_data is exist [00:20:02]produce_requested_data [00:20:02]requested_item kkm.sn is exist - process it [00:20:02]requested_item kkm.ver is exist - process it [00:20:02]requested_item fm.sn is exist - process it [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 11 00 00 [00:20:02]Write to MH i2c: E2 08 00 95 2E 80 11 00 00 00 00 00 00 3D [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 17 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 17 00 95 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 90 [00:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:20:02]wFMCommunicate OK [00:20:02]requested_item fd.num is exist - process it [00:20:02]SAM_PROTO_GetFieldsCounters [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 13 00 00 [00:20:02]Write to MH i2c: E2 08 00 96 2E 80 13 00 00 00 00 00 00 40 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 62 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 62 00 96 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 30 [00:20: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:20:02]wFMCommunicate OK [00:20:02]SAM_PROTO_GetFieldsCounters done [00:20:02]requested_item shift.num is exist - process it [00:20:02]requested_item shift.opened is exist - process it [00:20:02]req_shift_opened [00:20:02]FM_GetShiftState [00:20:02]SAM_PROTO_GetShiftState [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 13 01 00 [00:20:02]Write to MH i2c: E2 08 00 97 2E 80 13 01 00 00 00 00 00 42 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 0E 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 0E 00 97 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 A0 [00:20:02]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:20:02]wFMCommunicate OK [00:20:02]SAM_PROTO_GetShiftState done [00:20:02]FM_GetShiftState done [00:20:02]req_shift_opened done [00:20:02]requested_item shift.open_date is exist - process it [00:20:02]req_shift_open_date [00:20:02]req_shift_open_date done [00:20:02]produce_requested_data done [00:20:02]produce_requested_data return {"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:20:02]process_action_free get_value [00:20:02]json_value_free [00:20:02]json_value_free done [00:20:02]process_json_proto returns [00:20:02]Send response to host [00:20:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:20:02]free response buf [00:20:02]execute_script done [00:20:02]execute_script returns [00:20:02]free content buf [00:20:02]Sock 9.Close socket [00:20:02]Sock 9.Thread stoped [00:20:02]accept exits with 7 [00:20:02]New connection [00:20:02]New thread 3067149668 created [00:20:02]Thread 3067293028 joined [00:20:02]Waiting for new connection... [00:20:02] Sock 7.Parse request [00:20:02]Sock 7.Check first char [00:20:02]Sock 7.First char is OK [00:20:02]request: POST /json_proto HTTP/1.0 [00:20:02]Method: POST [00:20:02]URL: /json_proto [00:20:02]Method is POST - this is cgi request [00:20:02]url: /json_proto [00:20:02]query_string will be loaded in cgi processing [00:20:02]execute_cgi json_proto POST (null) [00:20:02]execute_cgi path=json_proto method=POST [00:20:02]POST find Content-Length [00:20:02]Host: 172.17.60.7:8080 [00:20:02]Content-Length: 331 [00:20:02]Content-Type: application/json [00:20:02] [00:20:02]POST finish read [00:20:02]Found Content-Length = 331 [00:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:02]execute_script... [00:20:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:03]POST & json_proto [00:20:03]process_json_proto [00:20:03]json parsed OK: [00:20:03]protocol is kg_v1.0 [00:20:03]action value=get_value [00:20:03]process_action get_value [00:20:03]cmd_get_value [00:20:03]process_action get_value done [00:20:03]requested_data is exist [00:20:03]produce_requested_data [00:20:03]requested_item fm.sale.total is exist - process it [00:20:03]SAM_PROTO_GetFMData [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 13 03 00 [00:20:03]Write to MH i2c: E2 08 00 98 2E 80 13 03 00 00 00 00 00 45 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 98 2E 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 F3 [00:20:03]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 99 2E 80 17 00 00 00 00 00 00 47 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 99 2E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [00:20:03]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 9A 2E 80 17 00 00 00 00 00 00 48 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 9A 2E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E8 [00:20:04]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:04]wFMCommunicate OK [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 17 00 00 [00:20:04]Write to MH i2c: E2 08 00 9B 2E 80 17 00 00 00 00 00 00 49 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 9B 2E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 CE [00:20:04]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:20:04]wFMCommunicate OK [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 17 00 00 [00:20:04]Write to MH i2c: E2 08 00 9C 2E 80 17 00 00 00 00 00 00 4A [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 DE 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 DE 00 9C 2E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 29 [00:20:04]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:04]wFMCommunicate OK [00:20:04]SAM_PROTO_GetFMData done [00:20:04]requested_item fm.sale_refund.total is exist - process it [00:20:04]requested_item fm.buy.total is exist - process it [00:20:04]requested_item shift.sale.total is exist - process it [00:20:04]SAM_PROTO_GetShiftData [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 13 02 00 [00:20:04]Write to MH i2c: E2 08 00 9D 2E 80 13 02 00 00 00 00 00 49 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:05]OFD Sender: No OFD packet to send [00:20:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 9D 2E 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C9 [00:20:05]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 9E 2E 80 17 00 00 00 00 00 00 4C [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 9E 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 6E [00:20:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 9F 2E 80 17 00 00 00 00 00 00 4D [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 9F 2E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 04 [00:20:05]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 A0 2E 80 17 00 00 00 00 00 00 4E [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 A0 2E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 C0 [00:20:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 17 00 00 [00:20:06]Write to MH i2c: E2 08 00 A1 2E 80 17 00 00 00 00 00 00 4F [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 CB 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 CB 00 A1 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 38 [00:20:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:06]wFMCommunicate OK [00:20:06]SAM_PROTO_GetShiftData done [00:20:06]requested_item shift.sale.total_cash is exist - process it [00:20:06]requested_item shift.sale_refund.total is exist - process it [00:20:06]requested_item shift.sale_refund.total_cash is exist - process it [00:20:06]requested_item shift.buy.total is exist - process it [00:20:06]requested_item shift.buy.total_cash is exist - process it [00:20:06]produce_requested_data done [00:20:06]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:06]process_action_free get_value [00:20:06]json_value_free [00:20:06]json_value_free done [00:20:06]process_json_proto returns [00:20:06]Send response to host [00:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:06]free response buf [00:20:06]execute_script done [00:20:06]execute_script returns [00:20:06]free content buf [00:20:06]Sock 7.Close socket [00:20:06]Sock 7.Thread stoped [00:20:10]OFD Sender: No OFD packet to send [00:20:13]accept exits with 9 [00:20:13]New connection [00:20:13]New thread 3067293028 created [00:20:13]Thread 3067149668 joined [00:20:13]Waiting for new connection... [00:20:13] Sock 9.Parse request [00:20:13]Sock 9.Check first char [00:20:13]Sock 9.First char is OK [00:20:13]request: POST /json_proto HTTP/1.0 [00:20:13]Method: POST [00:20:13]URL: /json_proto [00:20:13]Method is POST - this is cgi request [00:20:13]url: /json_proto [00:20:13]query_string will be loaded in cgi processing [00:20:13]execute_cgi json_proto POST (null) [00:20:13]execute_cgi path=json_proto method=POST [00:20:13]POST find Content-Length [00:20:13]Host: 172.17.60.7:8080 [00:20:13]Content-Length: 215 [00:20:13]Content-Type: application/json [00:20:13] [00:20:13]POST finish read [00:20:13]Found Content-Length = 215 [00:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:13]execute_script... [00:20:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:13]POST & json_proto [00:20:13]process_json_proto [00:20:13]json parsed OK: [00:20:13]protocol is kg_v1.0 [00:20:13]action value=get_value [00:20:13]process_action get_value [00:20:13]cmd_get_value [00:20:13]process_action get_value done [00:20:13]requested_data is exist [00:20:13]produce_requested_data [00:20:13]requested_item kkm.sn is exist - process it [00:20:13]requested_item kkm.ver is exist - process it [00:20:13]requested_item fm.sn is exist - process it [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 11 00 00 [00:20:13]Write to MH i2c: E2 08 00 A2 2E 80 11 00 00 00 00 00 00 4A [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 17 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 17 00 A2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9D [00:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:20:13]wFMCommunicate OK [00:20:13]requested_item fd.num is exist - process it [00:20:13]SAM_PROTO_GetFieldsCounters [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 13 00 00 [00:20:13]Write to MH i2c: E2 08 00 A3 2E 80 13 00 00 00 00 00 00 4D [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 62 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 62 00 A3 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 3D [00:20: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:20:14]wFMCommunicate OK [00:20:14]SAM_PROTO_GetFieldsCounters done [00:20:14]requested_item shift.num is exist - process it [00:20:14]requested_item shift.opened is exist - process it [00:20:14]req_shift_opened [00:20:14]FM_GetShiftState [00:20:14]SAM_PROTO_GetShiftState [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 13 01 00 [00:20:14]Write to MH i2c: E2 08 00 A4 2E 80 13 01 00 00 00 00 00 4F [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 0E 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 0E 00 A4 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 AD [00:20:14]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:20:14]wFMCommunicate OK [00:20:14]SAM_PROTO_GetShiftState done [00:20:14]FM_GetShiftState done [00:20:14]req_shift_opened done [00:20:14]requested_item shift.open_date is exist - process it [00:20:14]req_shift_open_date [00:20:14]req_shift_open_date done [00:20:14]produce_requested_data done [00:20:14]produce_requested_data return {"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:20:14]process_action_free get_value [00:20:14]json_value_free [00:20:14]json_value_free done [00:20:14]process_json_proto returns [00:20:14]Send response to host [00:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:20:14]free response buf [00:20:14]execute_script done [00:20:14]execute_script returns [00:20:14]free content buf [00:20:14]Sock 9.Close socket [00:20:14]Sock 9.Thread stoped [00:20:14]accept exits with 7 [00:20:14]New connection [00:20:14]New thread 3067149668 created [00:20:14]Thread 3067293028 joined [00:20:14]Waiting for new connection... [00:20:14] Sock 7.Parse request [00:20:14]Sock 7.Check first char [00:20:14]Sock 7.First char is OK [00:20:14]request: POST /json_proto HTTP/1.0 [00:20:14]Method: POST [00:20:14]URL: /json_proto [00:20:14]Method is POST - this is cgi request [00:20:14]url: /json_proto [00:20:14]query_string will be loaded in cgi processing [00:20:14]execute_cgi json_proto POST (null) [00:20:14]execute_cgi path=json_proto method=POST [00:20:14]POST find Content-Length [00:20:14]Host: 172.17.60.7:8080 [00:20:14]Content-Length: 331 [00:20:14]Content-Type: application/json [00:20:14] [00:20:14]POST finish read [00:20:14]Found Content-Length = 331 [00:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:14]execute_script... [00:20:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:14]POST & json_proto [00:20:14]process_json_proto [00:20:14]json parsed OK: [00:20:14]protocol is kg_v1.0 [00:20:14]action value=get_value [00:20:14]process_action get_value [00:20:14]cmd_get_value [00:20:14]process_action get_value done [00:20:14]requested_data is exist [00:20:14]produce_requested_data [00:20:14]requested_item fm.sale.total is exist - process it [00:20:14]SAM_PROTO_GetFMData [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 13 03 00 [00:20:14]Write to MH i2c: E2 08 00 A5 2E 80 13 03 00 00 00 00 00 52 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 FD 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 FD 00 A5 2E 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 00 [00:20:14]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 17 00 00 [00:20:14]Write to MH i2c: E2 08 00 A6 2E 80 17 00 00 00 00 00 00 54 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:15]OFD Sender: No OFD packet to send [00:20:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 FD 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 FD 00 A6 2E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [00:20:15]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 17 00 00 [00:20:15]Write to MH i2c: E2 08 00 A7 2E 80 17 00 00 00 00 00 00 55 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 FD 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 FD 00 A7 2E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 F5 [00:20:15]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 17 00 00 [00:20:15]Write to MH i2c: E2 08 00 A8 2E 80 17 00 00 00 00 00 00 56 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 FD 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 FD 00 A8 2E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 DB [00:20:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 17 00 00 [00:20:15]Write to MH i2c: E2 08 00 A9 2E 80 17 00 00 00 00 00 00 57 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:16]Read from MH i2c: E2 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 DE 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 DE 00 A9 2E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 36 [00:20:16]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:16]wFMCommunicate OK [00:20:16]SAM_PROTO_GetFMData done [00:20:16]requested_item fm.sale_refund.total is exist - process it [00:20:16]requested_item fm.buy.total is exist - process it [00:20:16]requested_item shift.sale.total is exist - process it [00:20:16]SAM_PROTO_GetShiftData [00:20:16]wFMCommunicate request_size=4 [00:20:16]MH_SAM_APDU [00:20:16]CAPDU: 80 13 02 00 [00:20:16]Write to MH i2c: E2 08 00 AA 2E 80 13 02 00 00 00 00 00 56 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:16]Read from MH i2c: E2 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 FD 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 FD 00 AA 2E 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D6 [00:20:16]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:20:16]wFMCommunicate OK [00:20:16]wFMCommunicate request_size=4 [00:20:16]MH_SAM_APDU [00:20:16]CAPDU: 80 17 00 00 [00:20:16]Write to MH i2c: E2 08 00 AB 2E 80 17 00 00 00 00 00 00 59 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 AB 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 7B [00:20:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:20:17]wFMCommunicate OK [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 17 00 00 [00:20:17]Write to MH i2c: E2 08 00 AC 2E 80 17 00 00 00 00 00 00 5A [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 AC 2E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 11 [00:20:17]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:20:17]wFMCommunicate OK [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 17 00 00 [00:20:17]Write to MH i2c: E2 08 00 AD 2E 80 17 00 00 00 00 00 00 5B [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 FD 00 AD 2E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 CD [00:20:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:20:17]wFMCommunicate OK [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 17 00 00 [00:20:17]Write to MH i2c: E2 08 00 AE 2E 80 17 00 00 00 00 00 00 5C [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 CB 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 CB 00 AE 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 45 [00:20:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:18]wFMCommunicate OK [00:20:18]SAM_PROTO_GetShiftData done [00:20:18]requested_item shift.sale.total_cash is exist - process it [00:20:18]requested_item shift.sale_refund.total is exist - process it [00:20:18]requested_item shift.sale_refund.total_cash is exist - process it [00:20:18]requested_item shift.buy.total is exist - process it [00:20:18]requested_item shift.buy.total_cash is exist - process it [00:20:18]produce_requested_data done [00:20:18]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:18]process_action_free get_value [00:20:18]json_value_free [00:20:18]json_value_free done [00:20:18]process_json_proto returns [00:20:18]Send response to host [00:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:18]free response buf [00:20:18]execute_script done [00:20:18]execute_script returns [00:20:18]free content buf [00:20:18]Sock 7.Close socket [00:20:18]Sock 7.Thread stoped [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:38]accept exits with 9 [00:22:38]New connection [00:22:38]New thread 3067293028 created [00:22:38]Thread 3067149668 joined [00:22:38]Waiting for new connection... [00:22:38] Sock 9.Parse request [00:22:38]Sock 9.Check first char [00:22:38]Sock 9.First char is OK [00:22:38]request: POST /json_proto HTTP/1.0 [00:22:38]Method: POST [00:22:38]URL: /json_proto [00:22:38]Method is POST - this is cgi request [00:22:38]url: /json_proto [00:22:38]query_string will be loaded in cgi processing [00:22:38]execute_cgi json_proto POST (null) [00:22:38]execute_cgi path=json_proto method=POST [00:22:38]POST find Content-Length [00:22:38]Host: 172.17.60.7:8080 [00:22:38]Content-Length: 215 [00:22:38]Content-Type: application/json [00:22:38] [00:22:38]POST finish read [00:22:38]Found Content-Length = 215 [00:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:38]execute_script... [00:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:38]POST & json_proto [00:22:38]process_json_proto [00:22:38]json parsed OK: [00:22:38]protocol is kg_v1.0 [00:22:38]action value=get_value [00:22:38]process_action get_value [00:22:38]cmd_get_value [00:22:38]process_action get_value done [00:22:38]requested_data is exist [00:22:38]produce_requested_data [00:22:38]requested_item kkm.sn is exist - process it [00:22:38]requested_item kkm.ver is exist - process it [00:22:38]requested_item fm.sn is exist - process it [00:22:38]wFMCommunicate request_size=4 [00:22:38]MH_SAM_APDU [00:22:38]CAPDU: 80 11 00 00 [00:22:38]Write to MH i2c: E2 08 00 AF 2E 80 11 00 00 00 00 00 00 57 [00:22:38]Write i2c OK [00:22:38]MH_I2C_Read... [00:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:38]Read from MH i2c: E2 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 17 00 [00:22:38]MH_I2C_Read... [00:22:38]Read from MH i2c: E2 17 00 AF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 AA [00:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:22:38]wFMCommunicate OK [00:22:38]requested_item fd.num is exist - process it [00:22:38]SAM_PROTO_GetFieldsCounters [00:22:38]wFMCommunicate request_size=4 [00:22:38]MH_SAM_APDU [00:22:38]CAPDU: 80 13 00 00 [00:22:38]Write to MH i2c: E2 08 00 B0 2E 80 13 00 00 00 00 00 00 5A [00:22:38]Write i2c OK [00:22:38]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 62 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 62 00 B0 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 4A [00:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:22:39]wFMCommunicate OK [00:22:39]SAM_PROTO_GetFieldsCounters done [00:22:39]requested_item shift.num is exist - process it [00:22:39]requested_item shift.opened is exist - process it [00:22:39]req_shift_opened [00:22:39]FM_GetShiftState [00:22:39]SAM_PROTO_GetShiftState [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 13 01 00 [00:22:39]Write to MH i2c: E2 08 00 B1 2E 80 13 01 00 00 00 00 00 5C [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 0E 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 0E 00 B1 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 BA [00:22:39]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:22:39]wFMCommunicate OK [00:22:39]SAM_PROTO_GetShiftState done [00:22:39]FM_GetShiftState done [00:22:39]req_shift_opened done [00:22:39]requested_item shift.open_date is exist - process it [00:22:39]req_shift_open_date [00:22:39]req_shift_open_date done [00:22:39]produce_requested_data done [00:22:39]produce_requested_data return {"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:22:39]process_action_free get_value [00:22:39]json_value_free [00:22:39]json_value_free done [00:22:39]process_json_proto returns [00:22:39]Send response to host [00:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:22:39]free response buf [00:22:39]execute_script done [00:22:39]execute_script returns [00:22:39]free content buf [00:22:39]Sock 9.Close socket [00:22:39]Sock 9.Thread stoped [00:22:39]accept exits with 7 [00:22:39]New connection [00:22:39]New thread 3067149668 created [00:22:39]Thread 3067293028 joined [00:22:39]Waiting for new connection... [00:22:39] Sock 7.Parse request [00:22:39]Sock 7.Check first char [00:22:39]Sock 7.First char is OK [00:22:39]request: POST /json_proto HTTP/1.0 [00:22:39]Method: POST [00:22:39]URL: /json_proto [00:22:39]Method is POST - this is cgi request [00:22:39]url: /json_proto [00:22:39]query_string will be loaded in cgi processing [00:22:39]execute_cgi json_proto POST (null) [00:22:39]execute_cgi path=json_proto method=POST [00:22:39]POST find Content-Length [00:22:39]Host: 172.17.60.7:8080 [00:22:39]Content-Length: 331 [00:22:39]Content-Type: application/json [00:22:39] [00:22:39]POST finish read [00:22:39]Found Content-Length = 331 [00:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:39]execute_script... [00:22:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:39]POST & json_proto [00:22:39]process_json_proto [00:22:39]json parsed OK: [00:22:39]protocol is kg_v1.0 [00:22:39]action value=get_value [00:22:39]process_action get_value [00:22:39]cmd_get_value [00:22:39]process_action get_value done [00:22:39]requested_data is exist [00:22:39]produce_requested_data [00:22:39]requested_item fm.sale.total is exist - process it [00:22:39]SAM_PROTO_GetFMData [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 13 03 00 [00:22:39]Write to MH i2c: E2 08 00 B2 2E 80 13 03 00 00 00 00 00 5F [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:39]Read from MH i2c: E2 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 FD 00 [00:22:39]MH_I2C_Read... [00:22:39]Read from MH i2c: E2 FD 00 B2 2E 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 0D [00:22:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:22:39]wFMCommunicate OK [00:22:39]wFMCommunicate request_size=4 [00:22:39]MH_SAM_APDU [00:22:39]CAPDU: 80 17 00 00 [00:22:39]Write to MH i2c: E2 08 00 B3 2E 80 17 00 00 00 00 00 00 61 [00:22:39]Write i2c OK [00:22:39]MH_I2C_Read... [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 B3 2E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [00:22:40]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:40]wFMCommunicate OK [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 17 00 00 [00:22:40]Write to MH i2c: E2 08 00 B4 2E 80 17 00 00 00 00 00 00 62 [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:40]OFD Sender: No OFD packet to send [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 B4 2E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 02 [00:22:40]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:22:40]wFMCommunicate OK [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 17 00 00 [00:22:40]Write to MH i2c: E2 08 00 B5 2E 80 17 00 00 00 00 00 00 63 [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 FD 00 B5 2E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 E8 [00:22:40]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:22:40]wFMCommunicate OK [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 17 00 00 [00:22:40]Write to MH i2c: E2 08 00 B6 2E 80 17 00 00 00 00 00 00 64 [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:22:40]Read from MH i2c: E2 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 DE 00 [00:22:40]MH_I2C_Read... [00:22:40]Read from MH i2c: E2 DE 00 B6 2E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 43 [00:22:40]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:40]wFMCommunicate OK [00:22:40]SAM_PROTO_GetFMData done [00:22:40]requested_item fm.sale_refund.total is exist - process it [00:22:40]requested_item fm.buy.total is exist - process it [00:22:40]requested_item shift.sale.total is exist - process it [00:22:40]SAM_PROTO_GetShiftData [00:22:40]wFMCommunicate request_size=4 [00:22:40]MH_SAM_APDU [00:22:40]CAPDU: 80 13 02 00 [00:22:40]Write to MH i2c: E2 08 00 B7 2E 80 13 02 00 00 00 00 00 63 [00:22:40]Write i2c OK [00:22:40]MH_I2C_Read... [00:22:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:41]Read from MH i2c: E2 [00:22:41]MH_I2C_Read... [00:22:41]Read from MH i2c: E2 FD 00 [00:22:41]MH_I2C_Read... [00:22:41]Read from MH i2c: E2 FD 00 B7 2E 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 E3 [00:22:41]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:22:41]wFMCommunicate OK [00:22:41]wFMCommunicate request_size=4 [00:22:41]MH_SAM_APDU [00:22:41]CAPDU: 80 17 00 00 [00:22:41]Write to MH i2c: E2 08 00 B8 2E 80 17 00 00 00 00 00 00 66 [00:22:41]Write i2c OK [00:22:41]MH_I2C_Read... [00:22:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:41]Read from MH i2c: E2 [00:22:41]MH_I2C_Read... [00:22:41]Read from MH i2c: E2 FD 00 [00:22:41]MH_I2C_Read... [00:22:41]Read from MH i2c: E2 FD 00 B8 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 88 [00:22:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:22:41]wFMCommunicate OK [00:22:41]wFMCommunicate request_size=4 [00:22:41]MH_SAM_APDU [00:22:41]CAPDU: 80 17 00 00 [00:22:41]Write to MH i2c: E2 08 00 B9 2E 80 17 00 00 00 00 00 00 67 [00:22:41]Write i2c OK [00:22:41]MH_I2C_Read... [00:22:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 B9 2E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 1E [00:22:42]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:22:42]wFMCommunicate OK [00:22:42]wFMCommunicate request_size=4 [00:22:42]MH_SAM_APDU [00:22:42]CAPDU: 80 17 00 00 [00:22:42]Write to MH i2c: E2 08 00 BA 2E 80 17 00 00 00 00 00 00 68 [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 FD 00 BA 2E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 DA [00:22:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:22:42]wFMCommunicate OK [00:22:42]wFMCommunicate request_size=4 [00:22:42]MH_SAM_APDU [00:22:42]CAPDU: 80 17 00 00 [00:22:42]Write to MH i2c: E2 08 00 BB 2E 80 17 00 00 00 00 00 00 69 [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:22:42]Read from MH i2c: E2 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 CB 00 [00:22:42]MH_I2C_Read... [00:22:42]Read from MH i2c: E2 CB 00 BB 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [00:22:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:42]wFMCommunicate OK [00:22:42]SAM_PROTO_GetShiftData done [00:22:42]requested_item shift.sale.total_cash is exist - process it [00:22:42]requested_item shift.sale_refund.total is exist - process it [00:22:42]requested_item shift.sale_refund.total_cash is exist - process it [00:22:42]requested_item shift.buy.total is exist - process it [00:22:42]requested_item shift.buy.total_cash is exist - process it [00:22:42]produce_requested_data done [00:22:42]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:22:42]process_action_free get_value [00:22:42]json_value_free [00:22:42]json_value_free done [00:22:42]process_json_proto returns [00:22:42]Send response to host [00:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:22:42]free response buf [00:22:42]execute_script done [00:22:42]execute_script returns [00:22:42]free content buf [00:22:42]Sock 7.Close socket [00:22:42]Sock 7.Thread stoped [00:22:42]accept exits with 9 [00:22:42]New connection [00:22:42]New thread 3067293028 created [00:22:42]Thread 3067149668 joined [00:22:42]Waiting for new connection... [00:22:42] Sock 9.Parse request [00:22:42]Sock 9.Check first char [00:22:42]Sock 9.First char is OK [00:22:42]request: POST /json_proto HTTP/1.0 [00:22:42]Method: POST [00:22:42]URL: /json_proto [00:22:42]Method is POST - this is cgi request [00:22:42]url: /json_proto [00:22:42]query_string will be loaded in cgi processing [00:22:42]execute_cgi json_proto POST (null) [00:22:42]execute_cgi path=json_proto method=POST [00:22:42]POST find Content-Length [00:22:42]Host: 172.17.60.7:8080 [00:22:42]Content-Length: 331 [00:22:42]Content-Type: application/json [00:22:42] [00:22:42]POST finish read [00:22:42]Found Content-Length = 331 [00:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:42]execute_script... [00:22:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:42]POST & json_proto [00:22:42]process_json_proto [00:22:42]json parsed OK: [00:22:42]protocol is kg_v1.0 [00:22:42]action value=get_value [00:22:42]process_action get_value [00:22:42]cmd_get_value [00:22:42]process_action get_value done [00:22:42]requested_data is exist [00:22:42]produce_requested_data [00:22:42]requested_item fm.sale.total is exist - process it [00:22:42]SAM_PROTO_GetFMData [00:22:42]wFMCommunicate request_size=4 [00:22:42]MH_SAM_APDU [00:22:42]CAPDU: 80 13 03 00 [00:22:42]Write to MH i2c: E2 08 00 BC 2E 80 13 03 00 00 00 00 00 69 [00:22:42]Write i2c OK [00:22:42]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 BC 2E 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 17 [00:22:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:22:43]wFMCommunicate OK [00:22:43]wFMCommunicate request_size=4 [00:22:43]MH_SAM_APDU [00:22:43]CAPDU: 80 17 00 00 [00:22:43]Write to MH i2c: E2 08 00 BD 2E 80 17 00 00 00 00 00 00 6B [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 BD 2E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [00:22:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:43]wFMCommunicate OK [00:22:43]wFMCommunicate request_size=4 [00:22:43]MH_SAM_APDU [00:22:43]CAPDU: 80 17 00 00 [00:22:43]Write to MH i2c: E2 08 00 BE 2E 80 17 00 00 00 00 00 00 6C [00:22:43]Write i2c OK [00:22:43]MH_I2C_Read... [00:22:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:43]Read from MH i2c: E2 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 [00:22:43]MH_I2C_Read... [00:22:43]Read from MH i2c: E2 FD 00 BE 2E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 0C [00:22:43]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:22:44]wFMCommunicate OK [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 17 00 00 [00:22:44]Write to MH i2c: E2 08 00 BF 2E 80 17 00 00 00 00 00 00 6D [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 FD 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 FD 00 BF 2E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 F2 [00:22:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:22:44]wFMCommunicate OK [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 17 00 00 [00:22:44]Write to MH i2c: E2 08 00 C0 2E 80 17 00 00 00 00 00 00 6E [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:22:44]Read from MH i2c: E2 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 DE 00 [00:22:44]MH_I2C_Read... [00:22:44]Read from MH i2c: E2 DE 00 C0 2E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D [00:22:44]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:44]wFMCommunicate OK [00:22:44]SAM_PROTO_GetFMData done [00:22:44]requested_item fm.sale_refund.total is exist - process it [00:22:44]requested_item fm.buy.total is exist - process it [00:22:44]requested_item shift.sale.total is exist - process it [00:22:44]SAM_PROTO_GetShiftData [00:22:44]wFMCommunicate request_size=4 [00:22:44]MH_SAM_APDU [00:22:44]CAPDU: 80 13 02 00 [00:22:44]Write to MH i2c: E2 08 00 C1 2E 80 13 02 00 00 00 00 00 6D [00:22:44]Write i2c OK [00:22:44]MH_I2C_Read... [00:22:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:45]Read from MH i2c: E2 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 C1 2E 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 ED [00:22:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:22:45]wFMCommunicate OK [00:22:45]wFMCommunicate request_size=4 [00:22:45]MH_SAM_APDU [00:22:45]CAPDU: 80 17 00 00 [00:22:45]Write to MH i2c: E2 08 00 C2 2E 80 17 00 00 00 00 00 00 70 [00:22:45]Write i2c OK [00:22:45]MH_I2C_Read... [00:22:45]OFD Sender: No OFD packet to send [00:22:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:45]Read from MH i2c: E2 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 C2 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 92 [00:22:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:22:45]wFMCommunicate OK [00:22:45]wFMCommunicate request_size=4 [00:22:45]MH_SAM_APDU [00:22:45]CAPDU: 80 17 00 00 [00:22:45]Write to MH i2c: E2 08 00 C3 2E 80 17 00 00 00 00 00 00 71 [00:22:45]Write i2c OK [00:22:45]MH_I2C_Read... [00:22:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:45]Read from MH i2c: E2 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 [00:22:45]MH_I2C_Read... [00:22:45]Read from MH i2c: E2 FD 00 C3 2E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 28 [00:22:46]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 17 00 00 [00:22:46]Write to MH i2c: E2 08 00 C4 2E 80 17 00 00 00 00 00 00 72 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 FD 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 FD 00 C4 2E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E4 [00:22:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:22:46]wFMCommunicate OK [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 17 00 00 [00:22:46]Write to MH i2c: E2 08 00 C5 2E 80 17 00 00 00 00 00 00 73 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 CB 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 CB 00 C5 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [00:22:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetShiftData done [00:22:46]requested_item shift.sale.total_cash is exist - process it [00:22:46]requested_item shift.sale_refund.total is exist - process it [00:22:46]requested_item shift.sale_refund.total_cash is exist - process it [00:22:46]requested_item shift.buy.total is exist - process it [00:22:46]requested_item shift.buy.total_cash is exist - process it [00:22:46]produce_requested_data done [00:22:46]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:22:46]process_action_free get_value [00:22:46]json_value_free [00:22:46]json_value_free done [00:22:46]process_json_proto returns [00:22:46]Send response to host [00:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:22:46]free response buf [00:22:46]execute_script done [00:22:46]execute_script returns [00:22:46]free content buf [00:22:46]Sock 9.Close socket [00:22:46]Sock 9.Thread stoped [00:22:46]accept exits with 7 [00:22:46]New connection [00:22:46]New thread 3067149668 created [00:22:46]Thread 3067293028 joined [00:22:46]Waiting for new connection... [00:22:46] Sock 7.Parse request [00:22:46]Sock 7.Check first char [00:22:46]Sock 7.First char is OK [00:22:46]request: POST /json_proto HTTP/1.0 [00:22:46]Method: POST [00:22:46]URL: /json_proto [00:22:46]Method is POST - this is cgi request [00:22:46]url: /json_proto [00:22:46]query_string will be loaded in cgi processing [00:22:46]execute_cgi json_proto POST (null) [00:22:46]execute_cgi path=json_proto method=POST [00:22:46]POST find Content-Length [00:22:46]Host: 172.17.60.7:8080 [00:22:46]Content-Length: 281 [00:22:46]Content-Type: application/json [00:22:46] [00:22:46]POST finish read [00:22:46]Found Content-Length = 281 [00:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0440\u0434\u0430\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:46]execute_script... [00:22:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0440\u0434\u0430\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:46]POST & json_proto [00:22:46]process_json_proto [00:22:46]json parsed OK: [00:22:46]protocol is kg_v1.0 [00:22:46]action value=x_report [00:22:46]process_action x_report [00:22:46]cmd_x_report [00:22:46]MH_GetDate [00:22:46]Write to MH i2c: F0 00 00 C6 2E E3 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 C6 2E 00 5E A7 BA 66 63 9B 67 64 DA [00:22:46]GetLastDocTimeStamp 1723508394 [00:22:46]current date 1723508574 [00:22:46]FM_GetShiftState [00:22:46]SAM_PROTO_GetShiftState [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 13 01 00 [00:22:46]Write to MH i2c: E2 08 00 C7 2E 80 13 01 00 00 00 00 00 72 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 C7 2E 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 D0 [00:22:46]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetShiftState done [00:22:46]FM_GetShiftState done [00:22:46]KKMCreateXReportDocument [00:22:46]Load OK [00:22:46]Malloc new data [00:22:46]MH_GetDate [00:22:46]Write to MH i2c: F0 00 00 C8 2E E5 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: F0 09 00 C8 2E 00 5E A7 BA 66 63 9B 67 64 DC [00:22:46]Malloc new data [00:22:46]Malloc new data [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 11 00 00 [00:22:46]Write to MH i2c: E2 08 00 C9 2E 80 11 00 00 00 00 00 00 71 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:47]Read from MH i2c: E2 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 17 00 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 17 00 C9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 C4 [00:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:22:47]wFMCommunicate OK [00:22:47]SAM_PROTO_GetFieldsCounters [00:22:47]wFMCommunicate request_size=4 [00:22:47]MH_SAM_APDU [00:22:47]CAPDU: 80 13 00 00 [00:22:47]Write to MH i2c: E2 08 00 CA 2E 80 13 00 00 00 00 00 00 74 [00:22:47]Write i2c OK [00:22:47]MH_I2C_Read... [00:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:47]Read from MH i2c: E2 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 62 00 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 62 00 CA 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 64 [00:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:22:47]wFMCommunicate OK [00:22:47]SAM_PROTO_GetFieldsCounters done [00:22:47]Malloc new data [00:22:47]Malloc new data [00:22:47]Malloc new data [00:22:47]KKMCreateXReportDocument OK [00:22:47]KKMSetXReportData OK [00:22:47]KKMPrepareXReportFMData [00:22:47]SAM_PROTO_GetShiftData [00:22:47]wFMCommunicate request_size=4 [00:22:47]MH_SAM_APDU [00:22:47]CAPDU: 80 13 02 00 [00:22:47]Write to MH i2c: E2 08 00 CB 2E 80 13 02 00 00 00 00 00 77 [00:22:47]Write i2c OK [00:22:47]MH_I2C_Read... [00:22:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:47]Read from MH i2c: E2 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 FD 00 [00:22:47]MH_I2C_Read... [00:22:47]Read from MH i2c: E2 FD 00 CB 2E 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F7 [00:22:47]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:22:47]wFMCommunicate OK [00:22:47]wFMCommunicate request_size=4 [00:22:47]MH_SAM_APDU [00:22:47]CAPDU: 80 17 00 00 [00:22:47]Write to MH i2c: E2 08 00 CC 2E 80 17 00 00 00 00 00 00 7A [00:22:47]Write i2c OK [00:22:47]MH_I2C_Read... [00:22:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:48]Read from MH i2c: E2 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: E2 FD 00 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: E2 FD 00 CC 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 9C [00:22:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:22:48]wFMCommunicate OK [00:22:48]wFMCommunicate request_size=4 [00:22:48]MH_SAM_APDU [00:22:48]CAPDU: 80 17 00 00 [00:22:48]Write to MH i2c: E2 08 00 CD 2E 80 17 00 00 00 00 00 00 7B [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:48]Read from MH i2c: E2 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: E2 FD 00 [00:22:48]MH_I2C_Read... [00:22:48]Read from MH i2c: E2 FD 00 CD 2E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 32 [00:22:48]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:22:48]wFMCommunicate OK [00:22:48]wFMCommunicate request_size=4 [00:22:48]MH_SAM_APDU [00:22:48]CAPDU: 80 17 00 00 [00:22:48]Write to MH i2c: E2 08 00 CE 2E 80 17 00 00 00 00 00 00 7C [00:22:48]Write i2c OK [00:22:48]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 CE 2E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 EE [00:22:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:22:49]wFMCommunicate OK [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 17 00 00 [00:22:49]Write to MH i2c: E2 08 00 CF 2E 80 17 00 00 00 00 00 00 7D [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 CB 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 CB 00 CF 2E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:22:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:49]wFMCommunicate OK [00:22:49]SAM_PROTO_GetShiftData done [00:22:49]1194 (1194) - счетчики итогов смены [00:22:49] 1134 (4) - 94 - количество чеков со всеми признаками расчетов [00:22:49] 1129 (155) - счетчики операций «приход» [00:22:49] 1135 (4) - 94 - количество чеков по признаку расчетов [00:22:49] 1201 (3) - 20249.00 - общая итоговая сумма в чеках [00:22:49] 1136 (3) - 5440.00 - итоговая сумма в чеках наличными [00:22:49] 1138 (3) - 14809.00 - итоговая сумма в чеках безналичными [00:22:49] 1024 (122) - суммы налогов [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 0% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:49] 1006 (12) - суммы НДС [00:22:49] 1010 (1) - 12% - код ставки НДС [00:22:49] 1011 (3) - 2150.30 - сумма НДС по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 0% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (11) - суммы НСП [00:22:49] 1014 (1) - 1% - код ставки НСП [00:22:49] 1015 (2) - 179.04 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 2% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 3% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 5% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 0,50% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 1,50% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1130 (141) - счетчики операций «возврат прихода» [00:22:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:22:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:22:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:22:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:22:49] 1024 (117) - суммы налогов [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 0% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 12% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 0% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 1% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 2% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 3% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 5% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 0,50% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 1,50% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1131 (141) - счетчики операций «расход» [00:22:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:22:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:22:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:22:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:22:49] 1024 (117) - суммы налогов [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 0% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 12% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 0% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 1% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 2% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 3% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 5% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 0,50% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1007 (9) - суммы НСП [00:22:49] 1014 (1) - 1,50% - код ставки НСП [00:22:49] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:49] 1132 (141) - счетчики операций «возврат расхода» [00:22:49] 1135 (4) - 0 - количество чеков по признаку расчетов [00:22:49] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:22:49] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:22:49] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:22:49] 1024 (117) - суммы налогов [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 0% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:49] 1006 (9) - суммы НДС [00:22:49] 1010 (1) - 12% - код ставки НДС [00:22:49] 1011 (0) - 0.00 - сумма НДС по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 2% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 3% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 5% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 0,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1007 (9) - суммы НСП [00:22:50] 1014 (1) - 1,50% - код ставки НСП [00:22:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:22:50] 1133 (588) - - счетчики коррекции - не используются [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1194 (04AA) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1134 (046E) [00:22:50]Malloc new data [00:22:50]Processing tag 1129 (0469) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1130 (046A) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1131 (046B) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1132 (046C) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1135 (046F) [00:22:50]Malloc new data [00:22:50]Processing tag 1201 (04B1) [00:22:50]Malloc new data [00:22:50]Processing tag 1136 (0470) [00:22:50]Malloc new data [00:22:50]Processing tag 1138 (0472) [00:22:50]Malloc new data [00:22:50]Processing tag 1024 (0400) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1006 (03EE) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1010 (03F2) [00:22:50]Malloc new data [00:22:50]Processing tag 1011 (03F3) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]OFD Sender: No OFD packet to send [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1007 (03EF) [00:22:50]Load OK [00:22:50]SetTLVBufToDocument [00:22:50]Processing tag 1014 (03F6) [00:22:50]Malloc new data [00:22:50]Processing tag 1015 (03F7) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Processing tag 1133 (046D) [00:22:50]Malloc new data [00:22:50]SetTLVBufToDocument err=0 [00:22:50]SetTLVBufToDocument err=0 [00:22:50]Malloc new data [00:22:50]SAM_PROTO_GetFMData [00:22:50]wFMCommunicate request_size=4 [00:22:50]MH_SAM_APDU [00:22:50]CAPDU: 80 13 03 00 [00:22:50]Write to MH i2c: E2 08 00 D0 2E 80 13 03 00 00 00 00 00 7D [00:22:50]Write i2c OK [00:22:50]MH_I2C_Read... [00:22:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:51]Read from MH i2c: E2 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 D0 2E 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 2B [00:22:51]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:22:51]wFMCommunicate OK [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 17 00 00 [00:22:51]Write to MH i2c: E2 08 00 D1 2E 80 17 00 00 00 00 00 00 7F [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:51]Read from MH i2c: E2 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 D1 2E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:22:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:51]wFMCommunicate OK [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 17 00 00 [00:22:51]Write to MH i2c: E2 08 00 D2 2E 80 17 00 00 00 00 00 00 80 [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 D2 2E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 20 [00:22:52]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:22:52]wFMCommunicate OK [00:22:52]wFMCommunicate request_size=4 [00:22:52]MH_SAM_APDU [00:22:52]CAPDU: 80 17 00 00 [00:22:52]Write to MH i2c: E2 08 00 D3 2E 80 17 00 00 00 00 00 00 81 [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 D3 2E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 06 [00:22:52]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:22:52]wFMCommunicate OK [00:22:52]wFMCommunicate request_size=4 [00:22:52]MH_SAM_APDU [00:22:52]CAPDU: 80 17 00 00 [00:22:52]Write to MH i2c: E2 08 00 D4 2E 80 17 00 00 00 00 00 00 82 [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:22:53]Read from MH i2c: E2 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: E2 DE 00 [00:22:53]MH_I2C_Read... [00:22:53]Read from MH i2c: E2 DE 00 D4 2E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 61 [00:22:53]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:53]wFMCommunicate OK [00:22:53]SAM_PROTO_GetFMData done [00:22:53]FM_GetFMData:85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 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 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:22:54]oper:6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:22:54]total:16 D7 C2 41 [00:22:54]Malloc new data [00:22:54]oper:6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 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 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:22:54]total:DC 09 29 [00:22:54]Malloc new data [00:22:54]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:22:54]total: [00:22:54]Malloc new data [00:22:54]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:22:54]total: [00:22:54]Malloc new data [00:22:54]KKMPrepareXReportFMData err=0 [00:22:54]Х отчет ИНН: 02508201610067 Кассир: Сардарбекова З. 13.08.2024 00:22 Смена: 266 РНМ: 0000000000090834 ЗНМ: 0300000007 СНО: Общий режим Всего чеков: 94 ИТОГИ ПРИХОД Чеков: 94 Общий итог: 20249.00 Итого наличными: 5440.00 Итого безнал.: 14809.00 НДС 0% : 0.00 НДС 12% : 2150.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 179.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 5440.00 НС Приход: 11032880.86 НС Возвр.Прихода: 26895.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874715 [00:22:54]StoreToDocumentArchive [00:22:54]MH_GetDate [00:22:54]Write to MH i2c: F0 00 00 D5 2E F2 [00:22:54]Write i2c OK [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: F0 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: F0 09 00 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: F0 09 00 D5 2E 00 65 A7 BA 66 63 9B 67 64 F0 [00:22:54]shift 266 fd 1723508581 [00:22:54]Create dir for shift 0266 [00:22:54]save to /storage/0266/doc_1723508581 [00:22:54]save last doc name /storage/0266/doc_1723508581 to /storage/kkm_last_doc_name [00:22:54]save OK [00:22:54]Clear old archive folders... [00:22:54]NVStorageSaveData kkm_last_timestamp [00:22:54]File name is /storage/kkm_last_timestamp [00:22:54]Write 4 bytes [00:22:54]NVStorageSaveData done [00:22:54]ExternCall_PrintAddStr [00:22:54]wPrintStart [00:22:54]Write to MH i2c: 01 00 00 D6 2E 04 [00:22:54]Write i2c OK [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: 01 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: 01 07 00 [00:22:54]MH_I2C_Read... [00:22:54]Read from MH i2c: 01 07 00 D6 2E 00 00 00 00 00 FF 0F 19 [00:22:54]RasterBufferAndPrint [00:22:54]line Х отчет [00:22:54]line ИНН: 02508201610067 [00:22:54]line Кассир: Сардарбекова З. [00:22:54]line 13.08.2024 00:22 [00:22:54]line Смена: 266 [00:22:54]line РНМ: 0000000000090834 [00:22:54]line ЗНМ: 0300000007 [00:22:54]line СНО: Общий режим [00:22:54]line Всего чеков: 94 [00:22:54]line ИТОГИ ПРИХОД [00:22:54]line Чеков: 94 [00:22:54]line Общий итог: 20249.00 [00:22:54]line Итого наличными: 5440.00 [00:22:54]line Итого безнал.: 14809.00 [00:22:54]line НДС 0% : 0.00 [00:22:54]line НДС 12% : 2150.30 [00:22:54]line НСП 0% : 0.00 [00:22:54]line НСП 1,50% : 0.00 [00:22:54]line НСП 0,50% : 0.00 [00:22:54]line НСП 5% : 0.00 [00:22:54]line НСП 3% : 0.00 [00:22:54]line НСП 2% : 0.00 [00:22:54]line НСП 1% : 179.04 [00:22:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:22:54]line Чеков: 0 [00:22:54]line Общий итог: 0.00 [00:22:54]line Итого наличными: 0.00 [00:22:54]line Итого безнал.: 0.00 [00:22:54]line НДС 0% : 0.00 [00:22:54]line НДС 12% : 0.00 [00:22:54]line НСП 0% : 0.00 [00:22:54]line НСП 1,50% : 0.00 [00:22:54]line НСП 0,50% : 0.00 [00:22:54]line НСП 5% : 0.00 [00:22:54]line НСП 3% : 0.00 [00:22:54]line НСП 2% : 0.00 [00:22:54]line НСП 1% : 0.00 [00:22:54]line ИТОГИ РАСХОД [00:22:54]line Чеков: 0 [00:22:54]line Общий итог: 0.00 [00:22:54]line Итого наличными: 0.00 [00:22:54]line Итого безнал.: 0.00 [00:22:54]line НДС 0% : 0.00 [00:22:54]line НДС 12% : 0.00 [00:22:54]line НСП 0% : 0.00 [00:22:54]line НСП 1,50% : 0.00 [00:22:54]line НСП 0,50% : 0.00 [00:22:54]line НСП 5% : 0.00 [00:22:54]line НСП 3% : 0.00 [00:22:54]line НСП 2% : 0.00 [00:22:54]line НСП 1% : 0.00 [00:22:54]line ИТОГИ ВОЗВРАТ РАСХОДА [00:22:54]line Чеков: 0 [00:22:54]line Общий итог: 0.00 [00:22:54]line Итого наличными: 0.00 [00:22:54]line Итого безнал.: 0.00 [00:22:54]line НДС 0% : 0.00 [00:22:54]line НДС 12% : 0.00 [00:22:54]line НСП 0% : 0.00 [00:22:54]line НСП 1,50% : 0.00 [00:22:54]line НСП 0,50% : 0.00 [00:22:54]line НСП 5% : 0.00 [00:22:54]line НСП 3% : 0.00 [00:22:54]line НСП 2% : 0.00 [00:22:54]line НСП 1% : 0.00 [00:22:54]line Сумма внесений: 0.00 [00:22:54]line Сумма выплат: 0.00 [00:22:54]line Нал. в кассе: 5440.00 [00:22:54]line НС Приход: 11032880.86 [00:22:54]line НС Возвр.Прихода: 26895.00 [00:22:54]line НС Расход: 0.00 [00:22:54]line НС Возвр.Расхода: 0.00 [00:22:54]line ФМ: 0000000000874715 [00:22:54]written 0, free lines is 4095 [00:22:55]Write to MH i2c: 01 00 00 21 2F 50 [00:22:55]Write i2c OK [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: 01 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: 01 07 00 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: 01 07 00 21 2F 00 00 00 00 00 62 0A C3 [00:22:55]RasterBufferAndPrint [00:22:55]line [00:22:55]line [00:22:55]line [00:22:55]line [00:22:55]line [00:22:55]written 0, free lines is 2687 [00:22:55]MH_Cut [00:22:55]Write to MH i2c: D1 01 00 28 2F 01 29 [00:22:55]Write i2c OK [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: D1 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: D1 01 00 [00:22:55]MH_I2C_Read... [00:22:55]Read from MH i2c: D1 01 00 28 2F 00 28 [00:22:55]Write to MH i2c: 01 00 00 29 2F 58 [00:22:55]Write i2c OK [00:22:55]MH_I2C_Read... [00:22:55]OFD Sender: No OFD packet to send [00:22:56]*** Cut start [00:22:56]*** Purtial cut [00:22:56]*** Stage 1: CUTSNS_PIN = 1 [00:22:56]Read from MH i2c: 01 [00:22:56]MH_I2C_Read... [00:22:56]*** Stop cut motor [00:22:56]*** Cut end [00:22:56]Read from MH i2c: 01 07 00 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: 01 07 00 29 2F 00 00 00 00 00 FF 0F 6D [00:22:56]process_action x_report done [00:22:56]requested_data is exist [00:22:56]produce_requested_data [00:22:56]requested_item fd.num is exist - process it [00:22:56]SAM_PROTO_GetFieldsCounters [00:22:56]wFMCommunicate request_size=4 [00:22:56]MH_SAM_APDU [00:22:56]CAPDU: 80 13 00 00 [00:22:56]Write to MH i2c: E2 08 00 2A 2F 80 13 00 00 00 00 00 00 D5 [00:22:56]Write i2c OK [00:22:56]MH_I2C_Read... [00:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:56]Read from MH i2c: E2 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 62 00 [00:22:56]MH_I2C_Read... [00:22:56]Read from MH i2c: E2 62 00 2A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 C5 [00:22: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:22:57]wFMCommunicate OK [00:22:57]SAM_PROTO_GetFieldsCounters done [00:22:57]requested_item shift.num is exist - process it [00:22:57]requested_item shift.opened is exist - process it [00:22:57]req_shift_opened [00:22:57]FM_GetShiftState [00:22:57]SAM_PROTO_GetShiftState [00:22:57]wFMCommunicate request_size=4 [00:22:57]MH_SAM_APDU [00:22:57]CAPDU: 80 13 01 00 [00:22:57]Write to MH i2c: E2 08 00 2B 2F 80 13 01 00 00 00 00 00 D7 [00:22:57]Write i2c OK [00:22:57]MH_I2C_Read... [00:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:57]Read from MH i2c: E2 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 0E 00 [00:22:57]MH_I2C_Read... [00:22:57]Read from MH i2c: E2 0E 00 2B 2F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 35 [00:22:57]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:22:57]wFMCommunicate OK [00:22:57]SAM_PROTO_GetShiftState done [00:22:57]FM_GetShiftState done [00:22:57]req_shift_opened done [00:22:57]requested_item shift.open_date is exist - process it [00:22:57]req_shift_open_date [00:22:57]req_shift_open_date done [00:22:57]produce_requested_data done [00:22:57]produce_requested_data return {"fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:22:57]process_action_free x_report [00:22:57]json_value_free [00:22:57]json_value_free done [00:22:57]process_json_proto returns [00:22:57]Send response to host [00:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:22:57]free response buf [00:22:57]execute_script done [00:22:57]execute_script returns [00:22:57]free content buf [00:22:57]Sock 7.Close socket [00:22:57]Sock 7.Thread stoped [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:36]accept exits with 9 [00:23:36]New connection [00:23:36]New thread 3067293028 created [00:23:36]Thread 3067149668 joined [00:23:36]Waiting for new connection... [00:23:36] Sock 9.Parse request [00:23:36]Sock 9.Check first char [00:23:36]Sock 9.First char is OK [00:23:36]request: POST /json_proto HTTP/1.0 [00:23:36]Method: POST [00:23:36]URL: /json_proto [00:23:36]Method is POST - this is cgi request [00:23:36]url: /json_proto [00:23:36]query_string will be loaded in cgi processing [00:23:36]execute_cgi json_proto POST (null) [00:23:36]execute_cgi path=json_proto method=POST [00:23:36]POST find Content-Length [00:23:36]Host: 172.17.60.7:8080 [00:23:36]Content-Length: 215 [00:23:36]Content-Type: application/json [00:23:36] [00:23:36]POST finish read [00:23:36]Found Content-Length = 215 [00:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:36]execute_script... [00:23:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:36]POST & json_proto [00:23:36]process_json_proto [00:23:36]json parsed OK: [00:23:36]protocol is kg_v1.0 [00:23:36]action value=get_value [00:23:36]process_action get_value [00:23:36]cmd_get_value [00:23:36]process_action get_value done [00:23:36]requested_data is exist [00:23:36]produce_requested_data [00:23:36]requested_item kkm.sn is exist - process it [00:23:36]requested_item kkm.ver is exist - process it [00:23:36]requested_item fm.sn is exist - process it [00:23:36]wFMCommunicate request_size=4 [00:23:36]MH_SAM_APDU [00:23:36]CAPDU: 80 11 00 00 [00:23:36]Write to MH i2c: E2 08 00 2C 2F 80 11 00 00 00 00 00 00 D5 [00:23:36]Write i2c OK [00:23:36]MH_I2C_Read... [00:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:36]Read from MH i2c: E2 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: E2 17 00 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: E2 17 00 2C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 28 [00:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:23:36]wFMCommunicate OK [00:23:36]requested_item fd.num is exist - process it [00:23:36]SAM_PROTO_GetFieldsCounters [00:23:36]wFMCommunicate request_size=4 [00:23:36]MH_SAM_APDU [00:23:36]CAPDU: 80 13 00 00 [00:23:36]Write to MH i2c: E2 08 00 2D 2F 80 13 00 00 00 00 00 00 D8 [00:23:36]Write i2c OK [00:23:36]MH_I2C_Read... [00:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:36]Read from MH i2c: E2 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: E2 62 00 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: E2 62 00 2D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 C8 [00:23: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 28 CE 00 00 0E 04 04 00 BF 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 [00:23:36]wFMCommunicate OK [00:23:36]SAM_PROTO_GetFieldsCounters done [00:23:36]requested_item shift.num is exist - process it [00:23:36]requested_item shift.opened is exist - process it [00:23:36]req_shift_opened [00:23:36]FM_GetShiftState [00:23:36]SAM_PROTO_GetShiftState [00:23:36]wFMCommunicate request_size=4 [00:23:36]MH_SAM_APDU [00:23:36]CAPDU: 80 13 01 00 [00:23:36]Write to MH i2c: E2 08 00 2E 2F 80 13 01 00 00 00 00 00 DA [00:23:36]Write i2c OK [00:23:36]MH_I2C_Read... [00:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:36]Read from MH i2c: E2 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: E2 0E 00 [00:23:36]MH_I2C_Read... [00:23:36]Read from MH i2c: E2 0E 00 2E 2F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 38 [00:23:36]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:23:36]wFMCommunicate OK [00:23:36]SAM_PROTO_GetShiftState done [00:23:36]FM_GetShiftState done [00:23:36]req_shift_opened done [00:23:36]requested_item shift.open_date is exist - process it [00:23:36]req_shift_open_date [00:23:36]req_shift_open_date done [00:23:36]produce_requested_data done [00:23:36]produce_requested_data return {"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684} [00:23:36]process_action_free get_value [00:23:36]json_value_free [00:23:36]json_value_free done [00:23:36]process_json_proto returns [00:23:36]Send response to host [00:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52776,"shift.num":447,"shift.opened":1,"shift.open_date":1723422684}}} [00:23:36]free response buf [00:23:36]execute_script done [00:23:36]execute_script returns [00:23:36]free content buf [00:23:36]Sock 9.Close socket [00:23:36]Sock 9.Thread stoped [00:23:36]accept exits with 7 [00:23:36]New connection [00:23:36]New thread 3067149668 created [00:23:36]Thread 3067293028 joined [00:23:36]Waiting for new connection... [00:23:36] Sock 7.Parse request [00:23:36]Sock 7.Check first char [00:23:36]Sock 7.First char is OK [00:23:36]request: POST /json_proto HTTP/1.0 [00:23:36]Method: POST [00:23:36]URL: /json_proto [00:23:36]Method is POST - this is cgi request [00:23:36]url: /json_proto [00:23:36]query_string will be loaded in cgi processing [00:23:36]execute_cgi json_proto POST (null) [00:23:36]execute_cgi path=json_proto method=POST [00:23:36]POST find Content-Length [00:23:36]Host: 172.17.60.7:8080 [00:23:36]Content-Length: 331 [00:23:36]Content-Type: application/json [00:23:36] [00:23:36]POST finish read [00:23:36]Found Content-Length = 331 [00:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:36]execute_script... [00:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:37]POST & json_proto [00:23:37]process_json_proto [00:23:37]json parsed OK: [00:23:37]protocol is kg_v1.0 [00:23:37]action value=get_value [00:23:37]process_action get_value [00:23:37]cmd_get_value [00:23:37]process_action get_value done [00:23:37]requested_data is exist [00:23:37]produce_requested_data [00:23:37]requested_item fm.sale.total is exist - process it [00:23:37]SAM_PROTO_GetFMData [00:23:37]wFMCommunicate request_size=4 [00:23:37]MH_SAM_APDU [00:23:37]CAPDU: 80 13 03 00 [00:23:37]Write to MH i2c: E2 08 00 2F 2F 80 13 03 00 00 00 00 00 DD [00:23:37]Write i2c OK [00:23:37]MH_I2C_Read... [00:23:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:37]Read from MH i2c: E2 [00:23:37]MH_I2C_Read... [00:23:37]Read from MH i2c: E2 FD 00 [00:23:37]MH_I2C_Read... [00:23:37]Read from MH i2c: E2 FD 00 2F 2F 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 8B [00:23:37]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:23:37]wFMCommunicate OK [00:23:37]wFMCommunicate request_size=4 [00:23:37]MH_SAM_APDU [00:23:37]CAPDU: 80 17 00 00 [00:23:37]Write to MH i2c: E2 08 00 30 2F 80 17 00 00 00 00 00 00 DF [00:23:37]Write i2c OK [00:23:37]MH_I2C_Read... [00:23:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:37]Read from MH i2c: E2 [00:23:37]MH_I2C_Read... [00:23:37]Read from MH i2c: E2 FD 00 [00:23:37]MH_I2C_Read... [00:23:37]Read from MH i2c: E2 FD 00 30 2F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [00:23:37]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:37]wFMCommunicate OK [00:23:37]wFMCommunicate request_size=4 [00:23:37]MH_SAM_APDU [00:23:37]CAPDU: 80 17 00 00 [00:23:37]Write to MH i2c: E2 08 00 31 2F 80 17 00 00 00 00 00 00 E0 [00:23:37]Write i2c OK [00:23:37]MH_I2C_Read... [00:23:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:38]Read from MH i2c: E2 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 FD 00 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 FD 00 31 2F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 80 [00:23:38]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:23:38]wFMCommunicate OK [00:23:38]wFMCommunicate request_size=4 [00:23:38]MH_SAM_APDU [00:23:38]CAPDU: 80 17 00 00 [00:23:38]Write to MH i2c: E2 08 00 32 2F 80 17 00 00 00 00 00 00 E1 [00:23:38]Write i2c OK [00:23:38]MH_I2C_Read... [00:23:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:38]Read from MH i2c: E2 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 FD 00 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 FD 00 32 2F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 66 [00:23:38]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:23:38]wFMCommunicate OK [00:23:38]wFMCommunicate request_size=4 [00:23:38]MH_SAM_APDU [00:23:38]CAPDU: 80 17 00 00 [00:23:38]Write to MH i2c: E2 08 00 33 2F 80 17 00 00 00 00 00 00 E2 [00:23:38]Write i2c OK [00:23:38]MH_I2C_Read... [00:23:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:23:38]Read from MH i2c: E2 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 DE 00 [00:23:38]MH_I2C_Read... [00:23:38]Read from MH i2c: E2 DE 00 33 2F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [00:23:38]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:38]wFMCommunicate OK [00:23:38]SAM_PROTO_GetFMData done [00:23:38]requested_item fm.sale_refund.total is exist - process it [00:23:38]requested_item fm.buy.total is exist - process it [00:23:38]requested_item shift.sale.total is exist - process it [00:23:38]SAM_PROTO_GetShiftData [00:23:38]wFMCommunicate request_size=4 [00:23:38]MH_SAM_APDU [00:23:38]CAPDU: 80 13 02 00 [00:23:38]Write to MH i2c: E2 08 00 34 2F 80 13 02 00 00 00 00 00 E1 [00:23:38]Write i2c OK [00:23:38]MH_I2C_Read... [00:23:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:39]Read from MH i2c: E2 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 FD 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 FD 00 34 2F 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 61 [00:23:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:23:39]wFMCommunicate OK [00:23:39]wFMCommunicate request_size=4 [00:23:39]MH_SAM_APDU [00:23:39]CAPDU: 80 17 00 00 [00:23:39]Write to MH i2c: E2 08 00 35 2F 80 17 00 00 00 00 00 00 E4 [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:39]Read from MH i2c: E2 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 FD 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 FD 00 35 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 06 [00:23:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:23:39]wFMCommunicate OK [00:23:39]wFMCommunicate request_size=4 [00:23:39]MH_SAM_APDU [00:23:39]CAPDU: 80 17 00 00 [00:23:39]Write to MH i2c: E2 08 00 36 2F 80 17 00 00 00 00 00 00 E5 [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:39]Read from MH i2c: E2 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 FD 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 FD 00 36 2F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 9C [00:23:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:23:39]wFMCommunicate OK [00:23:39]wFMCommunicate request_size=4 [00:23:39]MH_SAM_APDU [00:23:39]CAPDU: 80 17 00 00 [00:23:39]Write to MH i2c: E2 08 00 37 2F 80 17 00 00 00 00 00 00 E6 [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:40]Read from MH i2c: E2 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 FD 00 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 FD 00 37 2F 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 58 [00:23:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:23:40]wFMCommunicate OK [00:23:40]wFMCommunicate request_size=4 [00:23:40]MH_SAM_APDU [00:23:40]CAPDU: 80 17 00 00 [00:23:40]Write to MH i2c: E2 08 00 38 2F 80 17 00 00 00 00 00 00 E7 [00:23:40]Write i2c OK [00:23:40]MH_I2C_Read... [00:23:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:23:40]Read from MH i2c: E2 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 CB 00 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 CB 00 38 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D0 [00:23:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:40]wFMCommunicate OK [00:23:40]SAM_PROTO_GetShiftData done [00:23:40]requested_item shift.sale.total_cash is exist - process it [00:23:40]requested_item shift.sale_refund.total is exist - process it [00:23:40]requested_item shift.sale_refund.total_cash is exist - process it [00:23:40]requested_item shift.buy.total is exist - process it [00:23:40]requested_item shift.buy.total_cash is exist - process it [00:23:40]produce_requested_data done [00:23:40]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:40]process_action_free get_value [00:23:40]json_value_free [00:23:40]json_value_free done [00:23:40]process_json_proto returns [00:23:40]Send response to host [00:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:40]free response buf [00:23:40]execute_script done [00:23:40]execute_script returns [00:23:40]free content buf [00:23:40]Sock 7.Close socket [00:23:40]Sock 7.Thread stoped [00:23:40]accept exits with 9 [00:23:40]New connection [00:23:40]New thread 3067293028 created [00:23:40]Thread 3067149668 joined [00:23:40]Waiting for new connection... [00:23:40] Sock 9.Parse request [00:23:40]Sock 9.Check first char [00:23:40]Sock 9.First char is OK [00:23:40]request: POST /json_proto HTTP/1.0 [00:23:40]Method: POST [00:23:40]URL: /json_proto [00:23:40]Method is POST - this is cgi request [00:23:40]url: /json_proto [00:23:40]query_string will be loaded in cgi processing [00:23:40]execute_cgi json_proto POST (null) [00:23:40]execute_cgi path=json_proto method=POST [00:23:40]POST find Content-Length [00:23:40]Host: 172.17.60.7:8080 [00:23:40]Content-Length: 331 [00:23:40]Content-Type: application/json [00:23:40] [00:23:40]POST finish read [00:23:40]Found Content-Length = 331 [00:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:40]execute_script... [00:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:40]POST & json_proto [00:23:40]process_json_proto [00:23:40]json parsed OK: [00:23:40]protocol is kg_v1.0 [00:23:40]action value=get_value [00:23:40]process_action get_value [00:23:40]cmd_get_value [00:23:40]process_action get_value done [00:23:40]requested_data is exist [00:23:40]produce_requested_data [00:23:40]requested_item fm.sale.total is exist - process it [00:23:40]SAM_PROTO_GetFMData [00:23:40]wFMCommunicate request_size=4 [00:23:40]MH_SAM_APDU [00:23:40]CAPDU: 80 13 03 00 [00:23:40]Write to MH i2c: E2 08 00 39 2F 80 13 03 00 00 00 00 00 E7 [00:23:40]Write i2c OK [00:23:40]MH_I2C_Read... [00:23:40]OFD Sender: No OFD packet to send [00:23:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:40]Read from MH i2c: E2 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 FD 00 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 FD 00 39 2F 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 95 [00:23:40]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 17 00 00 [00:23:41]Write to MH i2c: E2 08 00 3A 2F 80 17 00 00 00 00 00 00 E9 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 FD 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 FD 00 3A 2F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:23:41]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 17 00 00 [00:23:41]Write to MH i2c: E2 08 00 3B 2F 80 17 00 00 00 00 00 00 EA [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 FD 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 FD 00 3B 2F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 8A [00:23:41]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 17 00 00 [00:23:41]Write to MH i2c: E2 08 00 3C 2F 80 17 00 00 00 00 00 00 EB [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:42]Read from MH i2c: E2 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: E2 FD 00 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: E2 FD 00 3C 2F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 70 [00:23:42]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:23:42]wFMCommunicate OK [00:23:42]wFMCommunicate request_size=4 [00:23:42]MH_SAM_APDU [00:23:42]CAPDU: 80 17 00 00 [00:23:42]Write to MH i2c: E2 08 00 3D 2F 80 17 00 00 00 00 00 00 EC [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:23:42]Read from MH i2c: E2 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: E2 DE 00 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: E2 DE 00 3D 2F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CB [00:23:42]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:42]wFMCommunicate OK [00:23:42]SAM_PROTO_GetFMData done [00:23:42]requested_item fm.sale_refund.total is exist - process it [00:23:42]requested_item fm.buy.total is exist - process it [00:23:42]requested_item shift.sale.total is exist - process it [00:23:42]SAM_PROTO_GetShiftData [00:23:42]wFMCommunicate request_size=4 [00:23:42]MH_SAM_APDU [00:23:42]CAPDU: 80 13 02 00 [00:23:42]Write to MH i2c: E2 08 00 3E 2F 80 13 02 00 00 00 00 00 EB [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 FD 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 FD 00 3E 2F 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6B [00:23:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:23:43]wFMCommunicate OK [00:23:43]wFMCommunicate request_size=4 [00:23:43]MH_SAM_APDU [00:23:43]CAPDU: 80 17 00 00 [00:23:43]Write to MH i2c: E2 08 00 3F 2F 80 17 00 00 00 00 00 00 EE [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 FD 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 FD 00 3F 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 10 [00:23:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:23:43]wFMCommunicate OK [00:23:43]wFMCommunicate request_size=4 [00:23:43]MH_SAM_APDU [00:23:43]CAPDU: 80 17 00 00 [00:23:43]Write to MH i2c: E2 08 00 40 2F 80 17 00 00 00 00 00 00 EF [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 FD 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 FD 00 40 2F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A6 [00:23:44]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:23:44]wFMCommunicate OK [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 17 00 00 [00:23:44]Write to MH i2c: E2 08 00 41 2F 80 17 00 00 00 00 00 00 F0 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 FD 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 FD 00 41 2F 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 62 [00:23:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:23:44]wFMCommunicate OK [00:23:44]wFMCommunicate request_size=4 [00:23:44]MH_SAM_APDU [00:23:44]CAPDU: 80 17 00 00 [00:23:44]Write to MH i2c: E2 08 00 42 2F 80 17 00 00 00 00 00 00 F1 [00:23:44]Write i2c OK [00:23:44]MH_I2C_Read... [00:23:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:23:44]Read from MH i2c: E2 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 CB 00 [00:23:44]MH_I2C_Read... [00:23:44]Read from MH i2c: E2 CB 00 42 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [00:23:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:45]wFMCommunicate OK [00:23:45]SAM_PROTO_GetShiftData done [00:23:45]requested_item shift.sale.total_cash is exist - process it [00:23:45]requested_item shift.sale_refund.total is exist - process it [00:23:45]requested_item shift.sale_refund.total_cash is exist - process it [00:23:45]requested_item shift.buy.total is exist - process it [00:23:45]requested_item shift.buy.total_cash is exist - process it [00:23:45]produce_requested_data done [00:23:45]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:45]process_action_free get_value [00:23:45]json_value_free [00:23:45]json_value_free done [00:23:45]process_json_proto returns [00:23:45]Send response to host [00:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:45]free response buf [00:23:45]execute_script done [00:23:45]execute_script returns [00:23:45]free content buf [00:23:45]Sock 9.Close socket [00:23:45]Sock 9.Thread stoped [00:23:45]accept exits with 7 [00:23:45]New connection [00:23:45]New thread 3067149668 created [00:23:45]Thread 3067293028 joined [00:23:45]Waiting for new connection... [00:23:45] Sock 7.Parse request [00:23:45]Sock 7.Check first char [00:23:45]Sock 7.First char is OK [00:23:45]request: POST /json_proto HTTP/1.0 [00:23:45]Method: POST [00:23:45]URL: /json_proto [00:23:45]Method is POST - this is cgi request [00:23:45]url: /json_proto [00:23:45]query_string will be loaded in cgi processing [00:23:45]execute_cgi json_proto POST (null) [00:23:45]execute_cgi path=json_proto method=POST [00:23:45]POST find Content-Length [00:23:45]Host: 172.17.60.7:8080 [00:23:45]Content-Length: 284 [00:23:45]Content-Type: application/json [00:23:45] [00:23:45]POST finish read [00:23:45]Found Content-Length = 284 [00:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0440\u0434\u0430\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:45]execute_script... [00:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0440\u0434\u0430\u0440\u0431\u0435\u043A\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:45]POST & json_proto [00:23:45]process_json_proto [00:23:45]json parsed OK: [00:23:45]protocol is kg_v1.0 [00:23:45]action value=close_shift [00:23:45]process_action close_shift [00:23:45]cmd_close_shift [00:23:45]MH_GetDate [00:23:45]Write to MH i2c: F0 00 00 43 2F 61 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: F0 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: F0 09 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: F0 09 00 43 2F 00 98 A7 BA 66 63 9B 67 64 92 [00:23:45]GetLastDocTimeStamp 1723508574 [00:23:45]current date 1723508632 [00:23:45]FM_GetShiftState [00:23:45]SAM_PROTO_GetShiftState [00:23:45]wFMCommunicate request_size=4 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 13 01 00 [00:23:45]Write to MH i2c: E2 08 00 44 2F 80 13 01 00 00 00 00 00 F0 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 0E 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 0E 00 44 2F 00 09 00 01 DC 57 B9 66 00 00 00 00 90 00 4E [00:23:45]RAPDU: 09 00 01 DC 57 B9 66 00 00 00 00 90 00 [00:23:45]wFMCommunicate OK [00:23:45]SAM_PROTO_GetShiftState done [00:23:45]FM_GetShiftState done [00:23:45]KKMCreateCloseShiftDocument [00:23:45]Load OK [00:23:45]Malloc new data [00:23:45]MH_GetDate [00:23:45]Write to MH i2c: F0 00 00 45 2F 63 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: F0 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: F0 09 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: F0 09 00 45 2F 00 98 A7 BA 66 63 9B 67 64 94 [00:23:45]Malloc new data [00:23:45]Malloc new data [00:23:45]Malloc new data [00:23:45]Malloc new data [00:23:45]KKMCreateCloseShiftDocument OK [00:23:45]KKMSetCloseShiftData OK [00:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=79 [00:23:45]tlvbuf is 012B40D0 [00:23:45]KKMLoadAndSignCloseShiftData [00:23:45]SAM_PROTO_ProcessDocument [00:23:45]wFMCommunicate request_size=9 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 15 01 00 04 05 00 4F 00 [00:23:45]Write to MH i2c: E2 0C 00 46 2F 80 15 01 00 04 00 05 00 4F 00 00 00 50 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 46 2F 00 90 00 E9 [00:23:45]RAPDU: 90 00 [00:23:45]wFMCommunicate OK [00:23:45]wFMCommunicate request_size=23 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:23:45]Write to MH i2c: E2 1A 00 47 2F 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 EB [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 47 2F 00 90 00 EA [00:23:45]RAPDU: 90 00 [00:23:45]wFMCommunicate OK [00:23:45]wFMCommunicate request_size=38 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 A1 D0 B0 D1 80 D0 B4 D0 B0 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 97 2E 20 [00:23:45]Write to MH i2c: E2 29 00 48 2F 80 15 02 00 21 00 FD 03 1D 00 D0 A1 D0 B0 D1 80 D0 B4 D0 B0 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 97 2E 20 00 00 E2 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 48 2F 00 90 00 EB [00:23:45]RAPDU: 90 00 [00:23:45]wFMCommunicate OK [00:23:45]wFMCommunicate request_size=13 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 15 02 00 08 F4 03 04 00 98 A7 BA 66 [00:23:45]Write to MH i2c: E2 10 00 49 2F 80 15 02 00 08 00 F4 03 04 00 98 A7 BA 66 00 00 62 [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 49 2F 00 90 00 EC [00:23:45]RAPDU: 90 00 [00:23:45]wFMCommunicate OK [00:23:45]wFMCommunicate request_size=25 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 [00:23:45]Write to MH i2c: E2 1C 00 4A 2F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 00 00 5A [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:45]Read from MH i2c: E2 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 [00:23:45]MH_I2C_Read... [00:23:45]Read from MH i2c: E2 03 00 4A 2F 00 90 00 ED [00:23:45]RAPDU: 90 00 [00:23:45]wFMCommunicate OK [00:23:45]wFMCommunicate request_size=4 [00:23:45]MH_SAM_APDU [00:23:45]CAPDU: 80 15 03 00 [00:23:45]Write to MH i2c: E2 08 00 4B 2F 80 15 03 00 00 00 00 00 FB [00:23:45]Write i2c OK [00:23:45]MH_I2C_Read... [00:23:45]OFD Sender: No OFD packet to send [00:23:46]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:23:46]Read from MH i2c: E2 [00:23:46]MH_I2C_Read... [00:23:46]Read from MH i2c: E2 FD 00 [00:23:46]MH_I2C_Read... [00:23:46]Read from MH i2c: E2 FD 00 4B 2F 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 29 CE 00 00 0E 04 04 00 BF 01 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 8F [00:23:46]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 29 CE 00 00 0E 04 04 00 BF 01 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:23:46]wFMCommunicate OK [00:23:46]SAM_PROTO_ProcessDocument answer len = 1265 [00:23:46]SAM_PROTO_ProcessDocument remain to read = 1017 [00:23:46]wFMCommunicate request_size=4 [00:23:46]MH_SAM_APDU [00:23:46]CAPDU: 80 17 00 00 [00:23:46]Write to MH i2c: E2 08 00 4C 2F 80 17 00 00 00 00 00 00 FB [00:23:46]Write i2c OK [00:23:46]MH_I2C_Read... [00:23:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:46]Read from MH i2c: E2 [00:23:46]MH_I2C_Read... [00:23:46]Read from MH i2c: E2 FD 00 [00:23:46]MH_I2C_Read... [00:23:46]Read from MH i2c: E2 FD 00 4C 2F 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 44 [00:23:46]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:23:46]wFMCommunicate OK [00:23:46]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:23:46]SAM_PROTO_ProcessDocument remain to read = 767 [00:23:46]wFMCommunicate request_size=4 [00:23:46]MH_SAM_APDU [00:23:46]CAPDU: 80 17 00 00 [00:23:46]Write to MH i2c: E2 08 00 4D 2F 80 17 00 00 00 00 00 00 FC [00:23:46]Write i2c OK [00:23:46]MH_I2C_Read... [00:23:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:47]Read from MH i2c: E2 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 FD 00 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 FD 00 4D 2F 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 5E [00:23:47]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:23:47]wFMCommunicate OK [00:23:47]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:23:47]SAM_PROTO_ProcessDocument remain to read = 517 [00:23:47]wFMCommunicate request_size=4 [00:23:47]MH_SAM_APDU [00:23:47]CAPDU: 80 17 00 00 [00:23:47]Write to MH i2c: E2 08 00 4E 2F 80 17 00 00 00 00 00 00 FD [00:23:47]Write i2c OK [00:23:47]MH_I2C_Read... [00:23:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:47]Read from MH i2c: E2 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 FD 00 [00:23:47]MH_I2C_Read... [00:23:47]Read from MH i2c: E2 FD 00 4E 2F 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 87 [00:23:47]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:23:47]wFMCommunicate OK [00:23:47]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:23:47]SAM_PROTO_ProcessDocument remain to read = 267 [00:23:47]wFMCommunicate request_size=4 [00:23:47]MH_SAM_APDU [00:23:47]CAPDU: 80 17 00 00 [00:23:47]Write to MH i2c: E2 08 00 4F 2F 80 17 00 00 00 00 00 00 FE [00:23:47]Write i2c OK [00:23:47]MH_I2C_Read... [00:23:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:48]Read from MH i2c: E2 [00:23:48]MH_I2C_Read... [00:23:48]Read from MH i2c: E2 FD 00 [00:23:48]MH_I2C_Read... [00:23:48]Read from MH i2c: E2 FD 00 4F 2F 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 C6 [00:23:48]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:23:48]wFMCommunicate OK [00:23:48]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:23:48]SAM_PROTO_ProcessDocument remain to read = 17 [00:23:48]wFMCommunicate request_size=4 [00:23:48]MH_SAM_APDU [00:23:48]CAPDU: 80 17 00 00 [00:23:48]Write to MH i2c: E2 08 00 50 2F 80 17 00 00 00 00 00 00 FF [00:23:48]Write i2c OK [00:23:48]MH_I2C_Read... [00:23:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:23:48]Read from MH i2c: E2 [00:23:48]MH_I2C_Read... [00:23:48]Read from MH i2c: E2 14 00 [00:23:48]MH_I2C_Read... [00:23:48]Read from MH i2c: E2 14 00 50 2F 00 01 00 06 F7 03 00 00 35 04 06 00 E8 72 FD EE 7C F5 90 00 FA [00:23:48]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 E8 72 FD EE 7C F5 90 00 [00:23:48]wFMCommunicate OK [00:23:48]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:23:48]SAM_PROTO_ProcessDocument done [00:23:48]1209 (1) - 1.0 - номер версии ФФД [00:23:48]1041 (16) - 0000000000874715 - номер ФМ [00:23:48]1040 (4) - 52777 - номер ФД [00:23:48]1038 (4) - 447 - номер смены [00:23:48]1118 (4) - 94 - количество кассовых чеков за смену [00:23:48]1111 (4) - 96 - общее количество ФД за смену [00:23:48]1194 (1194) - счетчики итогов смены [00:23:48] 1134 (4) - 94 - количество чеков со всеми признаками расчетов [00:23:48] 1129 (155) - счетчики операций «приход» [00:23:48] 1135 (4) - 94 - количество чеков по признаку расчетов [00:23:48] 1201 (3) - 20249.00 - общая итоговая сумма в чеках [00:23:48] 1136 (3) - 5440.00 - итоговая сумма в чеках наличными [00:23:48] 1138 (3) - 14809.00 - итоговая сумма в чеках безналичными [00:23:48] 1024 (122) - суммы налогов [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 0% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1006 (12) - суммы НДС [00:23:48] 1010 (1) - 12% - код ставки НДС [00:23:48] 1011 (3) - 2150.30 - сумма НДС по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (11) - суммы НСП [00:23:48] 1014 (1) - 1% - код ставки НСП [00:23:48] 1015 (2) - 179.04 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 2% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 3% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 5% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1130 (141) - счетчики операций «возврат прихода» [00:23:48] 1135 (4) - 0 - количество чеков по признаку расчетов [00:23:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:23:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:23:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:23:48] 1024 (117) - суммы налогов [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 0% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 12% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 2% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 3% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 5% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1131 (141) - счетчики операций «расход» [00:23:48] 1135 (4) - 0 - количество чеков по признаку расчетов [00:23:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:23:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:23:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:23:48] 1024 (117) - суммы налогов [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 0% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 12% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 2% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 3% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 5% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1132 (141) - счетчики операций «возврат расхода» [00:23:48] 1135 (4) - 0 - количество чеков по признаку расчетов [00:23:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:23:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:23:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:23:48] 1024 (117) - суммы налогов [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 0% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1006 (9) - суммы НДС [00:23:48] 1010 (1) - 12% - код ставки НДС [00:23:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 2% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 3% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 5% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 0,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1007 (9) - суммы НСП [00:23:48] 1014 (1) - 1,50% - код ставки НСП [00:23:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:23:48] 1133 (588) - - счетчики коррекции - не используются [00:23:48]1077 (6) - 255580584180981 - ФПД [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1209 (04B9) [00:23:48]Malloc new data [00:23:48]Processing tag 1041 (0411) [00:23:48]Processing tag 1040 (0410) [00:23:48]Malloc new data [00:23:48]Processing tag 1038 (040E) [00:23:48]Malloc new data [00:23:48]Processing tag 1118 (045E) [00:23:48]Malloc new data [00:23:48]Processing tag 1111 (0457) [00:23:48]Malloc new data [00:23:48]Processing tag 1194 (04AA) [00:23:48]Load OK [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1134 (046E) [00:23:48]Malloc new data [00:23:48]Processing tag 1129 (0469) [00:23:48]Load OK [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1135 (046F) [00:23:48]Malloc new data [00:23:48]Processing tag 1201 (04B1) [00:23:48]Malloc new data [00:23:48]Processing tag 1136 (0470) [00:23:48]Malloc new data [00:23:48]Processing tag 1138 (0472) [00:23:48]Malloc new data [00:23:48]Processing tag 1024 (0400) [00:23:48]Load OK [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1006 (03EE) [00:23:48]Load OK [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1010 (03F2) [00:23:48]Malloc new data [00:23:48]Processing tag 1011 (03F3) [00:23:48]Malloc new data [00:23:48]SetTLVBufToDocument err=0 [00:23:48]Processing tag 1006 (03EE) [00:23:48]Load OK [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1010 (03F2) [00:23:48]Malloc new data [00:23:48]Processing tag 1011 (03F3) [00:23:48]Malloc new data [00:23:48]SetTLVBufToDocument err=0 [00:23:48]Processing tag 1007 (03EF) [00:23:48]Load OK [00:23:48]SetTLVBufToDocument [00:23:48]Processing tag 1014 (03F6) [00:23:48]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1130 (046A) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1135 (046F) [00:23:49]Malloc new data [00:23:49]Processing tag 1201 (04B1) [00:23:49]Malloc new data [00:23:49]Processing tag 1136 (0470) [00:23:49]Malloc new data [00:23:49]Processing tag 1138 (0472) [00:23:49]Malloc new data [00:23:49]Processing tag 1024 (0400) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1006 (03EE) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1010 (03F2) [00:23:49]Malloc new data [00:23:49]Processing tag 1011 (03F3) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1006 (03EE) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1010 (03F2) [00:23:49]Malloc new data [00:23:49]Processing tag 1011 (03F3) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1131 (046B) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1135 (046F) [00:23:49]Malloc new data [00:23:49]Processing tag 1201 (04B1) [00:23:49]Malloc new data [00:23:49]Processing tag 1136 (0470) [00:23:49]Malloc new data [00:23:49]Processing tag 1138 (0472) [00:23:49]Malloc new data [00:23:49]Processing tag 1024 (0400) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1006 (03EE) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1010 (03F2) [00:23:49]Malloc new data [00:23:49]Processing tag 1011 (03F3) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1006 (03EE) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1010 (03F2) [00:23:49]Malloc new data [00:23:49]Processing tag 1011 (03F3) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1132 (046C) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1135 (046F) [00:23:49]Malloc new data [00:23:49]Processing tag 1201 (04B1) [00:23:49]Malloc new data [00:23:49]Processing tag 1136 (0470) [00:23:49]Malloc new data [00:23:49]Processing tag 1138 (0472) [00:23:49]Malloc new data [00:23:49]Processing tag 1024 (0400) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1006 (03EE) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1010 (03F2) [00:23:49]Malloc new data [00:23:49]Processing tag 1011 (03F3) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1006 (03EE) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1010 (03F2) [00:23:49]Malloc new data [00:23:49]Processing tag 1011 (03F3) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1007 (03EF) [00:23:49]Load OK [00:23:49]SetTLVBufToDocument [00:23:49]Processing tag 1014 (03F6) [00:23:49]Malloc new data [00:23:49]Processing tag 1015 (03F7) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1133 (046D) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Processing tag 1077 (0435) [00:23:49]Malloc new data [00:23:49]SetTLVBufToDocument err=0 [00:23:49]Malloc new data [00:23:49]SAM_PROTO_GetFMData [00:23:49]wFMCommunicate request_size=4 [00:23:49]MH_SAM_APDU [00:23:49]CAPDU: 80 13 03 00 [00:23:49]Write to MH i2c: E2 08 00 51 2F 80 13 03 00 00 00 00 00 FF [00:23:49]Write i2c OK [00:23:49]MH_I2C_Read... [00:23:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:50]Read from MH i2c: E2 [00:23:50]MH_I2C_Read... [00:23:50]Read from MH i2c: E2 FD 00 [00:23:50]MH_I2C_Read... [00:23:50]Read from MH i2c: E2 FD 00 51 2F 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 AD [00:23:50]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:23:50]wFMCommunicate OK [00:23:50]wFMCommunicate request_size=4 [00:23:50]MH_SAM_APDU [00:23:50]CAPDU: 80 17 00 00 [00:23:50]Write to MH i2c: E2 08 00 52 2F 80 17 00 00 00 00 00 00 01 [00:23:50]Write i2c OK [00:23:50]MH_I2C_Read... [00:23:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:50]Read from MH i2c: E2 [00:23:50]MH_I2C_Read... [00:23:50]Read from MH i2c: E2 FD 00 [00:23:50]MH_I2C_Read... [00:23:50]Read from MH i2c: E2 FD 00 52 2F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:23:50]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:50]wFMCommunicate OK [00:23:50]wFMCommunicate request_size=4 [00:23:50]MH_SAM_APDU [00:23:50]CAPDU: 80 17 00 00 [00:23:50]Write to MH i2c: E2 08 00 53 2F 80 17 00 00 00 00 00 00 02 [00:23:50]Write i2c OK [00:23:50]MH_I2C_Read... [00:23:51]OFD Sender: No OFD packet to send [00:23:51]Read from MH i2c: E2 [00:23:51]MH_I2C_Read... [00:23:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:51]Read from MH i2c: E2 FD 00 [00:23:51]MH_I2C_Read... [00:23:51]Read from MH i2c: E2 FD 00 53 2F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 A2 [00:23:51]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:23:51]wFMCommunicate OK [00:23:51]wFMCommunicate request_size=4 [00:23:51]MH_SAM_APDU [00:23:51]CAPDU: 80 17 00 00 [00:23:51]Write to MH i2c: E2 08 00 54 2F 80 17 00 00 00 00 00 00 03 [00:23:51]Write i2c OK [00:23:51]MH_I2C_Read... [00:23:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:51]Read from MH i2c: E2 [00:23:51]MH_I2C_Read... [00:23:51]Read from MH i2c: E2 FD 00 [00:23:51]MH_I2C_Read... [00:23:51]Read from MH i2c: E2 FD 00 54 2F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 88 [00:23:51]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:23:52]wFMCommunicate OK [00:23:52]wFMCommunicate request_size=4 [00:23:52]MH_SAM_APDU [00:23:52]CAPDU: 80 17 00 00 [00:23:52]Write to MH i2c: E2 08 00 55 2F 80 17 00 00 00 00 00 00 04 [00:23:52]Write i2c OK [00:23:52]MH_I2C_Read... [00:23:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:23:52]Read from MH i2c: E2 [00:23:52]MH_I2C_Read... [00:23:52]Read from MH i2c: E2 DE 00 [00:23:52]MH_I2C_Read... [00:23:52]Read from MH i2c: E2 DE 00 55 2F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [00:23:52]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:52]wFMCommunicate OK [00:23:52]SAM_PROTO_GetFMData done [00:23:52]Malloc new data [00:23:52]Malloc new data [00:23:52]Malloc new data [00:23:52]Malloc new data [00:23:52]KKMLoadAndSignCloseShiftData err=0 [00:23:52]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сардарбекова З. 13.08.2024 00:23 Смена: 447 РНМ: 0000000000090834 ЗНМ: 0300000007 СНО: Общий режим Чеков за смену: 94 ФД за смену: 96 Всего чеков: 94 ИТОГИ ПРИХОД Чеков: 94 Общий итог: 20249.00 Итого наличными: 5440.00 Итого безнал.: 14809.00 НДС 0% : 0.00 НДС 12% : 2150.30 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 179.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 5440.00 НС Приход: 11032880.86 НС Возвр.Прихода: 26895.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 52777 ФМ: 0000000000874715 ФПД: 255580584180981 [00:23:52]StoreToDocumentArchive [00:23:52]shift 447 fd 52777 [00:23:52]save to /storage/0447/doc_00052777 [00:23:52]save last doc name /storage/0447/doc_00052777 to /storage/kkm_last_doc_name [00:23:52]save OK [00:23:52]Clear old archive folders... [00:23:52]Remove dir /storage/0266 [00:23:52]opendir ok [00:23:52]file . [00:23:52]file .. [00:23:52]file doc_1723508581 [00:23:52]remove file /storage/0266/doc_1723508581 [00:23:52]remove dir /storage/0266 [00:23:52]NVStorageSaveData kkm_registers [00:23:52]File name is /storage/kkm_registers [00:23:52]Write 24 bytes [00:23:52]NVStorageSaveData done [00:23:52]NVStorageSaveData kkm_registers [00:23:52]File name is /storage/kkm_registers [00:23:52]Write 24 bytes [00:23:52]NVStorageSaveData done [00:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [00:23:52]tlvbuf is 0136BC70 [00:23:52]SAM_PROTO_ClearQueue [00:23:52]wFMCommunicate request_size=4 [00:23:52]MH_SAM_APDU [00:23:52]CAPDU: 80 09 00 00 [00:23:52]Write to MH i2c: E2 08 00 56 2F 80 09 00 00 00 00 00 00 F7 [00:23:52]Write i2c OK [00:23:52]MH_I2C_Read... [00:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:52]Read from MH i2c: E2 [00:23:52]MH_I2C_Read... [00:23:52]Read from MH i2c: E2 03 00 [00:23:52]MH_I2C_Read... [00:23:52]Read from MH i2c: E2 03 00 56 2F 00 90 00 F9 [00:23:52]RAPDU: 90 00 [00:23:52]wFMCommunicate OK [00:23:52]SAM_PROTO_ClearQueue done [00:23:52]KKMCreateOFDPacket [00:23:52]OFDProtocolAddRootSTLVToBuf [00:23:52]FM_MakeSignedData [00:23:52]FM_MakeSignedData [00:23:52]SAM_PROTO_SignData [00:23:52]wFMCommunicate request_size=4 [00:23:52]MH_SAM_APDU [00:23:52]CAPDU: 80 0D 01 02 [00:23:52]Write to MH i2c: E2 08 00 57 2F 80 0D 01 02 00 00 00 00 FF [00:23:52]Write i2c OK [00:23:52]MH_I2C_Read... [00:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:52]Read from MH i2c: E2 [00:23:52]MH_I2C_Read... [00:23:52]Read from MH i2c: E2 03 00 [00:23:52]MH_I2C_Read... [00:23:52]Read from MH i2c: E2 03 00 57 2F 00 90 00 FA [00:23:52]RAPDU: 90 00 [00:23:52]wFMCommunicate OK [00:23:52]wFMCommunicate request_size=255 [00:23:52]MH_SAM_APDU [00:23:52]CAPDU: 80 0D 02 02 FA 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A1 D0 B0 D1 80 D0 B4 D0 B0 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 98 A7 BA 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 AA 04 D5 04 6E 04 04 00 5E 00 00 00 69 04 A2 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A [00:23:52]Write to MH i2c: E2 02 01 58 2F 80 0D 02 02 FA 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A1 D0 B0 D1 80 D0 B4 D0 B0 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 98 A7 BA 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 AA 04 D5 04 6E 04 04 00 5E 00 00 00 69 04 A2 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 6E [00:23:53]Write i2c OK [00:23:53]MH_I2C_Read... [00:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:53]Read from MH i2c: E2 [00:23:53]MH_I2C_Read... [00:23:53]Read from MH i2c: E2 03 00 [00:23:53]MH_I2C_Read... [00:23:53]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [00:23:53]RAPDU: 90 00 [00:23:53]wFMCommunicate OK [00:23:53]wFMCommunicate request_size=255 [00:23:53]MH_SAM_APDU [00:23:53]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 [00:23:53]Write to MH i2c: E2 02 01 59 2F 80 0D 02 02 FA 00 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 00 A6 [00:23:53]Write i2c OK [00:23:53]MH_I2C_Read... [00:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:53]Read from MH i2c: E2 [00:23:53]MH_I2C_Read... [00:23:53]Read from MH i2c: E2 03 00 [00:23:53]MH_I2C_Read... [00:23:53]Read from MH i2c: E2 03 00 59 2F 00 90 00 FC [00:23:53]RAPDU: 90 00 [00:23:53]wFMCommunicate OK [00:23:53]wFMCommunicate request_size=255 [00:23:53]MH_SAM_APDU [00:23:53]CAPDU: 80 0D 02 02 FA 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A [00:23:54]Write to MH i2c: E2 02 01 5A 2F 80 0D 02 02 FA 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 00 C7 [00:23:54]Write i2c OK [00:23:54]MH_I2C_Read... [00:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:54]Read from MH i2c: E2 [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: E2 03 00 [00:23:54]MH_I2C_Read... [00:23:54]Read from MH i2c: E2 03 00 5A 2F 00 90 00 FD [00:23:54]RAPDU: 90 00 [00:23:54]wFMCommunicate OK [00:23:54]wFMCommunicate request_size=255 [00:23:54]MH_SAM_APDU [00:23:54]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 [00:23:54]Write to MH i2c: E2 02 01 5B 2F 80 0D 02 02 FA 00 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 00 00 C0 [00:23:54]Write i2c OK [00:23:54]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 5B 2F 00 90 00 FE [00:23:55]RAPDU: 90 00 [00:23:55]wFMCommunicate OK [00:23:55]wFMCommunicate request_size=255 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 0D 02 02 FA 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE [00:23:55]Write to MH i2c: E2 02 01 5C 2F 80 0D 02 02 FA 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 00 00 91 [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 03 00 5C 2F 00 90 00 FF [00:23:55]RAPDU: 90 00 [00:23:55]wFMCommunicate OK [00:23:55]wFMCommunicate request_size=146 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 0D 02 02 8D 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 29 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 E8 72 FD EE 7C F5 [00:23:55]Write to MH i2c: E2 95 00 5D 2F 80 0D 02 02 8D 00 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 29 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 E8 72 FD EE 7C F5 00 00 00 [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:56]OFD Sender: No OFD packet to send [00:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 03 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 03 00 5D 2F 00 90 00 00 [00:23:56]RAPDU: 90 00 [00:23:56]wFMCommunicate OK [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 0D 03 02 [00:23:56]Write to MH i2c: E2 08 00 5E 2F 80 0D 03 02 00 00 00 00 08 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 0B 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 0B 00 5E 2F 00 DB 12 EA E4 72 9B FC 5B 90 00 28 [00:23:56]RAPDU: DB 12 EA E4 72 9B FC 5B 90 00 [00:23:56]wFMCommunicate OK [00:23:56]SAM_PROTO_SignData done [00:23:56]FM_MakeSignedData done [00:23:56]CreateOFDProtocolMessage [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 11 00 00 [00:23:56]Write to MH i2c: E2 08 00 5F 2F 80 11 00 00 00 00 00 00 08 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 17 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 17 00 5F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 5B [00:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:23:56]wFMCommunicate OK [00:23:56]CreateOFDProtocolMessage done [00:23:56]OFDSenderStorePacket 52777 [00:23:56]StoreOFDPacket docnum=52777 [00:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 7F 05 00 00 73 BB 77 05 F6 5B 5A 05 01 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A1 D0 B0 D1 80 D0 B4 D0 B0 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 98 A7 BA 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 AA 04 D5 04 6E 04 04 00 5E 00 00 00 69 04 A2 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 29 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 E8 72 FD EE 7C F5 DB 12 EA E4 72 9B FC 5B [00:23:56]CheckFolder [00:23:56]dirname=/storage/ofd_packets [00:23:56]CheckFolder done [00:23:56]ProducePacketName [00:23:56]name=ofd_packets/00052777 [00:23:56]NVStorageSaveData ofd_packets/00052777 [00:23:56]File name is /storage/ofd_packets/00052777 [00:23:56]Write 1437 bytes [00:23:56]NVStorageSaveData done [00:23:56]OFDSenderStorePacket done [00:23:56]KKMCreateOFDPacket done [00:23:56]NVStorageSaveData kkm_last_timestamp [00:23:56]File name is /storage/kkm_last_timestamp [00:23:56]Write 4 bytes [00:23:56]NVStorageSaveData done [00:23:56]ExternCall_PrintAddStr [00:23:56]wPrintStart [00:23:56]Write to MH i2c: 01 00 00 60 2F 8F [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]OFD Sender: Processing packet 52777 [packets to send 55, broken 54] [00:23:56]ProducePacketName [00:23:56]name=ofd_packets/00052777 [00:23:56]OFD Sender: To server: pG, [00:23:56]CommunicateWithHost lk.salyk.kg:30040 [00:23:56]ConnectInit lk.salyk.kg [00:23:56]Read from MH i2c: 01 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: 01 07 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: 01 07 00 60 2F 00 00 00 00 00 FF 0F A4 [00:23:56]RasterBufferAndPrint [00:23:56]line Отчет о закрытии смены [00:23:56]line ФФД: 1.0 [00:23:56]line ИНН: 02508201610067 [00:23:56]line Кассир: Сардарбекова З. [00:23:56]line 13.08.2024 00:23 [00:23:56]line Смена: 447 [00:23:56]line РНМ: 0000000000090834 [00:23:56]line ЗНМ: 0300000007 [00:23:56]line СНО: Общий режим [00:23:56]line Чеков за смену: 94 [00:23:56]line ФД за смену: 96 [00:23:56]line Всего чеков: 94 [00:23:56]line ИТОГИ ПРИХОД [00:23:56]line Чеков: 94 [00:23:56]line Общий итог: 20249.00 [00:23:56]line Итого наличными: 5440.00 [00:23:56]line Итого безнал.: 14809.00 [00:23:56]line НДС 0% : 0.00 [00:23:56]line НДС 12% : 2150.30 [00:23:56]line НСП 0% : 0.00 [00:23:56]line НСП 1,50% : 0.00 [00:23:56]line НСП 0,50% : 0.00 [00:23:56]line НСП 5% : 0.00 [00:23:56]line НСП 3% : 0.00 [00:23:56]line НСП 2% : 0.00 [00:23:56]line НСП 1% : 179.04 [00:23:56]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:23:56]line Чеков: 0 [00:23:56]line Общий итог: 0.00 [00:23:56]line Итого наличными: 0.00 [00:23:56]line Итого безнал.: 0.00 [00:23:56]line НДС 0% : 0.00 [00:23:56]line НДС 12% : 0.00 [00:23:56]line НСП 0% : 0.00 [00:23:56]line НСП 1,50% : 0.00 [00:23:56]line НСП 0,50% : 0.00 [00:23:56]line НСП 5% : 0.00 [00:23:56]line НСП 3% : 0.00 [00:23:56]line НСП 2% : 0.00 [00:23:56]line НСП 1% : 0.00 [00:23:56]line ИТОГИ РАСХОД [00:23:56]line Чеков: 0 [00:23:56]line Общий итог: 0.00 [00:23:56]line Итого наличными: 0.00 [00:23:56]line Итого безнал.: 0.00 [00:23:56]line НДС 0% : 0.00 [00:23:56]line НДС 12% : 0.00 [00:23:56]line НСП 0% : 0.00 [00:23:56]line НСП 1,50% : 0.00 [00:23:56]line НСП 0,50% : 0.00 [00:23:56]line НСП 5% : 0.00 [00:23:56]line НСП 3% : 0.00 [00:23:56]line НСП 2% : 0.00 [00:23:56]line НСП 1% : 0.00 [00:23:56]line ИТОГИ ВОЗВРАТ РАСХОДА [00:23:56]line Чеков: 0 [00:23:56]line Общий итог: 0.00 [00:23:56]line Итого наличными: 0.00 [00:23:56]line Итого безнал.: 0.00 [00:23:56]line НДС 0% : 0.00 [00:23:56]line НДС 12% : 0.00 [00:23:56]line НСП 0% : 0.00 [00:23:56]line НСП 1,50% : 0.00 [00:23:56]line НСП 0,50% : 0.00 [00:23:56]line НСП 5% : 0.00 [00:23:56]line НСП 3% : 0.00 [00:23:56]line НСП 2% : 0.00 [00:23:56]line НСП 1% : 0.00 [00:23:56]line Сумма внесений: 0.00 [00:23:56]line Сумма выплат: 0.00 [00:23:56]line Нал. в кассе: 5440.00 [00:23:56]line НС Приход: 11032880.86 [00:23:56]line НС Возвр.Прихода: 26895.00 [00:23:56]line НС Расход: 0.00 [00:23:56]line НС Возвр.Расхода: 0.00 [00:23:56]line ФД: 52777 [00:23:56]line ФМ: 0000000000874715 [00:23:56]line ФПД: 255580584180981 [00:23:56]written 0, free lines is 4095 [00:23:56]Connected sock=10 [00:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 7F 05 00 00 73 BB 77 05 F6 5B 5A 05 01 00 05 00 6B 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A1 D0 B0 D1 80 D0 B4 D0 B0 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 98 A7 BA 66 0E 04 04 00 BF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 AA 04 D5 04 6E 04 04 00 5E 00 00 00 69 04 A2 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 Write to MH i2c: EF 01 03 00 09 00 00 B0 F6 2F 03 DF 01 [00:23:57]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:23:57]03 MH_I2C_Read... [00:23:57]01 Read from MH i2c: 00 01 04 [00:23:57]F7 MH_I2C_Read... [00:23:57]03 00 00 Read from MH i2c: EF 01 03 07 09 00 00 [00:23:57]F6 MH_I2C_Read... [00:23:57]03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 Read from MH i2c: 00 01 D0 07 04 00 8D B0 00 2F 6F 00 04 00 04 00 00 00 00 00 00 4A 00 0A 00 3A B1 [00:23:57]04 RasterBufferAndPrint [00:23:57]00 line [00:23:57]00 line [00:23:57]70 line [00:23:57]04 line [00:23:57]00 line [00:23:57]00 72 04 00 00 written 0, free lines is 2771 [00:23:57]00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 MH_Cut [00:23:57]03 Write to MH i2c: 01 D1 00 01 01 00 F3 B7 03 2F 00 01 00 B8 EF [00:23:57]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:23:57]03 MH_I2C_Read... [00:23:57]01 00 01 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 [00:23:57]03 MH_I2C_Read... [00:23:57]01 Read from MH i2c: 00 D1 02 01 F7 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 [00:23:57]00 MH_I2C_Read... [00:23:57]EF Read from MH i2c: 03 D1 09 01 00 00 F6 B7 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 2F 05 F7 00 03 B7 00 [00:23:57]00 Write to MH i2c: EF 01 03 00 09 00 00 B8 F6 2F 03 E7 01 [00:23:57]00 06 Write i2c OK [00:23:57]F7 MH_I2C_Read... [00:23:57]03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 29 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 E8 72 FD EE 7C F5 DB 12 EA E4 72 9B FC 5B [00:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 B1 6B 47 00 3E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 29 CE 00 00 F4 03 04 00 3B 4F BA 66 B6 04 01 00 00 B0 34 E6 D2 C9 04 D4 FF [00:23:58]CommunicateWithHost err = 0 [00:23:58]CheckOFDResponse [00:23:58]1017 (14) - 77093643461234 [00:23:58]1041 (16) - 0000000000874715 [00:23:58]1040 (4) - 52777 [00:23:58]1012 (4) - 12.08.2024 18:06 [00:23:58]1206 (1) - 0 [00:23:58]OFD Sender: Remove packet 52777 [00:23:58]ProducePacketName [00:23:58]name=ofd_packets/00052777 [00:23:58]NVStorageDeleteData [00:23:58]*** Cut start [00:23:58]*** Purtial cut [00:23:58]*** Stage 1: CUTSNS_PIN = 1 [00:23:58]OFD Sender: No OFD packet to send [00:23:59]Read from MH i2c: 01 [00:23:59]MH_I2C_Read... [00:23:59]*** Stop cut motor [00:23:59]*** Cut end [00:23:59]Read from MH i2c: 01 07 00 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: 01 07 00 B8 2F 00 00 00 00 00 FF 0F FC [00:23:59]process_action close_shift done [00:23:59]requested_data is exist [00:23:59]produce_requested_data [00:23:59]requested_item fd.num is exist - process it [00:23:59]SAM_PROTO_GetFieldsCounters [00:23:59]wFMCommunicate request_size=4 [00:23:59]MH_SAM_APDU [00:23:59]CAPDU: 80 13 00 00 [00:23:59]Write to MH i2c: E2 08 00 B9 2F 80 13 00 00 00 00 00 00 64 [00:23:59]Write i2c OK [00:23:59]MH_I2C_Read... [00:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:59]Read from MH i2c: E2 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 62 00 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 62 00 B9 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 29 CE 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [00:23: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 29 CE 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:59]wFMCommunicate OK [00:23:59]SAM_PROTO_GetFieldsCounters done [00:23:59]requested_item shift.num is exist - process it [00:23:59]requested_item shift.opened is exist - process it [00:23:59]req_shift_opened [00:23:59]FM_GetShiftState [00:23:59]SAM_PROTO_GetShiftState [00:23:59]wFMCommunicate request_size=4 [00:23:59]MH_SAM_APDU [00:23:59]CAPDU: 80 13 01 00 [00:23:59]Write to MH i2c: E2 08 00 BA 2F 80 13 01 00 00 00 00 00 66 [00:23:59]Write i2c OK [00:23:59]MH_I2C_Read... [00:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:59]Read from MH i2c: E2 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 0E 00 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 0E 00 BA 2F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 71 [00:23:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:59]wFMCommunicate OK [00:23:59]SAM_PROTO_GetShiftState done [00:23:59]FM_GetShiftState done [00:23:59]req_shift_opened done [00:23:59]requested_item shift.open_date is exist - process it [00:23:59]req_shift_open_date [00:23:59]FM_GetShiftState [00:23:59]SAM_PROTO_GetShiftState [00:23:59]wFMCommunicate request_size=4 [00:23:59]MH_SAM_APDU [00:23:59]CAPDU: 80 13 01 00 [00:23:59]Write to MH i2c: E2 08 00 BB 2F 80 13 01 00 00 00 00 00 67 [00:23:59]Write i2c OK [00:23:59]MH_I2C_Read... [00:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:59]Read from MH i2c: E2 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 0E 00 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 0E 00 BB 2F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 72 [00:23:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:59]wFMCommunicate OK [00:23:59]SAM_PROTO_GetShiftState done [00:23:59]FM_GetShiftState done [00:23:59]req_shift_open_date done [00:23:59]produce_requested_data done [00:23:59]produce_requested_data return {"fd.num":52777,"shift.num":447,"shift.opened":0,"shift.open_date":0} [00:23:59]process_action_free close_shift [00:23:59]json_value_free [00:23:59]json_value_free done [00:23:59]process_json_proto returns [00:23:59]Send response to host [00:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":52777,"shift.num":447,"shift.opened":0,"shift.open_date":0}}} [00:23:59]free response buf [00:23:59]execute_script done [00:23:59]execute_script returns [00:23:59]free content buf [00:23:59]Sock 7.Close socket [00:23:59]Sock 7.Thread stoped [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:01]accept exits with 9 [00:27:01]New connection [00:27:01]New thread 3067293028 created [00:27:01]Thread 3067149668 joined [00:27:01]Waiting for new connection... [00:27:01] Sock 9.Parse request [00:27:01]Sock 9.Check first char [00:27:01]Sock 9.First char is OK [00:27:01]request: POST /json_proto HTTP/1.0 [00:27:01]Method: POST [00:27:01]URL: /json_proto [00:27:01]Method is POST - this is cgi request [00:27:01]url: /json_proto [00:27:01]query_string will be loaded in cgi processing [00:27:01]execute_cgi json_proto POST (null) [00:27:01]execute_cgi path=json_proto method=POST [00:27:01]POST find Content-Length [00:27:01]Host: 172.17.60.7:8080 [00:27:01]Content-Length: 215 [00:27:01]Content-Type: application/json [00:27:01] [00:27:01]POST finish read [00:27:01]Found Content-Length = 215 [00:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:01]execute_script... [00:27:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:01]POST & json_proto [00:27:01]process_json_proto [00:27:01]json parsed OK: [00:27:01]protocol is kg_v1.0 [00:27:01]action value=get_value [00:27:01]process_action get_value [00:27:01]cmd_get_value [00:27:01]process_action get_value done [00:27:01]requested_data is exist [00:27:01]produce_requested_data [00:27:01]requested_item kkm.sn is exist - process it [00:27:01]requested_item kkm.ver is exist - process it [00:27:01]requested_item fm.sn is exist - process it [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 11 00 00 [00:27:01]Write to MH i2c: E2 08 00 BC 2F 80 11 00 00 00 00 00 00 65 [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 17 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 17 00 BC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B8 [00:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:27:01]wFMCommunicate OK [00:27:01]requested_item fd.num is exist - process it [00:27:01]SAM_PROTO_GetFieldsCounters [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 13 00 00 [00:27:01]Write to MH i2c: E2 08 00 BD 2F 80 13 00 00 00 00 00 00 68 [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 62 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 62 00 BD 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 29 CE 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [00:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 29 CE 00 00 0E 04 04 00 BF 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:01]wFMCommunicate OK [00:27:01]SAM_PROTO_GetFieldsCounters done [00:27:01]requested_item shift.num is exist - process it [00:27:01]requested_item shift.opened is exist - process it [00:27:01]req_shift_opened [00:27:01]FM_GetShiftState [00:27:01]SAM_PROTO_GetShiftState [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 13 01 00 [00:27:01]Write to MH i2c: E2 08 00 BE 2F 80 13 01 00 00 00 00 00 6A [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 0E 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 0E 00 BE 2F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 75 [00:27:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:01]wFMCommunicate OK [00:27:01]SAM_PROTO_GetShiftState done [00:27:01]FM_GetShiftState done [00:27:01]req_shift_opened done [00:27:01]requested_item shift.open_date is exist - process it [00:27:01]req_shift_open_date [00:27:01]FM_GetShiftState [00:27:01]SAM_PROTO_GetShiftState [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 13 01 00 [00:27:01]Write to MH i2c: E2 08 00 BF 2F 80 13 01 00 00 00 00 00 6B [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:01]Read from MH i2c: E2 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 0E 00 [00:27:01]MH_I2C_Read... [00:27:01]Read from MH i2c: E2 0E 00 BF 2F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 76 [00:27:01]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:01]wFMCommunicate OK [00:27:01]SAM_PROTO_GetShiftState done [00:27:01]FM_GetShiftState done [00:27:01]req_shift_open_date done [00:27:01]produce_requested_data done [00:27:01]produce_requested_data return {"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52777,"shift.num":447,"shift.opened":0,"shift.open_date":0} [00:27:01]process_action_free get_value [00:27:01]json_value_free [00:27:01]json_value_free done [00:27:01]process_json_proto returns [00:27:01]Send response to host [00:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000007","kkm.ver":"001","fm.sn":"0000000000874715","fd.num":52777,"shift.num":447,"shift.opened":0,"shift.open_date":0}}} [00:27:01]free response buf [00:27:01]execute_script done [00:27:01]execute_script returns [00:27:01]free content buf [00:27:01]Sock 9.Close socket [00:27:01]Sock 9.Thread stoped [00:27:01]accept exits with 7 [00:27:01]New connection [00:27:01]New thread 3067149668 created [00:27:01]Thread 3067293028 joined [00:27:01]Waiting for new connection... [00:27:01] Sock 7.Parse request [00:27:01]Sock 7.Check first char [00:27:01]Sock 7.First char is OK [00:27:01]request: POST /json_proto HTTP/1.0 [00:27:01]Method: POST [00:27:01]URL: /json_proto [00:27:01]Method is POST - this is cgi request [00:27:01]url: /json_proto [00:27:01]query_string will be loaded in cgi processing [00:27:01]execute_cgi json_proto POST (null) [00:27:01]execute_cgi path=json_proto method=POST [00:27:01]POST find Content-Length [00:27:01]Host: 172.17.60.7:8080 [00:27:01]Content-Length: 331 [00:27:01]Content-Type: application/json [00:27:01] [00:27:01]POST finish read [00:27:01]Found Content-Length = 331 [00:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:01]execute_script... [00:27:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:01]POST & json_proto [00:27:01]process_json_proto [00:27:01]json parsed OK: [00:27:01]protocol is kg_v1.0 [00:27:01]action value=get_value [00:27:01]process_action get_value [00:27:01]cmd_get_value [00:27:01]process_action get_value done [00:27:01]requested_data is exist [00:27:01]produce_requested_data [00:27:01]requested_item fm.sale.total is exist - process it [00:27:01]SAM_PROTO_GetFMData [00:27:01]wFMCommunicate request_size=4 [00:27:01]MH_SAM_APDU [00:27:01]CAPDU: 80 13 03 00 [00:27:01]Write to MH i2c: E2 08 00 C0 2F 80 13 03 00 00 00 00 00 6E [00:27:01]Write i2c OK [00:27:01]MH_I2C_Read... [00:27:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:02]Read from MH i2c: E2 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 C0 2F 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 1C [00:27:02]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:27:02]wFMCommunicate OK [00:27:02]wFMCommunicate request_size=4 [00:27:02]MH_SAM_APDU [00:27:02]CAPDU: 80 17 00 00 [00:27:02]Write to MH i2c: E2 08 00 C1 2F 80 17 00 00 00 00 00 00 70 [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:02]Read from MH i2c: E2 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 C1 2F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [00:27:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:02]wFMCommunicate OK [00:27:02]wFMCommunicate request_size=4 [00:27:02]MH_SAM_APDU [00:27:02]CAPDU: 80 17 00 00 [00:27:02]Write to MH i2c: E2 08 00 C2 2F 80 17 00 00 00 00 00 00 71 [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:02]Read from MH i2c: E2 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 C2 2F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 11 [00:27:02]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:27:02]wFMCommunicate OK [00:27:02]wFMCommunicate request_size=4 [00:27:02]MH_SAM_APDU [00:27:02]CAPDU: 80 17 00 00 [00:27:02]Write to MH i2c: E2 08 00 C3 2F 80 17 00 00 00 00 00 00 72 [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:02]Read from MH i2c: E2 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 [00:27:02]MH_I2C_Read... [00:27:02]Read from MH i2c: E2 FD 00 C3 2F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 F7 [00:27:02]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:27:02]wFMCommunicate OK [00:27:02]wFMCommunicate request_size=4 [00:27:02]MH_SAM_APDU [00:27:02]CAPDU: 80 17 00 00 [00:27:02]Write to MH i2c: E2 08 00 C4 2F 80 17 00 00 00 00 00 00 73 [00:27:02]Write i2c OK [00:27:02]MH_I2C_Read... [00:27:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:27:03]Read from MH i2c: E2 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 DE 00 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 DE 00 C4 2F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [00:27:03]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:03]wFMCommunicate OK [00:27:03]SAM_PROTO_GetFMData done [00:27:03]requested_item fm.sale_refund.total is exist - process it [00:27:03]requested_item fm.buy.total is exist - process it [00:27:03]requested_item shift.sale.total is exist - process it [00:27:03]SAM_PROTO_GetShiftData [00:27:03]wFMCommunicate request_size=4 [00:27:03]MH_SAM_APDU [00:27:03]CAPDU: 80 13 02 00 [00:27:03]Write to MH i2c: E2 08 00 C5 2F 80 13 02 00 00 00 00 00 72 [00:27:03]Write i2c OK [00:27:03]MH_I2C_Read... [00:27:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:03]Read from MH i2c: E2 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 FD 00 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 FD 00 C5 2F 00 AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F2 [00:27:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5E 00 00 00 69 04 9B 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 C4 E5 1E 70 04 03 00 00 4D 08 72 04 03 00 C4 98 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F6 47 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:27:03]wFMCommunicate OK [00:27:03]wFMCommunicate request_size=4 [00:27:03]MH_SAM_APDU [00:27:03]CAPDU: 80 17 00 00 [00:27:03]Write to MH i2c: E2 08 00 C6 2F 80 17 00 00 00 00 00 00 75 [00:27:03]Write i2c OK [00:27:03]MH_I2C_Read... [00:27:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:03]Read from MH i2c: E2 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 FD 00 [00:27:03]MH_I2C_Read... [00:27:03]Read from MH i2c: E2 FD 00 C6 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 97 [00:27:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:27:03]wFMCommunicate OK [00:27:03]wFMCommunicate request_size=4 [00:27:03]MH_SAM_APDU [00:27:03]CAPDU: 80 17 00 00 [00:27:03]Write to MH i2c: E2 08 00 C7 2F 80 17 00 00 00 00 00 00 76 [00:27:03]Write i2c OK [00:27:03]MH_I2C_Read... [00:27:04]OFD Sender: No OFD packet to send [00:27:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:04]Read from MH i2c: E2 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 FD 00 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 FD 00 C7 2F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 2D [00:27:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:27:04]wFMCommunicate OK [00:27:04]wFMCommunicate request_size=4 [00:27:04]MH_SAM_APDU [00:27:04]CAPDU: 80 17 00 00 [00:27:04]Write to MH i2c: E2 08 00 C8 2F 80 17 00 00 00 00 00 00 77 [00:27:04]Write i2c OK [00:27:04]MH_I2C_Read... [00:27:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:04]Read from MH i2c: E2 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 FD 00 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 FD 00 C8 2F 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E9 [00:27:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:27:04]wFMCommunicate OK [00:27:04]wFMCommunicate request_size=4 [00:27:04]MH_SAM_APDU [00:27:04]CAPDU: 80 17 00 00 [00:27:04]Write to MH i2c: E2 08 00 C9 2F 80 17 00 00 00 00 00 00 78 [00:27:04]Write i2c OK [00:27:04]MH_I2C_Read... [00:27:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:27:04]Read from MH i2c: E2 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 CB 00 [00:27:04]MH_I2C_Read... [00:27:04]Read from MH i2c: E2 CB 00 C9 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [00:27:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:04]wFMCommunicate OK [00:27:04]SAM_PROTO_GetShiftData done [00:27:04]requested_item shift.sale.total_cash is exist - process it [00:27:04]requested_item shift.sale_refund.total is exist - process it [00:27:04]requested_item shift.sale_refund.total_cash is exist - process it [00:27:04]requested_item shift.buy.total is exist - process it [00:27:04]requested_item shift.buy.total_cash is exist - process it [00:27:04]produce_requested_data done [00:27:04]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:04]process_action_free get_value [00:27:04]json_value_free [00:27:04]json_value_free done [00:27:04]process_json_proto returns [00:27:04]Send response to host [00:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":20249.00,"shift.sale.total_cash":5440.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:04]free response buf [00:27:04]execute_script done [00:27:04]execute_script returns [00:27:04]free content buf [00:27:04]Sock 7.Close socket [00:27:04]Sock 7.Thread stoped [00:27:05]accept exits with 9 [00:27:05]New connection [00:27:05]New thread 3067293028 created [00:27:05]Thread 3067149668 joined [00:27:05]Waiting for new connection... [00:27:05] Sock 9.Parse request [00:27:05]Sock 9.Check first char [00:27:05]Sock 9.First char is OK [00:27:05]request: POST /json_proto HTTP/1.0 [00:27:05]Method: POST [00:27:05]URL: /json_proto [00:27:05]Method is POST - this is cgi request [00:27:05]url: /json_proto [00:27:05]query_string will be loaded in cgi processing [00:27:05]execute_cgi json_proto POST (null) [00:27:05]execute_cgi path=json_proto method=POST [00:27:05]POST find Content-Length [00:27:05]Host: 172.17.60.7:8080 [00:27:05]Content-Length: 271 [00:27:05]Content-Type: application/json [00:27:05] [00:27:05]POST finish read [00:27:05]Found Content-Length = 271 [00:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0435\u043D\u043A\u0435\u0435\u0432\u0430 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:05]execute_script... [00:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0435\u043D\u043A\u0435\u0435\u0432\u0430 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:05]POST & json_proto [00:27:05]process_json_proto [00:27:05]json parsed OK: [00:27:05]protocol is kg_v1.0 [00:27:05]action value=open_shift [00:27:05]process_action open_shift [00:27:05]cmd_open_shift [00:27:05]MH_GetDate [00:27:05]Write to MH i2c: F0 00 00 CA 2F E8 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: F0 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: F0 09 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: F0 09 00 CA 2F 00 60 A8 BA 66 63 9B 67 64 E2 [00:27:05]GetLastDocTimeStamp 1723508632 [00:27:05]current date 1723508832 [00:27:05]FM_GetShiftState [00:27:05]SAM_PROTO_GetShiftState [00:27:05]wFMCommunicate request_size=4 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 13 01 00 [00:27:05]Write to MH i2c: E2 08 00 CB 2F 80 13 01 00 00 00 00 00 77 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 0E 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 0E 00 CB 2F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 82 [00:27:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:05]wFMCommunicate OK [00:27:05]SAM_PROTO_GetShiftState done [00:27:05]FM_GetShiftState done [00:27:05]KKMCreateOpenShiftDocument [00:27:05]Load OK [00:27:05]Malloc new data [00:27:05]MH_GetDate [00:27:05]Write to MH i2c: F0 00 00 CC 2F EA [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: F0 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: F0 09 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: F0 09 00 CC 2F 00 60 A8 BA 66 63 9B 67 64 E4 [00:27:05]Malloc new data [00:27:05]KKMCreateOpenShiftDocument OK [00:27:05]KKMSetOpenShiftData OK [00:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=226 [00:27:05]tlvbuf is 012D2850 [00:27:05]KKMLoadAndSignOpenShiftData [00:27:05]SAM_PROTO_ProcessDocument [00:27:05]wFMCommunicate request_size=9 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 01 00 04 02 00 E2 00 [00:27:05]Write to MH i2c: E2 0C 00 CD 2F 80 15 01 00 04 00 02 00 E2 00 00 00 67 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 CD 2F 00 90 00 70 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=23 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:27:05]Write to MH i2c: E2 1A 00 CE 2F 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 72 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 CE 2F 00 90 00 71 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=34 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D1 83 D1 80 D0 B5 D0 BD D0 BA D0 B5 D0 B5 D0 B2 D0 B0 20 D0 AD 2E 20 [00:27:05]Write to MH i2c: E2 25 00 CF 2F 80 15 02 00 1D 00 FD 03 19 00 D0 9A D1 83 D1 80 D0 B5 D0 BD D0 BA D0 B5 D0 B5 D0 B2 D0 B0 20 D0 AD 2E 20 00 00 73 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 CF 2F 00 90 00 72 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=111 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 02 00 6A F1 03 66 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D0 B5 D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 BE D0 BB D0 BE D0 B4 D0 B0 D1 8F 20 D0 93 D0 B2 D0 B0 D1 80 D0 B4 D0 B8 D1 8F 2F D0 BE D0 B1 D1 8A D0 B5 D0 B7 D0 B4 D0 BD D0 B0 D1 8F 2C 20 34 32 2E 39 34 36 33 30 33 2C 20 37 34 2E 35 36 37 35 35 33 [00:27:05]Write to MH i2c: E2 72 00 D0 2F 80 15 02 00 6A 00 F1 03 66 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D0 B5 D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 BE D0 BB D0 BE D0 B4 D0 B0 D1 8F 20 D0 93 D0 B2 D0 B0 D1 80 D0 B4 D0 B8 D1 8F 2F D0 BE D0 B1 D1 8A D0 B5 D0 B7 D0 B4 D0 BD D0 B0 D1 8F 2C 20 34 32 2E 39 34 36 33 30 33 2C 20 37 34 2E 35 36 37 35 35 33 00 00 C5 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 D0 2F 00 90 00 73 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=50 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:27:05]Write to MH i2c: E2 35 00 D1 2F 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 F8 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 D1 2F 00 90 00 74 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=13 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 02 00 08 F4 03 04 00 60 A8 BA 66 [00:27:05]Write to MH i2c: E2 10 00 D2 2F 80 15 02 00 08 00 F4 03 04 00 60 A8 BA 66 00 00 B4 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 D2 2F 00 90 00 75 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=25 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 [00:27:05]Write to MH i2c: E2 1C 00 D3 2F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 00 00 E3 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 03 00 D3 2F 00 90 00 76 [00:27:05]RAPDU: 90 00 [00:27:05]wFMCommunicate OK [00:27:05]wFMCommunicate request_size=4 [00:27:05]MH_SAM_APDU [00:27:05]CAPDU: 80 15 03 00 [00:27:05]Write to MH i2c: E2 08 00 D4 2F 80 15 03 00 00 00 00 00 84 [00:27:05]Write i2c OK [00:27:05]MH_I2C_Read... [00:27:05]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:27:05]Read from MH i2c: E2 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 38 00 [00:27:05]MH_I2C_Read... [00:27:05]Read from MH i2c: E2 38 00 D4 2F 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2A CE 00 00 0E 04 04 00 C0 01 00 00 35 04 06 00 D7 DA 6C 1A 74 22 90 00 D6 [00:27:05]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2A CE 00 00 0E 04 04 00 C0 01 00 00 35 04 06 00 D7 DA 6C 1A 74 22 90 00 [00:27:06]wFMCommunicate OK [00:27:06]SAM_PROTO_ProcessDocument answer len = 51 [00:27:06]SAM_PROTO_ProcessDocument done [00:27:06]SetTLVBufToDocument [00:27:06]Processing tag 1209 (04B9) [00:27:06]Malloc new data [00:27:06]Processing tag 1041 (0411) [00:27:06]Processing tag 1040 (0410) [00:27:06]Malloc new data [00:27:06]Processing tag 1038 (040E) [00:27:06]Malloc new data [00:27:06]Processing tag 1077 (0435) [00:27:06]Malloc new data [00:27:06]SetTLVBufToDocument err=0 [00:27:06]KKMLoadAndSignOpenShiftData store KKM data [00:27:06]KKMLoadAndSignOpenShiftData err=0 [00:27:06]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Куренкеева Э. Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 Место: АЗС № 54 "Партнер Нефть" 13.08.2024 00:27 Смена: 448 РНМ: 0000000000090834 ЗНМ: 0300000007 ФД: 52778 ФМ: 0000000000874715 ФПД: 237333116515362 [00:27:06]StoreToDocumentArchive [00:27:06]shift 448 fd 52778 [00:27:06]Create dir for shift 0448 [00:27:06]save to /storage/0448/doc_00052778 [00:27:06]save last doc name /storage/0448/doc_00052778 to /storage/kkm_last_doc_name [00:27:06]save OK [00:27:06]Clear old archive folders... [00:27:06]Remove dir /storage/0447 [00:27:06]opendir ok [00:27:06]file . [00:27:06]file .. [00:27:06]file doc_00052682 [00:27:06]remove file /storage/0447/doc_00052682 [00:27:06]file doc_00052683 [00:27:06]remove file /storage/0447/doc_00052683 [00:27:06]file doc_00052684 [00:27:06]remove file /storage/0447/doc_00052684 [00:27:06]file doc_00052685 [00:27:06]remove file /storage/0447/doc_00052685 [00:27:06]file doc_00052686 [00:27:06]remove file /storage/0447/doc_00052686 [00:27:06]file doc_00052687 [00:27:06]remove file /storage/0447/doc_00052687 [00:27:06]file doc_00052688 [00:27:06]remove file /storage/0447/doc_00052688 [00:27:06]file doc_00052689 [00:27:06]remove file /storage/0447/doc_00052689 [00:27:06]file doc_00052690 [00:27:06]remove file /storage/0447/doc_00052690 [00:27:06]file doc_00052691 [00:27:06]remove file /storage/0447/doc_00052691 [00:27:06]file doc_00052692 [00:27:06]remove file /storage/0447/doc_00052692 [00:27:06]file doc_00052693 [00:27:06]remove file /storage/0447/doc_00052693 [00:27:06]file doc_00052694 [00:27:06]remove file /storage/0447/doc_00052694 [00:27:06]file doc_00052695 [00:27:06]remove file /storage/0447/doc_00052695 [00:27:06]file doc_00052696 [00:27:06]remove file /storage/0447/doc_00052696 [00:27:06]file doc_00052697 [00:27:06]remove file /storage/0447/doc_00052697 [00:27:06]file doc_00052698 [00:27:06]remove file /storage/0447/doc_00052698 [00:27:06]file doc_00052699 [00:27:06]remove file /storage/0447/doc_00052699 [00:27:06]file doc_00052700 [00:27:06]remove file /storage/0447/doc_00052700 [00:27:06]file doc_00052701 [00:27:06]remove file /storage/0447/doc_00052701 [00:27:06]file doc_00052702 [00:27:06]remove file /storage/0447/doc_00052702 [00:27:06]file doc_00052703 [00:27:06]remove file /storage/0447/doc_00052703 [00:27:06]file doc_00052704 [00:27:06]remove file /storage/0447/doc_00052704 [00:27:06]file doc_00052705 [00:27:06]remove file /storage/0447/doc_00052705 [00:27:06]file doc_00052706 [00:27:06]remove file /storage/0447/doc_00052706 [00:27:06]file doc_00052707 [00:27:06]remove file /storage/0447/doc_00052707 [00:27:06]file doc_00052708 [00:27:06]remove file /storage/0447/doc_00052708 [00:27:06]file doc_00052709 [00:27:06]remove file /storage/0447/doc_00052709 [00:27:06]file doc_00052710 [00:27:06]remove file /storage/0447/doc_00052710 [00:27:06]file doc_00052711 [00:27:06]remove file /storage/0447/doc_00052711 [00:27:06]file doc_00052712 [00:27:06]remove file /storage/0447/doc_00052712 [00:27:06]file doc_00052713 [00:27:06]remove file /storage/0447/doc_00052713 [00:27:06]file doc_00052714 [00:27:06]remove file /storage/0447/doc_00052714 [00:27:06]file doc_00052715 [00:27:06]remove file /storage/0447/doc_00052715 [00:27:06]file doc_00052716 [00:27:06]remove file /storage/0447/doc_00052716 [00:27:06]file doc_00052717 [00:27:06]remove file /storage/0447/doc_00052717 [00:27:06]file doc_00052718 [00:27:06]remove file /storage/0447/doc_00052718 [00:27:06]file doc_00052719 [00:27:06]remove file /storage/0447/doc_00052719 [00:27:06]file doc_00052720 [00:27:06]remove file /storage/0447/doc_00052720 [00:27:06]file doc_00052721 [00:27:06]remove file /storage/0447/doc_00052721 [00:27:06]file doc_00052722 [00:27:06]remove file /storage/0447/doc_00052722 [00:27:06]file doc_00052723 [00:27:06]remove file /storage/0447/doc_00052723 [00:27:06]file doc_00052724 [00:27:06]remove file /storage/0447/doc_00052724 [00:27:06]file doc_00052725 [00:27:06]remove file /storage/0447/doc_00052725 [00:27:06]file doc_00052726 [00:27:06]remove file /storage/0447/doc_00052726 [00:27:06]file doc_00052727 [00:27:06]remove file /storage/0447/doc_00052727 [00:27:06]file doc_00052728 [00:27:06]remove file /storage/0447/doc_00052728 [00:27:06]file doc_00052729 [00:27:06]remove file /storage/0447/doc_00052729 [00:27:06]file doc_00052730 [00:27:06]remove file /storage/0447/doc_00052730 [00:27:06]file doc_00052731 [00:27:06]remove file /storage/0447/doc_00052731 [00:27:06]file doc_00052732 [00:27:06]remove file /storage/0447/doc_00052732 [00:27:06]file doc_00052733 [00:27:06]remove file /storage/0447/doc_00052733 [00:27:06]file doc_00052734 [00:27:06]remove file /storage/0447/doc_00052734 [00:27:06]file doc_00052735 [00:27:06]remove file /storage/0447/doc_00052735 [00:27:06]file doc_00052736 [00:27:06]remove file /storage/0447/doc_00052736 [00:27:06]file doc_00052737 [00:27:06]remove file /storage/0447/doc_00052737 [00:27:06]file doc_00052738 [00:27:06]remove file /storage/0447/doc_00052738 [00:27:06]file doc_00052739 [00:27:06]remove file /storage/0447/doc_00052739 [00:27:06]file doc_00052740 [00:27:06]remove file /storage/0447/doc_00052740 [00:27:06]file doc_00052741 [00:27:06]remove file /storage/0447/doc_00052741 [00:27:06]file doc_00052742 [00:27:06]remove file /storage/0447/doc_00052742 [00:27:06]file doc_00052743 [00:27:06]remove file /storage/0447/doc_00052743 [00:27:06]file doc_00052744 [00:27:06]remove file /storage/0447/doc_00052744 [00:27:06]file doc_00052745 [00:27:06]remove file /storage/0447/doc_00052745 [00:27:06]file doc_00052746 [00:27:06]remove file /storage/0447/doc_00052746 [00:27:06]file doc_00052747 [00:27:06]remove file /storage/0447/doc_00052747 [00:27:06]file doc_00052748 [00:27:06]remove file /storage/0447/doc_00052748 [00:27:06]file doc_00052749 [00:27:06]remove file /storage/0447/doc_00052749 [00:27:06]file doc_00052750 [00:27:06]remove file /storage/0447/doc_00052750 [00:27:06]file doc_00052751 [00:27:06]remove file /storage/0447/doc_00052751 [00:27:06]file doc_00052752 [00:27:06]remove file /storage/0447/doc_00052752 [00:27:06]file doc_00052753 [00:27:06]remove file /storage/0447/doc_00052753 [00:27:06]file doc_00052754 [00:27:06]remove file /storage/0447/doc_00052754 [00:27:06]file doc_00052755 [00:27:06]remove file /storage/0447/doc_00052755 [00:27:06]file doc_00052756 [00:27:06]remove file /storage/0447/doc_00052756 [00:27:06]file doc_00052757 [00:27:06]remove file /storage/0447/doc_00052757 [00:27:06]file doc_00052758 [00:27:06]remove file /storage/0447/doc_00052758 [00:27:06]file doc_00052759 [00:27:06]remove file /storage/0447/doc_00052759 [00:27:06]file doc_00052760 [00:27:06]remove file /storage/0447/doc_00052760 [00:27:06]file doc_00052761 [00:27:06]remove file /storage/0447/doc_00052761 [00:27:06]file doc_00052762 [00:27:06]remove file /storage/0447/doc_00052762 [00:27:06]file doc_00052763 [00:27:06]remove file /storage/0447/doc_00052763 [00:27:06]file doc_00052764 [00:27:06]remove file /storage/0447/doc_00052764 [00:27:06]file doc_00052765 [00:27:06]remove file /storage/0447/doc_00052765 [00:27:06]file doc_00052766 [00:27:06]remove file /storage/0447/doc_00052766 [00:27:06]file doc_00052767 [00:27:06]remove file /storage/0447/doc_00052767 [00:27:06]file doc_00052768 [00:27:06]remove file /storage/0447/doc_00052768 [00:27:06]file doc_00052769 [00:27:06]remove file /storage/0447/doc_00052769 [00:27:06]file doc_00052770 [00:27:06]remove file /storage/0447/doc_00052770 [00:27:06]file doc_00052771 [00:27:06]remove file /storage/0447/doc_00052771 [00:27:06]file doc_00052772 [00:27:06]remove file /storage/0447/doc_00052772 [00:27:06]file doc_00052773 [00:27:06]remove file /storage/0447/doc_00052773 [00:27:06]file doc_00052774 [00:27:06]remove file /storage/0447/doc_00052774 [00:27:06]file doc_00052775 [00:27:06]remove file /storage/0447/doc_00052775 [00:27:06]file doc_00052776 [00:27:06]remove file /storage/0447/doc_00052776 [00:27:06]file doc_00052777 [00:27:06]remove file /storage/0447/doc_00052777 [00:27:06]remove dir /storage/0447 [00:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=277 [00:27:06]tlvbuf is 01372390 [00:27:06]SAM_PROTO_ClearQueue [00:27:06]wFMCommunicate request_size=4 [00:27:06]MH_SAM_APDU [00:27:06]CAPDU: 80 09 00 00 [00:27:06]Write to MH i2c: E2 08 00 D5 2F 80 09 00 00 00 00 00 00 76 [00:27:06]Write i2c OK [00:27:06]MH_I2C_Read... [00:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:06]Read from MH i2c: E2 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 03 00 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 03 00 D5 2F 00 90 00 78 [00:27:06]RAPDU: 90 00 [00:27:06]wFMCommunicate OK [00:27:06]SAM_PROTO_ClearQueue done [00:27:06]KKMCreateOFDPacket [00:27:06]OFDProtocolAddRootSTLVToBuf [00:27:06]FM_MakeSignedData [00:27:06]FM_MakeSignedData [00:27:06]SAM_PROTO_SignData [00:27:06]wFMCommunicate request_size=4 [00:27:06]MH_SAM_APDU [00:27:06]CAPDU: 80 0D 01 02 [00:27:06]Write to MH i2c: E2 08 00 D6 2F 80 0D 01 02 00 00 00 00 7E [00:27:06]Write i2c OK [00:27:06]MH_I2C_Read... [00:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:06]Read from MH i2c: E2 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 03 00 [00:27:06]MH_I2C_Read... [00:27:06]Read from MH i2c: E2 03 00 D6 2F 00 90 00 79 [00:27:06]RAPDU: 90 00 [00:27:06]wFMCommunicate OK [00:27:06]wFMCommunicate request_size=255 [00:27:06]MH_SAM_APDU [00:27:06]CAPDU: 80 0D 02 02 FA 02 00 15 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B5 D0 BD D0 BA D0 B5 D0 B5 D0 B2 D0 B0 20 D0 AD 2E 20 F1 03 66 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D0 B5 D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 BE D0 BB D0 BE D0 B4 D0 B0 D1 8F 20 D0 93 D0 B2 D0 B0 D1 80 D0 B4 D0 B8 D1 8F 2F D0 BE D0 B1 D1 8A D0 B5 D0 B7 D0 B4 D0 BD D0 B0 D1 8F 2C 20 34 32 2E 39 34 36 33 30 33 2C 20 37 34 2E 35 36 37 35 35 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 60 A8 BA 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2A CE 00 [00:27:06]Write to MH i2c: E2 02 01 D7 2F 80 0D 02 02 FA 00 02 00 15 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B5 D0 BD D0 BA D0 B5 D0 B5 D0 B2 D0 B0 20 D0 AD 2E 20 F1 03 66 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D0 B5 D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 BE D0 BB D0 BE D0 B4 D0 B0 D1 8F 20 D0 93 D0 B2 D0 B0 D1 80 D0 B4 D0 B8 D1 8F 2F D0 BE D0 B1 D1 8A D0 B5 D0 B7 D0 B4 D0 BD D0 B0 D1 8F 2C 20 34 32 2E 39 34 36 33 30 33 2C 20 37 34 2E 35 36 37 35 35 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 60 A8 BA 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2A CE 00 00 00 AB [00:27:06]Write i2c OK [00:27:06]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 03 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 03 00 D7 2F 00 90 00 7A [00:27:07]RAPDU: 90 00 [00:27:07]wFMCommunicate OK [00:27:07]wFMCommunicate request_size=36 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 0D 02 02 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 D7 DA 6C 1A 74 22 [00:27:07]Write to MH i2c: E2 27 00 D8 2F 80 0D 02 02 1F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 D7 DA 6C 1A 74 22 00 00 10 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 03 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 03 00 D8 2F 00 90 00 7B [00:27:07]RAPDU: 90 00 [00:27:07]wFMCommunicate OK [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 0D 03 02 [00:27:07]Write to MH i2c: E2 08 00 D9 2F 80 0D 03 02 00 00 00 00 83 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 0B 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 0B 00 D9 2F 00 61 1E 32 8B 1F 3D 47 BC 90 00 1F [00:27:07]RAPDU: 61 1E 32 8B 1F 3D 47 BC 90 00 [00:27:07]wFMCommunicate OK [00:27:07]SAM_PROTO_SignData done [00:27:07]FM_MakeSignedData done [00:27:07]CreateOFDProtocolMessage [00:27:07]wFMCommunicate request_size=4 [00:27:07]MH_SAM_APDU [00:27:07]CAPDU: 80 11 00 00 [00:27:07]Write to MH i2c: E2 08 00 DA 2F 80 11 00 00 00 00 00 00 83 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:07]Read from MH i2c: E2 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 17 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: E2 17 00 DA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 D6 [00:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:27:07]wFMCommunicate OK [00:27:07]CreateOFDProtocolMessage done [00:27:07]OFDSenderStorePacket 52778 [00:27:07]StoreOFDPacket docnum=52778 [00:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 29 01 00 00 7A DF 21 01 5D 2D 5A 02 01 00 02 00 15 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B5 D0 BD D0 BA D0 B5 D0 B5 D0 B2 D0 B0 20 D0 AD 2E 20 F1 03 66 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D0 B5 D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 BE D0 BB D0 BE D0 B4 D0 B0 D1 8F 20 D0 93 D0 B2 D0 B0 D1 80 D0 B4 D0 B8 D1 8F 2F D0 BE D0 B1 D1 8A D0 B5 D0 B7 D0 B4 D0 BD D0 B0 D1 8F 2C 20 34 32 2E 39 34 36 33 30 33 2C 20 37 34 2E 35 36 37 35 35 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 60 A8 BA 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2A CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 D7 DA 6C 1A 74 22 61 1E 32 8B 1F 3D 47 BC [00:27:07]CheckFolder [00:27:07]dirname=/storage/ofd_packets [00:27:07]CheckFolder done [00:27:07]ProducePacketName [00:27:07]name=ofd_packets/00052778 [00:27:07]NVStorageSaveData ofd_packets/00052778 [00:27:07]File name is /storage/ofd_packets/00052778 [00:27:07]Write 327 bytes [00:27:07]NVStorageSaveData done [00:27:07]OFDSenderStorePacket done [00:27:07]KKMCreateOFDPacket done [00:27:07]NVStorageSaveData kkm_last_timestamp [00:27:07]File name is /storage/kkm_last_timestamp [00:27:07]Write 4 bytes [00:27:07]NVStorageSaveData done [00:27:07]ExternCall_PrintAddStr [00:27:07]wPrintStart [00:27:07]Write to MH i2c: 01 00 00 DB 2F 0A [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: 01 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: 01 07 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: 01 07 00 DB 2F 00 00 00 00 00 FF 0F 1F [00:27:07]RasterBufferAndPrint [00:27:07]line Отчет об открытии смены [00:27:07]line ФФД: 1.0 [00:27:07]line ИНН: 02508201610067 [00:27:07]line Кассир: Куренкеева Э. [00:27:07]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [00:27:07]line Место: АЗС № 54 "Партнер Нефть" [00:27:07]line 13.08.2024 00:27 [00:27:07]line Смена: 448 [00:27:07]line РНМ: 0000000000090834 [00:27:07]line ЗНМ: 0300000007 [00:27:07]line ФД: 52778 [00:27:07]line ФМ: 0000000000874715 [00:27:07]line ФПД: 237333116515362 [00:27:07]written 0, free lines is 4095 [00:27:07]OFD Sender: Processing packet 52778 [packets to send 55, broken 54] [00:27:07]ProducePacketName [00:27:07]name=ofd_packets/00052778 [00:27:07]OFD Sender: To server: pG, [00:27:07]CommunicateWithHost lk.salyk.kg:30040 [00:27:07]ConnectInit lk.salyk.kg [00:27:07]Write to MH i2c: 01 00 00 ED 2F 1C [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: 01 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: 01 07 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: 01 07 00 ED 2F 00 00 00 00 00 58 0E 89 [00:27:07]RasterBufferAndPrint [00:27:07]line [00:27:07]line [00:27:07]line [00:27:07]line [00:27:07]line [00:27:07]written 0, free lines is 3685 [00:27:07]MH_Cut [00:27:07]Write to MH i2c: D1 01 00 F4 2F 01 F5 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: D1 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: D1 01 00 [00:27:07]MH_I2C_Read... [00:27:07]Read from MH i2c: D1 01 00 F4 2F 00 F4 [00:27:07]Write to MH i2c: 01 00 00 F5 2F 24 [00:27:07]Write i2c OK [00:27:07]MH_I2C_Read... [00:27:07]Connected sock=10 [00:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 29 01 00 00 7A DF 21 01 5D 2D 5A 02 01 00 02 00 15 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D1 83 D1 80 D0 B5 D0 BD D0 BA D0 B5 D0 B5 D0 B2 D0 B0 20 D0 AD 2E 20 F1 03 66 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D0 B5 D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 BE D0 BB D0 BE D0 B4 D0 B0 D1 8F 20 D0 93 D0 B2 D0 B0 D1 80 D0 B4 D0 B8 D1 8F 2F D0 BE D0 B1 D1 8A D0 B5 D0 B7 D0 B4 D0 BD D0 B0 D1 8F 2C 20 34 32 2E 39 34 36 33 30 33 2C 20 37 34 2E 35 36 37 35 35 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 35 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 60 A8 BA 66 0E 04 04 00 C0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2A CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 35 04 06 00 D7 DA 6C 1A 74 22 61 1E 32 8B 1F 3D 47 BC [00:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 DE B6 47 00 2C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2A CE 00 00 F4 03 04 00 F8 4F BA 66 B6 04 01 00 00 93 9D 3B EA 4B C8 20 94 [00:27:08]CommunicateWithHost err = 0 [00:27:08]CheckOFDResponse [00:27:08]1017 (14) - 77093643461234 [00:27:08]1041 (16) - 0000000000874715 [00:27:08]1040 (4) - 52778 [00:27:08]1012 (4) - 12.08.2024 18:10 [00:27:08]1206 (1) - 0 [00:27:08]OFD Sender: Remove packet 52778 [00:27:08]ProducePacketName [00:27:08]name=ofd_packets/00052778 [00:27:08]NVStorageDeleteData [00:27:08]*** Cut start [00:27:08]*** Purtial cut [00:27:08]*** Stage 1: CUTSNS_PIN = 1 [00:27:08]Read from MH i2c: 01 [00:27:08]MH_I2C_Read... [00:27:08]*** Stop cut motor [00:27:08]*** Cut end [00:27:08]Read from MH i2c: 01 07 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 F5 2F 00 00 00 00 00 FF 0F 39 [00:27:08]process_action open_shift done [00:27:08]requested_data is exist [00:27:08]produce_requested_data [00:27:08]requested_item fd.num is exist - process it [00:27:08]SAM_PROTO_GetFieldsCounters [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 13 00 00 [00:27:08]Write to MH i2c: E2 08 00 F6 2F 80 13 00 00 00 00 00 00 A1 [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:08]Read from MH i2c: E2 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 62 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 62 00 F6 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2A CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [00:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2A CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:08]wFMCommunicate OK [00:27:08]SAM_PROTO_GetFieldsCounters done [00:27:08]requested_item shift.num is exist - process it [00:27:08]OFD Sender: No OFD packet to send [00:27:08]requested_item shift.opened is exist - process it [00:27:08]req_shift_opened [00:27:08]FM_GetShiftState [00:27:08]SAM_PROTO_GetShiftState [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 13 01 00 [00:27:08]Write to MH i2c: E2 08 00 F7 2F 80 13 01 00 00 00 00 00 A3 [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:08]Read from MH i2c: E2 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 0E 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: E2 0E 00 F7 2F 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 D7 [00:27:08]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [00:27:08]wFMCommunicate OK [00:27:08]SAM_PROTO_GetShiftState done [00:27:08]FM_GetShiftState done [00:27:08]req_shift_opened done [00:27:08]requested_item shift.open_date is exist - process it [00:27:08]req_shift_open_date [00:27:08]req_shift_open_date done [00:27:08]produce_requested_data done [00:27:08]produce_requested_data return {"fd.num":52778,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832} [00:27:08]process_action_free open_shift [00:27:08]json_value_free [00:27:08]json_value_free done [00:27:08]process_json_proto returns [00:27:08]Send response to host [00:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":52778,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832}}} [00:27:08]free response buf [00:27:08]execute_script done [00:27:08]execute_script returns [00:27:08]free content buf [00:27:08]Sock 9.Close socket [00:27:08]Sock 9.Thread stoped [00:27:08]accept exits with 7 [00:27:08]New connection [00:27:08]New thread 3067149668 created [00:27:08]Thread 3067293028 joined [00:27:08]Waiting for new connection... [00:27:08] Sock 7.Parse request [00:27:08]Sock 7.Check first char [00:27:08]Sock 7.First char is OK [00:27:08]request: POST /json_proto HTTP/1.0 [00:27:08]Method: POST [00:27:08]URL: /json_proto [00:27:08]Method is POST - this is cgi request [00:27:08]url: /json_proto [00:27:08]query_string will be loaded in cgi processing [00:27:08]execute_cgi json_proto POST (null) [00:27:08]execute_cgi path=json_proto method=POST [00:27:08]POST find Content-Length [00:27:08]Host: 172.17.60.7:8080 [00:27:08]Content-Length: 331 [00:27:08]Content-Type: application/json [00:27:08] [00:27:08]POST finish read [00:27:08]Found Content-Length = 331 [00:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:08]execute_script... [00:27:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:08]POST & json_proto [00:27:08]process_json_proto [00:27:08]json parsed OK: [00:27:08]protocol is kg_v1.0 [00:27:08]action value=get_value [00:27:08]process_action get_value [00:27:08]cmd_get_value [00:27:08]process_action get_value done [00:27:08]requested_data is exist [00:27:08]produce_requested_data [00:27:08]requested_item fm.sale.total is exist - process it [00:27:08]SAM_PROTO_GetFMData [00:27:08]wFMCommunicate request_size=4 [00:27:08]MH_SAM_APDU [00:27:08]CAPDU: 80 13 03 00 [00:27:08]Write to MH i2c: E2 08 00 F8 2F 80 13 03 00 00 00 00 00 A6 [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 F8 2F 00 C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 54 [00:27:09]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 CA 00 00 69 04 A0 00 6F 04 04 00 87 CA 00 00 B1 04 04 00 16 D7 C2 41 70 04 04 00 0A 6F 2C 37 72 04 04 00 0C 68 96 0A 00 04 7C 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 CF B1 FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A4 DD 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 21 00 00 00 B1 04 03 00 DC 09 29 70 04 03 00 6C 17 27 72 04 03 00 70 F2 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D1 5B 04 EF 03 09 00 F6 03 90 00 [00:27:09]wFMCommunicate OK [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 17 00 00 [00:27:09]Write to MH i2c: E2 08 00 F9 2F 80 17 00 00 00 00 00 00 A8 [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:09]Read from MH i2c: E2 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 [00:27:09]MH_I2C_Read... [00:27:09]Read from MH i2c: E2 FD 00 F9 2F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2C [00:27:09]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F9 5C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:09]wFMCommunicate OK [00:27:09]wFMCommunicate request_size=4 [00:27:09]MH_SAM_APDU [00:27:09]CAPDU: 80 17 00 00 [00:27:09]Write to MH i2c: E2 08 00 FA 2F 80 17 00 00 00 00 00 00 A9 [00:27:09]Write i2c OK [00:27:09]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 FA 2F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 49 [00:27:10]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 FB 2F 80 17 00 00 00 00 00 00 AA [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 FD 00 FB 2F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 2F [00:27:10]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:27:10]wFMCommunicate OK [00:27:10]wFMCommunicate request_size=4 [00:27:10]MH_SAM_APDU [00:27:10]CAPDU: 80 17 00 00 [00:27:10]Write to MH i2c: E2 08 00 FC 2F 80 17 00 00 00 00 00 00 AB [00:27:10]Write i2c OK [00:27:10]MH_I2C_Read... [00:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:27:10]Read from MH i2c: E2 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 DE 00 [00:27:10]MH_I2C_Read... [00:27:10]Read from MH i2c: E2 DE 00 FC 2F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8A [00:27:11]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:11]wFMCommunicate OK [00:27:11]SAM_PROTO_GetFMData done [00:27:11]requested_item fm.sale_refund.total is exist - process it [00:27:11]requested_item fm.buy.total is exist - process it [00:27:11]requested_item shift.sale.total is exist - process it [00:27:11]SAM_PROTO_GetShiftData [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 13 02 00 [00:27:11]Write to MH i2c: E2 08 00 FD 2F 80 13 02 00 00 00 00 00 AA [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 FD 00 FD 2F 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 1D [00:27:11]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:27:11]wFMCommunicate OK [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 17 00 00 [00:27:11]Write to MH i2c: E2 08 00 FE 2F 80 17 00 00 00 00 00 00 AD [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 FE 2F 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 B5 [00:27:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:27:12]wFMCommunicate OK [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 17 00 00 [00:27:12]Write to MH i2c: E2 08 00 FF 2F 80 17 00 00 00 00 00 00 AE [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 FF 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 80 [00:27:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:27:12]wFMCommunicate OK [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 17 00 00 [00:27:12]Write to MH i2c: E2 08 00 00 30 80 17 00 00 00 00 00 00 B0 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 00 30 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 22 [00:27:13]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 01 30 80 17 00 00 00 00 00 00 B1 [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 BD 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 BD 00 01 30 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 97 [00:27:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:13]wFMCommunicate OK [00:27:13]SAM_PROTO_GetShiftData done [00:27:13]requested_item shift.sale.total_cash is exist - process it [00:27:13]requested_item shift.sale_refund.total is exist - process it [00:27:13]requested_item shift.sale_refund.total_cash is exist - process it [00:27:13]requested_item shift.buy.total is exist - process it [00:27:13]requested_item shift.buy.total_cash is exist - process it [00:27:13]produce_requested_data done [00:27:13]produce_requested_data return {"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:13]process_action_free get_value [00:27:13]json_value_free [00:27:13]json_value_free done [00:27:13]process_json_proto returns [00:27:13]Send response to host [00:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":11032880.86,"fm.sale_refund.total":26895.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:13]free response buf [00:27:13]execute_script done [00:27:13]execute_script returns [00:27:13]free content buf [00:27:13]Sock 7.Close socket [00:27:13]Sock 7.Thread stoped [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:42]accept exits with 9 [00:45:42]New connection [00:45:42]New thread 3067293028 created [00:45:42]Thread 3067149668 joined [00:45:42]Waiting for new connection... [00:45:42] Sock 9.Parse request [00:45:42]Sock 9.Check first char [00:45:42]Sock 9.First char is OK [00:45:42]request: POST /json_proto HTTP/1.0 [00:45:42]Method: POST [00:45:42]URL: /json_proto [00:45:42]Method is POST - this is cgi request [00:45:42]url: /json_proto [00:45:42]query_string will be loaded in cgi processing [00:45:42]execute_cgi json_proto POST (null) [00:45:42]execute_cgi path=json_proto method=POST [00:45:42]POST find Content-Length [00:45:42]Host: 172.17.60.7:8080 [00:45:42]Content-Length: 1496 [00:45:42]Content-Type: application/json [00:45:42] [00:45:42]POST finish read [00:45:42]Found Content-Length = 1496 [00:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122911", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.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 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 591.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:42]execute_script... [00:45: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)122911", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.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 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 591.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:45:42]POST & json_proto [00:45:42]process_json_proto [00:45:42]json parsed OK: [00:45:42]protocol is kg_v1.0 [00:45:42]action value=close_receipt [00:45:42]process_action close_receipt [00:45:42]cmd_close_receipt [00:45:42]MH_GetDate [00:45:42]Write to MH i2c: F0 00 00 02 30 21 [00:45:42]Write i2c OK [00:45:42]MH_I2C_Read... [00:45:42]Read from MH i2c: F0 [00:45:42]MH_I2C_Read... [00:45:42]Read from MH i2c: F0 09 00 [00:45:42]MH_I2C_Read... [00:45:42]Read from MH i2c: F0 09 00 02 30 00 BD AC BA 66 63 9B 67 64 7C [00:45:42]GetLastDocTimeStamp 1723508832 [00:45:42]current date 1723509949 [00:45:42]FM_GetShiftState [00:45:42]SAM_PROTO_GetShiftState [00:45:42]wFMCommunicate request_size=4 [00:45:42]MH_SAM_APDU [00:45:42]CAPDU: 80 13 01 00 [00:45:42]Write to MH i2c: E2 08 00 03 30 80 13 01 00 00 00 00 00 B0 [00:45:42]Write i2c OK [00:45:42]MH_I2C_Read... [00:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:42]Read from MH i2c: E2 [00:45:42]MH_I2C_Read... [00:45:42]Read from MH i2c: E2 0E 00 [00:45:42]MH_I2C_Read... [00:45:42]Read from MH i2c: E2 0E 00 03 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 E4 [00:45:42]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [00:45:42]wFMCommunicate OK [00:45:42]SAM_PROTO_GetShiftState done [00:45:42]FM_GetShiftState done [00:45:42]opened in 1723508832 [00:45:42]opened+sec_in_day 1723595232 [00:45:42]quantity*price = 25000 [00:45:42]sum+1 = 25001 [00:45:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4631162227163 Напиток газированный Mojito LEMON LIME ж 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 591.00 НСП 1% : 5.22 НДС 12% : 62.77 Наличными: 591.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 1 13.08.2024 00:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52779 ФПД: 179731376320516 /tax-web-control/client/api/v1/ticket?date=20240813T004549&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52779&fm=179731376320516&tin=02508201610067®Number=0000000000090834&sum=59100 0 [00:45:43]StoreToDocumentArchive [00:45:43]shift 448 fd 52779 [00:45:43]save to /storage/0448/doc_00052779 [00:45:43]save last doc name /storage/0448/doc_00052779 to /storage/kkm_last_doc_name [00:45:43]save OK [00:45:43]Clear old archive folders... [00:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=632 [00:45:43]tlvbuf is 0129C880 [00:45:43]SAM_PROTO_ClearQueue [00:45:43]wFMCommunicate request_size=4 [00:45:43]MH_SAM_APDU [00:45:43]CAPDU: 80 09 00 00 [00:45:43]Write to MH i2c: E2 08 00 10 30 80 09 00 00 00 00 00 00 B2 [00:45:43]Write i2c OK [00:45:43]MH_I2C_Read... [00:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:43]Read from MH i2c: E2 [00:45:43]MH_I2C_Read... [00:45:43]Read from MH i2c: E2 03 00 [00:45:43]MH_I2C_Read... [00:45:43]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [00:45:43]RAPDU: 90 00 [00:45:43]wFMCommunicate OK [00:45:43]SAM_PROTO_ClearQueue done [00:45:43]KKMCreateOFDPacket [00:45:43]OFDProtocolAddRootSTLVToBuf [00:45:43]FM_MakeSignedData [00:45:43]FM_MakeSignedData [00:45:43]SAM_PROTO_SignData [00:45:43]wFMCommunicate request_size=4 [00:45:43]MH_SAM_APDU [00:45:43]CAPDU: 80 0D 01 02 [00:45:43]Write to MH i2c: E2 08 00 11 30 80 0D 01 02 00 00 00 00 BA [00:45:43]Write i2c OK [00:45:43]MH_I2C_Read... [00:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:43]Read from MH i2c: E2 [00:45:43]MH_I2C_Read... [00:45:43]Read from MH i2c: E2 03 00 [00:45:43]MH_I2C_Read... [00:45:43]Read from MH i2c: E2 03 00 11 30 00 90 00 B5 [00:45:43]RAPDU: 90 00 [00:45:43]wFMCommunicate OK [00:45:43]wFMCommunicate request_size=255 [00:45:43]MH_SAM_APDU [00:45:43]CAPDU: 80 0D 02 02 FA 03 00 78 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [00:45:43]Write to MH i2c: E2 02 01 12 30 80 0D 02 02 FA 00 03 00 78 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 4A [00:45:43]Write i2c OK [00:45:43]MH_I2C_Read... [00:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:44]Read from MH i2c: E2 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 03 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 03 00 12 30 00 90 00 B6 [00:45:44]RAPDU: 90 00 [00:45:44]wFMCommunicate OK [00:45:44]wFMCommunicate request_size=255 [00:45:44]MH_SAM_APDU [00:45:44]CAPDU: 80 0D 02 02 FA 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 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 [00:45:44]Write to MH i2c: E2 02 01 13 30 80 0D 02 02 FA 00 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 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 37 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:44]Read from MH i2c: E2 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 03 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 03 00 13 30 00 90 00 B7 [00:45:44]RAPDU: 90 00 [00:45:44]wFMCommunicate OK [00:45:44]wFMCommunicate request_size=141 [00:45:44]MH_SAM_APDU [00:45:44]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 18 00 00 00 00 07 04 06 00 DC E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 BD AC BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2B CE 00 00 35 04 06 00 A3 76 F8 D7 30 04 [00:45:44]Write to MH i2c: E2 90 00 14 30 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 18 00 00 00 00 07 04 06 00 DC E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 BD AC BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2B CE 00 00 35 04 06 00 A3 76 F8 D7 30 04 00 00 B9 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:44]Read from MH i2c: E2 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 03 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 03 00 14 30 00 90 00 B8 [00:45:44]RAPDU: 90 00 [00:45:44]wFMCommunicate OK [00:45:44]wFMCommunicate request_size=4 [00:45:44]MH_SAM_APDU [00:45:44]CAPDU: 80 0D 03 02 [00:45:44]Write to MH i2c: E2 08 00 15 30 80 0D 03 02 00 00 00 00 C0 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:44]Read from MH i2c: E2 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 0B 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 0B 00 15 30 00 47 0D 4E 01 3E 75 F8 EA 90 00 F9 [00:45:44]RAPDU: 47 0D 4E 01 3E 75 F8 EA 90 00 [00:45:44]wFMCommunicate OK [00:45:44]SAM_PROTO_SignData done [00:45:44]FM_MakeSignedData done [00:45:44]CreateOFDProtocolMessage [00:45:44]wFMCommunicate request_size=4 [00:45:44]MH_SAM_APDU [00:45:44]CAPDU: 80 11 00 00 [00:45:44]Write to MH i2c: E2 08 00 16 30 80 11 00 00 00 00 00 00 C0 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:44]Read from MH i2c: E2 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 17 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 17 00 16 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 13 [00:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:45:44]wFMCommunicate OK [00:45:44]CreateOFDProtocolMessage done [00:45:44]OFDSenderStorePacket 52779 [00:45:44]StoreOFDPacket docnum=52779 [00:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8C 02 00 00 84 95 84 02 46 EF 5A 03 01 00 03 00 78 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 18 00 00 00 00 07 04 06 00 DC E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 BD AC BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2B CE 00 00 35 04 06 00 A3 76 F8 D7 30 04 47 0D 4E 01 3E 75 F8 EA [00:45:44]CheckFolder [00:45:44]dirname=/storage/ofd_packets [00:45:44]CheckFolder done [00:45:44]ProducePacketName [00:45:44]name=ofd_packets/00052779 [00:45:44]NVStorageSaveData ofd_packets/00052779 [00:45:44]File name is /storage/ofd_packets/00052779 [00:45:44]Write 682 bytes [00:45:44]NVStorageSaveData done [00:45:44]OFDSenderStorePacket done [00:45:44]KKMCreateOFDPacket done [00:45:44]NVStorageSaveData kkm_last_timestamp [00:45:44]File name is /storage/kkm_last_timestamp [00:45:44]Write 4 bytes [00:45:44]NVStorageSaveData done [00:45:44]ExternCall_PrintAddStr [00:45:44]wPrintStart [00:45:44]Write to MH i2c: 01 00 00 17 30 47 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: 01 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: 01 07 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: 01 07 00 17 30 00 00 00 00 00 FF 0F 5C [00:45:44]RasterBufferAndPrint [00:45:44]line Счет N : (3)122911 [00:45:44]line ИНН: 02508201610067 [00:45:44]line Контрольно-Кассовый Чек [00:45:44]line ПРОДАЖА [00:45:44]line Товар: 4606532000189 [00:45:44]line Тормозная жидкость РосДот-4 0,455кг [00:45:44]line 1.000 * 250.00 [00:45:44]line = 250.00 [00:45:44]line НДС 12% НСП 1% [00:45:44]line > о реализуемом товаре [00:45:44]line Товар: 4631162227163 [00:45:44]line Напиток газированный Mojito LEMON LIME ж [00:45:44]line 1.000 * 95.00 [00:45:44]line = 95.00 [00:45:44]line НДС 12% НСП 1% [00:45:44]line > о реализуемом товаре [00:45:44]line Товар: 4870001570071 [00:45:44]line Напиток Pepsi 1л [00:45:44]line 1.000 * 111.00 [00:45:44]line = 111.00 [00:45:44]line НДС 12% НСП 1% [00:45:44]line > о реализуемом товаре [00:45:44]line Товар: 48745000 [00:45:44]line Сигареты Winston Purple Mix [00:45:44]line 1.000 * 135.00 [00:45:44]line = 135.00 [00:45:44]line НДС 12% НСП 1% [00:45:44]line > о реализуемом товаре [00:45:44]line ИТОГО: 591.00 [00:45:44]line НСП 1% : 5.22 [00:45:44]line НДС 12% : 62.77 [00:45:44]line Наличными: 591.00 [00:45:44]line Безнал.: 0.00 [00:45:44]line Место: АЗС № 54 "Партнер Нефть" [00:45:44]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [00:45:44]line СНО: Общий режим [00:45:44]line Чек 1 13.08.2024 00:45 [00:45:44]line Смена: 448 ФФД: 1.0 [00:45:44]line ЗНМ: 0300000007 [00:45:44]line РНМ: 0000000000090834 [00:45:44]line Версия ККМ: 001 [00:45:44]line ФМ: 0000000000874715 [00:45:44]line ФД: 52779 [00:45:44]line ФПД: 179731376320516 [00:45:44]line /tax-web-control/client/api/v1/ticket?date=20240813T004549&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52779&fm=179731376320516&tin=02508201610067®Number=0000000000090834&sum=59100 [00:45:44]OFD Sender: Processing packet 52779 [packets to send 55, broken 54] [00:45:44]ProducePacketName [00:45:44]name=ofd_packets/00052779 [00:45:44]OFD Sender: To server: pG, [00:45:44]CommunicateWithHost lk.salyk.kg:30040 [00:45:44]ConnectInit lk.salyk.kg [00:45:44]line 0 [00:45:44]written 0, free lines is 4095 [00:45:45]Connected sock=10 [00:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 8C 02 00 00 84 95 84 02 46 EF 5A 03 01 00 03 00 78 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 18 00 00 00 00 07 04 06 00 DC E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 BD AC BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2B CE 00 00 35 04 06 00 A3 76 F8 D7 30 04 47 0D 4E 01 3E 75 F8 EA [00:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 C6 04 47 00 4B 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 34 37 31 35 10 04 04 00 2B CE 00 00 F4 03 04 00 56 54 BA 66 B6 04 01 00 00 4C 33 0E 12 33 B4 0F 4F [00:45:45]CommunicateWithHost err = 0 [00:45:45]CheckOFDResponse [00:45:45]1017 (14) - 77093643461234 [00:45:45]1041 (16) - 0000000000874715 [00:45:45]1040 (4) - 52779 [00:45:45]1012 (4) - 12.08.2024 18:28 [00:45:45]1206 (1) - 0 [00:45:45]OFD Sender: Remove packet 52779 [00:45:45]ProducePacketName [00:45:45]name=ofd_packets/00052779 [00:45:45]NVStorageDeleteData [00:45:45]Write to MH i2c: 01 00 00 52 30 82 [00:45:45]Write i2c OK [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: 01 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: 01 07 00 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: 01 07 00 52 30 00 00 00 00 00 8C 0B 20 [00:45:45]RasterBufferAndPrint [00:45:45]line [00:45:45]line [00:45:45]line [00:45:45]line [00:45:45]line [00:45:45]written 0, free lines is 2964 [00:45:45]MH_Cut [00:45:45]Write to MH i2c: D1 01 00 59 30 01 5B [00:45:45]Write i2c OK [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: D1 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: D1 01 00 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: D1 01 00 59 30 00 5A [00:45:45]Write to MH i2c: 01 00 00 5A 30 8A [00:45:45]Write i2c OK [00:45:45]MH_I2C_Read... [00:45:45]OFD Sender: No OFD packet to send [00:45:46]*** Cut start [00:45:46]*** Purtial cut [00:45:46]*** Stage 1: CUTSNS_PIN = 1 [00:45:46]Read from MH i2c: 01 [00:45:46]MH_I2C_Read... [00:45:46]*** Stop cut motor [00:45:47]*** Cut end [00:45:47]Read from MH i2c: 01 07 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: 01 07 00 5A 30 00 00 00 00 00 FF 0F 9F [00:45:47]process_action close_receipt done [00:45:47]requested_data is exist [00:45:47]produce_requested_data [00:45:47]requested_item fm.sn is exist - process it [00:45:47]wFMCommunicate request_size=4 [00:45:47]MH_SAM_APDU [00:45:47]CAPDU: 80 11 00 00 [00:45:47]Write to MH i2c: E2 08 00 5B 30 80 11 00 00 00 00 00 00 05 [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:47]Read from MH i2c: E2 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 17 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 17 00 5B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 58 [00:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [00:45:47]wFMCommunicate OK [00:45:47]requested_item fd.num is exist - process it [00:45:47]SAM_PROTO_GetFieldsCounters [00:45:47]wFMCommunicate request_size=4 [00:45:47]MH_SAM_APDU [00:45:47]CAPDU: 80 13 00 00 [00:45:47]Write to MH i2c: E2 08 00 5C 30 80 13 00 00 00 00 00 00 08 [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:47]Read from MH i2c: E2 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 62 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 62 00 5C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2B CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [00:45: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2B CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:47]wFMCommunicate OK [00:45:47]SAM_PROTO_GetFieldsCounters done [00:45:47]requested_item shift.num is exist - process it [00:45:47]requested_item shift.opened is exist - process it [00:45:47]req_shift_opened [00:45:47]FM_GetShiftState [00:45:47]SAM_PROTO_GetShiftState [00:45:47]wFMCommunicate request_size=4 [00:45:47]MH_SAM_APDU [00:45:47]CAPDU: 80 13 01 00 [00:45:47]Write to MH i2c: E2 08 00 5D 30 80 13 01 00 00 00 00 00 0A [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:47]Read from MH i2c: E2 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 0E 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: E2 0E 00 5D 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 3E [00:45:47]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [00:45:47]wFMCommunicate OK [00:45:47]SAM_PROTO_GetShiftState done [00:45:47]FM_GetShiftState done [00:45:47]req_shift_opened done [00:45:47]requested_item shift.open_date is exist - process it [00:45:47]req_shift_open_date [00:45:47]req_shift_open_date done [00:45:47]produce_requested_data done [00:45:47]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52779,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832} [00:45:47]process_action_free close_receipt [00:45:47]json_value_free [00:45:47]json_value_free done [00:45:47]process_json_proto returns [00:45:47]Send response to host [00:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52779,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832}}} [00:45:47]free response buf [00:45:47]execute_script done [00:45:47]execute_script returns [00:45:47]free content buf [00:45:47]Sock 9.Close socket [00:45:47]Sock 9.Thread stoped [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:05]accept exits with 7 [01:23:05]New connection [01:23:05]New thread 3067149668 created [01:23:05]Thread 3067293028 joined [01:23:05]Waiting for new connection... [01:23:05] Sock 7.Parse request [01:23:05]Sock 7.Check first char [01:23:05]Sock 7.First char is OK [01:23:05]request: POST /json_proto HTTP/1.0 [01:23:05]Method: POST [01:23:05]URL: /json_proto [01:23:05]Method is POST - this is cgi request [01:23:05]url: /json_proto [01:23:05]query_string will be loaded in cgi processing [01:23:05]execute_cgi json_proto POST (null) [01:23:05]execute_cgi path=json_proto method=POST [01:23:05]POST find Content-Length [01:23:05]Host: 172.17.60.7:8080 [01:23:05]Content-Length: 620 [01:23:05]Content-Type: application/json [01:23:05] [01:23:05]POST finish read [01:23:05]Found Content-Length = 620 [01:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122912", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:05]execute_script... [01:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122912", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:05]POST & json_proto [01:23:05]process_json_proto [01:23:05]json parsed OK: [01:23:05]protocol is kg_v1.0 [01:23:05]action value=close_receipt [01:23:05]process_action close_receipt [01:23:05]cmd_close_receipt [01:23:05]MH_GetDate [01:23:05]Write to MH i2c: F0 00 00 5E 30 7D [01:23:05]Write i2c OK [01:23:05]MH_I2C_Read... [01:23:05]Read from MH i2c: F0 [01:23:05]MH_I2C_Read... [01:23:05]Read from MH i2c: F0 09 00 [01:23:05]MH_I2C_Read... [01:23:05]Read from MH i2c: F0 09 00 5E 30 00 80 B5 BA 66 63 9B 67 64 A4 [01:23:05]GetLastDocTimeStamp 1723509949 [01:23:05]current date 1723512192 [01:23:05]FM_GetShiftState [01:23:05]SAM_PROTO_GetShiftState [01:23:05]wFMCommunicate request_size=4 [01:23:05]MH_SAM_APDU [01:23:05]CAPDU: 80 13 01 00 [01:23:05]Write to MH i2c: E2 08 00 5F 30 80 13 01 00 00 00 00 00 0C [01:23:05]Write i2c OK [01:23:05]MH_I2C_Read... [01:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:05]Read from MH i2c: E2 [01:23:05]MH_I2C_Read... [01:23:05]Read from MH i2c: E2 0E 00 [01:23:05]MH_I2C_Read... [01:23:05]Read from MH i2c: E2 0E 00 5F 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 40 [01:23:05]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [01:23:05]wFMCommunicate OK [01:23:05]SAM_PROTO_GetShiftState done [01:23:05]FM_GetShiftState done [01:23:05]opened in 1723508832 [01:23:05]opened+sec_in_day 1723595232 [01:23:05]quantity*price = 13500 [01:23:05]sum+1 = 13501 [01:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 2 13.08.2024 01:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52780 ФПД: 28916542455914 /tax-web-control/client/api/v1/ticket?date=20240813T012313&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52780&fm=28916542455914&tin=02508201610067®Number=0000000000090834&sum=13500 0 [01:23:06]StoreToDocumentArchive [01:23:06]shift 448 fd 52780 [01:23:06]save to /storage/0448/doc_00052780 [01:23:06]save last doc name /storage/0448/doc_00052780 to /storage/kkm_last_doc_name [01:23:06]save OK [01:23:06]Clear old archive folders... [01:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=272 [01:23:06]tlvbuf is 012915E0 [01:23:06]SAM_PROTO_ClearQueue [01:23:06]wFMCommunicate request_size=4 [01:23:06]MH_SAM_APDU [01:23:06]CAPDU: 80 09 00 00 [01:23:06]Write to MH i2c: E2 08 00 6C 30 80 09 00 00 00 00 00 00 0E [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:06]Read from MH i2c: E2 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 03 00 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 03 00 6C 30 00 90 00 10 [01:23:06]RAPDU: 90 00 [01:23:06]wFMCommunicate OK [01:23:06]SAM_PROTO_ClearQueue done [01:23:06]KKMCreateOFDPacket [01:23:06]OFDProtocolAddRootSTLVToBuf [01:23:06]FM_MakeSignedData [01:23:06]FM_MakeSignedData [01:23:06]SAM_PROTO_SignData [01:23:06]wFMCommunicate request_size=4 [01:23:06]MH_SAM_APDU [01:23:06]CAPDU: 80 0D 01 02 [01:23:06]Write to MH i2c: E2 08 00 6D 30 80 0D 01 02 00 00 00 00 16 [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:06]Read from MH i2c: E2 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 03 00 [01:23:06]MH_I2C_Read... [01:23:06]Read from MH i2c: E2 03 00 6D 30 00 90 00 11 [01:23:06]RAPDU: 90 00 [01:23:06]wFMCommunicate OK [01:23:06]wFMCommunicate request_size=255 [01:23:06]MH_SAM_APDU [01:23:06]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 81 B5 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 [01:23:06]Write to MH i2c: E2 02 01 6E 30 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 81 B5 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 00 00 E9 [01:23:06]Write i2c OK [01:23:06]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 6E 30 00 90 00 12 [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=31 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 37 31 35 10 04 04 00 2C CE 00 00 35 04 06 00 1A 4C A8 3D C0 6A [01:23:07]Write to MH i2c: E2 22 00 6F 30 80 0D 02 02 1A 00 30 30 38 37 34 37 31 35 10 04 04 00 2C CE 00 00 35 04 06 00 1A 4C A8 3D C0 6A 00 00 B3 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 03 00 6F 30 00 90 00 13 [01:23:07]RAPDU: 90 00 [01:23:07]wFMCommunicate OK [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 0D 03 02 [01:23:07]Write to MH i2c: E2 08 00 70 30 80 0D 03 02 00 00 00 00 1B [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 0B 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 0B 00 70 30 00 5F 8C 96 DB 5B 24 C8 6E 90 00 2D [01:23:07]RAPDU: 5F 8C 96 DB 5B 24 C8 6E 90 00 [01:23:07]wFMCommunicate OK [01:23:07]SAM_PROTO_SignData done [01:23:07]FM_MakeSignedData done [01:23:07]CreateOFDProtocolMessage [01:23:07]wFMCommunicate request_size=4 [01:23:07]MH_SAM_APDU [01:23:07]CAPDU: 80 11 00 00 [01:23:07]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:07]Read from MH i2c: E2 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 17 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 6E [01:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [01:23:07]wFMCommunicate OK [01:23:07]CreateOFDProtocolMessage done [01:23:07]OFDSenderStorePacket 52780 [01:23:07]StoreOFDPacket docnum=52780 [01:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 7A 5A 1C 01 CB 8B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 81 B5 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2C CE 00 00 35 04 06 00 1A 4C A8 3D C0 6A 5F 8C 96 DB 5B 24 C8 6E [01:23:07]CheckFolder [01:23:07]dirname=/storage/ofd_packets [01:23:07]CheckFolder done [01:23:07]ProducePacketName [01:23:07]name=ofd_packets/00052780 [01:23:07]NVStorageSaveData ofd_packets/00052780 [01:23:07]File name is /storage/ofd_packets/00052780 [01:23:07]Write 322 bytes [01:23:07]NVStorageSaveData done [01:23:07]OFDSenderStorePacket done [01:23:07]KKMCreateOFDPacket done [01:23:07]NVStorageSaveData kkm_last_timestamp [01:23:07]File name is /storage/kkm_last_timestamp [01:23:07]Write 4 bytes [01:23:07]NVStorageSaveData done [01:23:07]ExternCall_PrintAddStr [01:23:07]wPrintStart [01:23:07]Write to MH i2c: 01 00 00 72 30 A2 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 72 30 00 00 00 00 00 FF 0F B7 [01:23:07]RasterBufferAndPrint [01:23:07]line Счет N : (3)122912 [01:23:07]line ИНН: 02508201610067 [01:23:07]line Контрольно-Кассовый Чек [01:23:07]line ПРОДАЖА [01:23:07]line Товар: 48745000 [01:23:07]line Сигареты Winston Purple Mix [01:23:07]line 1.000 * 135.00 [01:23:07]line = 135.00 [01:23:07]line НДС 12% НСП 1% [01:23:07]line > о реализуемом товаре [01:23:07]line ИТОГО: 135.00 [01:23:07]line НСП 1% : 1.19 [01:23:07]line НДС 12% : 14.34 [01:23:07]line Наличными: 135.00 [01:23:07]line Безнал.: 0.00 [01:23:07]line Место: АЗС № 54 "Партнер Нефть" [01:23:07]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [01:23:07]line СНО: Общий режим [01:23:07]line Чек 2 13.08.2024 01:23 [01:23:07]line Смена: 448 ФФД: 1.0 [01:23:07]line ЗНМ: 0300000007 [01:23:07]line РНМ: 0000000000090834 [01:23:07]line Версия ККМ: 001 [01:23:07]line ФМ: 0000000000874715 [01:23:07]line ФД: 52780 [01:23:07]line ФПД: 28916542455914 [01:23:07]line /tax-web-control/client/api/v1/ticket?date=20240813T012313&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52780&fm=28916542455914&tin=02508201610067®Number=0000000000090834&sum=13500 [01:23:07]OFD Sender: Processing packet 52780 [packets to send 55, broken 54] [01:23:07]ProducePacketName [01:23:07]name=ofd_packets/00052780 [01:23:07]OFD Sender: To server: pG, [01:23:07]CommunicateWithHost lk.salyk.kg:30040 [01:23:07]ConnectInit lk.salyk.kg [01:23:07]Connected sock=10 [01:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 24 01 00 00 7A 5A 1C 01 CB 8B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 81 B5 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2C CE 00 00 35 04 06 00 1A 4C A8 3D C0 6A 5F 8C 96 DB 5B 24 C8 6E [01:23:07]line 0 [01:23:07]written 0, free lines is 4095 [01:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 4F F0 47 00 AF 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 34 37 31 35 10 04 04 00 2C CE 00 00 F4 03 04 00 18 5D BA 66 B6 04 01 00 00 B8 53 BF AB 0C D0 8A A4 [01:23:07]CommunicateWithHost err = 0 [01:23:07]CheckOFDResponse [01:23:07]1017 (14) - 77093643461234 [01:23:07]1041 (16) - 0000000000874715 [01:23:07]1040 (4) - 52780 [01:23:07]1012 (4) - 12.08.2024 19:06 [01:23:07]1206 (1) - 0 [01:23:07]OFD Sender: Remove packet 52780 [01:23:07]ProducePacketName [01:23:07]name=ofd_packets/00052780 [01:23:07]NVStorageDeleteData [01:23:07]Write to MH i2c: 01 00 00 99 30 C9 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: 01 07 00 99 30 00 00 00 00 00 D0 0C AC [01:23:07]RasterBufferAndPrint [01:23:07]line [01:23:07]line [01:23:07]line [01:23:07]line [01:23:07]line [01:23:07]written 0, free lines is 3286 [01:23:07]MH_Cut [01:23:07]Write to MH i2c: D1 01 00 A0 30 01 A2 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: D1 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: D1 01 00 [01:23:07]MH_I2C_Read... [01:23:07]Read from MH i2c: D1 01 00 A0 30 00 A1 [01:23:07]Write to MH i2c: 01 00 00 A1 30 D1 [01:23:07]Write i2c OK [01:23:07]MH_I2C_Read... [01:23:08]OFD Sender: No OFD packet to send [01:23:08]*** Cut start [01:23:08]*** Purtial cut [01:23:08]*** Stage 1: CUTSNS_PIN = 1 [01:23:09]Read from MH i2c: 01 [01:23:09]MH_I2C_Read... [01:23:09]*** Stop cut motor [01:23:09]*** Cut end [01:23:09]Read from MH i2c: 01 07 00 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 FF 0F E6 [01:23:09]process_action close_receipt done [01:23:09]requested_data is exist [01:23:09]produce_requested_data [01:23:09]requested_item fm.sn is exist - process it [01:23:09]wFMCommunicate request_size=4 [01:23:09]MH_SAM_APDU [01:23:09]CAPDU: 80 11 00 00 [01:23:09]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [01:23:09]Write i2c OK [01:23:09]MH_I2C_Read... [01:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:09]Read from MH i2c: E2 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 17 00 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 9F [01:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [01:23:09]wFMCommunicate OK [01:23:09]requested_item fd.num is exist - process it [01:23:09]SAM_PROTO_GetFieldsCounters [01:23:09]wFMCommunicate request_size=4 [01:23:09]MH_SAM_APDU [01:23:09]CAPDU: 80 13 00 00 [01:23:09]Write to MH i2c: E2 08 00 A3 30 80 13 00 00 00 00 00 00 4F [01:23:09]Write i2c OK [01:23:09]MH_I2C_Read... [01:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:09]Read from MH i2c: E2 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 62 00 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 62 00 A3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2C CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [01:23: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 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2C CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:09]wFMCommunicate OK [01:23:09]SAM_PROTO_GetFieldsCounters done [01:23:09]requested_item shift.num is exist - process it [01:23:09]requested_item shift.opened is exist - process it [01:23:09]req_shift_opened [01:23:09]FM_GetShiftState [01:23:09]SAM_PROTO_GetShiftState [01:23:09]wFMCommunicate request_size=4 [01:23:09]MH_SAM_APDU [01:23:09]CAPDU: 80 13 01 00 [01:23:09]Write to MH i2c: E2 08 00 A4 30 80 13 01 00 00 00 00 00 51 [01:23:09]Write i2c OK [01:23:09]MH_I2C_Read... [01:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:09]Read from MH i2c: E2 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 0E 00 [01:23:09]MH_I2C_Read... [01:23:09]Read from MH i2c: E2 0E 00 A4 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 85 [01:23:09]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [01:23:09]wFMCommunicate OK [01:23:09]SAM_PROTO_GetShiftState done [01:23:09]FM_GetShiftState done [01:23:09]req_shift_opened done [01:23:09]requested_item shift.open_date is exist - process it [01:23:09]req_shift_open_date [01:23:09]req_shift_open_date done [01:23:09]produce_requested_data done [01:23:09]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52780,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832} [01:23:09]process_action_free close_receipt [01:23:09]json_value_free [01:23:09]json_value_free done [01:23:09]process_json_proto returns [01:23:09]Send response to host [01:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52780,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832}}} [01:23:09]free response buf [01:23:09]execute_script done [01:23:09]execute_script returns [01:23:09]free content buf [01:23:09]Sock 7.Close socket [01:23:09]Sock 7.Thread stoped [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:39]accept exits with 9 [02:07:39]New connection [02:07:39]New thread 3067293028 created [02:07:39]Thread 3067149668 joined [02:07:39]Waiting for new connection... [02:07:39] Sock 9.Parse request [02:07:39]Sock 9.Check first char [02:07:39]Sock 9.First char is OK [02:07:39]request: POST /json_proto HTTP/1.0 [02:07:39]Method: POST [02:07:39]URL: /json_proto [02:07:39]Method is POST - this is cgi request [02:07:39]url: /json_proto [02:07:39]query_string will be loaded in cgi processing [02:07:39]execute_cgi json_proto POST (null) [02:07:39]execute_cgi path=json_proto method=POST [02:07:39]POST find Content-Length [02:07:39]Host: 172.17.60.7:8080 [02:07:39]Content-Length: 615 [02:07:39]Content-Type: application/json [02:07:39] [02:07:39]POST finish read [02:07:39]Found Content-Length = 615 [02:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122913", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:07:39]execute_script... [02:07:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122913", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:07:39]POST & json_proto [02:07:39]process_json_proto [02:07:39]json parsed OK: [02:07:39]protocol is kg_v1.0 [02:07:39]action value=close_receipt [02:07:39]process_action close_receipt [02:07:39]cmd_close_receipt [02:07:39]MH_GetDate [02:07:39]Write to MH i2c: F0 00 00 A5 30 C4 [02:07:39]Write i2c OK [02:07:39]MH_I2C_Read... [02:07:39]Read from MH i2c: F0 [02:07:39]MH_I2C_Read... [02:07:39]Read from MH i2c: F0 09 00 [02:07:39]MH_I2C_Read... [02:07:39]Read from MH i2c: F0 09 00 A5 30 00 F3 BF BA 66 63 9B 67 64 68 [02:07:39]GetLastDocTimeStamp 1723512193 [02:07:39]current date 1723514867 [02:07:39]FM_GetShiftState [02:07:39]SAM_PROTO_GetShiftState [02:07:39]wFMCommunicate request_size=4 [02:07:39]MH_SAM_APDU [02:07:39]CAPDU: 80 13 01 00 [02:07:39]Write to MH i2c: E2 08 00 A6 30 80 13 01 00 00 00 00 00 53 [02:07:39]Write i2c OK [02:07:39]MH_I2C_Read... [02:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:07:39]Read from MH i2c: E2 [02:07:39]MH_I2C_Read... [02:07:39]Read from MH i2c: E2 0E 00 [02:07:39]MH_I2C_Read... [02:07:39]Read from MH i2c: E2 0E 00 A6 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 87 [02:07:39]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [02:07:39]wFMCommunicate OK [02:07:39]SAM_PROTO_GetShiftState done [02:07:39]FM_GetShiftState done [02:07:39]opened in 1723508832 [02:07:39]opened+sec_in_day 1723595232 [02:07:39]quantity*price = 16000 [02:07:39]sum+1 = 16001 [02:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 3 13.08.2024 02:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52781 ФПД: 216012948537341 /tax-web-control/client/api/v1/ticket?date=20240813T020747&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52781&fm=216012948537341&tin=02508201610067®Number=0000000000090834&sum=16000 0 [02:07:40]StoreToDocumentArchive [02:07:40]shift 448 fd 52781 [02:07:40]save to /storage/0448/doc_00052781 [02:07:40]save last doc name /storage/0448/doc_00052781 to /storage/kkm_last_doc_name [02:07:40]save OK [02:07:40]Clear old archive folders... [02:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=268 [02:07:40]tlvbuf is B6DFB220 [02:07:40]SAM_PROTO_ClearQueue [02:07:40]wFMCommunicate request_size=4 [02:07:40]MH_SAM_APDU [02:07:40]CAPDU: 80 09 00 00 [02:07:40]Write to MH i2c: E2 08 00 B3 30 80 09 00 00 00 00 00 00 55 [02:07:40]Write i2c OK [02:07:40]MH_I2C_Read... [02:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:07:40]Read from MH i2c: E2 [02:07:40]MH_I2C_Read... [02:07:40]Read from MH i2c: E2 03 00 [02:07:40]MH_I2C_Read... [02:07:40]Read from MH i2c: E2 03 00 B3 30 00 90 00 57 [02:07:40]RAPDU: 90 00 [02:07:40]wFMCommunicate OK [02:07:40]SAM_PROTO_ClearQueue done [02:07:40]KKMCreateOFDPacket [02:07:40]OFDProtocolAddRootSTLVToBuf [02:07:40]FM_MakeSignedData [02:07:40]FM_MakeSignedData [02:07:40]SAM_PROTO_SignData [02:07:40]wFMCommunicate request_size=4 [02:07:40]MH_SAM_APDU [02:07:40]CAPDU: 80 0D 01 02 [02:07:40]Write to MH i2c: E2 08 00 B4 30 80 0D 01 02 00 00 00 00 5D [02:07:40]Write i2c OK [02:07:40]MH_I2C_Read... [02:07:40]OFD Sender: No OFD packet to send [02:07:40]Read from MH i2c: E2 [02:07:40]MH_I2C_Read... [02:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:07:40]Read from MH i2c: E2 03 00 [02:07:40]MH_I2C_Read... [02:07:40]Read from MH i2c: E2 03 00 B4 30 00 90 00 58 [02:07:40]RAPDU: 90 00 [02:07:40]wFMCommunicate OK [02:07:40]wFMCommunicate request_size=255 [02:07:40]MH_SAM_APDU [02:07:40]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 03 00 00 00 F4 03 04 00 F3 BF BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [02:07:40]Write to MH i2c: E2 02 01 B5 30 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 03 00 00 00 F4 03 04 00 F3 BF BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 A9 [02:07:40]Write i2c OK [02:07:40]MH_I2C_Read... [02:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:07:41]Read from MH i2c: E2 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 03 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 03 00 B5 30 00 90 00 59 [02:07:41]RAPDU: 90 00 [02:07:41]wFMCommunicate OK [02:07:41]wFMCommunicate request_size=27 [02:07:41]MH_SAM_APDU [02:07:41]CAPDU: 80 0D 02 02 16 34 37 31 35 10 04 04 00 2D CE 00 00 35 04 06 00 C4 76 6F 10 7F FD [02:07:41]Write to MH i2c: E2 1E 00 B6 30 80 0D 02 02 16 00 34 37 31 35 10 04 04 00 2D CE 00 00 35 04 06 00 C4 76 6F 10 7F FD 00 00 E4 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:07:41]Read from MH i2c: E2 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 03 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 03 00 B6 30 00 90 00 5A [02:07:41]RAPDU: 90 00 [02:07:41]wFMCommunicate OK [02:07:41]wFMCommunicate request_size=4 [02:07:41]MH_SAM_APDU [02:07:41]CAPDU: 80 0D 03 02 [02:07:41]Write to MH i2c: E2 08 00 B7 30 80 0D 03 02 00 00 00 00 62 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:07:41]Read from MH i2c: E2 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 0B 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 0B 00 B7 30 00 AF AB 80 31 EA 56 DA 85 90 00 0D [02:07:41]RAPDU: AF AB 80 31 EA 56 DA 85 90 00 [02:07:41]wFMCommunicate OK [02:07:41]SAM_PROTO_SignData done [02:07:41]FM_MakeSignedData done [02:07:41]CreateOFDProtocolMessage [02:07:41]wFMCommunicate request_size=4 [02:07:41]MH_SAM_APDU [02:07:41]CAPDU: 80 11 00 00 [02:07:41]Write to MH i2c: E2 08 00 B8 30 80 11 00 00 00 00 00 00 62 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:07:41]Read from MH i2c: E2 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 17 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: E2 17 00 B8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 B5 [02:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [02:07:41]wFMCommunicate OK [02:07:41]CreateOFDProtocolMessage done [02:07:41]OFDSenderStorePacket 52781 [02:07:41]StoreOFDPacket docnum=52781 [02:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 20 01 00 00 16 57 18 01 9B 60 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 03 00 00 00 F4 03 04 00 F3 BF BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2D CE 00 00 35 04 06 00 C4 76 6F 10 7F FD AF AB 80 31 EA 56 DA 85 [02:07:41]CheckFolder [02:07:41]dirname=/storage/ofd_packets [02:07:41]CheckFolder done [02:07:41]ProducePacketName [02:07:41]name=ofd_packets/00052781 [02:07:41]NVStorageSaveData ofd_packets/00052781 [02:07:41]File name is /storage/ofd_packets/00052781 [02:07:41]Write 318 bytes [02:07:41]NVStorageSaveData done [02:07:41]OFDSenderStorePacket done [02:07:41]KKMCreateOFDPacket done [02:07:41]NVStorageSaveData kkm_last_timestamp [02:07:41]File name is /storage/kkm_last_timestamp [02:07:41]Write 4 bytes [02:07:41]NVStorageSaveData done [02:07:41]ExternCall_PrintAddStr [02:07:41]wPrintStart [02:07:41]Write to MH i2c: 01 00 00 B9 30 E9 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: 01 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: 01 07 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: 01 07 00 B9 30 00 00 00 00 00 FF 0F FE [02:07:41]RasterBufferAndPrint [02:07:41]line Счет N : (3)122913 [02:07:41]line ИНН: 02508201610067 [02:07:41]line Контрольно-Кассовый Чек [02:07:41]line ПРОДАЖА [02:07:41]line Товар: 4870001570057 [02:07:41]line Напиток Pepsi 0,5л [02:07:41]line 2.000 * 80.00 [02:07:41]line = 160.00 [02:07:41]line НДС 12% НСП 1% [02:07:41]line > о реализуемом товаре [02:07:41]line ИТОГО: 160.00 [02:07:41]line НСП 1% : 1.42 [02:07:41]line НДС 12% : 16.99 [02:07:41]line Наличными: 160.00 [02:07:41]line Безнал.: 0.00 [02:07:41]line Место: АЗС № 54 "Партнер Нефть" [02:07:41]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [02:07:41]line СНО: Общий режим [02:07:41]line Чек 3 13.08.2024 02:07 [02:07:41]line Смена: 448 ФФД: 1.0 [02:07:41]line ЗНМ: 0300000007 [02:07:41]line РНМ: 0000000000090834 [02:07:41]line Версия ККМ: 001 [02:07:41]line ФМ: 0000000000874715 [02:07:41]line ФД: 52781 [02:07:41]line ФПД: 216012948537341 [02:07:41]line /tax-web-control/client/api/v1/ticket?date=20240813T020747&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52781&fm=216012948537341&tin=02508201610067®Number=0000000000090834&sum=16000 [02:07:41]OFD Sender: Processing packet 52781 [packets to send 55, broken 54] [02:07:41]ProducePacketName [02:07:41]name=ofd_packets/00052781 [02:07:41]OFD Sender: To server: pG, [02:07:41]CommunicateWithHost lk.salyk.kg:30040 [02:07:41]ConnectInit lk.salyk.kg [02:07:41]line 0 [02:07:41]written 0, free lines is 4095 [02:07:41]Connected sock=10 [02:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 20 01 00 00 16 57 18 01 9B 60 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 03 00 00 00 F4 03 04 00 F3 BF BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2D CE 00 00 35 04 06 00 C4 76 6F 10 7F FD AF AB 80 31 EA 56 DA 85 [02:07:41]Write to MH i2c: 01 00 00 E0 30 10 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: 01 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: 01 07 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: 01 07 00 E0 30 00 00 00 00 00 E5 0C 08 [02:07:41]RasterBufferAndPrint [02:07:41]line [02:07:41]line [02:07:41]line [02:07:41]line [02:07:41]line [02:07:41]written 0, free lines is 3305 [02:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 0F D9 47 00 D7 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2D CE 00 00 F4 03 04 00 8B 67 BA 66 B6 04 01 00 00 E7 50 F0 B7 E5 78 08 03 [02:07:41]CommunicateWithHost err = 0 [02:07:41]CheckOFDResponse [02:07:41]1017 (14) - 77093643461234 [02:07:41]1041 (16) - 0000000000874715 [02:07:41]1040 (4) - 52781 [02:07:41]1012 (4) - 12.08.2024 19:50 [02:07:41]1206 (1) - 0 [02:07:41]OFD Sender: Remove packet 52781 [02:07:41]ProducePacketName [02:07:41]name=ofd_packets/00052781 [02:07:41]NVStorageDeleteData [02:07:41]MH_Cut [02:07:41]Write to MH i2c: D1 01 00 E7 30 01 E9 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: D1 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: D1 01 00 [02:07:41]MH_I2C_Read... [02:07:41]Read from MH i2c: D1 01 00 E7 30 00 E8 [02:07:41]Write to MH i2c: 01 00 00 E8 30 18 [02:07:41]Write i2c OK [02:07:41]MH_I2C_Read... [02:07:42]OFD Sender: No OFD packet to send [02:07:42]*** Cut start [02:07:42]*** Purtial cut [02:07:42]*** Stage 1: CUTSNS_PIN = 1 [02:07:43]Read from MH i2c: 01 [02:07:43]MH_I2C_Read... [02:07:43]*** Stop cut motor [02:07:43]*** Cut end [02:07:43]Read from MH i2c: 01 07 00 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: 01 07 00 E8 30 00 00 00 00 00 FF 0F 2D [02:07:43]process_action close_receipt done [02:07:43]requested_data is exist [02:07:43]produce_requested_data [02:07:43]requested_item fm.sn is exist - process it [02:07:43]wFMCommunicate request_size=4 [02:07:43]MH_SAM_APDU [02:07:43]CAPDU: 80 11 00 00 [02:07:43]Write to MH i2c: E2 08 00 E9 30 80 11 00 00 00 00 00 00 93 [02:07:43]Write i2c OK [02:07:43]MH_I2C_Read... [02:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:07:43]Read from MH i2c: E2 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: E2 17 00 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: E2 17 00 E9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 E6 [02:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [02:07:43]wFMCommunicate OK [02:07:43]requested_item fd.num is exist - process it [02:07:43]SAM_PROTO_GetFieldsCounters [02:07:43]wFMCommunicate request_size=4 [02:07:43]MH_SAM_APDU [02:07:43]CAPDU: 80 13 00 00 [02:07:43]Write to MH i2c: E2 08 00 EA 30 80 13 00 00 00 00 00 00 96 [02:07:43]Write i2c OK [02:07:43]MH_I2C_Read... [02:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:07:43]Read from MH i2c: E2 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: E2 62 00 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: E2 62 00 EA 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2D CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [02:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2D CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:07:43]wFMCommunicate OK [02:07:43]SAM_PROTO_GetFieldsCounters done [02:07:43]requested_item shift.num is exist - process it [02:07:43]requested_item shift.opened is exist - process it [02:07:43]req_shift_opened [02:07:43]FM_GetShiftState [02:07:43]SAM_PROTO_GetShiftState [02:07:43]wFMCommunicate request_size=4 [02:07:43]MH_SAM_APDU [02:07:43]CAPDU: 80 13 01 00 [02:07:43]Write to MH i2c: E2 08 00 EB 30 80 13 01 00 00 00 00 00 98 [02:07:43]Write i2c OK [02:07:43]MH_I2C_Read... [02:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:07:43]Read from MH i2c: E2 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: E2 0E 00 [02:07:43]MH_I2C_Read... [02:07:43]Read from MH i2c: E2 0E 00 EB 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 CC [02:07:43]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [02:07:43]wFMCommunicate OK [02:07:43]SAM_PROTO_GetShiftState done [02:07:43]FM_GetShiftState done [02:07:43]req_shift_opened done [02:07:43]requested_item shift.open_date is exist - process it [02:07:43]req_shift_open_date [02:07:43]req_shift_open_date done [02:07:43]produce_requested_data done [02:07:43]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52781,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832} [02:07:43]process_action_free close_receipt [02:07:43]json_value_free [02:07:43]json_value_free done [02:07:43]process_json_proto returns [02:07:43]Send response to host [02:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52781,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832}}} [02:07:43]free response buf [02:07:43]execute_script done [02:07:43]execute_script returns [02:07:43]free content buf [02:07:43]Sock 9.Close socket [02:07:43]Sock 9.Thread stoped [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:41]ConnectInit Can't connect to host [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:34]accept exits with 7 [02:39:34]New connection [02:39:34]New thread 3067149668 created [02:39:34]Thread 3067293028 joined [02:39:34]Waiting for new connection... [02:39:34] Sock 7.Parse request [02:39:34]Sock 7.Check first char [02:39:34]Sock 7.First char is OK [02:39:34]request: POST /json_proto HTTP/1.0 [02:39:34]Method: POST [02:39:34]URL: /json_proto [02:39:34]Method is POST - this is cgi request [02:39:34]url: /json_proto [02:39:34]query_string will be loaded in cgi processing [02:39:34]execute_cgi json_proto POST (null) [02:39:34]execute_cgi path=json_proto method=POST [02:39:34]POST find Content-Length [02:39:34]Host: 172.17.60.7:8080 [02:39:34]Content-Length: 617 [02:39:34]Content-Type: application/json [02:39:34] [02:39:34]POST finish read [02:39:34]Found Content-Length = 617 [02:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)122914", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:39:34]execute_script... [02:39: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)122914", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:39:34]POST & json_proto [02:39:34]process_json_proto [02:39:34]json parsed OK: [02:39:34]protocol is kg_v1.0 [02:39:34]action value=close_receipt [02:39:34]process_action close_receipt [02:39:34]cmd_close_receipt [02:39:34]MH_GetDate [02:39:34]Write to MH i2c: F0 00 00 EC 30 0B [02:39:34]Write i2c OK [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: F0 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: F0 09 00 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: F0 09 00 EC 30 00 6E C7 BA 66 63 9B 67 64 32 [02:39:34]GetLastDocTimeStamp 1723514867 [02:39:34]current date 1723516782 [02:39:34]FM_GetShiftState [02:39:34]SAM_PROTO_GetShiftState [02:39:34]wFMCommunicate request_size=4 [02:39:34]MH_SAM_APDU [02:39:34]CAPDU: 80 13 01 00 [02:39:34]Write to MH i2c: E2 08 00 ED 30 80 13 01 00 00 00 00 00 9A [02:39:34]Write i2c OK [02:39:34]MH_I2C_Read... [02:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:34]Read from MH i2c: E2 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: E2 0E 00 [02:39:34]MH_I2C_Read... [02:39:34]Read from MH i2c: E2 0E 00 ED 30 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 CE [02:39:34]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [02:39:34]wFMCommunicate OK [02:39:34]SAM_PROTO_GetShiftState done [02:39:34]FM_GetShiftState done [02:39:34]opened in 1723508832 [02:39:34]opened+sec_in_day 1723595232 [02:39:34]quantity*price = 14000 [02:39:34]sum+1 = 14001 [02:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 54 "Партнер Нефть" Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 СНО: Общий режим Чек 4 13.08.2024 02:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000007 РНМ: 0000000000090834 Версия ККМ: 001 ФМ: 0000000000874715 ФД: 52782 ФПД: 214797357633237 /tax-web-control/client/api/v1/ticket?date=20240813T023942&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52782&fm=214797357633237&tin=02508201610067®Number=0000000000090834&sum=14000 0 [02:39:35]StoreToDocumentArchive [02:39:35]shift 448 fd 52782 [02:39:35]save to /storage/0448/doc_00052782 [02:39:35]save last doc name /storage/0448/doc_00052782 to /storage/kkm_last_doc_name [02:39:35]save OK [02:39:35]Clear old archive folders... [02:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=269 [02:39:35]tlvbuf is 012B3E10 [02:39:35]SAM_PROTO_ClearQueue [02:39:35]wFMCommunicate request_size=4 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 09 00 00 [02:39:35]Write to MH i2c: E2 08 00 FA 30 80 09 00 00 00 00 00 00 9C [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:39:35]Read from MH i2c: E2 03 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 FA 30 00 90 00 9E [02:39:35]RAPDU: 90 00 [02:39:35]wFMCommunicate OK [02:39:35]SAM_PROTO_ClearQueue done [02:39:35]KKMCreateOFDPacket [02:39:35]OFDProtocolAddRootSTLVToBuf [02:39:35]FM_MakeSignedData [02:39:35]FM_MakeSignedData [02:39:35]SAM_PROTO_SignData [02:39:35]wFMCommunicate request_size=4 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 0D 01 02 [02:39:35]Write to MH i2c: E2 08 00 FB 30 80 0D 01 02 00 00 00 00 A4 [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 FB 30 00 90 00 9F [02:39:35]RAPDU: 90 00 [02:39:35]wFMCommunicate OK [02:39:35]wFMCommunicate request_size=255 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 04 00 00 00 F4 03 04 00 6E C7 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [02:39:35]Write to MH i2c: E2 02 01 FC 30 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 04 00 00 00 F4 03 04 00 6E C7 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A8 [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 FC 30 00 90 00 A0 [02:39:35]RAPDU: 90 00 [02:39:35]wFMCommunicate OK [02:39:35]wFMCommunicate request_size=28 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 0D 02 02 17 37 34 37 31 35 10 04 04 00 2E CE 00 00 35 04 06 00 C3 5B 68 33 4E D5 [02:39:35]Write to MH i2c: E2 1F 00 FD 30 80 0D 02 02 17 00 37 34 37 31 35 10 04 04 00 2E CE 00 00 35 04 06 00 C3 5B 68 33 4E D5 00 00 0C [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 03 00 FD 30 00 90 00 A1 [02:39:35]RAPDU: 90 00 [02:39:35]wFMCommunicate OK [02:39:35]wFMCommunicate request_size=4 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 0D 03 02 [02:39:35]Write to MH i2c: E2 08 00 FE 30 80 0D 03 02 00 00 00 00 A9 [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 0B 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 0B 00 FE 30 00 B6 F9 C6 39 6F 21 BB B0 90 00 53 [02:39:35]RAPDU: B6 F9 C6 39 6F 21 BB B0 90 00 [02:39:35]wFMCommunicate OK [02:39:35]SAM_PROTO_SignData done [02:39:35]FM_MakeSignedData done [02:39:35]CreateOFDProtocolMessage [02:39:35]wFMCommunicate request_size=4 [02:39:35]MH_SAM_APDU [02:39:35]CAPDU: 80 11 00 00 [02:39:35]Write to MH i2c: E2 08 00 FF 30 80 11 00 00 00 00 00 00 A9 [02:39:35]Write i2c OK [02:39:35]MH_I2C_Read... [02:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:35]Read from MH i2c: E2 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 17 00 [02:39:35]MH_I2C_Read... [02:39:35]Read from MH i2c: E2 17 00 FF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 FC [02:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [02:39:35]wFMCommunicate OK [02:39:35]CreateOFDProtocolMessage done [02:39:35]OFDSenderStorePacket 52782 [02:39:35]StoreOFDPacket docnum=52782 [02:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 21 01 00 00 EE E9 19 01 4F 4C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 04 00 00 00 F4 03 04 00 6E C7 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2E CE 00 00 35 04 06 00 C3 5B 68 33 4E D5 B6 F9 C6 39 6F 21 BB B0 [02:39:35]CheckFolder [02:39:35]dirname=/storage/ofd_packets [02:39:35]CheckFolder done [02:39:35]ProducePacketName [02:39:35]name=ofd_packets/00052782 [02:39:35]NVStorageSaveData ofd_packets/00052782 [02:39:35]File name is /storage/ofd_packets/00052782 [02:39:35]Write 319 bytes [02:39:35]NVStorageSaveData done [02:39:35]OFDSenderStorePacket done [02:39:35]KKMCreateOFDPacket done [02:39:35]NVStorageSaveData kkm_last_timestamp [02:39:35]File name is /storage/kkm_last_timestamp [02:39:35]Write 4 bytes [02:39:35]NVStorageSaveData done [02:39:36]ExternCall_PrintAddStr [02:39:36]wPrintStart [02:39:36]Write to MH i2c: 01 00 00 00 31 31 [02:39:36]Write i2c OK [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: 01 [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: 01 07 00 [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: 01 07 00 00 31 00 00 00 00 00 FF 0F 46 [02:39:36]RasterBufferAndPrint [02:39:36]line Счет N : (3)122914 [02:39:36]line ИНН: 02508201610067 [02:39:36]line Контрольно-Кассовый Чек [02:39:36]line ПРОДАЖА [02:39:36]line Товар: 47803008 [02:39:36]line Сигареты Winston XS Blue [02:39:36]line 1.000 * 140.00 [02:39:36]line = 140.00 [02:39:36]line НДС 12% НСП 1% [02:39:36]line > о реализуемом товаре [02:39:36]line ИТОГО: 140.00 [02:39:36]line НСП 1% : 1.24 [02:39:36]line НДС 12% : 14.87 [02:39:36]line Наличными: 140.00 [02:39:36]line Безнал.: 0.00 [02:39:36]line Место: АЗС № 54 "Партнер Нефть" [02:39:36]line Адрес: 720001, с. Маевка, ул. Молодая Гвардия/объездная, 42.946303, 74.567553 [02:39:36]line СНО: Общий режим [02:39:36]line Чек 4 13.08.2024 02:39 [02:39:36]line Смена: 448 ФФД: 1.0 [02:39:36]line ЗНМ: 0300000007 [02:39:36]line РНМ: 0000000000090834 [02:39:36]line Версия ККМ: 001 [02:39:36]line ФМ: 0000000000874715 [02:39:36]line ФД: 52782 [02:39:36]line ФПД: 214797357633237 [02:39:36]line /tax-web-control/client/api/v1/ticket?date=20240813T023942&type=1&operation_type=1&fn_number=0000000000874715&fd_number=52782&fm=214797357633237&tin=02508201610067®Number=0000000000090834&sum=14000 [02:39:36]line 0 [02:39:36]OFD Sender: Processing packet 52782 [packets to send 55, broken 54] [02:39:36]ProducePacketName [02:39:36]name=ofd_packets/00052782 [02:39:36]OFD Sender: To server: pG, [02:39:36]CommunicateWithHost lk.salyk.kg:30040 [02:39:36]ConnectInit lk.salyk.kg [02:39:36]written 0, free lines is 4095 [02:39:36]Connected sock=10 [02:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 21 01 00 00 EE E9 19 01 4F 4C 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 04 00 00 00 F4 03 04 00 6E C7 BA 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2E CE 00 00 35 04 06 00 C3 5B 68 33 4E D5 B6 F9 C6 39 6F 21 BB B0 [02:39:36]Write to MH i2c: 01 00 00 27 31 58 [02:39:36]Write i2c OK [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: 01 [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: 01 07 00 [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: 01 07 00 27 31 00 00 00 00 00 E9 0C 54 [02:39:36]RasterBufferAndPrint [02:39:36]line [02:39:36]line [02:39:36]line [02:39:36]line [02:39:36]line [02:39:36]written 0, free lines is 3310 [02:39:36]MH_Cut [02:39:36]Write to MH i2c: D1 01 00 2E 31 01 31 [02:39:36]Write i2c OK [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: D1 [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: D1 01 00 [02:39:36]MH_I2C_Read... [02:39:36]Read from MH i2c: D1 01 00 2E 31 00 30 [02:39:36]Write to MH i2c: 01 00 00 2F 31 60 [02:39:36]Write i2c OK [02:39:36]MH_I2C_Read... [02:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 4F 00 00 00 EC F5 47 00 B4 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 10 04 04 00 2E CE 00 00 F4 03 04 00 06 6F BA 66 B6 04 01 00 00 39 9E EC 79 F3 10 16 1C [02:39:36]CommunicateWithHost err = 0 [02:39:36]CheckOFDResponse [02:39:36]1017 (14) - 77093643461234 [02:39:36]1041 (16) - 0000000000874715 [02:39:36]1040 (4) - 52782 [02:39:36]1012 (4) - 12.08.2024 20:22 [02:39:36]1206 (1) - 0 [02:39:36]OFD Sender: Remove packet 52782 [02:39:36]ProducePacketName [02:39:36]name=ofd_packets/00052782 [02:39:36]NVStorageDeleteData [02:39:37]OFD Sender: No OFD packet to send [02:39:37]*** Cut start [02:39:37]*** Purtial cut [02:39:37]*** Stage 1: CUTSNS_PIN = 1 [02:39:37]Read from MH i2c: 01 [02:39:37]MH_I2C_Read... [02:39:37]*** Stop cut motor [02:39:37]*** Cut end [02:39:37]Read from MH i2c: 01 07 00 [02:39:37]MH_I2C_Read... [02:39:37]Read from MH i2c: 01 07 00 2F 31 00 00 00 00 00 FF 0F 75 [02:39:37]process_action close_receipt done [02:39:37]requested_data is exist [02:39:37]produce_requested_data [02:39:37]requested_item fm.sn is exist - process it [02:39:37]wFMCommunicate request_size=4 [02:39:37]MH_SAM_APDU [02:39:37]CAPDU: 80 11 00 00 [02:39:37]Write to MH i2c: E2 08 00 30 31 80 11 00 00 00 00 00 00 DB [02:39:37]Write i2c OK [02:39:37]MH_I2C_Read... [02:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:39:37]Read from MH i2c: E2 [02:39:37]MH_I2C_Read... [02:39:37]Read from MH i2c: E2 17 00 [02:39:37]MH_I2C_Read... [02:39:37]Read from MH i2c: E2 17 00 30 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 2E [02:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 90 00 [02:39:37]wFMCommunicate OK [02:39:37]requested_item fd.num is exist - process it [02:39:37]SAM_PROTO_GetFieldsCounters [02:39:37]wFMCommunicate request_size=4 [02:39:37]MH_SAM_APDU [02:39:37]CAPDU: 80 13 00 00 [02:39:37]Write to MH i2c: E2 08 00 31 31 80 13 00 00 00 00 00 00 DE [02:39:37]Write i2c OK [02:39:37]MH_I2C_Read... [02:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:39:38]Read from MH i2c: E2 [02:39:38]MH_I2C_Read... [02:39:38]Read from MH i2c: E2 62 00 [02:39:38]MH_I2C_Read... [02:39:38]Read from MH i2c: E2 62 00 31 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2E CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [02:39:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 33 34 10 04 04 00 2E CE 00 00 0E 04 04 00 C0 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:39:38]wFMCommunicate OK [02:39:38]SAM_PROTO_GetFieldsCounters done [02:39:38]requested_item shift.num is exist - process it [02:39:38]requested_item shift.opened is exist - process it [02:39:38]req_shift_opened [02:39:38]FM_GetShiftState [02:39:38]SAM_PROTO_GetShiftState [02:39:38]wFMCommunicate request_size=4 [02:39:38]MH_SAM_APDU [02:39:38]CAPDU: 80 13 01 00 [02:39:38]Write to MH i2c: E2 08 00 32 31 80 13 01 00 00 00 00 00 E0 [02:39:38]Write i2c OK [02:39:38]MH_I2C_Read... [02:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:39:38]Read from MH i2c: E2 [02:39:38]MH_I2C_Read... [02:39:38]Read from MH i2c: E2 0E 00 [02:39:38]MH_I2C_Read... [02:39:38]Read from MH i2c: E2 0E 00 32 31 00 09 00 01 60 A8 BA 66 00 00 00 00 90 00 14 [02:39:38]RAPDU: 09 00 01 60 A8 BA 66 00 00 00 00 90 00 [02:39:38]wFMCommunicate OK [02:39:38]SAM_PROTO_GetShiftState done [02:39:38]FM_GetShiftState done [02:39:38]req_shift_opened done [02:39:38]requested_item shift.open_date is exist - process it [02:39:38]req_shift_open_date [02:39:38]req_shift_open_date done [02:39:38]produce_requested_data done [02:39:38]produce_requested_data return {"fm.sn":"0000000000874715","fd.num":52782,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832} [02:39:38]process_action_free close_receipt [02:39:38]json_value_free [02:39:38]json_value_free done [02:39:38]process_json_proto returns [02:39:38]Send response to host [02:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874715","fd.num":52782,"shift.num":448,"shift.opened":1,"shift.open_date":1723508832}}} [02:39:38]free response buf [02:39:38]execute_script done [02:39:38]execute_script returns [02:39:38]free content buf [02:39:38]Sock 7.Close socket [02:39:38]Sock 7.Thread stoped [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14: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