[03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:21]accept exits with 8 [03:06:21]New connection [03:06:21]New thread 3067399524 created [03:06:21]Thread 3067542884 joined [03:06:21]Waiting for new connection... [03:06:21] Sock 8.Parse request [03:06:21]Sock 8.Check first char [03:06:21]Sock 8.First char is OK [03:06:21]request: POST /json_proto HTTP/1.0 [03:06:21]Method: POST [03:06:21]URL: /json_proto [03:06:21]Method is POST - this is cgi request [03:06:21]url: /json_proto [03:06:21]query_string will be loaded in cgi processing [03:06:21]execute_cgi json_proto POST (null) [03:06:21]execute_cgi path=json_proto method=POST [03:06:21]POST find Content-Length [03:06:21]Host: 172.17.43.4:8080 [03:06:21]Content-Length: 645 [03:06:21]Content-Type: application/json [03:06:21] [03:06:21]POST finish read [03:06:21]Found Content-Length = 645 [03:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51371", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:21]execute_script... [03:06:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51371", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:21]POST & json_proto [03:06:21]process_json_proto [03:06:21]json parsed OK: [03:06:21]protocol is kg_v1.0 [03:06:21]action value=close_receipt [03:06:21]process_action close_receipt [03:06:21]cmd_close_receipt [03:06:21]MH_GetDate [03:06:21]Write to MH i2c: F0 00 00 8F 0D 8B [03:06:21]Write i2c OK [03:06:21]MH_I2C_Read... [03:06:21]Read from MH i2c: F0 [03:06:21]MH_I2C_Read... [03:06:21]Read from MH i2c: F0 09 00 [03:06:21]MH_I2C_Read... [03:06:21]Read from MH i2c: F0 09 00 8F 0D 00 AF 89 EF 66 02 BF CF 66 17 [03:06:21]GetLastDocTimeStamp 1726973605 [03:06:21]current date 1726974383 [03:06:21]FM_GetShiftState [03:06:21]SAM_PROTO_GetShiftState [03:06:21]wFMCommunicate request_size=4 [03:06:21]MH_SAM_APDU [03:06:21]CAPDU: 80 13 01 00 [03:06:21]Write to MH i2c: E2 08 00 90 0D 80 13 01 00 00 00 00 00 1A [03:06:21]Write i2c OK [03:06:21]MH_I2C_Read... [03:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:21]Read from MH i2c: E2 [03:06:21]MH_I2C_Read... [03:06:21]Read from MH i2c: E2 0E 00 [03:06:21]MH_I2C_Read... [03:06:21]Read from MH i2c: E2 0E 00 90 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 95 [03:06:21]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [03:06:21]wFMCommunicate OK [03:06:21]SAM_PROTO_GetShiftState done [03:06:21]FM_GetShiftState done [03:06:21]opened in 1726964408 [03:06:21]opened+sec_in_day 1727050808 [03:06:21]quantity*price = 18500 [03:06:21]sum+1 = 18501 [03:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 13 22.09.2024 03:06 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22098 ФПД: 91097708327128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T030623&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22098&fm=91097708327128&tin=02508201610067®Number=0000000000146243&sum=18500 0 [03:06:23]StoreToDocumentArchive [03:06:23]shift 228 fd 22098 [03:06:23]save to /storage/0228/doc_00022098 [03:06:23]save last doc name /storage/0228/doc_00022098 to /storage/kkm_last_doc_name [03:06:23]save OK [03:06:23]Clear old archive folders... [03:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=278 [03:06:23]tlvbuf is 00FAB5E0 [03:06:23]SAM_PROTO_ClearQueue [03:06:23]wFMCommunicate request_size=4 [03:06:23]MH_SAM_APDU [03:06:23]CAPDU: 80 09 00 00 [03:06:23]Write to MH i2c: E2 08 00 9D 0D 80 09 00 00 00 00 00 00 1C [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:06:23]Read from MH i2c: E2 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [03:06:23]RAPDU: 90 00 [03:06:23]wFMCommunicate OK [03:06:23]SAM_PROTO_ClearQueue done [03:06:23]KKMCreateOFDPacket [03:06:23]OFDProtocolAddRootSTLVToBuf [03:06:23]FM_MakeSignedData [03:06:23]FM_MakeSignedData [03:06:23]SAM_PROTO_SignData [03:06:23]wFMCommunicate request_size=4 [03:06:23]MH_SAM_APDU [03:06:23]CAPDU: 80 0D 01 02 [03:06:23]Write to MH i2c: E2 08 00 9E 0D 80 0D 01 02 00 00 00 00 24 [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:06:23]Read from MH i2c: E2 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [03:06:23]RAPDU: 90 00 [03:06:23]wFMCommunicate OK [03:06:23]wFMCommunicate request_size=255 [03:06:23]MH_SAM_APDU [03:06:23]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 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 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 89 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 [03:06:23]Write to MH i2c: E2 02 01 9F 0D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 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 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 89 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 00 00 0B [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]OFD Sender: No OFD packet to send [03:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:23]Read from MH i2c: E2 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [03:06:23]RAPDU: 90 00 [03:06:23]wFMCommunicate OK [03:06:23]wFMCommunicate request_size=37 [03:06:23]MH_SAM_APDU [03:06:23]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 52 56 00 00 35 04 06 00 52 DA 56 8B 70 D8 [03:06:23]Write to MH i2c: E2 28 00 A0 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 52 56 00 00 35 04 06 00 52 DA 56 8B 70 D8 00 00 82 [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:23]Read from MH i2c: E2 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [03:06:23]RAPDU: 90 00 [03:06:23]wFMCommunicate OK [03:06:23]wFMCommunicate request_size=4 [03:06:23]MH_SAM_APDU [03:06:23]CAPDU: 80 0D 03 02 [03:06:23]Write to MH i2c: E2 08 00 A1 0D 80 0D 03 02 00 00 00 00 29 [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:06:23]Read from MH i2c: E2 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 0B 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 0B 00 A1 0D 00 92 18 04 FD FF 6A 4D B3 90 00 3E [03:06:23]RAPDU: 92 18 04 FD FF 6A 4D B3 90 00 [03:06:23]wFMCommunicate OK [03:06:23]SAM_PROTO_SignData done [03:06:23]FM_MakeSignedData done [03:06:23]CreateOFDProtocolMessage [03:06:23]wFMCommunicate request_size=4 [03:06:23]MH_SAM_APDU [03:06:23]CAPDU: 80 11 00 00 [03:06:23]Write to MH i2c: E2 08 00 A2 0D 80 11 00 00 00 00 00 00 29 [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:23]Read from MH i2c: E2 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 17 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: E2 17 00 A2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 83 [03:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [03:06:23]wFMCommunicate OK [03:06:23]CreateOFDProtocolMessage done [03:06:23]OFDSenderStorePacket 22098 [03:06:23]StoreOFDPacket docnum=22098 [03:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 15 23 22 01 57 3E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 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 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 89 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 52 56 00 00 35 04 06 00 52 DA 56 8B 70 D8 92 18 04 FD FF 6A 4D B3 [03:06:23]CheckFolder [03:06:23]dirname=/storage/ofd_packets [03:06:23]CheckFolder done [03:06:23]ProducePacketName [03:06:23]name=ofd_packets/00022098 [03:06:23]NVStorageSaveData ofd_packets/00022098 [03:06:23]File name is /storage/ofd_packets/00022098 [03:06:23]Write 328 bytes [03:06:23]NVStorageSaveData done [03:06:23]OFDSenderStorePacket done [03:06:23]KKMCreateOFDPacket done [03:06:23]NVStorageSaveData kkm_last_timestamp [03:06:23]File name is /storage/kkm_last_timestamp [03:06:23]Write 4 bytes [03:06:23]NVStorageSaveData done [03:06:23]ExternCall_PrintAddStr [03:06:23]wPrintStart [03:06:23]Write to MH i2c: 01 00 00 A3 0D B0 [03:06:23]Write i2c OK [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: 01 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: 01 07 00 [03:06:23]MH_I2C_Read... [03:06:23]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 FF 0F C5 [03:06:23]RasterBufferAndPrint [03:06:23]line Счет N : (3)51371 [03:06:23]line ИНН: 02508201610067 [03:06:23]line Контрольно-Кассовый Чек [03:06:23]line ПРОДАЖА [03:06:23]line Товар: 90162602 [03:06:23]line Энерг напиток Red bull 0,25л [03:06:23]line 1.000 * 185.00 [03:06:23]line = 185.00 [03:06:23]line НДС 12% НСП 1% [03:06:23]line > о реализуемом товаре [03:06:23]line ИТОГО: 185.00 [03:06:23]line НСП 1% : 1.64 [03:06:23]line НДС 12% : 19.65 [03:06:23]line Наличными: 185.00 [03:06:23]line Безнал.: 0.00 [03:06:23]line Место: АЗС № 88 "Партнер Нефть" [03:06:23]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [03:06:23]line СНО: Общий режим [03:06:23]line Чек 13 22.09.2024 03:06 [03:06:23]line Смена: 228 ФФД: 1.0 [03:06:23]line ЗНМ: 0300000061 [03:06:23]line РНМ: 0000000000146243 [03:06:23]line Версия ККМ: v1.0 [03:06:23]line ФМ: 0000000000959358 [03:06:23]line ФД: 22098 [03:06:23]line ФПД: 91097708327128 [03:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T030623&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22098&fm=91097708327128&tin=02508201610067®Number=0000000000146243&sum=18500 [03:06:23]line 0 [03:06:23]OFD Sender: Processing packet 22098 [packets to send 23, broken 22] [03:06:23]ProducePacketName [03:06:23]name=ofd_packets/00022098 [03:06:23]OFD Sender: To server: pG, [03:06:23]CommunicateWithHost lk.salyk.kg:30040 [03:06:23]ConnectInit lk.salyk.kg [03:06:23]written 0, free lines is 4095 [03:06:24]Connected sock=10 [03:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 15 23 22 01 57 3E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 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 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 AF 89 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 52 56 00 00 35 04 06 00 52 DA 56 8B 70 D8 92 18 04 FD FF 6A 4D B3 [03:06:24]Write to MH i2c: 01 00 00 CB 0D D8 [03:06:24]Write i2c OK [03:06:24]MH_I2C_Read... [03:06:24]Read from MH i2c: 01 [03:06:24]MH_I2C_Read... [03:06:24]Read from MH i2c: 01 07 00 [03:06:24]MH_I2C_Read... [03:06:24]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 27 0D 13 [03:06:24]RasterBufferAndPrint [03:06:24]line [03:06:24]line [03:06:24]line [03:06:24]line [03:06:24]line [03:06:24]written 0, free lines is 3373 [03:06:24]MH_Cut [03:06:24]Write to MH i2c: D1 01 00 D2 0D 01 B1 [03:06:24]Write i2c OK [03:06:24]MH_I2C_Read... [03:06:24]Read from MH i2c: D1 [03:06:24]MH_I2C_Read... [03:06:24]Read from MH i2c: D1 01 00 [03:06:24]MH_I2C_Read... [03:06:24]Read from MH i2c: D1 01 00 D2 0D 00 B0 [03:06:24]Write to MH i2c: 01 00 00 D3 0D E0 [03:06:24]Write i2c OK [03:06:24]MH_I2C_Read... [03:06:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 EC 3F 47 00 61 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 52 56 00 00 F4 03 04 00 DC 33 EF 66 B6 04 01 00 00 13 FF 55 07 7D 94 12 FA [03:06:24]CommunicateWithHost err = 0 [03:06:24]CheckOFDResponse [03:06:24]1017 (14) - 77093643461234 [03:06:24]1041 (16) - 0000000000959358 [03:06:24]1040 (4) - 22098 [03:06:24]1012 (4) - 21.09.2024 21:00 [03:06:24]1206 (1) - 0 [03:06:24]OFD Sender: Remove packet 22098 [03:06:24]ProducePacketName [03:06:24]name=ofd_packets/00022098 [03:06:24]NVStorageDeleteData [03:06:24]OFD Sender: No OFD packet to send [03:06:24]*** Cut start [03:06:24]*** Partial cut [03:06:24]*** CUTSNS_PIN = 1 [03:06:25]*** CUTSNS_PIN = 0 [03:06:25]*** Brake cut motor [03:06:25]Read from MH i2c: 01 [03:06:25]MH_I2C_Read... [03:06:25]*** Stop cut motor [03:06:25]*** Cut end [03:06:25]Read from MH i2c: 01 07 00 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: 01 07 00 D3 0D 00 00 00 00 00 FF 0F F5 [03:06:25]process_action close_receipt done [03:06:25]requested_data is exist [03:06:25]produce_requested_data [03:06:25]requested_item fm.sn is exist - process it [03:06:25]wFMCommunicate request_size=4 [03:06:25]MH_SAM_APDU [03:06:25]CAPDU: 80 11 00 00 [03:06:25]Write to MH i2c: E2 08 00 D4 0D 80 11 00 00 00 00 00 00 5B [03:06:25]Write i2c OK [03:06:25]MH_I2C_Read... [03:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:25]Read from MH i2c: E2 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: E2 17 00 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: E2 17 00 D4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B5 [03:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [03:06:25]wFMCommunicate OK [03:06:25]requested_item fd.num is exist - process it [03:06:25]SAM_PROTO_GetFieldsCounters [03:06:25]wFMCommunicate request_size=4 [03:06:25]MH_SAM_APDU [03:06:25]CAPDU: 80 13 00 00 [03:06:25]Write to MH i2c: E2 08 00 D5 0D 80 13 00 00 00 00 00 00 5E [03:06:25]Write i2c OK [03:06:25]MH_I2C_Read... [03:06:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:06:25]Read from MH i2c: E2 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: E2 62 00 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: E2 62 00 D5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 52 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [03:06:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 52 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:06:25]wFMCommunicate OK [03:06:25]SAM_PROTO_GetFieldsCounters done [03:06:25]requested_item shift.num is exist - process it [03:06:25]requested_item shift.opened is exist - process it [03:06:25]req_shift_opened [03:06:25]FM_GetShiftState [03:06:25]SAM_PROTO_GetShiftState [03:06:25]wFMCommunicate request_size=4 [03:06:25]MH_SAM_APDU [03:06:25]CAPDU: 80 13 01 00 [03:06:25]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [03:06:25]Write i2c OK [03:06:25]MH_I2C_Read... [03:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:25]Read from MH i2c: E2 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: E2 0E 00 [03:06:25]MH_I2C_Read... [03:06:25]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 DB [03:06:25]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [03:06:25]wFMCommunicate OK [03:06:25]SAM_PROTO_GetShiftState done [03:06:25]FM_GetShiftState done [03:06:25]req_shift_opened done [03:06:25]requested_item shift.open_date is exist - process it [03:06:25]req_shift_open_date [03:06:25]req_shift_open_date done [03:06:25]produce_requested_data done [03:06:25]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22098,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [03:06:25]process_action_free close_receipt [03:06:25]json_value_free [03:06:25]json_value_free done [03:06:25]process_json_proto returns [03:06:25]Send response to host [03:06:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22098,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [03:06:25]free response buf [03:06:25]execute_script done [03:06:25]execute_script returns [03:06:25]free content buf [03:06:25]Sock 8.Close socket [03:06:25]Sock 8.Thread stoped [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:28]ConnectInit Can't connect to host [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]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:17]accept exits with 9 [03:22:17]New connection [03:22:17]New thread 3067542884 created [03:22:17]Thread 3067399524 joined [03:22:17]Waiting for new connection... [03:22:17] Sock 9.Parse request [03:22:17]Sock 9.Check first char [03:22:17]Sock 9.First char is OK [03:22:17]request: POST /json_proto HTTP/1.0 [03:22:17]Method: POST [03:22:17]URL: /json_proto [03:22:17]Method is POST - this is cgi request [03:22:17]url: /json_proto [03:22:17]query_string will be loaded in cgi processing [03:22:17]execute_cgi json_proto POST (null) [03:22:17]execute_cgi path=json_proto method=POST [03:22:17]POST find Content-Length [03:22:17]Host: 172.17.43.4:8080 [03:22:17]Content-Length: 875 [03:22:17]Content-Type: application/json [03:22:17] [03:22:17]POST finish read [03:22:17]Found Content-Length = 875 [03:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51372", "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" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:17]execute_script... [03:22: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)51372", "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" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:17]POST & json_proto [03:22:17]process_json_proto [03:22:17]json parsed OK: [03:22:17]protocol is kg_v1.0 [03:22:17]action value=close_receipt [03:22:17]process_action close_receipt [03:22:17]cmd_close_receipt [03:22:17]MH_GetDate [03:22:17]Write to MH i2c: F0 00 00 D7 0D D3 [03:22:17]Write i2c OK [03:22:17]MH_I2C_Read... [03:22:17]Read from MH i2c: F0 [03:22:17]MH_I2C_Read... [03:22:17]Read from MH i2c: F0 09 00 [03:22:17]MH_I2C_Read... [03:22:17]Read from MH i2c: F0 09 00 D7 0D 00 6A 8D EF 66 02 BF CF 66 1E [03:22:17]GetLastDocTimeStamp 1726974383 [03:22:17]current date 1726975338 [03:22:17]FM_GetShiftState [03:22:17]SAM_PROTO_GetShiftState [03:22:17]wFMCommunicate request_size=4 [03:22:17]MH_SAM_APDU [03:22:17]CAPDU: 80 13 01 00 [03:22:17]Write to MH i2c: E2 08 00 D8 0D 80 13 01 00 00 00 00 00 62 [03:22:17]Write i2c OK [03:22:17]MH_I2C_Read... [03:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:17]Read from MH i2c: E2 [03:22:17]MH_I2C_Read... [03:22:17]Read from MH i2c: E2 0E 00 [03:22:17]MH_I2C_Read... [03:22:17]Read from MH i2c: E2 0E 00 D8 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 DD [03:22:17]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [03:22:17]wFMCommunicate OK [03:22:17]SAM_PROTO_GetShiftState done [03:22:17]FM_GetShiftState done [03:22:17]opened in 1726964408 [03:22:17]opened+sec_in_day 1727050808 [03:22:17]quantity*price = 1000 [03:22:17]sum+1 = 1001 [03:22:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 14 22.09.2024 03:22 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22099 ФПД: 82933843710848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T032219&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22099&fm=82933843710848&tin=02508201610067®Number=0000000000146243&sum=27000 0 [03:22:18]StoreToDocumentArchive [03:22:18]shift 228 fd 22099 [03:22:18]save to /storage/0228/doc_00022099 [03:22:18]save last doc name /storage/0228/doc_00022099 to /storage/kkm_last_doc_name [03:22:18]save OK [03:22:18]Clear old archive folders... [03:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=388 [03:22:18]tlvbuf is 00F70120 [03:22:18]SAM_PROTO_ClearQueue [03:22:18]wFMCommunicate request_size=4 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 09 00 00 [03:22:18]Write to MH i2c: E2 08 00 E5 0D 80 09 00 00 00 00 00 00 64 [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [03:22:18]RAPDU: 90 00 [03:22:18]wFMCommunicate OK [03:22:18]SAM_PROTO_ClearQueue done [03:22:18]KKMCreateOFDPacket [03:22:18]OFDProtocolAddRootSTLVToBuf [03:22:18]FM_MakeSignedData [03:22:18]FM_MakeSignedData [03:22:18]SAM_PROTO_SignData [03:22:18]wFMCommunicate request_size=4 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 0D 01 02 [03:22:18]Write to MH i2c: E2 08 00 E6 0D 80 0D 01 02 00 00 00 00 6C [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [03:22:18]RAPDU: 90 00 [03:22:18]wFMCommunicate OK [03:22:18]wFMCommunicate request_size=255 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 0D 02 02 FA 03 00 84 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 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [03:22:18]Write to MH i2c: E2 02 01 E7 0D 80 0D 02 02 FA 00 03 00 84 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 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 DE [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [03:22:18]RAPDU: 90 00 [03:22:18]wFMCommunicate OK [03:22:18]wFMCommunicate request_size=147 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 0D 02 02 8E F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 8D EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 53 56 00 00 35 04 06 00 4B 6D 8A 4B 53 80 [03:22:18]Write to MH i2c: E2 96 00 E8 0D 80 0D 02 02 8E 00 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 8D EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 53 56 00 00 35 04 06 00 4B 6D 8A 4B 53 80 00 00 10 [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [03:22:18]RAPDU: 90 00 [03:22:18]wFMCommunicate OK [03:22:18]wFMCommunicate request_size=4 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 0D 03 02 [03:22:18]Write to MH i2c: E2 08 00 E9 0D 80 0D 03 02 00 00 00 00 71 [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 0B 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 0B 00 E9 0D 00 41 5D E9 C9 01 A9 A0 6B 90 00 77 [03:22:18]RAPDU: 41 5D E9 C9 01 A9 A0 6B 90 00 [03:22:18]wFMCommunicate OK [03:22:18]SAM_PROTO_SignData done [03:22:18]FM_MakeSignedData done [03:22:18]CreateOFDProtocolMessage [03:22:18]wFMCommunicate request_size=4 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 11 00 00 [03:22:18]Write to MH i2c: E2 08 00 EA 0D 80 11 00 00 00 00 00 00 71 [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 17 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 17 00 EA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 CB [03:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [03:22:18]wFMCommunicate OK [03:22:18]CreateOFDProtocolMessage done [03:22:18]OFDSenderStorePacket 22099 [03:22:18]StoreOFDPacket docnum=22099 [03:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 98 01 00 00 CF B2 90 01 A6 2B 5A 03 01 00 03 00 84 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 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 8D EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 53 56 00 00 35 04 06 00 4B 6D 8A 4B 53 80 41 5D E9 C9 01 A9 A0 6B [03:22:18]CheckFolder [03:22:18]dirname=/storage/ofd_packets [03:22:18]CheckFolder done [03:22:18]ProducePacketName [03:22:18]name=ofd_packets/00022099 [03:22:18]NVStorageSaveData ofd_packets/00022099 [03:22:18]File name is /storage/ofd_packets/00022099 [03:22:18]Write 438 bytes [03:22:18]NVStorageSaveData done [03:22:18]OFDSenderStorePacket done [03:22:18]KKMCreateOFDPacket done [03:22:18]NVStorageSaveData kkm_last_timestamp [03:22:18]File name is /storage/kkm_last_timestamp [03:22:18]Write 4 bytes [03:22:18]NVStorageSaveData done [03:22:18]ExternCall_PrintAddStr [03:22:18]wPrintStart [03:22:18]Write to MH i2c: 01 00 00 EB 0D F8 [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: 01 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: 01 07 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 FF 0F 0D [03:22:18]RasterBufferAndPrint [03:22:18]line Счет N : (3)51372 [03:22:19]line ИНН: 02508201610067 [03:22:19]line Контрольно-Кассовый Чек [03:22:19]line ПРОДАЖА [03:22:19]line Товар: 46226624 [03:22:19]line Mentos ПВ Клубника 6*100*2 [03:22:19]line 1.000 * 10.00 [03:22:19]line = 10.00 [03:22:19]line НДС 12% НСП 1% [03:22:19]line > о реализуемом товаре [03:22:19]line Товар: 48745291 [03:22:19]line Сигареты Parliament SOHO NYC COMPACT BLU [03:22:19]line 2.000 * 130.00 [03:22:19]line = 260.00 [03:22:19]line НДС 12% НСП 1% [03:22:19]line > о реализуемом товаре [03:22:19]line ИТОГО: 270.00 [03:22:19]line НСП 1% : 2.39 [03:22:19]line НДС 12% : 28.67 [03:22:19]line Наличными: 270.00 [03:22:19]line Безнал.: 0.00 [03:22:19]line Место: АЗС № 88 "Партнер Нефть" [03:22:19]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [03:22:19]line СНО: Общий режим [03:22:19]line Чек 14 22.09.2024 03:22 [03:22:19]line Смена: 228 ФФД: 1.0 [03:22:19]line ЗНМ: 0300000061 [03:22:19]line РНМ: 0000000000146243 [03:22:19]line Версия ККМ: v1.0 [03:22:19]line ФМ: 0000000000959358 [03:22:19]line ФД: 22099 [03:22:19]line ФПД: 82933843710848 [03:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T032219&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22099&fm=82933843710848&tin=02508201610067®Number=0000000000146243&sum=27000 [03:22:19]OFD Sender: Processing packet 22099 [packets to send 23, broken 22] [03:22:19]ProducePacketName [03:22:19]name=ofd_packets/00022099 [03:22:19]OFD Sender: To server: pG, [03:22:19]CommunicateWithHost lk.salyk.kg:30040 [03:22:19]ConnectInit lk.salyk.kg [03:22:19]line 0 [03:22:19]written 0, free lines is 4095 [03:22:19]Connected sock=10 [03:22:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 98 01 00 00 CF B2 90 01 A6 2B 5A 03 01 00 03 00 84 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 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 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6B 8D EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 53 56 00 00 35 04 06 00 4B 6D 8A 4B 53 80 41 5D E9 C9 01 A9 A0 6B [03:22:19]Write to MH i2c: 01 00 00 1A 0E 28 [03:22:19]Write i2c OK [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: 01 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: 01 07 00 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 CB 0C 06 [03:22:19]RasterBufferAndPrint [03:22:19]line [03:22:19]line [03:22:19]line [03:22:19]line [03:22:19]line [03:22:19]written 0, free lines is 3282 [03:22:19]MH_Cut [03:22:19]Write to MH i2c: D1 01 00 21 0E 01 01 [03:22:19]Write i2c OK [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: D1 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: D1 01 00 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: D1 01 00 21 0E 00 00 [03:22:19]Write to MH i2c: 01 00 00 22 0E 30 [03:22:19]Write i2c OK [03:22:19]MH_I2C_Read... [03:22:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 92 7B 47 00 A2 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 53 56 00 00 F4 03 04 00 97 37 EF 66 B6 04 01 00 00 1F 70 A2 B2 CF E2 53 B6 [03:22:19]CommunicateWithHost err = 0 [03:22:19]CheckOFDResponse [03:22:19]1017 (14) - 77093643461234 [03:22:19]1041 (16) - 0000000000959358 [03:22:19]1040 (4) - 22099 [03:22:19]1012 (4) - 21.09.2024 21:16 [03:22:19]1206 (1) - 0 [03:22:19]OFD Sender: Remove packet 22099 [03:22:19]ProducePacketName [03:22:19]name=ofd_packets/00022099 [03:22:19]NVStorageDeleteData [03:22:20]OFD Sender: No OFD packet to send [03:22:20]*** Cut start [03:22:20]*** Partial cut [03:22:20]*** CUTSNS_PIN = 1 [03:22:20]*** CUTSNS_PIN = 0 [03:22:20]*** Brake cut motor [03:22:21]Read from MH i2c: 01 [03:22:21]MH_I2C_Read... [03:22:21]*** Stop cut motor [03:22:21]*** Cut end [03:22:21]Read from MH i2c: 01 07 00 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [03:22:21]process_action close_receipt done [03:22:21]requested_data is exist [03:22:21]produce_requested_data [03:22:21]requested_item fm.sn is exist - process it [03:22:21]wFMCommunicate request_size=4 [03:22:21]MH_SAM_APDU [03:22:21]CAPDU: 80 11 00 00 [03:22:21]Write to MH i2c: E2 08 00 23 0E 80 11 00 00 00 00 00 00 AB [03:22:21]Write i2c OK [03:22:21]MH_I2C_Read... [03:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:21]Read from MH i2c: E2 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: E2 17 00 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: E2 17 00 23 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 05 [03:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [03:22:21]wFMCommunicate OK [03:22:21]requested_item fd.num is exist - process it [03:22:21]SAM_PROTO_GetFieldsCounters [03:22:21]wFMCommunicate request_size=4 [03:22:21]MH_SAM_APDU [03:22:21]CAPDU: 80 13 00 00 [03:22:21]Write to MH i2c: E2 08 00 24 0E 80 13 00 00 00 00 00 00 AE [03:22:21]Write i2c OK [03:22:21]MH_I2C_Read... [03:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:21]Read from MH i2c: E2 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: E2 62 00 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: E2 62 00 24 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 53 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [03:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 53 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:22:21]wFMCommunicate OK [03:22:21]SAM_PROTO_GetFieldsCounters done [03:22:21]requested_item shift.num is exist - process it [03:22:21]requested_item shift.opened is exist - process it [03:22:21]req_shift_opened [03:22:21]FM_GetShiftState [03:22:21]SAM_PROTO_GetShiftState [03:22:21]wFMCommunicate request_size=4 [03:22:21]MH_SAM_APDU [03:22:21]CAPDU: 80 13 01 00 [03:22:21]Write to MH i2c: E2 08 00 25 0E 80 13 01 00 00 00 00 00 B0 [03:22:21]Write i2c OK [03:22:21]MH_I2C_Read... [03:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:21]Read from MH i2c: E2 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: E2 0E 00 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: E2 0E 00 25 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2B [03:22:21]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [03:22:21]wFMCommunicate OK [03:22:21]SAM_PROTO_GetShiftState done [03:22:21]FM_GetShiftState done [03:22:21]req_shift_opened done [03:22:21]requested_item shift.open_date is exist - process it [03:22:21]req_shift_open_date [03:22:21]req_shift_open_date done [03:22:21]produce_requested_data done [03:22:21]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22099,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [03:22:21]process_action_free close_receipt [03:22:21]json_value_free [03:22:21]json_value_free done [03:22:21]process_json_proto returns [03:22:21]Send response to host [03:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22099,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [03:22:21]free response buf [03:22:21]execute_script done [03:22:21]execute_script returns [03:22:21]free content buf [03:22:21]Sock 9.Close socket [03:22:21]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]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:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]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:38]accept exits with 8 [06:40:38]New connection [06:40:38]New thread 3067399524 created [06:40:38]Thread 3067542884 joined [06:40:38]Waiting for new connection... [06:40:38] Sock 8.Parse request [06:40:38]Sock 8.Check first char [06:40:38]Sock 8.First char is OK [06:40:38]request: POST /json_proto HTTP/1.0 [06:40:38]Method: POST [06:40:38]URL: /json_proto [06:40:38]Method is POST - this is cgi request [06:40:38]url: /json_proto [06:40:38]query_string will be loaded in cgi processing [06:40:38]execute_cgi json_proto POST (null) [06:40:38]execute_cgi path=json_proto method=POST [06:40:38]POST find Content-Length [06:40:38]Host: 172.17.43.4:8080 [06:40:38]Content-Length: 672 [06:40:38]Content-Type: application/json [06:40:38] [06:40:38]POST finish read [06:40:38]Found Content-Length = 672 [06:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 69.30, "quantity" : 10.110, "sum" : 700.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:38]execute_script... [06:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 69.30, "quantity" : 10.110, "sum" : 700.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:38]POST & json_proto [06:40:38]process_json_proto [06:40:38]json parsed OK: [06:40:38]protocol is kg_v1.0 [06:40:38]action value=close_receipt [06:40:38]process_action close_receipt [06:40:38]cmd_close_receipt [06:40:38]MH_GetDate [06:40:38]Write to MH i2c: F0 00 00 26 0E 23 [06:40:38]Write i2c OK [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: F0 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: F0 09 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: F0 09 00 26 0E 00 E9 BB EF 66 02 BF CF 66 1B [06:40:38]GetLastDocTimeStamp 1726975339 [06:40:38]current date 1726987241 [06:40:38]FM_GetShiftState [06:40:38]SAM_PROTO_GetShiftState [06:40:38]wFMCommunicate request_size=4 [06:40:38]MH_SAM_APDU [06:40:38]CAPDU: 80 13 01 00 [06:40:38]Write to MH i2c: E2 08 00 27 0E 80 13 01 00 00 00 00 00 B2 [06:40:38]Write i2c OK [06:40:38]MH_I2C_Read... [06:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:38]Read from MH i2c: E2 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 0E 00 [06:40:38]MH_I2C_Read... [06:40:38]Read from MH i2c: E2 0E 00 27 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2D [06:40:38]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [06:40:38]wFMCommunicate OK [06:40:38]SAM_PROTO_GetShiftState done [06:40:38]FM_GetShiftState done [06:40:38]opened in 1726964408 [06:40:38]opened+sec_in_day 1727050808 [06:40:38]quantity*price = 70062 [06:40:38]sum+1 = 70063 [06:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 15 22.09.2024 06:40 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22100 ФПД: 18260564402481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T064041&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22100&fm=18260564402481&tin=02508201610067®Number=0000000000146243&sum=70000 [06:40:40]StoreToDocumentArchive [06:40:40]shift 228 fd 22100 [06:40:40]save to /storage/0228/doc_00022100 [06:40:40]save last doc name /storage/0228/doc_00022100 to /storage/kkm_last_doc_name [06:40:40]save OK [06:40:40]Clear old archive folders... [06:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:40:40]tlvbuf is 00F91D70 [06:40:40]SAM_PROTO_ClearQueue [06:40:40]wFMCommunicate request_size=4 [06:40:40]MH_SAM_APDU [06:40:40]CAPDU: 80 09 00 00 [06:40:40]Write to MH i2c: E2 08 00 34 0E 80 09 00 00 00 00 00 00 B4 [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:40]Read from MH i2c: E2 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [06:40:40]RAPDU: 90 00 [06:40:40]wFMCommunicate OK [06:40:40]SAM_PROTO_ClearQueue done [06:40:40]KKMCreateOFDPacket [06:40:40]OFDProtocolAddRootSTLVToBuf [06:40:40]FM_MakeSignedData [06:40:40]FM_MakeSignedData [06:40:40]SAM_PROTO_SignData [06:40:40]wFMCommunicate request_size=4 [06:40:40]MH_SAM_APDU [06:40:40]CAPDU: 80 0D 01 02 [06:40:40]Write to MH i2c: E2 08 00 35 0E 80 0D 01 02 00 00 00 00 BC [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:40]Read from MH i2c: E2 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [06:40:40]RAPDU: 90 00 [06:40:40]wFMCommunicate OK [06:40:40]wFMCommunicate request_size=255 [06:40:40]MH_SAM_APDU [06:40:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 BB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 54 56 00 00 35 04 06 00 [06:40:40]Write to MH i2c: E2 02 01 36 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D OFD Sender: No OFD packet to send [06:40:40]00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 BB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 54 56 00 00 35 04 06 00 00 00 B9 [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:40]Read from MH i2c: E2 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [06:40:40]RAPDU: 90 00 [06:40:40]wFMCommunicate OK [06:40:40]wFMCommunicate request_size=11 [06:40:40]MH_SAM_APDU [06:40:40]CAPDU: 80 0D 02 02 06 10 9B 9E 74 61 31 [06:40:40]Write to MH i2c: E2 0E 00 37 0E 80 0D 02 02 06 00 10 9B 9E 74 61 31 00 00 1A [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:40]Read from MH i2c: E2 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [06:40:40]RAPDU: 90 00 [06:40:40]wFMCommunicate OK [06:40:40]wFMCommunicate request_size=4 [06:40:40]MH_SAM_APDU [06:40:40]CAPDU: 80 0D 03 02 [06:40:40]Write to MH i2c: E2 08 00 38 0E 80 0D 03 02 00 00 00 00 C1 [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:40]Read from MH i2c: E2 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 0B 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 0B 00 38 0E 00 41 D7 4D 02 29 2D 06 5B 90 00 E0 [06:40:40]RAPDU: 41 D7 4D 02 29 2D 06 5B 90 00 [06:40:40]wFMCommunicate OK [06:40:40]SAM_PROTO_SignData done [06:40:40]FM_MakeSignedData done [06:40:40]CreateOFDProtocolMessage [06:40:40]wFMCommunicate request_size=4 [06:40:40]MH_SAM_APDU [06:40:40]CAPDU: 80 11 00 00 [06:40:40]Write to MH i2c: E2 08 00 39 0E 80 11 00 00 00 00 00 00 C1 [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:40]Read from MH i2c: E2 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 17 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: E2 17 00 39 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1B [06:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [06:40:40]wFMCommunicate OK [06:40:40]CreateOFDProtocolMessage done [06:40:40]OFDSenderStorePacket 22100 [06:40:40]StoreOFDPacket docnum=22100 [06:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 01 00 00 8B 00 08 01 8F 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 BB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 54 56 00 00 35 04 06 00 10 9B 9E 74 61 31 41 D7 4D 02 29 2D 06 5B [06:40:40]CheckFolder [06:40:40]dirname=/storage/ofd_packets [06:40:40]CheckFolder done [06:40:40]ProducePacketName [06:40:40]name=ofd_packets/00022100 [06:40:40]NVStorageSaveData ofd_packets/00022100 [06:40:40]File name is /storage/ofd_packets/00022100 [06:40:40]Write 302 bytes [06:40:40]NVStorageSaveData done [06:40:40]OFDSenderStorePacket done [06:40:40]KKMCreateOFDPacket done [06:40:40]NVStorageSaveData kkm_last_timestamp [06:40:40]File name is /storage/kkm_last_timestamp [06:40:40]Write 4 bytes [06:40:40]NVStorageSaveData done [06:40:40]ExternCall_PrintAddStr [06:40:40]wPrintStart [06:40:40]Write to MH i2c: 01 00 00 3A 0E 48 [06:40:40]Write i2c OK [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: 01 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: 01 07 00 [06:40:40]MH_I2C_Read... [06:40:40]Read from MH i2c: 01 07 00 3A 0E 00 00 00 00 00 FF 0F 5D [06:40:40]RasterBufferAndPrint [06:40:40]line Счет N : (1)2162003 [06:40:40]line ИНН: 02508201610067 [06:40:40]line Контрольно-Кассовый Чек [06:40:40]line ПРОДАЖА [06:40:40]line ТРК (МРК, ГНК) : 11 [06:40:40]line Товар: 2710124130 [06:40:40]line Super-92-К-5 [06:40:40]line 10.110 * 69.30 [06:40:40]line = 700.62 [06:40:40]line НДС 12% НСП 1% [06:40:40]line > о реализуемом товаре [06:40:40]line ОКРУГЛЕНИЕ: -0.62 [06:40:40]line ИТОГО: 700.00 [06:40:40]line Внесено: 700.00 [06:40:40]line СДАЧА: 0.00 [06:40:40]line НСП 1% : 6.20 [06:40:40]line НДС 12% : 74.40 [06:40:40]line Наличными: 700.00 [06:40:40]line Безнал.: 0.00 [06:40:40]line Место: АЗС № 88 "Партнер Нефть" [06:40:40]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [06:40:40]line СНО: Общий режим [06:40:40]line Чек 15 22.09.2024 06:40 [06:40:40]line Смена: 228 ФФД: 1.0 [06:40:40]line ЗНМ: 0300000061 [06:40:40]line РНМ: 0000000000146243 [06:40:40]line Версия ККМ: v1.0 [06:40:40]line ФМ: 0000000000959358 [06:40:40]line ФД: 22100 [06:40:40]line ФПД: 18260564402481 [06:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T064041&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22100&fm=18260564402481&tin=02508201610067®Number=0000000000146243&sum=70000 [06:40:40]OFD Sender: Processing packet 22100 [packets to send 23, broken 22] [06:40:40]ProducePacketName [06:40:40]name=ofd_packets/00022100 [06:40:40]OFD Sender: To server: pG, [06:40:40]CommunicateWithHost lk.salyk.kg:30040 [06:40:40]ConnectInit lk.salyk.kg [06:40:40]written 0, free lines is 4095 [06:40:41]Connected sock=10 [06:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 01 00 00 8B 00 08 01 8F 0E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 AE 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E9 BB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 54 56 00 00 35 04 06 00 10 9B 9E 74 61 31 41 D7 4D 02 29 2D 06 5B [06:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 4C 5A 47 00 63 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 54 56 00 00 F4 03 04 00 15 66 EF 66 B6 04 01 00 00 B1 D9 51 45 44 92 BE F0 [06:40:41]CommunicateWithHost err = 0 [06:40:41]CheckOFDResponse [06:40:41]1017 (14) - 77093643461234 [06:40:41]1041 (16) - 0000000000959358 [06:40:41]1040 (4) - 22100 [06:40:41]1012 (4) - 22.09.2024 00:34 [06:40:41]1206 (1) - 0 [06:40:41]OFD Sender: Remove packet 22100 [06:40:41]ProducePacketName [06:40:41]name=ofd_packets/00022100 [06:40:41]NVStorageDeleteData [06:40:41]Write to MH i2c: 01 00 00 65 0E 73 [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: 01 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: 01 07 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: 01 07 00 65 0E 00 00 00 00 00 F9 0C 7F [06:40:41]RasterBufferAndPrint [06:40:41]line [06:40:41]line [06:40:41]line [06:40:41]line [06:40:41]line [06:40:41]written 0, free lines is 3328 [06:40:41]MH_Cut [06:40:41]Write to MH i2c: D1 01 00 6C 0E 01 4C [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: D1 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: D1 01 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: D1 01 00 6C 0E 00 4B [06:40:41]Write to MH i2c: 01 00 00 6D 0E 7B [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]OFD Sender: No OFD packet to send [06:40:42]*** Cut start [06:40:42]*** Partial cut [06:40:42]*** CUTSNS_PIN = 1 [06:40:42]*** CUTSNS_PIN = 0 [06:40:42]*** Brake cut motor [06:40:42]Read from MH i2c: 01 [06:40:42]MH_I2C_Read... [06:40:42]*** Stop cut motor [06:40:42]*** Cut end [06:40:42]Read from MH i2c: 01 07 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: 01 07 00 6D 0E 00 00 00 00 00 FF 0F 90 [06:40:42]process_action close_receipt done [06:40:42]requested_data is exist [06:40:42]produce_requested_data [06:40:42]requested_item fm.sn is exist - process it [06:40:42]wFMCommunicate request_size=4 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 11 00 00 [06:40:42]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 17 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 50 [06:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [06:40:42]wFMCommunicate OK [06:40:42]requested_item fd.num is exist - process it [06:40:42]SAM_PROTO_GetFieldsCounters [06:40:42]wFMCommunicate request_size=4 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 13 00 00 [06:40:42]Write to MH i2c: E2 08 00 6F 0E 80 13 00 00 00 00 00 00 F9 [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 62 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 62 00 6F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 54 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [06:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 54 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:40:42]wFMCommunicate OK [06:40:42]SAM_PROTO_GetFieldsCounters done [06:40:42]requested_item shift.num is exist - process it [06:40:42]requested_item shift.opened is exist - process it [06:40:42]req_shift_opened [06:40:42]FM_GetShiftState [06:40:42]SAM_PROTO_GetShiftState [06:40:42]wFMCommunicate request_size=4 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 13 01 00 [06:40:42]Write to MH i2c: E2 08 00 70 0E 80 13 01 00 00 00 00 00 FB [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 0E 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 0E 00 70 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 76 [06:40:42]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [06:40:42]wFMCommunicate OK [06:40:42]SAM_PROTO_GetShiftState done [06:40:42]FM_GetShiftState done [06:40:42]req_shift_opened done [06:40:42]requested_item shift.open_date is exist - process it [06:40:42]req_shift_open_date [06:40:42]req_shift_open_date done [06:40:42]produce_requested_data done [06:40:42]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22100,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [06:40:42]process_action_free close_receipt [06:40:42]json_value_free [06:40:42]json_value_free done [06:40:42]process_json_proto returns [06:40:42]Send response to host [06:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22100,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [06:40:42]free response buf [06:40:42]execute_script done [06:40:42]execute_script returns [06:40:42]free content buf [06:40:42]Sock 8.Close socket [06:40:42]Sock 8.Thread stoped [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:03]accept exits with 9 [06:58:03]New connection [06:58:03]New thread 3067542884 created [06:58:03]Thread 3067399524 joined [06:58:03]Waiting for new connection... [06:58:03] Sock 9.Parse request [06:58:03]Sock 9.Check first char [06:58:03]Sock 9.First char is OK [06:58:03]request: POST /json_proto HTTP/1.0 [06:58:03]Method: POST [06:58:03]URL: /json_proto [06:58:03]Method is POST - this is cgi request [06:58:03]url: /json_proto [06:58:03]query_string will be loaded in cgi processing [06:58:03]execute_cgi json_proto POST (null) [06:58:03]execute_cgi path=json_proto method=POST [06:58:03]POST find Content-Length [06:58:03]Host: 172.17.43.4:8080 [06:58:03]Content-Length: 683 [06:58:03]Content-Type: application/json [06:58:03] [06:58:03]POST finish read [06:58:03]Found Content-Length = 683 [06:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 28.970, "sum" : 2149.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2149.00, "payments": [ { "type": 0, "sum" : 2149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:03]execute_script... [06:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 28.970, "sum" : 2149.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2149.00, "payments": [ { "type": 0, "sum" : 2149.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:03]POST & json_proto [06:58:03]process_json_proto [06:58:03]json parsed OK: [06:58:03]protocol is kg_v1.0 [06:58:03]action value=close_receipt [06:58:03]process_action close_receipt [06:58:03]cmd_close_receipt [06:58:03]MH_GetDate [06:58:03]Write to MH i2c: F0 00 00 71 0E 6E [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 09 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 09 00 71 0E 00 FE BF EF 66 02 BF CF 66 7F [06:58:03]GetLastDocTimeStamp 1726987241 [06:58:03]current date 1726988286 [06:58:03]FM_GetShiftState [06:58:03]SAM_PROTO_GetShiftState [06:58:03]wFMCommunicate request_size=4 [06:58:03]MH_SAM_APDU [06:58:03]CAPDU: 80 13 01 00 [06:58:03]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:03]Read from MH i2c: E2 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 0E 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 78 [06:58:03]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [06:58:03]wFMCommunicate OK [06:58:03]SAM_PROTO_GetShiftState done [06:58:03]FM_GetShiftState done [06:58:03]opened in 1726964408 [06:58:03]opened+sec_in_day 1727050808 [06:58:03]quantity*price = 214957 [06:58:03]sum+1 = 214958 [06:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 2149.00 Внесено: 3000.00 СДАЧА: 851.00 НСП 1% : 19.02 НДС 12% : 228.27 Наличными: 2149.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 16 22.09.2024 06:58 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22101 ФПД: 197414567486119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T065806&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22101&fm=197414567486119&tin=02508201610067®Number=0000000000146243&sum=214900 [06:58:04]StoreToDocumentArchive [06:58:04]shift 228 fd 22101 [06:58:04]save to /storage/0228/doc_00022101 [06:58:04]save last doc name /storage/0228/doc_00022101 to /storage/kkm_last_doc_name [06:58:04]save OK [06:58:04]Clear old archive folders... [06:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:04]tlvbuf is 00FAB650 [06:58:04]SAM_PROTO_ClearQueue [06:58:04]wFMCommunicate request_size=4 [06:58:04]MH_SAM_APDU [06:58:04]CAPDU: 80 09 00 00 [06:58:04]Write to MH i2c: E2 08 00 7F 0E 80 09 00 00 00 00 00 00 FF [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]SAM_PROTO_ClearQueue done [06:58:05]KKMCreateOFDPacket [06:58:05]OFDProtocolAddRootSTLVToBuf [06:58:05]FM_MakeSignedData [06:58:05]FM_MakeSignedData [06:58:05]SAM_PROTO_SignData [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 01 02 [06:58:05]Write to MH i2c: E2 08 00 80 0E 80 0D 01 02 00 00 00 00 07 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=255 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 71 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 59 00 00 00 00 07 04 06 00 74 47 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 FE BF EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 55 56 00 00 35 04 06 00 B3 [06:58:05]Write to MH i2c: E2 02 01 81 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 71 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 59 00 00 00 00 07 04 06 00 74 47 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 FE BF EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 55 56 00 00 35 04 06 00 B3 00 00 9A [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=10 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 02 02 05 8C 29 2B 22 A7 [06:58:05]Write to MH i2c: E2 0D 00 82 0E 80 0D 02 02 05 00 8C 29 2B 22 A7 00 00 BD [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 03 02 [06:58:05]Write to MH i2c: E2 08 00 83 0E 80 0D 03 02 00 00 00 00 0C [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0B 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0B 00 83 0E 00 96 57 B3 2E D1 E2 35 8B 90 00 4E [06:58:05]RAPDU: 96 57 B3 2E D1 E2 35 8B 90 00 [06:58:05]wFMCommunicate OK [06:58:05]SAM_PROTO_SignData done [06:58:05]FM_MakeSignedData done [06:58:05]CreateOFDProtocolMessage [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 11 00 00 [06:58:05]Write to MH i2c: E2 08 00 84 0E 80 11 00 00 00 00 00 00 0C [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 84 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 66 [06:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [06:58:05]wFMCommunicate OK [06:58:05]CreateOFDProtocolMessage done [06:58:05]OFDSenderStorePacket 22101 [06:58:05]StoreOFDPacket docnum=22101 [06:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 46 CC 07 01 9E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 71 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 59 00 00 00 00 07 04 06 00 74 47 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 FE BF EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 55 56 00 00 35 04 06 00 B3 8C 29 2B 22 A7 96 57 B3 2E D1 E2 35 8B [06:58:05]CheckFolder [06:58:05]dirname=/storage/ofd_packets [06:58:05]CheckFolder done [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00022101 [06:58:05]NVStorageSaveData ofd_packets/00022101 [06:58:05]File name is /storage/ofd_packets/00022101 [06:58:05]Write 301 bytes [06:58:05]NVStorageSaveData done [06:58:05]OFDSenderStorePacket done [06:58:05]KKMCreateOFDPacket done [06:58:05]NVStorageSaveData kkm_last_timestamp [06:58:05]File name is /storage/kkm_last_timestamp [06:58:05]Write 4 bytes [06:58:05]NVStorageSaveData done [06:58:05]ExternCall_PrintAddStr [06:58:05]wPrintStart [06:58:05]Write to MH i2c: 01 00 00 85 0E 93 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 85 0E 00 00 00 00 00 FF 0F A8 [06:58:05]RasterBufferAndPrint [06:58:05]line Счет N : (1)2162007 [06:58:05]line ИНН: 02508201610067 [06:58:05]line Контрольно-Кассовый Чек [06:58:05]line ПРОДАЖА [06:58:05]line ТРК (МРК, ГНК) : 23 [06:58:05]line Товар: 2710124500 [06:58:05]line Аи-95-К-5 [06:58:05]line 28.970 * 74.20 [06:58:05]line = 2149.57 [06:58:05]line НДС 12% НСП 1% [06:58:05]line > о реализуемом товаре [06:58:05]line ОКРУГЛЕНИЕ: -0.57 [06:58:05]line ИТОГО: 2149.00 [06:58:05]line Внесено: 3000.00 [06:58:05]line СДАЧА: 851.00 [06:58:05]line НСП 1% : 19.02 [06:58:05]line НДС 12% : 228.27 [06:58:05]line Наличными: 2149.00 [06:58:05]line Безнал.: 0.00 [06:58:05]line Место: АЗС № 88 "Партнер Нефть" [06:58:05]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [06:58:05]line СНО: Общий режим [06:58:05]line Чек 16 22.09.2024 06:58 [06:58:05]line Смена: 228 ФФД: 1.0 [06:58:05]line ЗНМ: 0300000061 [06:58:05]line РНМ: 0000000000146243 [06:58:05]line Версия ККМ: v1.0 [06:58:05]line ФМ: 0000000000959358 [06:58:05]line ФД: 22101 [06:58:05]line ФПД: 197414567486119 [06:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T065806&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22101&fm=197414567486119&tin=02508201610067®Number=0000000000146243&sum=214900 [06:58:05]OFD Sender: Processing packet 22101 [packets to send 23, broken 22] [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00022101 [06:58:05]OFD Sender: To server: pG, [06:58:05]CommunicateWithHost lk.salyk.kg:30040 [06:58:05]ConnectInit lk.salyk.kg [06:58:05]written 0, free lines is 4095 [06:58:06]Connected sock=10 [06:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 46 CC 07 01 9E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 71 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AD 47 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 47 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 59 00 00 00 00 07 04 06 00 74 47 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 FE BF EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 55 56 00 00 35 04 06 00 B3 8C 29 2B 22 A7 96 57 B3 2E D1 E2 35 8B [06:58:06]Write to MH i2c: 01 00 00 B0 0E BE [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 07 00 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 07 00 B0 0E 00 00 00 00 00 03 0D D5 [06:58:06]RasterBufferAndPrint [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 0E 3A 47 00 4B 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 55 56 00 00 F4 03 04 00 2A 6A EF 66 B6 04 01 00 00 72 87 8D 4E FA 75 B1 2C [06:58:06]CommunicateWithHost err = 0 [06:58:06]CheckOFDResponse [06:58:06]1017 (14) - 77093643461234 [06:58:06]1041 (16) - 0000000000959358 [06:58:06]1040 (4) - 22101 [06:58:06]1012 (4) - 22.09.2024 00:51 [06:58:06]1206 (1) - 0 [06:58:06]OFD Sender: Remove packet 22101 [06:58:06]ProducePacketName [06:58:06]name=ofd_packets/00022101 [06:58:06]NVStorageDeleteData [06:58:06]written 0, free lines is 3346 [06:58:06]MH_Cut [06:58:06]Write to MH i2c: D1 01 00 B7 0E 01 97 [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 01 00 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 01 00 B7 0E 00 96 [06:58:06]Write to MH i2c: 01 00 00 B8 0E C6 [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]OFD Sender: No OFD packet to send [06:58:06]*** Cut start [06:58:06]*** Partial cut [06:58:06]*** CUTSNS_PIN = 1 [06:58:07]*** CUTSNS_PIN = 0 [06:58:07]*** Brake cut motor [06:58:07]Read from MH i2c: 01 [06:58:07]MH_I2C_Read... [06:58:07]*** Stop cut motor [06:58:07]*** Cut end [06:58:07]Read from MH i2c: 01 07 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: 01 07 00 B8 0E 00 00 00 00 00 FF 0F DB [06:58:07]process_action close_receipt done [06:58:07]requested_data is exist [06:58:07]produce_requested_data [06:58:07]requested_item fm.sn is exist - process it [06:58:07]wFMCommunicate request_size=4 [06:58:07]MH_SAM_APDU [06:58:07]CAPDU: 80 11 00 00 [06:58:07]Write to MH i2c: E2 08 00 B9 0E 80 11 00 00 00 00 00 00 41 [06:58:07]Write i2c OK [06:58:07]MH_I2C_Read... [06:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:07]Read from MH i2c: E2 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 17 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 17 00 B9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9B [06:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [06:58:07]wFMCommunicate OK [06:58:07]requested_item fd.num is exist - process it [06:58:07]SAM_PROTO_GetFieldsCounters [06:58:07]wFMCommunicate request_size=4 [06:58:07]MH_SAM_APDU [06:58:07]CAPDU: 80 13 00 00 [06:58:07]Write to MH i2c: E2 08 00 BA 0E 80 13 00 00 00 00 00 00 44 [06:58:07]Write i2c OK [06:58:07]MH_I2C_Read... [06:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:07]Read from MH i2c: E2 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 62 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 62 00 BA 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 55 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [06:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 55 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:07]wFMCommunicate OK [06:58:07]SAM_PROTO_GetFieldsCounters done [06:58:07]requested_item shift.num is exist - process it [06:58:07]requested_item shift.opened is exist - process it [06:58:07]req_shift_opened [06:58:07]FM_GetShiftState [06:58:07]SAM_PROTO_GetShiftState [06:58:07]wFMCommunicate request_size=4 [06:58:07]MH_SAM_APDU [06:58:07]CAPDU: 80 13 01 00 [06:58:07]Write to MH i2c: E2 08 00 BB 0E 80 13 01 00 00 00 00 00 46 [06:58:07]Write i2c OK [06:58:07]MH_I2C_Read... [06:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:07]Read from MH i2c: E2 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 0E 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 0E 00 BB 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C1 [06:58:07]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [06:58:07]wFMCommunicate OK [06:58:07]SAM_PROTO_GetShiftState done [06:58:07]FM_GetShiftState done [06:58:07]req_shift_opened done [06:58:07]requested_item shift.open_date is exist - process it [06:58:07]req_shift_open_date [06:58:07]req_shift_open_date done [06:58:07]produce_requested_data done [06:58:07]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22101,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [06:58:07]process_action_free close_receipt [06:58:07]json_value_free [06:58:07]json_value_free done [06:58:07]process_json_proto returns [06:58:07]Send response to host [06:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22101,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [06:58:07]free response buf [06:58:07]execute_script done [06:58:07]execute_script returns [06:58:07]free content buf [06:58:07]Sock 9.Close socket [06:58:07]Sock 9.Thread stoped [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:23]accept exits with 8 [06:58:23]New connection [06:58:23]New thread 3067399524 created [06:58:23]Thread 3067542884 joined [06:58:23]Waiting for new connection... [06:58:23] Sock 8.Parse request [06:58:23]Sock 8.Check first char [06:58:23]Sock 8.First char is OK [06:58:23]request: POST /json_proto HTTP/1.0 [06:58:23]Method: POST [06:58:23]URL: /json_proto [06:58:23]Method is POST - this is cgi request [06:58:23]url: /json_proto [06:58:23]query_string will be loaded in cgi processing [06:58:23]execute_cgi json_proto POST (null) [06:58:23]execute_cgi path=json_proto method=POST [06:58:23]POST find Content-Length [06:58:23]Host: 172.17.43.4:8080 [06:58:23]Content-Length: 621 [06:58:23]Content-Type: application/json [06:58:23] [06:58:23]POST finish read [06:58:23]Found Content-Length = 621 [06:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51373", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:23]execute_script... [06:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51373", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:23]POST & json_proto [06:58:23]process_json_proto [06:58:23]json parsed OK: [06:58:23]protocol is kg_v1.0 [06:58:23]action value=close_receipt [06:58:23]process_action close_receipt [06:58:23]cmd_close_receipt [06:58:23]MH_GetDate [06:58:23]Write to MH i2c: F0 00 00 BC 0E B9 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: F0 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: F0 09 00 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: F0 09 00 BC 0E 00 12 C0 EF 66 02 BF CF 66 DF [06:58:23]GetLastDocTimeStamp 1726988286 [06:58:23]current date 1726988306 [06:58:23]FM_GetShiftState [06:58:23]SAM_PROTO_GetShiftState [06:58:23]wFMCommunicate request_size=4 [06:58:23]MH_SAM_APDU [06:58:23]CAPDU: 80 13 01 00 [06:58:23]Write to MH i2c: E2 08 00 BD 0E 80 13 01 00 00 00 00 00 48 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:23]Read from MH i2c: E2 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 0E 00 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 0E 00 BD 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C3 [06:58:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [06:58:23]wFMCommunicate OK [06:58:23]SAM_PROTO_GetShiftState done [06:58:23]FM_GetShiftState done [06:58:23]opened in 1726964408 [06:58:23]opened+sec_in_day 1727050808 [06:58:23]quantity*price = 27800 [06:58:23]sum+1 = 27801 [06:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 17 22.09.2024 06:58 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22102 ФПД: 204741300040757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T065826&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22102&fm=204741300040757&tin=02508201610067®Number=0000000000146243&sum=27800 0 [06:58:24]StoreToDocumentArchive [06:58:24]shift 228 fd 22102 [06:58:24]save to /storage/0228/doc_00022102 [06:58:24]save last doc name /storage/0228/doc_00022102 to /storage/kkm_last_doc_name [06:58:24]save OK [06:58:24]Clear old archive folders... [06:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:58:24]tlvbuf is 00FAFD90 [06:58:24]SAM_PROTO_ClearQueue [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 09 00 00 [06:58:24]Write to MH i2c: E2 08 00 CA 0E 80 09 00 00 00 00 00 00 4A [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]SAM_PROTO_ClearQueue done [06:58:24]KKMCreateOFDPacket [06:58:24]OFDProtocolAddRootSTLVToBuf [06:58:24]FM_MakeSignedData [06:58:24]FM_MakeSignedData [06:58:24]SAM_PROTO_SignData [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 01 02 [06:58:24]Write to MH i2c: E2 08 00 CB 0E 80 0D 01 02 00 00 00 00 52 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]wFMCommunicate request_size=255 [06:58:24]MH_SAM_APDU [06:58:24]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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 12 C0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 [06:58:24]Write to MH i2c: E2 02 01 CC 0E 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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 12 C0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 00 00 B8 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:25]Read from MH i2c: E2 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 03 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [06:58:25]RAPDU: 90 00 [06:58:25]wFMCommunicate OK [06:58:25]wFMCommunicate request_size=33 [06:58:25]MH_SAM_APDU [06:58:25]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 33 35 38 10 04 04 00 56 56 00 00 35 04 06 00 BA 36 0C 75 B4 35 [06:58:25]Write to MH i2c: E2 24 00 CD 0E 80 0D 02 02 1C 00 30 30 30 30 39 35 39 33 35 38 10 04 04 00 56 56 00 00 35 04 06 00 BA 36 0C 75 B4 35 00 00 F1 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:25]Read from MH i2c: E2 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 03 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 03 00 CD 0E 00 90 00 4F [06:58:25]RAPDU: 90 00 [06:58:25]wFMCommunicate OK [06:58:25]wFMCommunicate request_size=4 [06:58:25]MH_SAM_APDU [06:58:25]CAPDU: 80 0D 03 02 [06:58:25]Write to MH i2c: E2 08 00 CE 0E 80 0D 03 02 00 00 00 00 57 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:25]Read from MH i2c: E2 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 0B 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 0B 00 CE 0E 00 FC C5 BD 30 A8 39 49 CE 90 00 FE [06:58:25]RAPDU: FC C5 BD 30 A8 39 49 CE 90 00 [06:58:25]wFMCommunicate OK [06:58:25]SAM_PROTO_SignData done [06:58:25]FM_MakeSignedData done [06:58:25]CreateOFDProtocolMessage [06:58:25]wFMCommunicate request_size=4 [06:58:25]MH_SAM_APDU [06:58:25]CAPDU: 80 11 00 00 [06:58:25]Write to MH i2c: E2 08 00 CF 0E 80 11 00 00 00 00 00 00 57 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:25]Read from MH i2c: E2 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 17 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: E2 17 00 CF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B1 [06:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [06:58:25]wFMCommunicate OK [06:58:25]CreateOFDProtocolMessage done [06:58:25]OFDSenderStorePacket 22102 [06:58:25]StoreOFDPacket docnum=22102 [06:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 26 01 00 00 2D 1B 1E 01 9E 1B 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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 12 C0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 56 56 00 00 35 04 06 00 BA 36 0C 75 B4 35 FC C5 BD 30 A8 39 49 CE [06:58:25]CheckFolder [06:58:25]dirname=/storage/ofd_packets [06:58:25]CheckFolder done [06:58:25]ProducePacketName [06:58:25]name=ofd_packets/00022102 [06:58:25]NVStorageSaveData ofd_packets/00022102 [06:58:25]File name is /storage/ofd_packets/00022102 [06:58:25]Write 324 bytes [06:58:25]NVStorageSaveData done [06:58:25]OFDSenderStorePacket done [06:58:25]KKMCreateOFDPacket done [06:58:25]NVStorageSaveData kkm_last_timestamp [06:58:25]File name is /storage/kkm_last_timestamp [06:58:25]Write 4 bytes [06:58:25]NVStorageSaveData done [06:58:25]ExternCall_PrintAddStr [06:58:25]wPrintStart [06:58:25]Write to MH i2c: 01 00 00 D0 0E DE [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 07 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 07 00 D0 0E 00 00 00 00 00 FF 0F F3 [06:58:25]RasterBufferAndPrint [06:58:25]line Счет N : (3)51373 [06:58:25]line ИНН: 02508201610067 [06:58:25]line Контрольно-Кассовый Чек [06:58:25]line ПРОДАЖА [06:58:25]line Товар: 48744997 [06:58:25]line Сигареты Winston Compact Blue [06:58:25]line 2.000 * 139.00 [06:58:25]line = 278.00 [06:58:25]line НДС 12% НСП 1% [06:58:25]line > о реализуемом товаре [06:58:25]line ИТОГО: 278.00 [06:58:25]line НСП 1% : 2.46 [06:58:25]line НДС 12% : 29.52 [06:58:25]line Наличными: 278.00 [06:58:25]line Безнал.: 0.00 [06:58:25]line Место: АЗС № 88 "Партнер Нефть" [06:58:25]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [06:58:25]line СНО: Общий режим [06:58:25]line Чек 17 22.09.2024 06:58 [06:58:25]line Смена: 228 ФФД: 1.0 [06:58:25]line ЗНМ: 0300000061 [06:58:25]line РНМ: 0000000000146243 [06:58:25]line Версия ККМ: v1.0 [06:58:25]line ФМ: 0000000000959358 [06:58:25]line ФД: 22102 [06:58:25]line ФПД: 204741300040757 [06:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T065826&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22102&fm=204741300040757&tin=02508201610067®Number=0000000000146243&sum=27800 [06:58:25]line 0 [06:58:25]OFD Sender: Processing packet 22102 [packets to send 23, broken 22] [06:58:25]ProducePacketName [06:58:25]name=ofd_packets/00022102 [06:58:25]OFD Sender: To server: pG, [06:58:25]CommunicateWithHost lk.salyk.kg:30040 [06:58:25]ConnectInit lk.salyk.kg [06:58:25]written 0, free lines is 4095 [06:58:25]Connected sock=10 [06:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 26 01 00 00 2D 1B 1E 01 9E 1B 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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 12 C0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 56 56 00 00 35 04 06 00 BA 36 0C 75 B4 35 FC C5 BD 30 A8 39 49 CE [06:58:26]Write to MH i2c: 01 00 00 F9 0E 07 [06:58:26]Write i2c OK [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: 01 [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: 01 07 00 [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 05 0D 20 [06:58:26]RasterBufferAndPrint [06:58:26]line [06:58:26]line [06:58:26]line [06:58:26]line [06:58:26]line [06:58:26]written 0, free lines is 3342 [06:58:26]MH_Cut [06:58:26]Write to MH i2c: D1 01 00 00 0F 01 E1 [06:58:26]Write i2c OK [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: D1 [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: D1 01 00 [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: D1 01 00 00 0F 00 E0 [06:58:26]Write to MH i2c: 01 00 00 01 0F 10 [06:58:26]Write i2c OK [06:58:26]MH_I2C_Read... [06:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 B8 9E 47 00 36 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 39 35 39 33 35 38 10 04 04 00 56 56 00 00 F4 03 04 00 3E 6A EF 66 B6 04 01 00 00 96 86 C2 5A 18 F5 F5 E2 [06:58:26]CommunicateWithHost err = 0 [06:58:26]CheckOFDResponse [06:58:26]1017 (14) - 77093643461234 [06:58:26]1041 (16) - 0000000000959358 [06:58:26]1040 (4) - 22102 [06:58:26]1012 (4) - 22.09.2024 00:52 [06:58:26]1206 (1) - 0 [06:58:26]OFD Sender: Remove packet 22102 [06:58:26]ProducePacketName [06:58:26]name=ofd_packets/00022102 [06:58:26]NVStorageDeleteData [06:58:26]OFD Sender: No OFD packet to send [06:58:26]*** Cut start [06:58:26]*** Partial cut [06:58:26]*** CUTSNS_PIN = 1 [06:58:26]*** CUTSNS_PIN = 0 [06:58:26]*** Brake cut motor [06:58:27]Read from MH i2c: 01 [06:58:27]MH_I2C_Read... [06:58:27]*** Stop cut motor [06:58:27]*** Cut end [06:58:27]Read from MH i2c: 01 07 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 FF 0F 25 [06:58:27]process_action close_receipt done [06:58:27]requested_data is exist [06:58:27]produce_requested_data [06:58:27]requested_item fm.sn is exist - process it [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 11 00 00 [06:58:27]Write to MH i2c: E2 08 00 02 0F 80 11 00 00 00 00 00 00 8B [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 17 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 17 00 02 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 E5 [06:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [06:58:27]wFMCommunicate OK [06:58:27]requested_item fd.num is exist - process it [06:58:27]SAM_PROTO_GetFieldsCounters [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 13 00 00 [06:58:27]Write to MH i2c: E2 08 00 03 0F 80 13 00 00 00 00 00 00 8E [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 62 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 62 00 03 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 56 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [06:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 56 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:27]wFMCommunicate OK [06:58:27]SAM_PROTO_GetFieldsCounters done [06:58:27]requested_item shift.num is exist - process it [06:58:27]requested_item shift.opened is exist - process it [06:58:27]req_shift_opened [06:58:27]FM_GetShiftState [06:58:27]SAM_PROTO_GetShiftState [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 13 01 00 [06:58:27]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 0E 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 0B [06:58:27]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [06:58:27]wFMCommunicate OK [06:58:27]SAM_PROTO_GetShiftState done [06:58:27]FM_GetShiftState done [06:58:27]req_shift_opened done [06:58:27]requested_item shift.open_date is exist - process it [06:58:27]req_shift_open_date [06:58:27]req_shift_open_date done [06:58:27]produce_requested_data done [06:58:27]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22102,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [06:58:27]process_action_free close_receipt [06:58:27]json_value_free [06:58:27]json_value_free done [06:58:27]process_json_proto returns [06:58:27]Send response to host [06:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22102,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [06:58:27]free response buf [06:58:27]execute_script done [06:58:27]execute_script returns [06:58:27]free content buf [06:58:27]Sock 8.Close socket [06:58:27]Sock 8.Thread stoped [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:27]accept exits with 9 [07:03:27]New connection [07:03:27]New thread 3067542884 created [07:03:27]Thread 3067399524 joined [07:03:27]Waiting for new connection... [07:03:27] Sock 9.Parse request [07:03:27]Sock 9.Check first char [07:03:27]Sock 9.First char is OK [07:03:27]request: POST /json_proto HTTP/1.0 [07:03:27]Method: POST [07:03:27]URL: /json_proto [07:03:27]Method is POST - this is cgi request [07:03:27]url: /json_proto [07:03:27]query_string will be loaded in cgi processing [07:03:27]execute_cgi json_proto POST (null) [07:03:27]execute_cgi path=json_proto method=POST [07:03:27]POST find Content-Length [07:03:27]Host: 172.17.43.4:8080 [07:03:27]Content-Length: 671 [07:03:27]Content-Type: application/json [07:03:27] [07:03:27]POST finish read [07:03:27]Found Content-Length = 671 [07:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:27]execute_script... [07:03:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:27]POST & json_proto [07:03:27]process_json_proto [07:03:27]json parsed OK: [07:03:27]protocol is kg_v1.0 [07:03:27]action value=close_receipt [07:03:27]process_action close_receipt [07:03:27]cmd_close_receipt [07:03:27]MH_GetDate [07:03:27]Write to MH i2c: F0 00 00 05 0F 03 [07:03:27]Write i2c OK [07:03:27]MH_I2C_Read... [07:03:27]Read from MH i2c: F0 [07:03:27]MH_I2C_Read... [07:03:27]Read from MH i2c: F0 09 00 [07:03:27]MH_I2C_Read... [07:03:27]Read from MH i2c: F0 09 00 05 0F 00 41 C1 EF 66 02 BF CF 66 59 [07:03:27]GetLastDocTimeStamp 1726988306 [07:03:27]current date 1726988609 [07:03:27]FM_GetShiftState [07:03:27]SAM_PROTO_GetShiftState [07:03:27]wFMCommunicate request_size=4 [07:03:27]MH_SAM_APDU [07:03:27]CAPDU: 80 13 01 00 [07:03:27]Write to MH i2c: E2 08 00 06 0F 80 13 01 00 00 00 00 00 92 [07:03:27]Write i2c OK [07:03:27]MH_I2C_Read... [07:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:27]Read from MH i2c: E2 [07:03:27]MH_I2C_Read... [07:03:27]Read from MH i2c: E2 0E 00 [07:03:27]MH_I2C_Read... [07:03:27]Read from MH i2c: E2 0E 00 06 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 0D [07:03:27]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [07:03:27]wFMCommunicate OK [07:03:27]SAM_PROTO_GetShiftState done [07:03:27]FM_GetShiftState done [07:03:27]opened in 1726964408 [07:03:27]opened+sec_in_day 1727050808 [07:03:27]quantity*price = 50034 [07:03:27]sum+1 = 50036 [07:03:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 18 22.09.2024 07:03 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22103 ФПД: 3037851242737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070330&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22103&fm=3037851242737&tin=02508201610067®Number=0000000000146243&sum=50000 [07:03:28]StoreToDocumentArchive [07:03:28]shift 228 fd 22103 [07:03:28]save to /storage/0228/doc_00022103 [07:03:28]save last doc name /storage/0228/doc_00022103 to /storage/kkm_last_doc_name [07:03:28]save OK [07:03:28]Clear old archive folders... [07:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:03:28]tlvbuf is B6F513D0 [07:03:28]SAM_PROTO_ClearQueue [07:03:28]wFMCommunicate request_size=4 [07:03:28]MH_SAM_APDU [07:03:28]CAPDU: 80 09 00 00 [07:03:28]Write to MH i2c: E2 08 00 13 0F 80 09 00 00 00 00 00 00 94 [07:03:28]Write i2c OK [07:03:28]MH_I2C_Read... [07:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:28]Read from MH i2c: E2 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [07:03:28]RAPDU: 90 00 [07:03:28]wFMCommunicate OK [07:03:28]SAM_PROTO_ClearQueue done [07:03:28]KKMCreateOFDPacket [07:03:28]OFDProtocolAddRootSTLVToBuf [07:03:28]FM_MakeSignedData [07:03:28]FM_MakeSignedData [07:03:28]SAM_PROTO_SignData [07:03:28]wFMCommunicate request_size=4 [07:03:28]MH_SAM_APDU [07:03:28]CAPDU: 80 0D 01 02 [07:03:28]Write to MH i2c: E2 08 00 14 0F 80 0D 01 02 00 00 00 00 9C [07:03:28]Write i2c OK [07:03:28]MH_I2C_Read... [07:03:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:28]Read from MH i2c: E2 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [07:03:28]RAPDU: 90 00 [07:03:28]wFMCommunicate OK [07:03:28]wFMCommunicate request_size=255 [07:03:28]MH_SAM_APDU [07:03:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 42 C1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 57 56 00 00 35 04 06 00 [07:03:28]Write to MH i2c: E2 02 01 15 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 42 C1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 57 56 00 00 35 04 06 00 00 00 37 [07:03:28]Write i2c OK [07:03:28]MH_I2C_Read... [07:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:28]Read from MH i2c: E2 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [07:03:28]RAPDU: 90 00 [07:03:28]wFMCommunicate OK [07:03:28]wFMCommunicate request_size=11 [07:03:28]MH_SAM_APDU [07:03:28]CAPDU: 80 0D 02 02 06 02 C3 4E 0B 50 F1 [07:03:28]Write to MH i2c: E2 0E 00 16 0F 80 0D 02 02 06 00 02 C3 4E 0B 50 F1 00 00 0A [07:03:28]Write i2c OK [07:03:28]MH_I2C_Read... [07:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:28]Read from MH i2c: E2 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 [07:03:28]MH_I2C_Read... [07:03:28]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [07:03:28]RAPDU: 90 00 [07:03:28]wFMCommunicate OK [07:03:28]wFMCommunicate request_size=4 [07:03:28]MH_SAM_APDU [07:03:28]CAPDU: 80 0D 03 02 [07:03:28]Write to MH i2c: E2 08 00 17 0F 80 0D 03 02 00 00 00 00 A1 [07:03:28]Write i2c OK [07:03:28]MH_I2C_Read... [07:03:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:29]Read from MH i2c: E2 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: E2 0B 00 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: E2 0B 00 17 0F 00 0E F7 8D FD 38 8A 09 B8 90 00 B4 [07:03:29]RAPDU: 0E F7 8D FD 38 8A 09 B8 90 00 [07:03:29]wFMCommunicate OK [07:03:29]SAM_PROTO_SignData done [07:03:29]FM_MakeSignedData done [07:03:29]CreateOFDProtocolMessage [07:03:29]wFMCommunicate request_size=4 [07:03:29]MH_SAM_APDU [07:03:29]CAPDU: 80 11 00 00 [07:03:29]Write to MH i2c: E2 08 00 18 0F 80 11 00 00 00 00 00 00 A1 [07:03:29]Write i2c OK [07:03:29]MH_I2C_Read... [07:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:29]Read from MH i2c: E2 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: E2 17 00 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: E2 17 00 18 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 FB [07:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [07:03:29]wFMCommunicate OK [07:03:29]CreateOFDProtocolMessage done [07:03:29]OFDSenderStorePacket 22103 [07:03:29]StoreOFDPacket docnum=22103 [07:03:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 01 00 00 6F 8D 08 01 3B 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 42 C1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 57 56 00 00 35 04 06 00 02 C3 4E 0B 50 F1 0E F7 8D FD 38 8A 09 B8 [07:03:29]CheckFolder [07:03:29]dirname=/storage/ofd_packets [07:03:29]CheckFolder done [07:03:29]ProducePacketName [07:03:29]name=ofd_packets/00022103 [07:03:29]NVStorageSaveData ofd_packets/00022103 [07:03:29]File name is /storage/ofd_packets/00022103 [07:03:29]Write 302 bytes [07:03:29]NVStorageSaveData done [07:03:29]OFDSenderStorePacket done [07:03:29]KKMCreateOFDPacket done [07:03:29]NVStorageSaveData kkm_last_timestamp [07:03:29]File name is /storage/kkm_last_timestamp [07:03:29]Write 4 bytes [07:03:29]NVStorageSaveData done [07:03:29]ExternCall_PrintAddStr [07:03:29]wPrintStart [07:03:29]Write to MH i2c: 01 00 00 19 0F 28 [07:03:29]Write i2c OK [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: 01 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: 01 07 00 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 FF 0F 3D [07:03:29]RasterBufferAndPrint [07:03:29]line Счет N : (1)2162009 [07:03:29]line ИНН: 02508201610067 [07:03:29]line Контрольно-Кассовый Чек [07:03:29]line ПРОДАЖА [07:03:29]line ТРК (МРК, ГНК) : 11 [07:03:29]line Товар: 2710124130 [07:03:29]line Super-92-К-5 [07:03:29]line 7.220 * 69.30 [07:03:29]line = 500.35 [07:03:29]line НДС 12% НСП 1% [07:03:29]line > о реализуемом товаре [07:03:29]line ОКРУГЛЕНИЕ: -0.35 [07:03:29]line ИТОГО: 500.00 [07:03:29]line Внесено: 500.00 [07:03:29]line СДАЧА: 0.00 [07:03:29]line НСП 1% : 4.43 [07:03:29]line НДС 12% : 53.13 [07:03:29]line Наличными: 500.00 [07:03:29]line Безнал.: 0.00 [07:03:29]line Место: АЗС № 88 "Партнер Нефть" [07:03:29]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [07:03:29]line СНО: Общий режим [07:03:29]line Чек 18 22.09.2024 07:03 [07:03:29]line Смена: 228 ФФД: 1.0 [07:03:29]line ЗНМ: 0300000061 [07:03:29]line РНМ: 0000000000146243 [07:03:29]line Версия ККМ: v1.0 [07:03:29]line ФМ: 0000000000959358 [07:03:29]line ФД: 22103 [07:03:29]line ФПД: 3037851242737 [07:03:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070330&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22103&fm=3037851242737&tin=02508201610067®Number=0000000000146243&sum=50000 [07:03:29]OFD Sender: Processing packet 22103 [packets to send 23, broken 22] [07:03:29]ProducePacketName [07:03:29]name=ofd_packets/00022103 [07:03:29]OFD Sender: To server: pG, [07:03:29]CommunicateWithHost lk.salyk.kg:30040 [07:03:29]ConnectInit lk.salyk.kg [07:03:29]written 0, free lines is 4095 [07:03:29]Connected sock=10 [07:03:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 01 00 00 6F 8D 08 01 3B 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 12 1B 00 00 00 00 13 04 06 00 73 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 42 C1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 57 56 00 00 35 04 06 00 02 C3 4E 0B 50 F1 0E F7 8D FD 38 8A 09 B8 [07:03:29]Write to MH i2c: 01 00 00 44 0F 53 [07:03:29]Write i2c OK [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: 01 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: 01 07 00 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 E9 0C 4F [07:03:29]RasterBufferAndPrint [07:03:29]line [07:03:29]line [07:03:29]line [07:03:29]line [07:03:29]line [07:03:29]written 0, free lines is 3311 [07:03:29]MH_Cut [07:03:29]Write to MH i2c: D1 01 00 4B 0F 01 2C [07:03:29]Write i2c OK [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: D1 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: D1 01 00 [07:03:29]MH_I2C_Read... [07:03:29]Read from MH i2c: D1 01 00 4B 0F 00 2B [07:03:29]Write to MH i2c: 01 00 00 4C 0F 5B [07:03:29]Write i2c OK [07:03:29]MH_I2C_Read... [07:03:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 C5 67 47 00 55 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 57 56 00 00 F4 03 04 00 6E 6B EF 66 B6 04 01 00 00 09 91 25 5C 3E 05 BB E6 [07:03:29]CommunicateWithHost err = 0 [07:03:29]CheckOFDResponse [07:03:29]1017 (14) - 77093643461234 [07:03:29]1041 (16) - 0000000000959358 [07:03:29]1040 (4) - 22103 [07:03:29]1012 (4) - 22.09.2024 00:57 [07:03:29]1206 (1) - 0 [07:03:29]OFD Sender: Remove packet 22103 [07:03:29]ProducePacketName [07:03:29]name=ofd_packets/00022103 [07:03:29]NVStorageDeleteData [07:03:30]OFD Sender: No OFD packet to send [07:03:30]*** Cut start [07:03:30]*** Partial cut [07:03:30]*** CUTSNS_PIN = 1 [07:03:30]*** CUTSNS_PIN = 0 [07:03:30]*** Brake cut motor [07:03:31]Read from MH i2c: 01 [07:03:31]MH_I2C_Read... [07:03:31]*** Stop cut motor [07:03:31]*** Cut end [07:03:31]Read from MH i2c: 01 07 00 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 FF 0F 70 [07:03:31]process_action close_receipt done [07:03:31]requested_data is exist [07:03:31]produce_requested_data [07:03:31]requested_item fm.sn is exist - process it [07:03:31]wFMCommunicate request_size=4 [07:03:31]MH_SAM_APDU [07:03:31]CAPDU: 80 11 00 00 [07:03:31]Write to MH i2c: E2 08 00 4D 0F 80 11 00 00 00 00 00 00 D6 [07:03:31]Write i2c OK [07:03:31]MH_I2C_Read... [07:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:31]Read from MH i2c: E2 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: E2 17 00 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: E2 17 00 4D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 30 [07:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [07:03:31]wFMCommunicate OK [07:03:31]requested_item fd.num is exist - process it [07:03:31]SAM_PROTO_GetFieldsCounters [07:03:31]wFMCommunicate request_size=4 [07:03:31]MH_SAM_APDU [07:03:31]CAPDU: 80 13 00 00 [07:03:31]Write to MH i2c: E2 08 00 4E 0F 80 13 00 00 00 00 00 00 D9 [07:03:31]Write i2c OK [07:03:31]MH_I2C_Read... [07:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:31]Read from MH i2c: E2 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: E2 62 00 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: E2 62 00 4E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 57 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [07:03:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 57 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:03:31]wFMCommunicate OK [07:03:31]SAM_PROTO_GetFieldsCounters done [07:03:31]requested_item shift.num is exist - process it [07:03:31]requested_item shift.opened is exist - process it [07:03:31]req_shift_opened [07:03:31]FM_GetShiftState [07:03:31]SAM_PROTO_GetShiftState [07:03:31]wFMCommunicate request_size=4 [07:03:31]MH_SAM_APDU [07:03:31]CAPDU: 80 13 01 00 [07:03:31]Write to MH i2c: E2 08 00 4F 0F 80 13 01 00 00 00 00 00 DB [07:03:31]Write i2c OK [07:03:31]MH_I2C_Read... [07:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:31]Read from MH i2c: E2 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: E2 0E 00 [07:03:31]MH_I2C_Read... [07:03:31]Read from MH i2c: E2 0E 00 4F 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 56 [07:03:31]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [07:03:31]wFMCommunicate OK [07:03:31]SAM_PROTO_GetShiftState done [07:03:31]FM_GetShiftState done [07:03:31]req_shift_opened done [07:03:31]requested_item shift.open_date is exist - process it [07:03:31]req_shift_open_date [07:03:31]req_shift_open_date done [07:03:31]produce_requested_data done [07:03:31]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22103,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [07:03:31]process_action_free close_receipt [07:03:31]json_value_free [07:03:31]json_value_free done [07:03:31]process_json_proto returns [07:03:31]Send response to host [07:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22103,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [07:03:31]free response buf [07:03:31]execute_script done [07:03:31]execute_script returns [07:03:31]free content buf [07:03:31]Sock 9.Close socket [07:03:31]Sock 9.Thread stoped [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:23]accept exits with 8 [07:05:23]New connection [07:05:23]New thread 3067399524 created [07:05:23]Thread 3067542884 joined [07:05:23]Waiting for new connection... [07:05:23] Sock 8.Parse request [07:05:23]Sock 8.Check first char [07:05:23]Sock 8.First char is OK [07:05:23]request: POST /json_proto HTTP/1.0 [07:05:23]Method: POST [07:05:23]URL: /json_proto [07:05:23]Method is POST - this is cgi request [07:05:23]url: /json_proto [07:05:23]query_string will be loaded in cgi processing [07:05:23]execute_cgi json_proto POST (null) [07:05:23]execute_cgi path=json_proto method=POST [07:05:23]POST find Content-Length [07:05:23]Host: 172.17.43.4:8080 [07:05:23]Content-Length: 671 [07:05:23]Content-Type: application/json [07:05:23] [07:05:23]POST finish read [07:05:23]Found Content-Length = 671 [07:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:23]execute_script... [07:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 69.30, "quantity" : 7.220, "sum" : 500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:05:23]POST & json_proto [07:05:23]process_json_proto [07:05:23]json parsed OK: [07:05:23]protocol is kg_v1.0 [07:05:23]action value=close_receipt [07:05:23]process_action close_receipt [07:05:23]cmd_close_receipt [07:05:23]MH_GetDate [07:05:23]Write to MH i2c: F0 00 00 50 0F 4E [07:05:23]Write i2c OK [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: F0 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: F0 09 00 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: F0 09 00 50 0F 00 B6 C1 EF 66 02 BF CF 66 19 [07:05:23]GetLastDocTimeStamp 1726988610 [07:05:23]current date 1726988726 [07:05:23]FM_GetShiftState [07:05:23]SAM_PROTO_GetShiftState [07:05:23]wFMCommunicate request_size=4 [07:05:23]MH_SAM_APDU [07:05:23]CAPDU: 80 13 01 00 [07:05:23]Write to MH i2c: E2 08 00 51 0F 80 13 01 00 00 00 00 00 DD [07:05:23]Write i2c OK [07:05:23]MH_I2C_Read... [07:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:23]Read from MH i2c: E2 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: E2 0E 00 [07:05:23]MH_I2C_Read... [07:05:23]Read from MH i2c: E2 0E 00 51 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 58 [07:05:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [07:05:23]wFMCommunicate OK [07:05:23]SAM_PROTO_GetShiftState done [07:05:23]FM_GetShiftState done [07:05:23]opened in 1726964408 [07:05:23]opened+sec_in_day 1727050808 [07:05:23]quantity*price = 50034 [07:05:23]sum+1 = 50036 [07:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре [09:19:08]line ОКРУГЛЕНИЕ: -0.35 [09:19:08]line ИТОГО: 500.00 [09:19:08]line Внесено: 500.00 [09:19:08]line СДАЧА: 0.00 [09:19:08]line НСП 1% : 4.43 [09:19:08]line НДС 12% : 53.13 [09:19:08]line Наличными: 500.00 [09:19:08]line Безнал.: 0.00 [09:19:08]line Место: АЗС № 88 "Партнер Нефть" [09:19:08]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:08]line СНО: Общий режим [09:19:08]line Чек 19 22.09.2024 07:05 [09:19:08]line Смена: 228 ФФД: 1.0 [09:19:08]line ЗНМ: 0300000061 [09:19:08]line РНМ: 0000000000146243 [09:19:08]line Версия ККМ: v1.0 [09:19:08]line ФМ: 0000000000959358 [09:19:08]line ФД: 22104 [09:19:08]line ФПД: 182362484714312 [09:19:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T070526&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22104&fm=182362484714312&tin=02508201610067®Number=0000000000146243&sum=50000 [09:19:08]written 0, free lines is 4095 [09:19:09]Write to MH i2c: 01 00 00 48 00 48 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F4 0C 4F [09:19:09]RasterBufferAndPrint [09:19:09]line [09:19:09]line [09:19:09]line [09:19:09]line [09:19:09]line [09:19:09]written 0, free lines is 3328 [09:19:09]MH_Cut [09:19:09]Write to MH i2c: D1 01 00 4F 00 01 21 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: D1 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: D1 01 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: D1 01 00 4F 00 00 20 [09:19:09]Write to MH i2c: 01 00 00 50 00 50 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** Cut start [09:19:09]*** Partial cut [09:19:09]*** CUTSNS_PIN = 1 [09:19:09]*** CUTSNS_PIN = 0 [09:19:10]*** Brake cut motor [09:19:10]Read from MH i2c: 01 [09:19:10]MH_I2C_Read... [09:19:10]*** Stop cut motor [09:19:10]*** Cut end [09:19:10]Read from MH i2c: 01 07 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [09:19:10]process_action print_doc done [09:19:10]requested_data is exist [09:19:10]produce_requested_data [09:19:10]produce_requested_data return (null) [09:19:10]process_action_free print_doc [09:19:10]json_value_free [09:19:10]json_value_free done [09:19:10]process_json_proto returns [09:19:10]Send response to host [09:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [09:19:10]free response buf [09:19:10]execute_script done [09:19:10]execute_script returns [09:19:10]free content buf [09:19:10]Sock 9.Close socket [09:19:10]Sock 9.Thread stoped [09:19:12]accept exits with 7 [09:19:12]New connection [09:19:12]New thread 3067039076 created [09:19:12]Thread 3067182436 joined [09:19:12]Waiting for new connection... [09:19:12] Sock 7.Parse request [09:19:12]Sock 7.Check first char [09:19:12]Sock 7.First char is OK [09:19:12]request: POST /json_proto HTTP/1.0 [09:19:12]Method: POST [09:19:12]URL: /json_proto [09:19:12]Method is POST - this is cgi request [09:19:12]url: /json_proto [09:19:12]query_string will be loaded in cgi processing [09:19:12]execute_cgi json_proto POST (null) [09:19:12]execute_cgi path=json_proto method=POST [09:19:12]POST find Content-Length [09:19:12]Host: 172.17.43.4:8080 [09:19:12]Content-Length: 1795 [09:19:12]Content-Type: application/json [09:19:12] [09:19:12]POST finish read [09:19:12]Found Content-Length = 1795 [09:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51374", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:12]execute_script... [09:19: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)51374", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:12]POST & json_proto [09:19:12]process_json_proto [09:19:12]json parsed OK: [09:19:12]protocol is kg_v1.0 [09:19:12]action value=close_receipt [09:19:12]process_action close_receipt [09:19:12]cmd_close_receipt [09:19:12]MH_GetDate [09:19:12]Write to MH i2c: F0 00 00 51 00 40 [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: F0 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: F0 09 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: F0 09 00 51 00 00 11 E1 EF 66 02 BF CF 66 86 [09:19:12]GetLastDocTimeStamp 1726988726 [09:19:12]current date 1726996753 [09:19:12]FM_GetShiftState [09:19:12]SAM_PROTO_GetShiftState [09:19:12]wFMCommunicate request_size=4 [09:19:12]MH_SAM_APDU [09:19:12]CAPDU: 80 13 01 00 [09:19:12]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:12]Read from MH i2c: E2 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 0E 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 4A [09:19:12]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:12]wFMCommunicate OK [09:19:12]SAM_PROTO_GetShiftState done [09:19:12]FM_GetShiftState done [09:19:12]opened in 1726964408 [09:19:12]opened+sec_in_day 1727050808 [09:19:12]quantity*price = 51000 [09:19:12]sum+1 = 51001 [09:19:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741156 Сигареты LD Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741231 Сигареты Winston Super Slims Silver 2.000 * 139.00 = 278.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002082931 Водка Хорошая 0,1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.56 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 20 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22105 ФПД: 11969888891138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091913&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22105&fm=11969888891138&tin=02508201610067®Number=0000000000146243&sum=128600 0 [09:19:14]StoreToDocumentArchive [09:19:14]shift 228 fd 22105 [09:19:14]save to /storage/0228/doc_00022105 [09:19:14]save last doc name /storage/0228/doc_00022105 to /storage/kkm_last_doc_name [09:19:14]save OK [09:19:14]Clear old archive folders... [09:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=771 [09:19:14]tlvbuf is 002465E0 [09:19:14]SAM_PROTO_ClearQueue [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 09 00 00 [09:19:14]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]SAM_PROTO_ClearQueue done [09:19:14]KKMCreateOFDPacket [09:19:14]OFDProtocolAddRootSTLVToBuf [09:19:14]FM_MakeSignedData [09:19:14]FM_MakeSignedData [09:19:14]SAM_PROTO_SignData [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 01 02 [09:19:14]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]wFMCommunicate request_size=255 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 02 02 FA 03 00 03 03 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [09:19:14]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 03 03 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 A7 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]wFMCommunicate request_size=255 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 02 02 FA 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 [09:19:14]Write to MH i2c: E2 02 01 62 00 80 0D 02 02 FA 00 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 A1 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [09:19:14]RAPDU: 90 00 [09:19:14]wFMCommunicate OK [09:19:14]wFMCommunicate request_size=255 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 35 00 00 00 00 07 04 06 00 58 F6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 11 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [09:19:14]Write to MH i2c: E2 02 01 63 00 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 35 00 00 00 00 07 04 06 00 58 F6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 11 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 AE [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 63 00 00 90 00 D7 [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]wFMCommunicate request_size=30 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 02 02 19 30 39 35 39 33 35 38 10 04 04 00 59 56 00 00 35 04 06 00 0A E2 F4 F9 B1 02 [09:19:15]Write to MH i2c: E2 21 00 64 00 80 0D 02 02 19 00 30 39 35 39 33 35 38 10 04 04 00 59 56 00 00 35 04 06 00 0A E2 F4 F9 B1 02 00 00 19 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 03 00 64 00 00 90 00 D8 [09:19:15]RAPDU: 90 00 [09:19:15]wFMCommunicate OK [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 0D 03 02 [09:19:15]Write to MH i2c: E2 08 00 65 00 80 0D 03 02 00 00 00 00 E0 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0B 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0B 00 65 00 00 58 03 48 75 77 89 7B C8 90 00 3C [09:19:15]RAPDU: 58 03 48 75 77 89 7B C8 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_SignData done [09:19:15]FM_MakeSignedData done [09:19:15]CreateOFDProtocolMessage [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 11 00 00 [09:19:15]Write to MH i2c: E2 08 00 66 00 80 11 00 00 00 00 00 00 E0 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 66 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 3A [09:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:15]wFMCommunicate OK [09:19:15]CreateOFDProtocolMessage done [09:19:15]OFDSenderStorePacket 22105 [09:19:15]StoreOFDPacket docnum=22105 [09:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 17 03 00 00 79 0D 0F 03 95 4D 5A 03 01 00 03 00 03 03 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 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 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 35 00 00 00 00 07 04 06 00 58 F6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 11 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 59 56 00 00 35 04 06 00 0A E2 F4 F9 B1 02 58 03 48 75 77 89 7B C8 [09:19:15]CheckFolder [09:19:15]dirname=/storage/ofd_packets [09:19:15]CheckFolder done [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00022105 [09:19:15]NVStorageSaveData ofd_packets/00022105 [09:19:15]File name is /storage/ofd_packets/00022105 [09:19:15]Write 821 bytes [09:19:15]NVStorageSaveData done [09:19:15]OFDSenderStorePacket done [09:19:15]KKMCreateOFDPacket done [09:19:15]NVStorageSaveData kkm_last_timestamp [09:19:15]File name is /storage/kkm_last_timestamp [09:19:15]Write 4 bytes [09:19:15]NVStorageSaveData done [09:19:15]ExternCall_PrintAddStr [09:19:15]wPrintStart [09:19:15]Write to MH i2c: 01 00 00 67 00 67 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 FF 0F 7C [09:19:15]RasterBufferAndPrint [09:19:15]line Счет N : (3)51374 [09:19:15]line ИНН: 02508201610067 [09:19:15]line Контрольно-Кассовый Чек [09:19:15]line ПРОДАЖА [09:19:15]line Товар: 4700002083327 [09:19:15]line Водка Level 0,5 [09:19:15]line 1.000 * 510.00 [09:19:15]line = 510.00 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line Товар: 48741156 [09:19:15]line Сигареты LD Blue [09:19:15]line 1.000 * 134.00 [09:19:15]line = 134.00 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line Товар: 48743570 [09:19:15]line Сигареты Winston XStyle Blue [09:19:15]line 1.000 * 144.00 [09:19:15]line = 144.00 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line Товар: 4640030091607 [09:19:15]line Сигареты ESSE Exchange [09:19:15]line 1.000 * 150.00 [09:19:15]line = 150.00 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line Товар: 48741231 [09:19:15]line Сигареты Winston Super Slims Silver [09:19:15]line 2.000 * 139.00 [09:19:15]line = 278.00 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line Товар: 4700002082931 [09:19:15]line Водка Хорошая 0,1л [09:19:15]line 1.000 * 70.00 [09:19:15]line = 70.00 [09:19:15]line НДС 12% НСП 1% [09:19:15]line > о реализуемом товаре [09:19:15]line ИТОГО: 1286.00 [09:19:15]line НСП 1% : 11.38 [09:19:15]line НДС 12% : 136.56 [09:19:15]line Наличными: 1286.00 [09:19:15]line Безнал.: 0.00 [09:19:15]line Место: АЗС № 88 "Партнер Нефть" [09:19:15]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:15]line СНО: Общий режим [09:19:15]line Чек 20 22.09.2024 09:19 [09:19:15]line Смена: 228 ФФД: 1.0 [09:19:15]line ЗНМ: 0300000061 [09:19:15]line РНМ: 0000000000146243 [09:19:15]line Версия ККМ: v1.0 [09:19:15]line ФМ: 0000000000959358 [09:19:15]line ФД: 22105 [09:19:15]line ФПД: 11969888891138 [09:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091913&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22105&fm=11969888891138&tin=02508201610067®Number=0000000000146243&sum=128600 [09:19:15]line 0 [09:19:15]OFD Sender: Processing packet 22105 [packets to send 23, broken 22] [09:19:15]ProducePacketName [09:19:15]name=ofd_packets/00022105 [09:19:15]OFD Sender: To server: pG, [09:19:15]CommunicateWithHost lk.salyk.kg:30040 [09:19:15]ConnectInit lk.salyk.kg [09:19:15]written 0, free lines is 4095 [09:19:16]Connected sock=10 [09:19:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 17 03 00 00 79 0D 0F 03 95 4D 5A 03 01 00 03 00 03 03 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 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 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 35 00 00 00 00 07 04 06 00 58 F6 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 11 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 59 56 00 00 35 04 06 00 0A E2 F4 F9 B1 02 58 03 48 75 77 89 7B C8 [09:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 DA D2 47 00 E4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 59 56 00 00 F4 03 04 00 3E 8B EF 66 B6 04 01 00 00 5B 9A 51 9E DD AD 3F 17 [09:19:16]CommunicateWithHost err = 0 [09:19:16]CheckOFDResponse [09:19:16]1017 (14) - 77093643461234 [09:19:16]1041 (16) - 0000000000959358 [09:19:16]1040 (4) - 22105 [09:19:16]1012 (4) - 22.09.2024 03:13 [09:19:16]1206 (1) - 0 [09:19:16]OFD Sender: Remove packet 22105 [09:19:16]ProducePacketName [09:19:16]name=ofd_packets/00022105 [09:19:16]NVStorageDeleteData [09:19:16]Write to MH i2c: 01 00 00 AE 00 AE [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: 01 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: 01 07 00 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 9C 0B 5C [09:19:16]RasterBufferAndPrint [09:19:16]line [09:19:16]line [09:19:16]line [09:19:16]line [09:19:16]line [09:19:16]written 0, free lines is 2996 [09:19:16]MH_Cut [09:19:16]Write to MH i2c: D1 01 00 B5 00 01 87 [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: D1 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: D1 01 00 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: D1 01 00 B5 00 00 86 [09:19:16]Write to MH i2c: 01 00 00 B6 00 B6 [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:17]OFD Sender: No OFD packet to send [09:19:17]*** Cut start [09:19:17]*** Partial cut [09:19:17]*** CUTSNS_PIN = 1 [09:19:17]*** CUTSNS_PIN = 0 [09:19:17]*** Brake cut motor [09:19:18]Read from MH i2c: 01 [09:19:18]MH_I2C_Read... [09:19:18]*** Stop cut motor [09:19:18]*** Cut end [09:19:18]Read from MH i2c: 01 07 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [09:19:18]process_action close_receipt done [09:19:18]requested_data is exist [09:19:18]produce_requested_data [09:19:18]requested_item fm.sn is exist - process it [09:19:18]wFMCommunicate request_size=4 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 11 00 00 [09:19:18]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 17 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 8B [09:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:18]wFMCommunicate OK [09:19:18]requested_item fd.num is exist - process it [09:19:18]SAM_PROTO_GetFieldsCounters [09:19:18]wFMCommunicate request_size=4 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 13 00 00 [09:19:18]Write to MH i2c: E2 08 00 B8 00 80 13 00 00 00 00 00 00 34 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 62 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 62 00 B8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 59 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [09:19:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 59 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:18]wFMCommunicate OK [09:19:18]SAM_PROTO_GetFieldsCounters done [09:19:18]requested_item shift.num is exist - process it [09:19:18]requested_item shift.opened is exist - process it [09:19:18]req_shift_opened [09:19:18]FM_GetShiftState [09:19:18]SAM_PROTO_GetShiftState [09:19:18]wFMCommunicate request_size=4 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 13 01 00 [09:19:18]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:18]Read from MH i2c: E2 0E 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B1 [09:19:18]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:18]wFMCommunicate OK [09:19:18]SAM_PROTO_GetShiftState done [09:19:18]FM_GetShiftState done [09:19:18]req_shift_opened done [09:19:18]requested_item shift.open_date is exist - process it [09:19:18]req_shift_open_date [09:19:18]req_shift_open_date done [09:19:18]produce_requested_data done [09:19:18]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22105,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:19:18]process_action_free close_receipt [09:19:18]json_value_free [09:19:18]json_value_free done [09:19:18]process_json_proto returns [09:19:18]Send response to host [09:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22105,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:19:18]free response buf [09:19:18]execute_script done [09:19:18]execute_script returns [09:19:18]free content buf [09:19:18]Sock 7.Close socket [09:19:18]Sock 7.Thread stoped [09:19:19]accept exits with 9 [09:19:19]New connection [09:19:19]New thread 3067182436 created [09:19:19]Thread 3067039076 joined [09:19:19]Waiting for new connection... [09:19:19] Sock 9.Parse request [09:19:19]Sock 9.Check first char [09:19:19]Sock 9.First char is OK [09:19:19]request: POST /json_proto HTTP/1.0 [09:19:19]Method: POST [09:19:19]URL: /json_proto [09:19:19]Method is POST - this is cgi request [09:19:19]url: /json_proto [09:19:19]query_string will be loaded in cgi processing [09:19:19]execute_cgi json_proto POST (null) [09:19:19]execute_cgi path=json_proto method=POST [09:19:19]POST find Content-Length [09:19:19]Host: 172.17.43.4:8080 [09:19:19]Content-Length: 764 [09:19:19]Content-Type: application/json [09:19:19] [09:19:19]POST finish read [09:19:19]Found Content-Length = 764 [09:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51375", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:19]execute_script... [09:19: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)51375", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:19]POST & json_proto [09:19:19]process_json_proto [09:19:19]json parsed OK: [09:19:19]protocol is kg_v1.0 [09:19:19]action value=close_receipt [09:19:19]process_action close_receipt [09:19:19]cmd_close_receipt [09:19:19]MH_GetDate [09:19:19]Write to MH i2c: F0 00 00 BA 00 A9 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: F0 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: F0 09 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: F0 09 00 BA 00 00 18 E1 EF 66 02 BF CF 66 F6 [09:19:19]GetLastDocTimeStamp 1726996753 [09:19:19]current date 1726996760 [09:19:19]FM_GetShiftState [09:19:19]SAM_PROTO_GetShiftState [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 13 01 00 [09:19:19]Write to MH i2c: E2 08 00 BB 00 80 13 01 00 00 00 00 00 38 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0E 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0E 00 BB 00 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B3 [09:19:19]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:19]wFMCommunicate OK [09:19:19]SAM_PROTO_GetShiftState done [09:19:19]FM_GetShiftState done [09:19:19]opened in 1726964408 [09:19:19]opened+sec_in_day 1727050808 [09:19:19]quantity*price = 0 [09:19:19]sum+1 = 1 [09:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 21 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22106 ФПД: 182136522219125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091920&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22106&fm=182136522219125&tin=02508201610067®Number=0000000000146243&sum=0 0 [09:19:21]StoreToDocumentArchive [09:19:21]shift 228 fd 22106 [09:19:21]save to /storage/0228/doc_00022106 [09:19:21]save last doc name /storage/0228/doc_00022106 to /storage/kkm_last_doc_name [09:19:21]save OK [09:19:21]Clear old archive folders... [09:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:19:21]tlvbuf is 00273CF0 [09:19:21]SAM_PROTO_ClearQueue [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 09 00 00 [09:19:21]Write to MH i2c: E2 08 00 C8 00 80 09 00 00 00 00 00 00 3A [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_ClearQueue done [09:19:21]KKMCreateOFDPacket [09:19:21]OFDProtocolAddRootSTLVToBuf [09:19:21]FM_MakeSignedData [09:19:21]FM_MakeSignedData [09:19:21]SAM_PROTO_SignData [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 01 02 [09:19:21]Write to MH i2c: E2 08 00 C9 00 80 0D 01 02 00 00 00 00 42 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]wFMCommunicate request_size=255 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 [09:19:21]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 00 00 35 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]wFMCommunicate request_size=39 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5A 56 00 00 35 04 06 00 A5 A6 F6 B5 1E 75 [09:19:21]Write to MH i2c: E2 2A 00 CB 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5A 56 00 00 35 04 06 00 A5 A6 F6 B5 1E 75 00 00 40 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 03 02 [09:19:21]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0B 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0B 00 CC 00 00 1C 15 A6 E9 DA 4E 22 EA 90 00 3C [09:19:21]RAPDU: 1C 15 A6 E9 DA 4E 22 EA 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_SignData done [09:19:21]FM_MakeSignedData done [09:19:21]CreateOFDProtocolMessage [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 11 00 00 [09:19:21]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 17 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A1 [09:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:22]wFMCommunicate OK [09:19:22]CreateOFDProtocolMessage done [09:19:22]OFDSenderStorePacket 22106 [09:19:22]StoreOFDPacket docnum=22106 [09:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 B5 70 24 01 65 C3 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5A 56 00 00 35 04 06 00 A5 A6 F6 B5 1E 75 1C 15 A6 E9 DA 4E 22 EA [09:19:22]CheckFolder [09:19:22]dirname=/storage/ofd_packets [09:19:22]CheckFolder done [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00022106 [09:19:22]NVStorageSaveData ofd_packets/00022106 [09:19:22]File name is /storage/ofd_packets/00022106 [09:19:22]Write 330 bytes [09:19:22]NVStorageSaveData done [09:19:22]OFDSenderStorePacket done [09:19:22]KKMCreateOFDPacket done [09:19:22]NVStorageSaveData kkm_last_timestamp [09:19:22]File name is /storage/kkm_last_timestamp [09:19:22]Write 4 bytes [09:19:22]NVStorageSaveData done [09:19:22]ExternCall_PrintAddStr [09:19:22]wPrintStart [09:19:22]Write to MH i2c: 01 00 00 CE 00 CE [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [09:19:22]RasterBufferAndPrint [09:19:22]line Счет N : (3)51375 [09:19:22]line ИНН: 02508201610067 [09:19:22]line Контрольно-Кассовый Чек [09:19:22]line ПРОДАЖА [09:19:22]line Товар: 2000036210013 [09:19:22]line Кофе Капучино (GABB TRADE) [09:19:22]line 1.000 * 0.00 [09:19:22]line = 0.00 [09:19:22]line НДС 12% НСП 1% [09:19:22]line > о реализуемом товаре [09:19:22]line ИТОГО: 0.00 [09:19:22]line НСП 1% : 0.00 [09:19:22]line НДС 12% : 0.00 [09:19:22]line Наличными: 0.00 [09:19:22]line Безнал.: 0.00 [09:19:22]line Место: АЗС № 88 "Партнер Нефть" [09:19:22]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:22]line СНО: Общий режим [09:19:22]line Чек 21 22.09.2024 09:19 [09:19:22]line Смена: 228 ФФД: 1.0 [09:19:22]line ЗНМ: 0300000061 [09:19:22]line РНМ: 0000000000146243 [09:19:22]line Версия ККМ: v1.0 [09:19:22]line Платежная система: Mbank [09:19:22]line ФМ: 0000000000959358 [09:19:22]line ФД: 22106 [09:19:22]line ФПД: 182136522219125 [09:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091920&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22106&fm=182136522219125&tin=02508201610067®Number=0000000000146243&sum=0 [09:19:22]line 0 [09:19:22]written 0, free lines is 4095 [09:19:22]OFD Sender: Processing packet 22106 [packets to send 23, broken 22] [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00022106 [09:19:22]OFD Sender: To server: pG, [09:19:22]CommunicateWithHost lk.salyk.kg:30040 [09:19:22]ConnectInit lk.salyk.kg [09:19:22]Connected sock=10 [09:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 B5 70 24 01 65 C3 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5A 56 00 00 35 04 06 00 A5 A6 F6 B5 1E 75 1C 15 A6 E9 DA 4E 22 EA [09:19:22]Write to MH i2c: 01 00 00 F7 00 F7 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 2F 0D 3A [09:19:22]RasterBufferAndPrint [09:19:22]line [09:19:22]line [09:19:22]line [09:19:22]line [09:19:22]line [09:19:22]written 0, free lines is 3402 [09:19:22]MH_Cut [09:19:22]Write to MH i2c: D1 01 00 FE 00 01 D0 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: D1 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: D1 01 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: D1 01 00 FE 00 00 CF [09:19:22]Write to MH i2c: 01 00 00 FF 00 FF [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 EF EE 47 00 44 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5A 56 00 00 F4 03 04 00 44 8B EF 66 B6 04 01 00 00 CE 9A 16 B5 9D 49 20 C4 [09:19:22]CommunicateWithHost err = 0 [09:19:22]CheckOFDResponse [09:19:22]1017 (14) - 77093643461234 [09:19:22]1041 (16) - 0000000000959358 [09:19:22]1040 (4) - 22106 [09:19:22]1012 (4) - 22.09.2024 03:13 [09:19:22]1206 (1) - 0 [09:19:22]OFD Sender: Remove packet 22106 [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00022106 [09:19:22]NVStorageDeleteData [09:19:23]*** Cut start [09:19:23]*** Partial cut [09:19:23]*** CUTSNS_PIN = 1 [09:19:23]*** CUTSNS_PIN = 0 [09:19:23]OFD Sender: No OFD packet to send [09:19:23]*** Brake cut motor [09:19:23]Read from MH i2c: 01 [09:19:23]MH_I2C_Read... [09:19:23]*** Stop cut motor [09:19:23]*** Cut end [09:19:23]Read from MH i2c: 01 07 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [09:19:23]process_action close_receipt done [09:19:23]requested_data is exist [09:19:23]produce_requested_data [09:19:23]requested_item fm.sn is exist - process it [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 11 00 00 [09:19:23]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 17 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D5 [09:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:23]wFMCommunicate OK [09:19:23]requested_item fd.num is exist - process it [09:19:23]SAM_PROTO_GetFieldsCounters [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 13 00 00 [09:19:23]Write to MH i2c: E2 08 00 01 01 80 13 00 00 00 00 00 00 7E [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 62 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 62 00 01 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [09:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:24]wFMCommunicate OK [09:19:24]SAM_PROTO_GetFieldsCounters done [09:19:24]requested_item shift.num is exist - process it [09:19:24]requested_item shift.opened is exist - process it [09:19:24]req_shift_opened [09:19:24]FM_GetShiftState [09:19:24]SAM_PROTO_GetShiftState [09:19:24]wFMCommunicate request_size=4 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 13 01 00 [09:19:24]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:24]Read from MH i2c: E2 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 0E 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FB [09:19:24]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:24]wFMCommunicate OK [09:19:24]SAM_PROTO_GetShiftState done [09:19:24]FM_GetShiftState done [09:19:24]req_shift_opened done [09:19:24]requested_item shift.open_date is exist - process it [09:19:24]req_shift_open_date [09:19:24]req_shift_open_date done [09:19:24]produce_requested_data done [09:19:24]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22106,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:19:24]process_action_free close_receipt [09:19:24]json_value_free [09:19:24]json_value_free done [09:19:24]process_json_proto returns [09:19:24]Send response to host [09:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22106,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:19:24]free response buf [09:19:24]execute_script done [09:19:24]execute_script returns [09:19:24]free content buf [09:19:24]Sock 9.Close socket [09:19:24]Sock 9.Thread stoped [09:19:25]accept exits with 7 [09:19:25]New connection [09:19:25]New thread 3067039076 created [09:19:25]Thread 3067182436 joined [09:19:25]Waiting for new connection... [09:19:25] Sock 7.Parse request [09:19:25]Sock 7.Check first char [09:19:25]Sock 7.First char is OK [09:19:25]request: POST /json_proto HTTP/1.0 [09:19:25]Method: POST [09:19:25]URL: /json_proto [09:19:25]Method is POST - this is cgi request [09:19:25]url: /json_proto [09:19:25]query_string will be loaded in cgi processing [09:19:25]execute_cgi json_proto POST (null) [09:19:25]execute_cgi path=json_proto method=POST [09:19:25]POST find Content-Length [09:19:25]Host: 172.17.43.4:8080 [09:19:25]Content-Length: 627 [09:19:25]Content-Type: application/json [09:19:25] [09:19:25]POST finish read [09:19:25]Found Content-Length = 627 [09:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51376", "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:19:25]execute_script... [09:19: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)51376", "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:19:25]POST & json_proto [09:19:25]process_json_proto [09:19:25]json parsed OK: [09:19:25]protocol is kg_v1.0 [09:19:25]action value=close_receipt [09:19:25]process_action close_receipt [09:19:25]cmd_close_receipt [09:19:25]MH_GetDate [09:19:25]Write to MH i2c: F0 00 00 03 01 F3 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: F0 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: F0 09 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: F0 09 00 03 01 00 1E E1 EF 66 02 BF CF 66 46 [09:19:25]GetLastDocTimeStamp 1726996760 [09:19:25]current date 1726996766 [09:19:25]FM_GetShiftState [09:19:25]SAM_PROTO_GetShiftState [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 13 01 00 [09:19:25]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FD [09:19:25]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_GetShiftState done [09:19:25]FM_GetShiftState done [09:19:25]opened in 1726964408 [09:19:25]opened+sec_in_day 1727050808 [09:19:25]quantity*price = 13000 [09:19:25]sum+1 = 13001 [09:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 22 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22107 ФПД: 130249951722200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091926&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22107&fm=130249951722200&tin=02508201610067®Number=0000000000146243&sum=13000 0 [09:19:26]StoreToDocumentArchive [09:19:26]shift 228 fd 22107 [09:19:26]save to /storage/0228/doc_00022107 [09:19:26]save last doc name /storage/0228/doc_00022107 to /storage/kkm_last_doc_name [09:19:26]save OK [09:19:26]Clear old archive folders... [09:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:19:26]tlvbuf is 00291CD0 [09:19:26]SAM_PROTO_ClearQueue [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 09 00 00 [09:19:26]Write to MH i2c: E2 08 00 11 01 80 09 00 00 00 00 00 00 84 [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [09:19:26]RAPDU: 90 00 [09:19:26]wFMCommunicate OK [09:19:26]SAM_PROTO_ClearQueue done [09:19:26]KKMCreateOFDPacket [09:19:26]OFDProtocolAddRootSTLVToBuf [09:19:26]FM_MakeSignedData [09:19:26]FM_MakeSignedData [09:19:26]SAM_PROTO_SignData [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 0D 01 02 [09:19:26]Write to MH i2c: E2 08 00 12 01 80 0D 01 02 00 00 00 00 8C [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [09:19:26]RAPDU: 90 00 [09:19:26]wFMCommunicate OK [09:19:26]wFMCommunicate request_size=255 [09:19:26]MH_SAM_APDU [09:19:26]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 16 00 00 00 F4 03 04 00 1E E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 [09:19:26]Write to MH i2c: E2 02 01 13 01 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 16 00 00 00 F4 03 04 00 1E E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 00 00 F0 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [09:19:27]RAPDU: 90 00 [09:19:27]wFMCommunicate OK [09:19:27]wFMCommunicate request_size=35 [09:19:27]MH_SAM_APDU [09:19:27]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5B 56 00 00 35 04 06 00 76 76 2E 1A BA D8 [09:19:27]Write to MH i2c: E2 26 00 14 01 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5B 56 00 00 35 04 06 00 76 76 2E 1A BA D8 00 00 00 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [09:19:27]RAPDU: 90 00 [09:19:27]wFMCommunicate OK [09:19:27]wFMCommunicate request_size=4 [09:19:27]MH_SAM_APDU [09:19:27]CAPDU: 80 0D 03 02 [09:19:27]Write to MH i2c: E2 08 00 15 01 80 0D 03 02 00 00 00 00 91 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 0B 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 0B 00 15 01 00 CC F7 33 03 34 E7 8B 20 90 00 51 [09:19:27]RAPDU: CC F7 33 03 34 E7 8B 20 90 00 [09:19:27]wFMCommunicate OK [09:19:27]SAM_PROTO_SignData done [09:19:27]FM_MakeSignedData done [09:19:27]CreateOFDProtocolMessage [09:19:27]wFMCommunicate request_size=4 [09:19:27]MH_SAM_APDU [09:19:27]CAPDU: 80 11 00 00 [09:19:27]Write to MH i2c: E2 08 00 16 01 80 11 00 00 00 00 00 00 91 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:27]Read from MH i2c: E2 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 17 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: E2 17 00 16 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EB [09:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:27]wFMCommunicate OK [09:19:27]CreateOFDProtocolMessage done [09:19:27]OFDSenderStorePacket 22107 [09:19:27]StoreOFDPacket docnum=22107 [09:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 28 01 00 00 32 BD 20 01 DF D0 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 16 00 00 00 F4 03 04 00 1E E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5B 56 00 00 35 04 06 00 76 76 2E 1A BA D8 CC F7 33 03 34 E7 8B 20 [09:19:27]CheckFolder [09:19:27]dirname=/storage/ofd_packets [09:19:27]CheckFolder done [09:19:27]ProducePacketName [09:19:27]name=ofd_packets/00022107 [09:19:27]NVStorageSaveData ofd_packets/00022107 [09:19:27]File name is /storage/ofd_packets/00022107 [09:19:27]Write 326 bytes [09:19:27]NVStorageSaveData done [09:19:27]OFDSenderStorePacket done [09:19:27]KKMCreateOFDPacket done [09:19:27]NVStorageSaveData kkm_last_timestamp [09:19:27]File name is /storage/kkm_last_timestamp [09:19:27]Write 4 bytes [09:19:27]NVStorageSaveData done [09:19:27]ExternCall_PrintAddStr [09:19:27]wPrintStart [09:19:27]Write to MH i2c: 01 00 00 17 01 18 [09:19:27]Write i2c OK [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: 01 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: 01 07 00 [09:19:27]MH_I2C_Read... [09:19:27]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [09:19:27]RasterBufferAndPrint [09:19:27]line Счет N : (3)51376 [09:19:27]line ИНН: 02508201610067 [09:19:27]line Контрольно-Кассовый Чек [09:19:27]line ПРОДАЖА [09:19:27]line Товар: 2000036230011 [09:19:27]line Кофе Латте XL(GABB TRADE) [09:19:27]line 1.000 * 130.00 [09:19:27]line = 130.00 [09:19:27]line НДС 12% НСП 1% [09:19:27]line > о реализуемом товаре [09:19:27]line ИТОГО: 130.00 [09:19:27]line НСП 1% : 1.15 [09:19:27]line НДС 12% : 13.80 [09:19:27]line Наличными: 130.00 [09:19:27]line Безнал.: 0.00 [09:19:27]line Место: АЗС № 88 "Партнер Нефть" [09:19:27]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:27]line СНО: Общий режим [09:19:27]line Чек 22 22.09.2024 09:19 [09:19:27]line Смена: 228 ФФД: 1.0 [09:19:27]line ЗНМ: 0300000061 [09:19:27]line РНМ: 0000000000146243 [09:19:27]line Версия ККМ: v1.0 [09:19:27]line ФМ: 0000000000959358 [09:19:27]line ФД: 22107 [09:19:27]line ФПД: 130249951722200 [09:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091926&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22107&fm=130249951722200&tin=02508201610067®Number=0000000000146243&sum=13000 [09:19:27]line 0 [09:19:27]written 0, free lines is 4095 [09:19:27]OFD Sender: Processing packet 22107 [packets to send 23, broken 22] [09:19:27]ProducePacketName [09:19:27]name=ofd_packets/00022107 [09:19:27]OFD Sender: To server: pG, [09:19:27]CommunicateWithHost lk.salyk.kg:30040 [09:19:27]ConnectInit lk.salyk.kg [09:19:27]Connected sock=10 [09:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 28 01 00 00 32 BD 20 01 DF D0 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 16 00 00 00 F4 03 04 00 1E E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5B 56 00 00 35 04 06 00 76 76 2E 1A BA D8 CC F7 33 03 34 E7 8B 20 [09:19:28]Write to MH i2c: 01 00 00 3F 01 40 [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: 01 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: 01 07 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 4D 0D A1 [09:19:28]RasterBufferAndPrint [09:19:28]line [09:19:28]line [09:19:28]line [09:19:28]line [09:19:28]line [09:19:28]written 0, free lines is 3438 [09:19:28]MH_Cut [09:19:28]Write to MH i2c: D1 01 00 46 01 01 19 [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: D1 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: D1 01 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: D1 01 00 46 01 00 18 [09:19:28]Write to MH i2c: 01 00 00 47 01 48 [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 40 F5 47 00 33 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5B 56 00 00 F4 03 04 00 4A 8B EF 66 B6 04 01 00 00 96 AB D9 36 22 02 98 9A [09:19:28]CommunicateWithHost err = 0 [09:19:28]CheckOFDResponse [09:19:28]1017 (14) - 77093643461234 [09:19:28]1041 (16) - 0000000000959358 [09:19:28]1040 (4) - 22107 [09:19:28]1012 (4) - 22.09.2024 03:13 [09:19:28]1206 (1) - 0 [09:19:28]OFD Sender: Remove packet 22107 [09:19:28]ProducePacketName [09:19:28]name=ofd_packets/00022107 [09:19:28]NVStorageDeleteData [09:19:28]*** Cut start [09:19:28]*** Partial cut [09:19:28]*** CUTSNS_PIN = 1 [09:19:28]*** CUTSNS_PIN = 0 [09:19:28]*** Brake cut motor [09:19:28]OFD Sender: No OFD packet to send [09:19:29]Read from MH i2c: 01 [09:19:29]MH_I2C_Read... [09:19:29]*** Stop cut motor [09:19:29]*** Cut end [09:19:29]Read from MH i2c: 01 07 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 FF 0F 5D [09:19:29]process_action close_receipt done [09:19:29]requested_data is exist [09:19:29]produce_requested_data [09:19:29]requested_item fm.sn is exist - process it [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 11 00 00 [09:19:29]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 17 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1D [09:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:29]wFMCommunicate OK [09:19:29]requested_item fd.num is exist - process it [09:19:29]SAM_PROTO_GetFieldsCounters [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 13 00 00 [09:19:29]Write to MH i2c: E2 08 00 49 01 80 13 00 00 00 00 00 00 C6 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 62 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 62 00 49 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [09:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:29]wFMCommunicate OK [09:19:29]SAM_PROTO_GetFieldsCounters done [09:19:29]requested_item shift.num is exist - process it [09:19:29]requested_item shift.opened is exist - process it [09:19:29]req_shift_opened [09:19:29]FM_GetShiftState [09:19:29]SAM_PROTO_GetShiftState [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 13 01 00 [09:19:29]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:29]Read from MH i2c: E2 0E 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 43 [09:19:29]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:29]wFMCommunicate OK [09:19:29]SAM_PROTO_GetShiftState done [09:19:29]FM_GetShiftState done [09:19:29]req_shift_opened done [09:19:29]requested_item shift.open_date is exist - process it [09:19:29]req_shift_open_date [09:19:29]req_shift_open_date done [09:19:29]produce_requested_data done [09:19:29]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22107,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:19:29]process_action_free close_receipt [09:19:29]json_value_free [09:19:29]json_value_free done [09:19:29]process_json_proto returns [09:19:29]Send response to host [09:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22107,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:19:29]free response buf [09:19:29]execute_script done [09:19:29]execute_script returns [09:19:29]free content buf [09:19:29]Sock 7.Close socket [09:19:29]Sock 7.Thread stoped [09:19:31]accept exits with 9 [09:19:31]New connection [09:19:31]New thread 3067182436 created [09:19:31]Thread 3067039076 joined [09:19:31]Waiting for new connection... [09:19:31] Sock 9.Parse request [09:19:31]Sock 9.Check first char [09:19:31]Sock 9.First char is OK [09:19:31]request: POST /json_proto HTTP/1.0 [09:19:31]Method: POST [09:19:31]URL: /json_proto [09:19:31]Method is POST - this is cgi request [09:19:31]url: /json_proto [09:19:31]query_string will be loaded in cgi processing [09:19:31]execute_cgi json_proto POST (null) [09:19:31]execute_cgi path=json_proto method=POST [09:19:31]POST find Content-Length [09:19:31]Host: 172.17.43.4:8080 [09:19:31]Content-Length: 960 [09:19:31]Content-Type: application/json [09:19:31] [09:19:31]POST finish read [09:19:31]Found Content-Length = 960 [09:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51377", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:31]execute_script... [09:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51377", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:31]POST & json_proto [09:19:31]process_json_proto [09:19:31]json parsed OK: [09:19:31]protocol is kg_v1.0 [09:19:31]action value=close_receipt [09:19:31]process_action close_receipt [09:19:31]cmd_close_receipt [09:19:31]MH_GetDate [09:19:31]Write to MH i2c: F0 00 00 4B 01 3B [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: F0 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: F0 09 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: F0 09 00 4B 01 00 24 E1 EF 66 02 BF CF 66 94 [09:19:31]GetLastDocTimeStamp 1726996766 [09:19:31]current date 1726996772 [09:19:31]FM_GetShiftState [09:19:31]SAM_PROTO_GetShiftState [09:19:31]wFMCommunicate request_size=4 [09:19:31]MH_SAM_APDU [09:19:31]CAPDU: 80 13 01 00 [09:19:31]Write to MH i2c: E2 08 00 4C 01 80 13 01 00 00 00 00 00 CA [09:19:31]Write i2c OK [09:19:31]MH_I2C_Read... [09:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:31]Read from MH i2c: E2 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 0E 00 [09:19:31]MH_I2C_Read... [09:19:31]Read from MH i2c: E2 0E 00 4C 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 45 [09:19:31]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:31]wFMCommunicate OK [09:19:31]SAM_PROTO_GetShiftState done [09:19:31]FM_GetShiftState done [09:19:31]opened in 1726964408 [09:19:31]opened+sec_in_day 1727050808 [09:19:31]quantity*price = 1000 [09:19:31]sum+1 = 1001 [09:19:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 23 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22108 ФПД: 232159139938756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091932&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22108&fm=232159139938756&tin=02508201610067®Number=0000000000146243&sum=9900 0 [09:19:33]StoreToDocumentArchive [09:19:33]shift 228 fd 22108 [09:19:33]save to /storage/0228/doc_00022108 [09:19:33]save last doc name /storage/0228/doc_00022108 to /storage/kkm_last_doc_name [09:19:33]save OK [09:19:33]Clear old archive folders... [09:19:33]ProcessDocumentItem done err = 0, tmpTLVsize=404 [09:19:33]tlvbuf is 002B6430 [09:19:33]SAM_PROTO_ClearQueue [09:19:33]wFMCommunicate request_size=4 [09:19:33]MH_SAM_APDU [09:19:33]CAPDU: 80 09 00 00 [09:19:33]Write to MH i2c: E2 08 00 59 01 80 09 00 00 00 00 00 00 CC [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 [09:19:33]MH_I2C_Read... [09:19:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:33]Read from MH i2c: E2 03 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [09:19:33]RAPDU: 90 00 [09:19:33]wFMCommunicate OK [09:19:33]SAM_PROTO_ClearQueue done [09:19:33]KKMCreateOFDPacket [09:19:33]OFDProtocolAddRootSTLVToBuf [09:19:33]FM_MakeSignedData [09:19:33]FM_MakeSignedData [09:19:33]SAM_PROTO_SignData [09:19:33]wFMCommunicate request_size=4 [09:19:33]MH_SAM_APDU [09:19:33]CAPDU: 80 0D 01 02 [09:19:33]Write to MH i2c: E2 08 00 5A 01 80 0D 01 02 00 00 00 00 D4 [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:33]Read from MH i2c: E2 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 03 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [09:19:33]RAPDU: 90 00 [09:19:33]wFMCommunicate OK [09:19:33]wFMCommunicate request_size=255 [09:19:33]MH_SAM_APDU [09:19:33]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 [09:19:33]Write to MH i2c: E2 02 01 5B 01 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 D2 [09:19:33]Write i2c OK [09:19:33]MH_I2C_Read... [09:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:33]Read from MH i2c: E2 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 03 00 [09:19:33]MH_I2C_Read... [09:19:33]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [09:19:33]RAPDU: 90 00 [09:19:33]wFMCommunicate OK [09:19:33]wFMCommunicate request_size=163 [09:19:33]MH_SAM_APDU [09:19:33]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 24 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5C 56 00 00 35 04 06 00 D3 25 C3 11 41 C4 [09:19:34]Write to MH i2c: E2 A6 00 5C 01 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 24 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 OFD Sender: No OFD packet to send [09:19:34]01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5C 56 00 00 35 04 06 00 D3 25 C3 11 41 C4 00 00 73 [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:34]Read from MH i2c: E2 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 03 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [09:19:34]RAPDU: 90 00 [09:19:34]wFMCommunicate OK [09:19:34]wFMCommunicate request_size=4 [09:19:34]MH_SAM_APDU [09:19:34]CAPDU: 80 0D 03 02 [09:19:34]Write to MH i2c: E2 08 00 5D 01 80 0D 03 02 00 00 00 00 D9 [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:34]Read from MH i2c: E2 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 0B 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 0B 00 5D 01 00 3C 77 3B E7 32 CD BC 38 90 00 A2 [09:19:34]RAPDU: 3C 77 3B E7 32 CD BC 38 90 00 [09:19:34]wFMCommunicate OK [09:19:34]SAM_PROTO_SignData done [09:19:34]FM_MakeSignedData done [09:19:34]CreateOFDProtocolMessage [09:19:34]wFMCommunicate request_size=4 [09:19:34]MH_SAM_APDU [09:19:34]CAPDU: 80 11 00 00 [09:19:34]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:34]Read from MH i2c: E2 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 17 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 33 [09:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:34]wFMCommunicate OK [09:19:34]CreateOFDProtocolMessage done [09:19:34]OFDSenderStorePacket 22108 [09:19:34]StoreOFDPacket docnum=22108 [09:19:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A8 01 00 00 54 73 A0 01 B5 84 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 24 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5C 56 00 00 35 04 06 00 D3 25 C3 11 41 C4 3C 77 3B E7 32 CD BC 38 [09:19:34]CheckFolder [09:19:34]dirname=/storage/ofd_packets [09:19:34]CheckFolder done [09:19:34]ProducePacketName [09:19:34]name=ofd_packets/00022108 [09:19:34]NVStorageSaveData ofd_packets/00022108 [09:19:34]File name is /storage/ofd_packets/00022108 [09:19:34]Write 454 bytes [09:19:34]NVStorageSaveData done [09:19:34]OFDSenderStorePacket done [09:19:34]KKMCreateOFDPacket done [09:19:34]NVStorageSaveData kkm_last_timestamp [09:19:34]File name is /storage/kkm_last_timestamp [09:19:34]Write 4 bytes [09:19:34]NVStorageSaveData done [09:19:34]ExternCall_PrintAddStr [09:19:34]wPrintStart [09:19:34]Write to MH i2c: 01 00 00 5F 01 60 [09:19:34]Write i2c OK [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: 01 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: 01 07 00 [09:19:34]MH_I2C_Read... [09:19:34]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 FF 0F 75 [09:19:34]RasterBufferAndPrint [09:19:34]line Счет N : (3)51377 [09:19:34]line ИНН: 02508201610067 [09:19:34]line Контрольно-Кассовый Чек [09:19:34]line ПРОДАЖА [09:19:34]line Товар: 46226617 [09:19:34]line Mentos ПВ Нежная Мята 6*100*2г [09:19:34]line 1.000 * 10.00 [09:19:34]line = 10.00 [09:19:34]line НДС 12% НСП 1% [09:19:34]line > о реализуемом товаре [09:19:34]line Товар: 5000159390729 [09:19:34]line Шок Батончик Твикс Экстра 82г [09:19:34]line 1.000 * 89.00 [09:19:34]line = 89.00 [09:19:34]line НДС 12% НСП 1% [09:19:34]line > о реализуемом товаре [09:19:34]line ИТОГО: 99.00 [09:19:34]line НСП 1% : 0.88 [09:19:34]line НДС 12% : 10.51 [09:19:34]line Наличными: 99.00 [09:19:34]line Безнал.: 0.00 [09:19:34]line Место: АЗС № 88 "Партнер Нефть" [09:19:34]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:34]line СНО: Общий режим [09:19:34]line Чек 23 22.09.2024 09:19 [09:19:34]line Смена: 228 ФФД: 1.0 [09:19:34]line ЗНМ: 0300000061 [09:19:34]line РНМ: 0000000000146243 [09:19:34]line Версия ККМ: v1.0 [09:19:34]line ФМ: 0000000000959358 [09:19:34]line ФД: 22108 [09:19:34]line ФПД: 232159139938756 [09:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091932&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22108&fm=232159139938756&tin=02508201610067®Number=0000000000146243&sum=9900 [09:19:34]OFD Sender: Processing packet 22108 [packets to send 23, broken 22] [09:19:34]ProducePacketName [09:19:34]name=ofd_packets/00022108 [09:19:34]OFD Sender: To server: pG, [09:19:34]CommunicateWithHost lk.salyk.kg:30040 [09:19:34]ConnectInit lk.salyk.kg [09:19:34]line 0 [09:19:34]written 0, free lines is 4095 [09:19:35]Connected sock=11 [09:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A8 01 00 00 54 73 A0 01 B5 84 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 24 E1 EF 66 0E 04 Write to MH i2c: 04 01 00 00 E4 00 00 8F 00 01 00 90 B9 [09:19:35]04 01 00 Write i2c OK [09:19:35]01 MH_I2C_Read... [09:19:35]0D 04 10 00 30 30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 [09:19:35]31 MH_I2C_Read... [09:19:35]34 Read from MH i2c: 36 01 32 07 34 00 33 [09:19:35]11 MH_I2C_Read... [09:19:35]04 Read from MH i2c: 10 01 00 07 30 00 30 8F 30 01 30 00 00 00 00 00 BE 0E 63 [09:19:35]RasterBufferAndPrint [09:19:35]line [09:19:35]line [09:19:35]line [09:19:35]line [09:19:35]line [09:19:35]30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5C 56 00 00 35 04 06 00 D3 25 C3 11 41 C4 3C 77 3B E7 32 CD BC 38 [09:19:35]written 0, free lines is 3887 [09:19:35]MH_Cut [09:19:35]Write to MH i2c: D1 01 00 96 01 01 69 [09:19:35]Write i2c OK [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: D1 [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: D1 01 00 [09:19:35]MH_I2C_Read... [09:19:35]Read from MH i2c: D1 01 00 96 01 00 68 [09:19:35]Write to MH i2c: 01 00 00 97 01 98 [09:19:35]Write i2c OK [09:19:35]MH_I2C_Read... [09:19:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 CD 7E 47 00 0D D3 A5 *** Cut start [09:19:35]07 *** Partial cut [09:19:35]01 *** CUTSNS_PIN = 1 [09:19:35]00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 *** CUTSNS_PIN = 0 [09:19:35]38 10 04 04 00 5C 56 00 00 F4 03 04 00 52 8B EF 66 B6 04 01 00 00 3C 67 21 25 41 BB A8 B2 [09:19:35]CommunicateWithHost err = 0 [09:19:35]CheckOFDResponse [09:19:35]1017 (14) - 77093643461234 [09:19:35]1041 (16) - 0000000000959358 [09:19:35]1040 (4) - 22108 [09:19:35]1012 (4) - 22.09.2024 03:13 [09:19:35]1206 (1) - 0 [09:19:35]OFD Sender: Remove packet 22108 [09:19:35]ProducePacketName [09:19:35]name=ofd_packets/00022108 [09:19:35]NVStorageDeleteData [09:19:36]*** Brake cut motor [09:19:36]Read from MH i2c: *** Stop cut motor [09:19:36]01 *** Cut end [09:19:36] [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 07 00 [09:19:36]MH_I2C_Read... [09:19:36]OFD Sender: No OFD packet to send [09:19:36]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [09:19:36]process_action close_receipt done [09:19:36]requested_data is exist [09:19:36]produce_requested_data [09:19:36]requested_item fm.sn is exist - process it [09:19:36]wFMCommunicate request_size=4 [09:19:36]MH_SAM_APDU [09:19:36]CAPDU: 80 11 00 00 [09:19:36]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:36]Read from MH i2c: E2 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 17 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6D [09:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:36]wFMCommunicate OK [09:19:36]requested_item fd.num is exist - process it [09:19:36]SAM_PROTO_GetFieldsCounters [09:19:36]wFMCommunicate request_size=4 [09:19:36]MH_SAM_APDU [09:19:36]CAPDU: 80 13 00 00 [09:19:36]Write to MH i2c: E2 08 00 99 01 80 13 00 00 00 00 00 00 16 [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:36]Read from MH i2c: E2 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 62 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 62 00 99 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:36]wFMCommunicate OK [09:19:36]SAM_PROTO_GetFieldsCounters done [09:19:36]requested_item shift.num is exist - process it [09:19:36]requested_item shift.opened is exist - process it [09:19:36]req_shift_opened [09:19:36]FM_GetShiftState [09:19:36]SAM_PROTO_GetShiftState [09:19:36]wFMCommunicate request_size=4 [09:19:36]MH_SAM_APDU [09:19:36]CAPDU: 80 13 01 00 [09:19:36]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:36]Read from MH i2c: E2 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 0E 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 93 [09:19:36]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:37]wFMCommunicate OK [09:19:37]SAM_PROTO_GetShiftState done [09:19:37]FM_GetShiftState done [09:19:37]req_shift_opened done [09:19:37]requested_item shift.open_date is exist - process it [09:19:37]req_shift_open_date [09:19:37]req_shift_open_date done [09:19:37]produce_requested_data done [09:19:37]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22108,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:19:37]process_action_free close_receipt [09:19:37]json_value_free [09:19:37]json_value_free done [09:19:37]process_json_proto returns [09:19:37]Send response to host [09:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22108,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:19:37]free response buf [09:19:37]execute_script done [09:19:37]execute_script returns [09:19:37]free content buf [09:19:37]Sock 9.Close socket [09:19:37]Sock 9.Thread stoped [09:19:38]accept exits with 7 [09:19:38]New connection [09:19:38]New thread 3067039076 created [09:19:38]Thread 3067182436 joined [09:19:38]Waiting for new connection... [09:19:38] Sock 7.Parse request [09:19:38]Sock 7.Check first char [09:19:38]Sock 7.First char is OK [09:19:38]request: POST /json_proto HTTP/1.0 [09:19:38]Method: POST [09:19:38]URL: /json_proto [09:19:38]Method is POST - this is cgi request [09:19:38]url: /json_proto [09:19:38]query_string will be loaded in cgi processing [09:19:38]execute_cgi json_proto POST (null) [09:19:38]execute_cgi path=json_proto method=POST [09:19:38]POST find Content-Length [09:19:38]Host: 172.17.43.4:8080 [09:19:38]Content-Length: 646 [09:19:38]Content-Type: application/json [09:19:38] [09:19:38]POST finish read [09:19:38]Found Content-Length = 646 [09:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51378", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:38]execute_script... [09:19: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)51378", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:38]POST & json_proto [09:19:38]process_json_proto [09:19:38]json parsed OK: [09:19:38]protocol is kg_v1.0 [09:19:38]action value=close_receipt [09:19:38]process_action close_receipt [09:19:38]cmd_close_receipt [09:19:38]MH_GetDate [09:19:38]Write to MH i2c: F0 00 00 9B 01 8B [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: F0 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: F0 09 00 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: F0 09 00 9B 01 00 2B E1 EF 66 02 BF CF 66 EB [09:19:38]GetLastDocTimeStamp 1726996772 [09:19:38]current date 1726996779 [09:19:38]FM_GetShiftState [09:19:38]SAM_PROTO_GetShiftState [09:19:38]wFMCommunicate request_size=4 [09:19:38]MH_SAM_APDU [09:19:38]CAPDU: 80 13 01 00 [09:19:38]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [09:19:38]Write i2c OK [09:19:38]MH_I2C_Read... [09:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:38]Read from MH i2c: E2 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: E2 0E 00 [09:19:38]MH_I2C_Read... [09:19:38]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 95 [09:19:38]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:38]wFMCommunicate OK [09:19:38]SAM_PROTO_GetShiftState done [09:19:38]FM_GetShiftState done [09:19:38]opened in 1726964408 [09:19:38]opened+sec_in_day 1727050808 [09:19:38]quantity*price = 25000 [09:19:38]sum+1 = 25001 [09:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 24 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22109 ФПД: 166016620879828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091939&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22109&fm=166016620879828&tin=02508201610067®Number=0000000000146243&sum=25000 0 [09:19:39]StoreToDocumentArchive [09:19:39]shift 228 fd 22109 [09:19:39]save to /storage/0228/doc_00022109 [09:19:39]save last doc name /storage/0228/doc_00022109 to /storage/kkm_last_doc_name [09:19:39]save OK [09:19:39]Clear old archive folders... [09:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:19:40]tlvbuf is 002E4250 [09:19:40]SAM_PROTO_ClearQueue [09:19:40]wFMCommunicate request_size=4 [09:19:40]MH_SAM_APDU [09:19:40]CAPDU: 80 09 00 00 [09:19:40]Write to MH i2c: E2 08 00 A9 01 80 09 00 00 00 00 00 00 1C [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:40]Read from MH i2c: E2 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 03 00 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [09:19:40]RAPDU: 90 00 [09:19:40]wFMCommunicate OK [09:19:40]SAM_PROTO_ClearQueue done [09:19:40]KKMCreateOFDPacket [09:19:40]OFDProtocolAddRootSTLVToBuf [09:19:40]FM_MakeSignedData [09:19:40]FM_MakeSignedData [09:19:40]SAM_PROTO_SignData [09:19:40]wFMCommunicate request_size=4 [09:19:40]MH_SAM_APDU [09:19:40]CAPDU: 80 0D 01 02 [09:19:40]Write to MH i2c: E2 08 00 AA 01 80 0D 01 02 00 00 00 00 24 [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:40]Read from MH i2c: E2 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 03 00 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [09:19:40]RAPDU: 90 00 [09:19:40]wFMCommunicate OK [09:19:40]wFMCommunicate request_size=255 [09:19:40]MH_SAM_APDU [09:19:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [09:19:40]Write to MH i2c: E2 02 01 AB 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 44 [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:40]Read from MH i2c: E2 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 03 00 [09:19:40]MH_I2C_Read... [09:19:40]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [09:19:40]RAPDU: 90 00 [09:19:40]wFMCommunicate OK [09:19:40]wFMCommunicate request_size=34 [09:19:40]MH_SAM_APDU [09:19:40]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5D 56 00 00 35 04 06 00 96 FD C1 B6 DF D4 [09:19:40]Write to MH i2c: E2 25 00 AC 01 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5D 56 00 00 35 04 06 00 96 FD C1 B6 DF D4 00 00 5F [09:19:40]Write i2c OK [09:19:40]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [09:19:41]RAPDU: 90 00 [09:19:41]wFMCommunicate OK [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 0D 03 02 [09:19:41]Write to MH i2c: E2 08 00 AD 01 80 0D 03 02 00 00 00 00 29 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 0B 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 0B 00 AD 01 00 27 2E 54 B8 C8 EA 85 B4 90 00 76 [09:19:41]RAPDU: 27 2E 54 B8 C8 EA 85 B4 90 00 [09:19:41]wFMCommunicate OK [09:19:41]SAM_PROTO_SignData done [09:19:41]FM_MakeSignedData done [09:19:41]CreateOFDProtocolMessage [09:19:41]wFMCommunicate request_size=4 [09:19:41]MH_SAM_APDU [09:19:41]CAPDU: 80 11 00 00 [09:19:41]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 [09:19:41]MH_I2C_Read... [09:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:41]Read from MH i2c: E2 17 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 83 [09:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:41]wFMCommunicate OK [09:19:41]CreateOFDProtocolMessage done [09:19:41]OFDSenderStorePacket 22109 [09:19:41]StoreOFDPacket docnum=22109 [09:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 E3 F6 1F 01 B2 0F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5D 56 00 00 35 04 06 00 96 FD C1 B6 DF D4 27 2E 54 B8 C8 EA 85 B4 [09:19:41]CheckFolder [09:19:41]dirname=/storage/ofd_packets [09:19:41]CheckFolder done [09:19:41]ProducePacketName [09:19:41]name=ofd_packets/00022109 [09:19:41]NVStorageSaveData ofd_packets/00022109 [09:19:41]File name is /storage/ofd_packets/00022109 [09:19:41]Write 325 bytes [09:19:41]NVStorageSaveData done [09:19:41]OFDSenderStorePacket done [09:19:41]KKMCreateOFDPacket done [09:19:41]NVStorageSaveData kkm_last_timestamp [09:19:41]File name is /storage/kkm_last_timestamp [09:19:41]Write 4 bytes [09:19:41]NVStorageSaveData done [09:19:41]ExternCall_PrintAddStr [09:19:41]wPrintStart [09:19:41]Write to MH i2c: 01 00 00 AF 01 B0 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [09:19:41]RasterBufferAndPrint [09:19:41]line Счет N : (3)51378 [09:19:41]line ИНН: 02508201610067 [09:19:41]line Контрольно-Кассовый Чек [09:19:41]line ПРОДАЖА [09:19:41]line Товар: 4700001061104 [09:19:41]line Коньяк Семетей 0,2л [09:19:41]line 1.000 * 250.00 [09:19:41]line = 250.00 [09:19:41]line НДС 12% НСП 1% [09:19:41]line > о реализуемом товаре [09:19:41]line ИТОГО: 250.00 [09:19:41]line НСП 1% : 2.21 [09:19:41]line НДС 12% : 26.55 [09:19:41]line Наличными: 250.00 [09:19:41]line Безнал.: 0.00 [09:19:41]line Место: АЗС № 88 "Партнер Нефть" [09:19:41]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:41]line СНО: Общий режим [09:19:41]line Чек 24 22.09.2024 09:19 [09:19:41]line Смена: 228 ФФД: 1.0 [09:19:41]line ЗНМ: 0300000061 [09:19:41]line РНМ: 0000000000146243 [09:19:41]line Версия ККМ: v1.0 [09:19:41]line ФМ: 0000000000959358 [09:19:41]line ФД: 22109 [09:19:41]line ФПД: 166016620879828 [09:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091939&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22109&fm=166016620879828&tin=02508201610067®Number=0000000000146243&sum=25000 [09:19:41]line 0 [09:19:41]OFD Sender: Processing packet 22109 [packets to send 23, broken 22] [09:19:41]ProducePacketName [09:19:41]name=ofd_packets/00022109 [09:19:41]OFD Sender: To server: pG, [09:19:41]CommunicateWithHost lk.salyk.kg:30040 [09:19:41]ConnectInit lk.salyk.kg [09:19:41]written 0, free lines is 4095 [09:19:41]Connected sock=10 [09:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 E3 F6 1F 01 B2 0F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 2B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5D 56 00 00 35 04 06 00 96 FD C1 B6 DF D4 27 2E 54 B8 C8 EA 85 B4 [09:19:41]Write to MH i2c: 01 00 00 D7 01 D8 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 72 0D 5E [09:19:41]RasterBufferAndPrint [09:19:41]line [09:19:41]line [09:19:41]line [09:19:41]line [09:19:41]line [09:19:41]written 0, free lines is 3483 [09:19:41]MH_Cut [09:19:41]Write to MH i2c: D1 01 00 DE 01 01 B1 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: D1 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: D1 01 00 [09:19:41]MH_I2C_Read... [09:19:41]Read from MH i2c: D1 01 00 DE 01 00 B0 [09:19:41]Write to MH i2c: 01 00 00 DF 01 E0 [09:19:41]Write i2c OK [09:19:41]MH_I2C_Read... [09:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 77 26 47 00 60 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5D 56 00 00 F4 03 04 00 58 8B EF 66 B6 04 01 00 00 F5 7E 50 7A B1 38 41 CD [09:19:42]CommunicateWithHost err = 0 [09:19:42]CheckOFDResponse [09:19:42]1017 (14) - 77093643461234 [09:19:42]1041 (16) - 0000000000959358 [09:19:42]1040 (4) - 22109 [09:19:42]1012 (4) - 22.09.2024 03:13 [09:19:42]1206 (1) - 0 [09:19:42]OFD Sender: Remove packet 22109 [09:19:42]ProducePacketName [09:19:42]name=ofd_packets/00022109 [09:19:42]NVStorageDeleteData [09:19:42]*** Cut start [09:19:42]*** Partial cut [09:19:42]*** CUTSNS_PIN = 1 [09:19:42]*** CUTSNS_PIN = 0 [09:19:42]*** Brake cut motor [09:19:42]OFD Sender: No OFD packet to send [09:19:43]Read from MH i2c: 01 [09:19:43]MH_I2C_Read... [09:19:43]*** Stop cut motor [09:19:43]*** Cut end [09:19:43]Read from MH i2c: 01 07 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [09:19:43]process_action close_receipt done [09:19:43]requested_data is exist [09:19:43]produce_requested_data [09:19:43]requested_item fm.sn is exist - process it [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 11 00 00 [09:19:43]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 17 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B5 [09:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:43]wFMCommunicate OK [09:19:43]requested_item fd.num is exist - process it [09:19:43]SAM_PROTO_GetFieldsCounters [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 13 00 00 [09:19:43]Write to MH i2c: E2 08 00 E1 01 80 13 00 00 00 00 00 00 5E [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 62 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 62 00 E1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [09:19:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:43]wFMCommunicate OK [09:19:43]SAM_PROTO_GetFieldsCounters done [09:19:43]requested_item shift.num is exist - process it [09:19:43]requested_item shift.opened is exist - process it [09:19:43]req_shift_opened [09:19:43]FM_GetShiftState [09:19:43]SAM_PROTO_GetShiftState [09:19:43]wFMCommunicate request_size=4 [09:19:43]MH_SAM_APDU [09:19:43]CAPDU: 80 13 01 00 [09:19:43]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [09:19:43]Write i2c OK [09:19:43]MH_I2C_Read... [09:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:43]Read from MH i2c: E2 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0E 00 [09:19:43]MH_I2C_Read... [09:19:43]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 DB [09:19:43]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:43]wFMCommunicate OK [09:19:43]SAM_PROTO_GetShiftState done [09:19:43]FM_GetShiftState done [09:19:43]req_shift_opened done [09:19:43]requested_item shift.open_date is exist - process it [09:19:43]req_shift_open_date [09:19:43]req_shift_open_date done [09:19:43]produce_requested_data done [09:19:43]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22109,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:19:43]process_action_free close_receipt [09:19:43]json_value_free [09:19:43]json_value_free done [09:19:43]process_json_proto returns [09:19:43]Send response to host [09:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22109,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:19:43]free response buf [09:19:43]execute_script done [09:19:43]execute_script returns [09:19:43]free content buf [09:19:43]Sock 7.Close socket [09:19:43]Sock 7.Thread stoped [09:19:45]accept exits with 9 [09:19:45]New connection [09:19:45]New thread 3067182436 created [09:19:45]Thread 3067039076 joined [09:19:45]Waiting for new connection... [09:19:45] Sock 9.Parse request [09:19:45]Sock 9.Check first char [09:19:45]Sock 9.First char is OK [09:19:45]request: POST /json_proto HTTP/1.0 [09:19:45]Method: POST [09:19:45]URL: /json_proto [09:19:45]Method is POST - this is cgi request [09:19:45]url: /json_proto [09:19:45]query_string will be loaded in cgi processing [09:19:45]execute_cgi json_proto POST (null) [09:19:45]execute_cgi path=json_proto method=POST [09:19:45]POST find Content-Length [09:19:45]Host: 172.17.43.4:8080 [09:19:45]Content-Length: 1354 [09:19:45]Content-Type: application/json [09:19:45] [09:19:45]POST finish read [09:19:45]Found Content-Length = 1354 [09:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51379", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:45]execute_script... [09:19: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)51379", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" : 308.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:45]POST & json_proto [09:19:45]process_json_proto [09:19:45]json parsed OK: [09:19:45]protocol is kg_v1.0 [09:19:45]action value=close_receipt [09:19:45]process_action close_receipt [09:19:45]cmd_close_receipt [09:19:45]MH_GetDate [09:19:45]Write to MH i2c: F0 00 00 E3 01 D3 [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: F0 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: F0 09 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: F0 09 00 E3 01 00 32 E1 EF 66 02 BF CF 66 3A [09:19:45]GetLastDocTimeStamp 1726996779 [09:19:45]current date 1726996786 [09:19:45]FM_GetShiftState [09:19:45]SAM_PROTO_GetShiftState [09:19:45]wFMCommunicate request_size=4 [09:19:45]MH_SAM_APDU [09:19:45]CAPDU: 80 13 01 00 [09:19:45]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 0E 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 DD [09:19:45]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:45]wFMCommunicate OK [09:19:45]SAM_PROTO_GetShiftState done [09:19:45]FM_GetShiftState done [09:19:45]opened in 1726964408 [09:19:45]opened+sec_in_day 1727050808 [09:19:45]quantity*price = 14900 [09:19:45]sum+1 = 14901 [09:19:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741224 Сигареты Winston Super Slims Blue 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231512 Mentos ПФ Виноград 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 308.00 НСП 1% : 2.73 НДС 12% : 32.70 Наличными: 308.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 25 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22110 ФПД: 207884543952380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091946&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22110&fm=207884543952380&tin=02508201610067®Number=0000000000146243&sum=30800 0 [09:19:47]StoreToDocumentArchive [09:19:47]shift 228 fd 22110 [09:19:47]save to /storage/0228/doc_00022110 [09:19:47]save last doc name /storage/0228/doc_00022110 to /storage/kkm_last_doc_name [09:19:47]save OK [09:19:47]Clear old archive folders... [09:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=589 [09:19:47]tlvbuf is 002C4420 [09:19:47]SAM_PROTO_ClearQueue [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 09 00 00 [09:19:47]Write to MH i2c: E2 08 00 F1 01 80 09 00 00 00 00 00 00 64 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [09:19:47]RAPDU: 90 00 [09:19:47]wFMCommunicate OK [09:19:47]SAM_PROTO_ClearQueue done [09:19:47]KKMCreateOFDPacket [09:19:47]OFDProtocolAddRootSTLVToBuf [09:19:47]FM_MakeSignedData [09:19:47]FM_MakeSignedData [09:19:47]SAM_PROTO_SignData [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 0D 01 02 [09:19:47]Write to MH i2c: E2 08 00 F2 01 80 0D 01 02 00 00 00 00 6C [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [09:19:47]RAPDU: 90 00 [09:19:47]wFMCommunicate OK [09:19:47]wFMCommunicate request_size=255 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 0D 02 02 FA 03 00 4D 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 OFD Sender: No OFD packet to send [09:19:47]00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 [09:19:47]Write to MH i2c: E2 02 01 F3 01 80 0D 02 02 FA 00 03 00 4D 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 00 00 EC [09:19:48]Write i2c OK [09:19:48]MH_I2C_Read... [09:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:48]Read from MH i2c: E2 [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: E2 03 00 [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [09:19:48]RAPDU: 90 00 [09:19:48]wFMCommunicate OK [09:19:48]wFMCommunicate request_size=255 [09:19:48]MH_SAM_APDU [09:19:48]CAPDU: 80 0D 02 02 FA A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 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 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 [09:19:48]Write to MH i2c: E2 02 01 F4 01 80 0D 02 02 FA 00 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 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 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 00 00 50 [09:19:48]Write i2c OK [09:19:48]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [09:19:49]RAPDU: 90 00 [09:19:49]wFMCommunicate OK [09:19:49]wFMCommunicate request_size=98 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 0D 02 02 5D 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 32 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5E 56 00 00 35 04 06 00 BD 11 E4 65 85 FC [09:19:49]Write to MH i2c: E2 65 00 F5 01 80 0D 02 02 5D 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 32 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5E 56 00 00 35 04 06 00 BD 11 E4 65 85 FC 00 00 C3 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [09:19:49]RAPDU: 90 00 [09:19:49]wFMCommunicate OK [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 0D 03 02 [09:19:49]Write to MH i2c: E2 08 00 F6 01 80 0D 03 02 00 00 00 00 72 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 0B 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 0B 00 F6 01 00 21 32 AD C6 5E 08 AA B5 90 00 FE [09:19:49]RAPDU: 21 32 AD C6 5E 08 AA B5 90 00 [09:19:49]wFMCommunicate OK [09:19:49]SAM_PROTO_SignData done [09:19:49]FM_MakeSignedData done [09:19:49]CreateOFDProtocolMessage [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 11 00 00 [09:19:49]Write to MH i2c: E2 08 00 F7 01 80 11 00 00 00 00 00 00 72 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:49]Read from MH i2c: E2 17 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 17 00 F7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 CC [09:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:49]wFMCommunicate OK [09:19:49]CreateOFDProtocolMessage done [09:19:49]OFDSenderStorePacket 22110 [09:19:49]StoreOFDPacket docnum=22110 [09:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 61 02 00 00 86 B9 59 02 8B 1A 5A 03 01 00 03 00 4D 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 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 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 32 E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5E 56 00 00 35 04 06 00 BD 11 E4 65 85 FC 21 32 AD C6 5E 08 AA B5 [09:19:49]CheckFolder [09:19:49]dirname=/storage/ofd_packets [09:19:49]CheckFolder done [09:19:49]ProducePacketName [09:19:49]name=ofd_packets/00022110 [09:19:49]NVStorageSaveData ofd_packets/00022110 [09:19:49]File name is /storage/ofd_packets/00022110 [09:19:49]Write 639 bytes [09:19:49]NVStorageSaveData done [09:19:49]OFDSenderStorePacket done [09:19:49]KKMCreateOFDPacket done [09:19:49]NVStorageSaveData kkm_last_timestamp [09:19:49]File name is /storage/kkm_last_timestamp [09:19:49]Write 4 bytes [09:19:49]NVStorageSaveData done [09:19:49]ExternCall_PrintAddStr [09:19:49]wPrintStart [09:19:49]Write to MH i2c: 01 00 00 F8 01 F9 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: 01 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: 01 07 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [09:19:49]RasterBufferAndPrint [09:19:49]line Счет N : (3)51379 [09:19:49]line ИНН: 02508201610067 [09:19:49]line Контрольно-Кассовый Чек [09:19:49]line ПРОДАЖА [09:19:49]line Товар: 48744119 [09:19:49]line Сигареты Winston Xstyle Dual [09:19:49]line 1.000 * 149.00 [09:19:49]line = 149.00 [09:19:49]line НДС 12% НСП 1% [09:19:49]line > о реализуемом товаре [09:19:49]line Товар: 48741224 [09:19:49]line Сигареты Winston Super Slims Blue [09:19:49]line 1.000 * 139.00 [09:19:49]line = 139.00 [09:19:49]line НДС 12% НСП 1% [09:19:49]line > о реализуемом товаре [09:19:49]line Товар: 46231512 [09:19:49]line Mentos ПФ Виноград 6*100*2г [09:19:49]line 1.000 * 10.00 [09:19:49]line = 10.00 [09:19:49]line НДС 12% НСП 1% [09:19:49]line > о реализуемом товаре [09:19:49]line Товар: 46226624 [09:19:49]line Mentos ПВ Клубника 6*100*2 [09:19:49]line 1.000 * 10.00 [09:19:49]line = 10.00 [09:19:49]line НДС 12% НСП 1% [09:19:49]line > о реализуемом товаре [09:19:49]line ИТОГО: 308.00 [09:19:49]line НСП 1% : 2.73 [09:19:49]line НДС 12% : 32.70 [09:19:49]line Наличными: 308.00 [09:19:49]line Безнал.: 0.00 [09:19:49]line Место: АЗС № 88 "Партнер Нефть" [09:19:49]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:49]line СНО: Общий режим [09:19:49]line Чек 25 22.09.2024 09:19 [09:19:49]line Смена: 228 ФФД: 1.0 [09:19:49]line ЗНМ: 0300000061 [09:19:49]line РНМ: 0000000000146243 [09:19:49]line Версия ККМ: v1.0 [09:19:49]line ФМ: 0000000000959358 [09:19:49]line ФД: 22110 [09:19:49]line ФПД: 207884543952380 [09:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091946&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22110&fm=207884543952380&tin=02508201610067®Number=0000000000146243&sum=30800 [09:19:49]line 0 [09:19:49]OFD Sender: Processing packet 22110 [packets to send 23, broken 22] [09:19:49]ProducePacketName [09:19:49]name=ofd_packets/00022110 [09:19:49]OFD Sender: To server: pG, [09:19:49]CommunicateWithHost lk.salyk.kg:30040 [09:19:49]ConnectInit lk.salyk.kg [09:19:49]written 0, free lines is 4095 [09:19:50]Connected sock=10 [09:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 61 02 00 00 86 B9 59 02 8B 1A 5A 03 01 00 03 00 4D 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 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 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0C 00 00 00 00 07 04 06 00 50 78 00 00 00 Write to MH i2c: 00 01 39 00 04 00 06 33 00 02 00 35 00 [09:19:50]00 Write i2c OK [09:19:50]00 MH_I2C_Read... [09:19:50]00 00 1F 04 02 00 01 00 12 04 04 00 Read from MH i2c: 19 01 00 [09:19:50]00 MH_I2C_Read... [09:19:50]00 Read from MH i2c: F4 01 03 07 04 00 00 [09:19:50]32 MH_I2C_Read... [09:19:50]E1 EF 66 0E 04 04 00 E4 00 00 Read from MH i2c: 00 01 B9 07 04 00 01 33 00 02 01 00 0D 00 04 00 10 00 00 00 78 30 0C 30 C0 30 [09:19:50]30 30 30 30 30 30 30 31 34 36 32 34 RasterBufferAndPrint [09:19:50]33 line [09:19:50]11 line [09:19:50]04 line [09:19:50]10 line [09:19:50]00 line [09:19:50]30 30 written 0, free lines is 3379 [09:19:50]30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 MH_Cut [09:19:50]04 Write to MH i2c: 04 D1 00 01 00 5E 3A 56 02 00 01 00 35 04 06 00 BD 11 E4 65 85 FC 21 0E 32 [09:19:50]AD C6 5E 08 AA B5 [09:19:50]Write i2c OK [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: D1 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: D1 01 00 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: D1 01 00 3A 02 00 0D [09:19:50]Write to MH i2c: 01 00 00 3B 02 3D [09:19:50]Write i2c OK [09:19:50]MH_I2C_Read... [09:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 1A 5F 47 00 F7 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5E 56 00 00 F4 03 04 00 61 8B EF 66 B6 04 01 00 00 1A E1 62 BB B6 8E 33 43 [09:19:51]CommunicateWithHost err = 0 [09:19:51]CheckOFDResponse [09:19:51]1017 (14) - 77093643461234 [09:19:51]1041 (16) - 0000000000959358 [09:19:51]1040 (4) - 22110 [09:19:51]1012 (4) - 22.09.2024 03:13 [09:19:51]1206 (1) - 0 [09:19:51]OFD Sender: Remove packet 22110 [09:19:51]ProducePacketName [09:19:51]name=ofd_packets/00022110 [09:19:51]NVStorageDeleteData [09:19:51]*** Cut start [09:19:51]*** Partial cut [09:19:51]*** CUTSNS_PIN = 1 [09:19:51]*** CUTSNS_PIN = 0 [09:19:51]*** Brake cut motor [09:19:51]OFD Sender: No OFD packet to send [09:19:51]Read from MH i2c: 01 [09:19:51]MH_I2C_Read... [09:19:51]*** Stop cut motor [09:19:51]*** Cut end [09:19:51]Read from MH i2c: 01 07 00 [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [09:19:51]process_action close_receipt done [09:19:51]requested_data is exist [09:19:51]produce_requested_data [09:19:51]requested_item fm.sn is exist - process it [09:19:51]wFMCommunicate request_size=4 [09:19:51]MH_SAM_APDU [09:19:51]CAPDU: 80 11 00 00 [09:19:51]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [09:19:51]Write i2c OK [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: E2 [09:19:52]MH_I2C_Read... [09:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:52]Read from MH i2c: E2 17 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 12 [09:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:52]wFMCommunicate OK [09:19:52]requested_item fd.num is exist - process it [09:19:52]SAM_PROTO_GetFieldsCounters [09:19:52]wFMCommunicate request_size=4 [09:19:52]MH_SAM_APDU [09:19:52]CAPDU: 80 13 00 00 [09:19:52]Write to MH i2c: E2 08 00 3D 02 80 13 00 00 00 00 00 00 BB [09:19:52]Write i2c OK [09:19:52]MH_I2C_Read... [09:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:52]Read from MH i2c: E2 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 62 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 62 00 3D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [09:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:52]wFMCommunicate OK [09:19:52]SAM_PROTO_GetFieldsCounters done [09:19:52]requested_item shift.num is exist - process it [09:19:52]requested_item shift.opened is exist - process it [09:19:52]req_shift_opened [09:19:52]FM_GetShiftState [09:19:52]SAM_PROTO_GetShiftState [09:19:52]wFMCommunicate request_size=4 [09:19:52]MH_SAM_APDU [09:19:52]CAPDU: 80 13 01 00 [09:19:52]Write to MH i2c: E2 08 00 3E 02 80 13 01 00 00 00 00 00 BD [09:19:52]Write i2c OK [09:19:52]MH_I2C_Read... [09:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:52]Read from MH i2c: E2 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 0E 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 0E 00 3E 02 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 38 [09:19:52]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:52]wFMCommunicate OK [09:19:52]SAM_PROTO_GetShiftState done [09:19:52]FM_GetShiftState done [09:19:52]req_shift_opened done [09:19:52]requested_item shift.open_date is exist - process it [09:19:52]req_shift_open_date [09:19:52]req_shift_open_date done [09:19:52]produce_requested_data done [09:19:52]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22110,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:19:52]process_action_free close_receipt [09:19:52]json_value_free [09:19:52]json_value_free done [09:19:52]process_json_proto returns [09:19:52]Send response to host [09:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22110,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:19:52]free response buf [09:19:52]execute_script done [09:19:52]execute_script returns [09:19:52]free content buf [09:19:52]Sock 9.Close socket [09:19:52]Sock 9.Thread stoped [09:19:53]accept exits with 7 [09:19:53]New connection [09:19:53]New thread 3067039076 created [09:19:53]Thread 3067182436 joined [09:19:53]Waiting for new connection... [09:19:53] Sock 7.Parse request [09:19:53]Sock 7.Check first char [09:19:53]Sock 7.First char is OK [09:19:53]request: POST /json_proto HTTP/1.0 [09:19:53]Method: POST [09:19:53]URL: /json_proto [09:19:53]Method is POST - this is cgi request [09:19:53]url: /json_proto [09:19:53]query_string will be loaded in cgi processing [09:19:53]execute_cgi json_proto POST (null) [09:19:53]execute_cgi path=json_proto method=POST [09:19:53]POST find Content-Length [09:19:53]Host: 172.17.43.4:8080 [09:19:53]Content-Length: 1206 [09:19:53]Content-Type: application/json [09:19:53] [09:19:53]POST finish read [09:19:53]Found Content-Length = 1206 [09:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51380", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 197.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:53]execute_script... [09:19: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)51380", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 2.000, "sum" : 34.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 197.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:53]POST & json_proto [09:19:53]process_json_proto [09:19:53]json parsed OK: [09:19:53]protocol is kg_v1.0 [09:19:53]action value=close_receipt [09:19:53]process_action close_receipt [09:19:53]cmd_close_receipt [09:19:53]MH_GetDate [09:19:53]Write to MH i2c: F0 00 00 3F 02 30 [09:19:53]Write i2c OK [09:19:53]MH_I2C_Read... [09:19:53]Read from MH i2c: F0 [09:19:53]MH_I2C_Read... [09:19:53]Read from MH i2c: F0 09 00 [09:19:53]MH_I2C_Read... [09:19:53]Read from MH i2c: F0 09 00 3F 02 00 3A E1 EF 66 02 BF CF 66 9F [09:19:53]GetLastDocTimeStamp 1726996786 [09:19:53]current date 1726996794 [09:19:53]FM_GetShiftState [09:19:53]SAM_PROTO_GetShiftState [09:19:53]wFMCommunicate request_size=4 [09:19:53]MH_SAM_APDU [09:19:53]CAPDU: 80 13 01 00 [09:19:53]Write to MH i2c: E2 08 00 40 02 80 13 01 00 00 00 00 00 BF [09:19:53]Write i2c OK [09:19:53]MH_I2C_Read... [09:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:54]Read from MH i2c: E2 [09:19:54]MH_I2C_Read... [09:19:54]Read from MH i2c: E2 0E 00 [09:19:54]MH_I2C_Read... [09:19:54]Read from MH i2c: E2 0E 00 40 02 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 3A [09:19:54]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:19:54]wFMCommunicate OK [09:19:54]SAM_PROTO_GetShiftState done [09:19:54]FM_GetShiftState done [09:19:54]opened in 1726964408 [09:19:54]opened+sec_in_day 1727050808 [09:19:54]quantity*price = 11800 [09:19:54]sum+1 = 11801 [09:19:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 2.000 * 17.00 = 34.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 197.00 НСП 1% : 1.74 НДС 12% : 20.92 Наличными: 197.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 26 22.09.2024 09:19 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22111 ФПД: 159092969478665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091955&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22111&fm=159092969478665&tin=02508201610067®Number=0000000000146243&sum=19700 0 [09:19:56]StoreToDocumentArchive [09:19:56]shift 228 fd 22111 [09:19:56]save to /storage/0228/doc_00022111 [09:19:56]save last doc name /storage/0228/doc_00022111 to /storage/kkm_last_doc_name [09:19:56]save OK [09:19:56]Clear old archive folders... [09:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=508 [09:19:56]tlvbuf is 00300C30 [09:19:56]SAM_PROTO_ClearQueue [09:19:56]wFMCommunicate request_size=4 [09:19:56]MH_SAM_APDU [09:19:56]CAPDU: 80 09 00 00 [09:19:56]Write to MH i2c: E2 08 00 4D 02 80 09 00 00 00 00 00 00 C1 [09:19:56]Write i2c OK [09:19:56]MH_I2C_Read... [09:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:56]Read from MH i2c: E2 [09:19:56]MH_I2C_Read... [09:19:56]Read from MH i2c: E2 03 00 [09:19:56]MH_I2C_Read... [09:19:56]Read from MH i2c: E2 03 00 4D 02 00 90 00 C3 [09:19:56]RAPDU: 90 00 [09:19:56]wFMCommunicate OK [09:19:56]SAM_PROTO_ClearQueue done [09:19:56]KKMCreateOFDPacket [09:19:56]OFDProtocolAddRootSTLVToBuf [09:19:56]FM_MakeSignedData [09:19:56]FM_MakeSignedData [09:19:56]SAM_PROTO_SignData [09:19:56]wFMCommunicate request_size=4 [09:19:56]MH_SAM_APDU [09:19:56]CAPDU: 80 0D 01 02 [09:19:56]Write to MH i2c: E2 08 00 4E 02 80 0D 01 02 00 00 00 00 C9 [09:19:56]OFD Sender: No OFD packet to send [09:19:56]Write i2c OK [09:19:56]MH_I2C_Read... [09:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:56]Read from MH i2c: E2 [09:19:56]MH_I2C_Read... [09:19:56]Read from MH i2c: E2 03 00 [09:19:56]MH_I2C_Read... [09:19:56]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [09:19:56]RAPDU: 90 00 [09:19:56]wFMCommunicate OK [09:19:56]wFMCommunicate request_size=255 [09:19:56]MH_SAM_APDU [09:19:56]CAPDU: 80 0D 02 02 FA 03 00 FC 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 [09:19:57]Write to MH i2c: E2 02 01 4F 02 80 0D 02 02 FA 00 03 00 FC 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 00 00 17 [09:19:57]Write i2c OK [09:19:57]MH_I2C_Read... [09:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:57]Read from MH i2c: E2 [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: E2 03 00 [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: E2 03 00 4F 02 00 90 00 C5 [09:19:57]RAPDU: 90 00 [09:19:57]wFMCommunicate OK [09:19:57]wFMCommunicate request_size=255 [09:19:57]MH_SAM_APDU [09:19:57]CAPDU: 80 0D 02 02 FA 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5F 56 [09:19:57]Write to MH i2c: E2 02 01 50 02 80 0D 02 02 FA 00 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5F 56 00 00 D1 [09:19:58]Write i2c OK [09:19:58]MH_I2C_Read... [09:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:58]Read from MH i2c: E2 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 03 00 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [09:19:58]RAPDU: 90 00 [09:19:58]wFMCommunicate OK [09:19:58]wFMCommunicate request_size=17 [09:19:58]MH_SAM_APDU [09:19:58]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 90 B1 B7 EE 9A 09 [09:19:58]Write to MH i2c: E2 14 00 51 02 80 0D 02 02 0C 00 00 00 35 04 06 00 90 B1 B7 EE 9A 09 00 00 AD [09:19:58]Write i2c OK [09:19:58]MH_I2C_Read... [09:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:58]Read from MH i2c: E2 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 03 00 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [09:19:58]RAPDU: 90 00 [09:19:58]wFMCommunicate OK [09:19:58]wFMCommunicate request_size=4 [09:19:58]MH_SAM_APDU [09:19:58]CAPDU: 80 0D 03 02 [09:19:58]Write to MH i2c: E2 08 00 52 02 80 0D 03 02 00 00 00 00 CF [09:19:58]Write i2c OK [09:19:58]MH_I2C_Read... [09:19:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:58]Read from MH i2c: E2 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 0B 00 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 0B 00 52 02 00 A0 1B 33 D6 60 0A 0E 6E 90 00 7A [09:19:58]RAPDU: A0 1B 33 D6 60 0A 0E 6E 90 00 [09:19:58]wFMCommunicate OK [09:19:58]SAM_PROTO_SignData done [09:19:58]FM_MakeSignedData done [09:19:58]CreateOFDProtocolMessage [09:19:58]wFMCommunicate request_size=4 [09:19:58]MH_SAM_APDU [09:19:58]CAPDU: 80 11 00 00 [09:19:58]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [09:19:58]Write i2c OK [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 [09:19:58]MH_I2C_Read... [09:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:58]Read from MH i2c: E2 17 00 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 29 [09:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:19:58]wFMCommunicate OK [09:19:58]CreateOFDProtocolMessage done [09:19:58]OFDSenderStorePacket 22111 [09:19:58]StoreOFDPacket docnum=22111 [09:19:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 02 00 00 6A 77 08 02 07 51 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3B E1 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 5F 56 00 00 35 04 06 00 90 B1 B7 EE 9A 09 A0 1B 33 D6 60 0A 0E 6E [09:19:58]CheckFolder [09:19:58]dirname=/storage/ofd_packets [09:19:58]CheckFolder done [09:19:58]ProducePacketName [09:19:58]name=ofd_packets/00022111 [09:19:58]NVStorageSaveData ofd_packets/00022111 [09:19:58]File name is /storage/ofd_packets/00022111 [09:19:58]Write 558 bytes [09:19:58]NVStorageSaveData done [09:19:58]OFDSenderStorePacket done [09:19:58]KKMCreateOFDPacket done [09:19:58]NVStorageSaveData kkm_last_timestamp [09:19:58]File name is /storage/kkm_last_timestamp [09:19:58]Write 4 bytes [09:19:58]NVStorageSaveData done [09:19:58]ExternCall_PrintAddStr [09:19:58]wPrintStart [09:19:58]Write to MH i2c: 01 00 00 54 02 56 [09:19:58]Write i2c OK [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: 01 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: 01 07 00 [09:19:58]MH_I2C_Read... [09:19:58]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 FF 0F 6B [09:19:58]RasterBufferAndPrint [09:19:58]line Счет N : (3)51380 [09:19:58]line ИНН: 02508201610067 [09:19:58]line Контрольно-Кассовый Чек [09:19:58]line ПРОДАЖА [09:19:58]line Товар: 4607065001445 [09:19:58]line Шок батончик Snickers 50,5г [09:19:58]line 2.000 * 59.00 [09:19:58]line = 118.00 [09:19:58]line НДС 12% НСП 1% [09:19:58]line > о реализуемом товаре [09:19:58]line Товар: 42203100 [09:19:58]line Жев Orbit банан-клубника [09:19:58]line 1.000 * 45.00 [09:19:58]line = 45.00 [09:19:58]line НДС 12% НСП 1% [09:19:58]line > о реализуемом товаре [09:19:58]line Товар: 4620017451303 [09:19:58]line Кар.с жев.конф.Страйк 11.3г/50 [09:19:58]line 2.000 * 17.00 [09:19:58]line = 34.00 [09:19:58]line НДС 12% НСП 1% [09:19:58]line > о реализуемом товаре [09:19:58]line ИТОГО: 197.00 [09:19:58]line НСП 1% : 1.74 [09:19:58]line НДС 12% : 20.92 [09:19:58]line Наличными: 197.00 [09:19:58]line Безнал.: 0.00 [09:19:58]line Место: АЗС № 88 "Партнер Нефть" [09:19:58]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:19:58]line СНО: Общий режим [09:19:58]line Чек 26 22.09.2024 09:19 [09:19:58]line Смена: 228 ФФД: 1.0 [09:19:58]line ЗНМ: 0300000061 [09:19:58]line РНМ: 0000000000146243 [09:19:58]line Версия ККМ: v1.0 [09:19:58]line ФМ: 0000000000959358 [09:19:58]line ФД: 22111 [09:19:58]line ФПД: 159092969478665 [09:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T091955&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22111&fm=159092969478665&tin=02508201610067®Number=0000000000146243&sum=19700 [09:19:58]OFD Sender: Processing packet 22111 [packets to send 23, broken 22] [09:19:58]ProducePacketName [09:19:58]name=ofd_packets/00022111 [09:19:58]OFD Sender: To server: pG, [09:19:58]CommunicateWithHost lk.salyk.kg:30040 [09:19:58]ConnectInit lk.salyk.kg [09:19:58]line 0 [09:19:58]written 0, free lines is 4095 [09:19:58]Connected sock=10 [09:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 02 00 00 6A 77 08 02 07 51 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 48 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 Write to MH i2c: AE 01 00 00 00 00 00 89 00 02 00 8B EE [09:19:59]03 Write i2c OK [09:19:59]0F MH_I2C_Read... [09:19:59]00 Read from MH i2c: F2 01 03 [09:19:59]01 MH_I2C_Read... [09:19:59]00 01 F3 03 06 00 2C 08 00 00 00 00 07 04 Read from MH i2c: 06 01 07 00 00 F4 [09:19:59]4C MH_I2C_Read... [09:19:59]00 Read from MH i2c: 00 01 00 07 00 00 39 89 04 02 06 00 00 00 00 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 00 04 A4 04 0D 00 43 1A [09:19:59]00 00 00 F4 03 04 00 3B E1 EF 66 0E RasterBufferAndPrint [09:19:59]04 line [09:19:59]04 line [09:19:59]00 line [09:19:59]E4 line [09:19:59]00 00 00 B9 04 01 00 01 0D 04 10 line [09:19:59]00 30 written 0, free lines is 3698 [09:19:59]30 30 30 30 30 30 30 30 30 31 34 MH_Cut [09:19:59]36 Write to MH i2c: 32 D1 34 01 33 00 11 90 04 10 00 30 30 30 30 30 30 30 30 02 30 01 30 64 39 [09:19:59]35 39 33 35 38 10 04 04 00 5F 56 00 00 35 Write i2c OK [09:19:59]04 MH_I2C_Read... [09:19:59]06 Read from MH i2c: 00 D1 90 [09:19:59]B1 MH_I2C_Read... [09:19:59]B7 Read from MH i2c: EE D1 9A 01 09 00 A0 [09:19:59]1B MH_I2C_Read... [09:19:59]33 Read from MH i2c: D6 D1 60 01 0A 00 0E 90 6E 02 [09:19:59]00 63 [09:19:59]Write to MH i2c: 01 00 00 91 02 93 [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 24 31 47 00 FE 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 *** Cut start [09:20:00]37 37 30 39 33 36 34 33 *** Partial cut [09:20:00]34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 *** CUTSNS_PIN = 1 [09:20:00]5F 56 *** CUTSNS_PIN = 0 [09:20:00]00 00 *** Brake cut motor [09:20:00]F4 03 04 00 6A 8B EF 66 B6 04 01 00 00 C5 5B D5 88 E6 FF FA C3 [09:20:00]CommunicateWithHost err = 0 [09:20:00]CheckOFDResponse [09:20:00]1017 (14) - 77093643461234 [09:20:00]1041 (16) - 0000000000959358 [09:20:00]1040 (4) - 22111 [09:20:00]1012 (4) - 22.09.2024 03:13 [09:20:00]1206 (1) - 0 [09:20:00]OFD Sender: Remove packet 22111 [09:20:00]ProducePacketName [09:20:00]name=ofd_packets/00022111 [09:20:00]NVStorageDeleteData [09:20:00]Read from MH i2c: *** Stop cut motor [09:20:00]01 *** Cut end [09:20:00] [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: 01 07 00 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [09:20:00]process_action close_receipt done [09:20:00]requested_data is exist [09:20:00]produce_requested_data [09:20:00]requested_item fm.sn is exist - process it [09:20:00]wFMCommunicate request_size=4 [09:20:00]MH_SAM_APDU [09:20:00]CAPDU: 80 11 00 00 [09:20:00]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [09:20:00]Write i2c OK [09:20:00]MH_I2C_Read... [09:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:00]Read from MH i2c: E2 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 17 00 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 68 [09:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:20:00]wFMCommunicate OK [09:20:00]requested_item fd.num is exist - process it [09:20:00]SAM_PROTO_GetFieldsCounters [09:20:00]wFMCommunicate request_size=4 [09:20:00]MH_SAM_APDU [09:20:00]CAPDU: 80 13 00 00 [09:20:00]Write to MH i2c: E2 08 00 93 02 80 13 00 00 00 00 00 00 11 [09:20:00]Write i2c OK [09:20:00]MH_I2C_Read... [09:20:00]OFD Sender: No OFD packet to send [09:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:01]Read from MH i2c: E2 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 62 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 62 00 93 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [09:20:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 5F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:01]wFMCommunicate OK [09:20:01]SAM_PROTO_GetFieldsCounters done [09:20:01]requested_item shift.num is exist - process it [09:20:01]requested_item shift.opened is exist - process it [09:20:01]req_shift_opened [09:20:01]FM_GetShiftState [09:20:01]SAM_PROTO_GetShiftState [09:20:01]wFMCommunicate request_size=4 [09:20:01]MH_SAM_APDU [09:20:01]CAPDU: 80 13 01 00 [09:20:01]Write to MH i2c: E2 08 00 94 02 80 13 01 00 00 00 00 00 13 [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:01]Read from MH i2c: E2 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 0E 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 0E 00 94 02 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 8E [09:20:01]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:20:01]wFMCommunicate OK [09:20:01]SAM_PROTO_GetShiftState done [09:20:01]FM_GetShiftState done [09:20:01]req_shift_opened done [09:20:01]requested_item shift.open_date is exist - process it [09:20:01]req_shift_open_date [09:20:01]req_shift_open_date done [09:20:01]produce_requested_data done [09:20:01]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22111,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:20:01]process_action_free close_receipt [09:20:01]json_value_free [09:20:01]json_value_free done [09:20:01]process_json_proto returns [09:20:01]Send response to host [09:20:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22111,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:20:01]free response buf [09:20:01]execute_script done [09:20:01]execute_script returns [09:20:01]free content buf [09:20:01]Sock 7.Close socket [09:20:01]Sock 7.Thread stoped [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:27]accept exits with 9 [09:29:27]New connection [09:29:27]New thread 3067182436 created [09:29:27]Thread 3067039076 joined [09:29:27]Waiting for new connection... [09:29:27] Sock 9.Parse request [09:29:27]Sock 9.Check first char [09:29:27]Sock 9.First char is OK [09:29:27]request: POST /json_proto HTTP/1.0 [09:29:27]Method: POST [09:29:27]URL: /json_proto [09:29:27]Method is POST - this is cgi request [09:29:27]url: /json_proto [09:29:27]query_string will be loaded in cgi processing [09:29:27]execute_cgi json_proto POST (null) [09:29:27]execute_cgi path=json_proto method=POST [09:29:27]POST find Content-Length [09:29:27]Host: 172.17.43.4:8080 [09:29:27]Content-Length: 637 [09:29:27]Content-Type: application/json [09:29:27] [09:29:27]POST finish read [09:29:27]Found Content-Length = 637 [09:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51381", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:27]execute_script... [09:29: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)51381", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:27]POST & json_proto [09:29:27]process_json_proto [09:29:27]json parsed OK: [09:29:27]protocol is kg_v1.0 [09:29:27]action value=close_receipt [09:29:27]process_action close_receipt [09:29:27]cmd_close_receipt [09:29:27]MH_GetDate [09:29:27]Write to MH i2c: F0 00 00 95 02 86 [09:29:27]Write i2c OK [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: F0 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: F0 09 00 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: F0 09 00 95 02 00 78 E3 EF 66 02 BF CF 66 35 [09:29:27]GetLastDocTimeStamp 1726996795 [09:29:27]current date 1726997368 [09:29:27]FM_GetShiftState [09:29:27]SAM_PROTO_GetShiftState [09:29:27]wFMCommunicate request_size=4 [09:29:27]MH_SAM_APDU [09:29:27]CAPDU: 80 13 01 00 [09:29:27]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [09:29:27]Write i2c OK [09:29:27]MH_I2C_Read... [09:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:27]Read from MH i2c: E2 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: E2 0E 00 [09:29:27]MH_I2C_Read... [09:29:27]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 90 [09:29:27]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:29:27]wFMCommunicate OK [09:29:27]SAM_PROTO_GetShiftState done [09:29:27]FM_GetShiftState done [09:29:27]opened in 1726964408 [09:29:27]opened+sec_in_day 1727050808 [09:29:27]quantity*price = 7000 [09:29:27]sum+1 = 7001 [09:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 27 22.09.2024 09:29 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22112 ФПД: 169113771765101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T092928&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22112&fm=169113771765101&tin=02508201610067®Number=0000000000146243&sum=7000 0 [09:29:28]StoreToDocumentArchive [09:29:28]shift 228 fd 22112 [09:29:28]save to /storage/0228/doc_00022112 [09:29:28]save last doc name /storage/0228/doc_00022112 to /storage/kkm_last_doc_name [09:29:28]save OK [09:29:28]Clear old archive folders... [09:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:29:28]tlvbuf is 00218780 [09:29:28]SAM_PROTO_ClearQueue [09:29:28]wFMCommunicate request_size=4 [09:29:28]MH_SAM_APDU [09:29:28]CAPDU: 80 09 00 00 [09:29:28]Write to MH i2c: E2 08 00 A3 02 80 09 00 00 00 00 00 00 17 [09:29:28]Write i2c OK [09:29:28]MH_I2C_Read... [09:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:28]Read from MH i2c: E2 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 03 00 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [09:29:28]RAPDU: 90 00 [09:29:28]wFMCommunicate OK [09:29:28]SAM_PROTO_ClearQueue done [09:29:28]KKMCreateOFDPacket [09:29:28]OFDProtocolAddRootSTLVToBuf [09:29:28]FM_MakeSignedData [09:29:28]FM_MakeSignedData [09:29:28]SAM_PROTO_SignData [09:29:28]wFMCommunicate request_size=4 [09:29:28]MH_SAM_APDU [09:29:28]CAPDU: 80 0D 01 02 [09:29:28]Write to MH i2c: E2 08 00 A4 02 80 0D 01 02 00 00 00 00 1F [09:29:28]Write i2c OK [09:29:28]MH_I2C_Read... [09:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:28]Read from MH i2c: E2 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 03 00 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [09:29:28]RAPDU: 90 00 [09:29:28]wFMCommunicate OK [09:29:28]wFMCommunicate request_size=255 [09:29:28]MH_SAM_APDU [09:29:28]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [09:29:28]Write to MH i2c: E2 02 01 A5 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 E4 [09:29:28]Write i2c OK [09:29:28]MH_I2C_Read... [09:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:28]Read from MH i2c: E2 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 03 00 [09:29:28]MH_I2C_Read... [09:29:28]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [09:29:28]RAPDU: 90 00 [09:29:28]wFMCommunicate OK [09:29:28]wFMCommunicate request_size=32 [09:29:28]MH_SAM_APDU [09:29:28]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 60 56 00 00 35 04 06 00 99 CE DE 4A ED 6D [09:29:28]Write to MH i2c: E2 23 00 A6 02 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 60 56 00 00 35 04 06 00 99 CE DE 4A ED 6D 00 00 25 [09:29:28]Write i2c OK [09:29:28]MH_I2C_Read... [09:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:29]Read from MH i2c: E2 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 03 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [09:29:29]RAPDU: 90 00 [09:29:29]wFMCommunicate OK [09:29:29]wFMCommunicate request_size=4 [09:29:29]MH_SAM_APDU [09:29:29]CAPDU: 80 0D 03 02 [09:29:29]Write to MH i2c: E2 08 00 A7 02 80 0D 03 02 00 00 00 00 24 [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:29]Read from MH i2c: E2 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 0B 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 0B 00 A7 02 00 F4 E3 E4 C9 60 79 E1 46 90 00 A9 [09:29:29]RAPDU: F4 E3 E4 C9 60 79 E1 46 90 00 [09:29:29]wFMCommunicate OK [09:29:29]SAM_PROTO_SignData done [09:29:29]FM_MakeSignedData done [09:29:29]CreateOFDProtocolMessage [09:29:29]wFMCommunicate request_size=4 [09:29:29]MH_SAM_APDU [09:29:29]CAPDU: 80 11 00 00 [09:29:29]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:29]Read from MH i2c: E2 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 17 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 7E [09:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:29:29]wFMCommunicate OK [09:29:29]CreateOFDProtocolMessage done [09:29:29]OFDSenderStorePacket 22112 [09:29:29]StoreOFDPacket docnum=22112 [09:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 3E 37 1D 01 AB 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 60 56 00 00 35 04 06 00 99 CE DE 4A ED 6D F4 E3 E4 C9 60 79 E1 46 [09:29:29]CheckFolder [09:29:29]dirname=/storage/ofd_packets [09:29:29]CheckFolder done [09:29:29]ProducePacketName [09:29:29]name=ofd_packets/00022112 [09:29:29]NVStorageSaveData ofd_packets/00022112 [09:29:29]File name is /storage/ofd_packets/00022112 [09:29:29]Write 323 bytes [09:29:29]NVStorageSaveData done [09:29:29]OFDSenderStorePacket done [09:29:29]KKMCreateOFDPacket done [09:29:29]NVStorageSaveData kkm_last_timestamp [09:29:29]File name is /storage/kkm_last_timestamp [09:29:29]Write 4 bytes [09:29:29]NVStorageSaveData done [09:29:29]ExternCall_PrintAddStr [09:29:29]wPrintStart [09:29:29]Write to MH i2c: 01 00 00 A9 02 AB [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: 01 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: 01 07 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [09:29:29]RasterBufferAndPrint [09:29:29]line Счет N : (3)51381 [09:29:29]line ИНН: 02508201610067 [09:29:29]line Контрольно-Кассовый Чек [09:29:29]line ПРОДАЖА [09:29:29]line Товар: 4700002082931 [09:29:29]line Водка Хорошая 0,1л [09:29:29]line 1.000 * 70.00 [09:29:29]line = 70.00 [09:29:29]line НДС 12% НСП 1% [09:29:29]line > о реализуемом товаре [09:29:29]line ИТОГО: 70.00 [09:29:29]line НСП 1% : 0.62 [09:29:29]line НДС 12% : 7.43 [09:29:29]line Наличными: 70.00 [09:29:29]line Безнал.: 0.00 [09:29:29]line Место: АЗС № 88 "Партнер Нефть" [09:29:29]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:29:29]line СНО: Общий режим [09:29:29]line Чек 27 22.09.2024 09:29 [09:29:29]line Смена: 228 ФФД: 1.0 [09:29:29]line ЗНМ: 0300000061 [09:29:29]line РНМ: 0000000000146243 [09:29:29]line Версия ККМ: v1.0 [09:29:29]line ФМ: 0000000000959358 [09:29:29]line ФД: 22112 [09:29:29]line ФПД: 169113771765101 [09:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T092928&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22112&fm=169113771765101&tin=02508201610067®Number=0000000000146243&sum=7000 [09:29:29]line 0 [09:29:29]OFD Sender: Processing packet 22112 [packets to send 23, broken 22] [09:29:29]ProducePacketName [09:29:29]name=ofd_packets/00022112 [09:29:29]OFD Sender: To server: pG, [09:29:29]CommunicateWithHost lk.salyk.kg:30040 [09:29:29]ConnectInit lk.salyk.kg [09:29:29]written 0, free lines is 4095 [09:29:29]Connected sock=11 [09:29:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 3E 37 1D 01 AB 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 78 E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 60 56 00 00 35 04 06 00 99 CE DE 4A ED 6D F4 E3 E4 C9 60 79 E1 46 [09:29:29]Write to MH i2c: 01 00 00 D1 02 D3 [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: 01 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: 01 07 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 11 0D F8 [09:29:29]RasterBufferAndPrint [09:29:29]line [09:29:29]line [09:29:29]line [09:29:29]line [09:29:29]line [09:29:29]written 0, free lines is 3351 [09:29:29]MH_Cut [09:29:29]Write to MH i2c: D1 01 00 D8 02 01 AC [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: D1 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: D1 01 00 [09:29:29]MH_I2C_Read... [09:29:29]Read from MH i2c: D1 01 00 D8 02 00 AB [09:29:29]Write to MH i2c: 01 00 00 D9 02 DB [09:29:29]Write i2c OK [09:29:29]MH_I2C_Read... [09:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 11 EC 47 00 90 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 60 56 00 00 F4 03 04 00 A4 8D EF 66 B6 04 01 00 00 89 5B 8A 1D 88 A0 1E AF [09:29:29]CommunicateWithHost err = 0 [09:29:29]CheckOFDResponse [09:29:29]1017 (14) - 77093643461234 [09:29:29]1041 (16) - 0000000000959358 [09:29:29]1040 (4) - 22112 [09:29:29]1012 (4) - 22.09.2024 03:23 [09:29:29]1206 (1) - 0 [09:29:29]OFD Sender: Remove packet 22112 [09:29:29]ProducePacketName [09:29:29]name=ofd_packets/00022112 [09:29:29]NVStorageDeleteData [09:29:30]OFD Sender: No OFD packet to send [09:29:30]*** Cut start [09:29:30]*** Partial cut [09:29:30]*** CUTSNS_PIN = 1 [09:29:30]*** CUTSNS_PIN = 0 [09:29:30]*** Brake cut motor [09:29:31]Read from MH i2c: 01 [09:29:31]MH_I2C_Read... [09:29:31]*** Stop cut motor [09:29:31]*** Cut end [09:29:31]Read from MH i2c: 01 07 00 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: 01 07 00 D9 02 00 00 00 00 00 FF 0F F0 [09:29:31]process_action close_receipt done [09:29:31]requested_data is exist [09:29:31]produce_requested_data [09:29:31]requested_item fm.sn is exist - process it [09:29:31]wFMCommunicate request_size=4 [09:29:31]MH_SAM_APDU [09:29:31]CAPDU: 80 11 00 00 [09:29:31]Write to MH i2c: E2 08 00 DA 02 80 11 00 00 00 00 00 00 56 [09:29:31]Write i2c OK [09:29:31]MH_I2C_Read... [09:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:31]Read from MH i2c: E2 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 17 00 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 17 00 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B0 [09:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:29:31]wFMCommunicate OK [09:29:31]requested_item fd.num is exist - process it [09:29:31]SAM_PROTO_GetFieldsCounters [09:29:31]wFMCommunicate request_size=4 [09:29:31]MH_SAM_APDU [09:29:31]CAPDU: 80 13 00 00 [09:29:31]Write to MH i2c: E2 08 00 DB 02 80 13 00 00 00 00 00 00 59 [09:29:31]Write i2c OK [09:29:31]MH_I2C_Read... [09:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:31]Read from MH i2c: E2 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 62 00 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 62 00 DB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 60 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:29:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 60 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:31]wFMCommunicate OK [09:29:31]SAM_PROTO_GetFieldsCounters done [09:29:31]requested_item shift.num is exist - process it [09:29:31]requested_item shift.opened is exist - process it [09:29:31]req_shift_opened [09:29:31]FM_GetShiftState [09:29:31]SAM_PROTO_GetShiftState [09:29:31]wFMCommunicate request_size=4 [09:29:31]MH_SAM_APDU [09:29:31]CAPDU: 80 13 01 00 [09:29:31]Write to MH i2c: E2 08 00 DC 02 80 13 01 00 00 00 00 00 5B [09:29:31]Write i2c OK [09:29:31]MH_I2C_Read... [09:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:31]Read from MH i2c: E2 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 0E 00 [09:29:31]MH_I2C_Read... [09:29:31]Read from MH i2c: E2 0E 00 DC 02 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D6 [09:29:31]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:29:31]wFMCommunicate OK [09:29:31]SAM_PROTO_GetShiftState done [09:29:31]FM_GetShiftState done [09:29:31]req_shift_opened done [09:29:31]requested_item shift.open_date is exist - process it [09:29:31]req_shift_open_date [09:29:31]req_shift_open_date done [09:29:31]produce_requested_data done [09:29:31]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22112,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:29:31]process_action_free close_receipt [09:29:31]json_value_free [09:29:31]json_value_free done [09:29:31]process_json_proto returns [09:29:31]Send response to host [09:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22112,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:29:31]free response buf [09:29:31]execute_script done [09:29:31]execute_script returns [09:29:31]free content buf [09:29:31]Sock 9.Close socket [09:29:31]Sock 9.Thread stoped [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:22]accept exits with 7 [09:30:22]New connection [09:30:22]New thread 3067039076 created [09:30:22]Thread 3067182436 joined [09:30:22]Waiting for new connection... [09:30:22] Sock 7.Parse request [09:30:22]Sock 7.Check first char [09:30:22]Sock 7.First char is OK [09:30:22]request: POST /json_proto HTTP/1.0 [09:30:22]Method: POST [09:30:22]URL: /json_proto [09:30:22]Method is POST - this is cgi request [09:30:22]url: /json_proto [09:30:22]query_string will be loaded in cgi processing [09:30:22]execute_cgi json_proto POST (null) [09:30:22]execute_cgi path=json_proto method=POST [09:30:22]POST find Content-Length [09:30:22]Host: 172.17.43.4:8080 [09:30:22]Content-Length: 643 [09:30:22]Content-Type: application/json [09:30:22] [09:30:22]POST finish read [09:30:22]Found Content-Length = 643 [09:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51382", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:22]execute_script... [09:30:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51382", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:22]POST & json_proto [09:30:22]process_json_proto [09:30:22]json parsed OK: [09:30:22]protocol is kg_v1.0 [09:30:22]action value=close_receipt [09:30:22]process_action close_receipt [09:30:22]cmd_close_receipt [09:30:22]MH_GetDate [09:30:22]Write to MH i2c: F0 00 00 DD 02 CE [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: F0 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: F0 09 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: F0 09 00 DD 02 00 AF E3 EF 66 02 BF CF 66 B4 [09:30:22]GetLastDocTimeStamp 1726997368 [09:30:22]current date 1726997423 [09:30:22]FM_GetShiftState [09:30:22]SAM_PROTO_GetShiftState [09:30:22]wFMCommunicate request_size=4 [09:30:22]MH_SAM_APDU [09:30:22]CAPDU: 80 13 01 00 [09:30:22]Write to MH i2c: E2 08 00 DE 02 80 13 01 00 00 00 00 00 5D [09:30:22]Write i2c OK [09:30:22]MH_I2C_Read... [09:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:22]Read from MH i2c: E2 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: E2 0E 00 [09:30:22]MH_I2C_Read... [09:30:22]Read from MH i2c: E2 0E 00 DE 02 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D8 [09:30:22]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:30:22]wFMCommunicate OK [09:30:22]SAM_PROTO_GetShiftState done [09:30:22]FM_GetShiftState done [09:30:22]opened in 1726964408 [09:30:22]opened+sec_in_day 1727050808 [09:30:22]quantity*price = 23000 [09:30:22]sum+1 = 23001 [09:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 28 22.09.2024 09:30 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22113 ФПД: 94778591961949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093023&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22113&fm=94778591961949&tin=02508201610067®Number=0000000000146243&sum=23000 0 [09:30:23]StoreToDocumentArchive [09:30:23]shift 228 fd 22113 [09:30:23]save to /storage/0228/doc_00022113 [09:30:23]save last doc name /storage/0228/doc_00022113 to /storage/kkm_last_doc_name [09:30:23]save OK [09:30:23]Clear old archive folders... [09:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:30:23]tlvbuf is 002244B0 [09:30:23]SAM_PROTO_ClearQueue [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 09 00 00 [09:30:23]Write to MH i2c: E2 08 00 EB 02 80 09 00 00 00 00 00 00 5F [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [09:30:23]RAPDU: 90 00 [09:30:23]wFMCommunicate OK [09:30:23]SAM_PROTO_ClearQueue done [09:30:23]KKMCreateOFDPacket [09:30:23]OFDProtocolAddRootSTLVToBuf [09:30:23]FM_MakeSignedData [09:30:23]FM_MakeSignedData [09:30:23]SAM_PROTO_SignData [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 0D 01 02 [09:30:23]Write to MH i2c: E2 08 00 EC 02 80 0D 01 02 00 00 00 00 67 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 EC 02 00 90 00 62 [09:30:23]RAPDU: 90 00 [09:30:23]wFMCommunicate OK [09:30:23]wFMCommunicate request_size=255 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AF E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 [09:30:23]Write to MH i2c: E2 02 01 ED 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AF E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 00 00 EF [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [09:30:23]RAPDU: 90 00 [09:30:23]wFMCommunicate OK [09:30:23]wFMCommunicate request_size=39 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 61 56 00 00 35 04 06 00 56 33 5C 4E 63 5D [09:30:23]Write to MH i2c: E2 2A 00 EE 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 61 56 00 00 35 04 06 00 56 33 5C 4E 63 5D 00 00 D6 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 03 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [09:30:24]RAPDU: 90 00 [09:30:24]wFMCommunicate OK [09:30:24]wFMCommunicate request_size=4 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 0D 03 02 [09:30:24]Write to MH i2c: E2 08 00 EF 02 80 0D 03 02 00 00 00 00 6C [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 0B 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 0B 00 EF 02 00 69 13 11 EC CF 2E 6D 37 90 00 87 [09:30:24]RAPDU: 69 13 11 EC CF 2E 6D 37 90 00 [09:30:24]wFMCommunicate OK [09:30:24]SAM_PROTO_SignData done [09:30:24]FM_MakeSignedData done [09:30:24]CreateOFDProtocolMessage [09:30:24]wFMCommunicate request_size=4 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 11 00 00 [09:30:24]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 17 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 17 00 F0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C6 [09:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:30:24]wFMCommunicate OK [09:30:24]CreateOFDProtocolMessage done [09:30:24]OFDSenderStorePacket 22113 [09:30:24]StoreOFDPacket docnum=22113 [09:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 23 C1 24 01 1A 49 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AF E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 61 56 00 00 35 04 06 00 56 33 5C 4E 63 5D 69 13 11 EC CF 2E 6D 37 [09:30:24]CheckFolder [09:30:24]dirname=/storage/ofd_packets [09:30:24]CheckFolder done [09:30:24]ProducePacketName [09:30:24]name=ofd_packets/00022113 [09:30:24]NVStorageSaveData ofd_packets/00022113 [09:30:24]File name is /storage/ofd_packets/00022113 [09:30:24]Write 330 bytes [09:30:24]NVStorageSaveData done [09:30:24]OFDSenderStorePacket done [09:30:24]KKMCreateOFDPacket done [09:30:24]NVStorageSaveData kkm_last_timestamp [09:30:24]File name is /storage/kkm_last_timestamp [09:30:24]Write 4 bytes [09:30:24]NVStorageSaveData done [09:30:24]ExternCall_PrintAddStr [09:30:24]wPrintStart [09:30:24]Write to MH i2c: 01 00 00 F1 02 F3 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: 01 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: 01 07 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 FF 0F 08 [09:30:24]RasterBufferAndPrint [09:30:24]line Счет N : (3)51382 [09:30:24]line ИНН: 02508201610067 [09:30:24]line Контрольно-Кассовый Чек [09:30:24]line ПРОДАЖА [09:30:24]line Товар: 2000036210013 [09:30:24]line Кофе Капучино (GABB TRADE) [09:30:24]line 2.000 * 115.00 [09:30:24]line = 230.00 [09:30:24]line НДС 12% НСП 1% [09:30:24]line > о реализуемом товаре [09:30:24]line ИТОГО: 230.00 [09:30:24]line НСП 1% : 2.03 [09:30:24]line НДС 12% : 24.42 [09:30:24]line Наличными: 230.00 [09:30:24]line Безнал.: 0.00 [09:30:24]line Место: АЗС № 88 "Партнер Нефть" [09:30:24]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:30:24]line СНО: Общий режим [09:30:24]line Чек 28 22.09.2024 09:30 [09:30:24]line Смена: 228 ФФД: 1.0 [09:30:24]line ЗНМ: 0300000061 [09:30:24]line РНМ: 0000000000146243 [09:30:24]line Версия ККМ: v1.0 [09:30:24]line ФМ: 0000000000959358 [09:30:24]line ФД: 22113 [09:30:24]line ФПД: 94778591961949 [09:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T093023&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22113&fm=94778591961949&tin=02508201610067®Number=0000000000146243&sum=23000 [09:30:24]line 0 [09:30:24]OFD Sender: Processing packet 22113 [packets to send 23, broken 22] [09:30:24]ProducePacketName [09:30:24]name=ofd_packets/00022113 [09:30:24]OFD Sender: To server: pG, [09:30:24]CommunicateWithHost lk.salyk.kg:30040 [09:30:24]ConnectInit lk.salyk.kg [09:30:24]written 0, free lines is 4095 [09:30:24]Connected sock=10 [09:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 23 C1 24 01 1A 49 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AF E3 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 61 56 00 00 35 04 06 00 56 33 5C 4E 63 5D 69 13 11 EC CF 2E 6D 37 [09:30:24]Write to MH i2c: 01 00 00 19 03 1C [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: 01 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: 01 07 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 2E 0D 5E [09:30:24]RasterBufferAndPrint [09:30:24]line [09:30:24]line [09:30:24]line [09:30:24]line [09:30:24]line [09:30:24]written 0, free lines is 3382 [09:30:24]MH_Cut [09:30:24]Write to MH i2c: D1 01 00 20 03 01 F5 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: D1 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: D1 01 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: D1 01 00 20 03 00 F4 [09:30:24]Write to MH i2c: 01 00 00 21 03 24 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 0B ED 47 00 88 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 61 56 00 00 F4 03 04 00 DB 8D EF 66 B6 04 01 00 00 1A 5C C7 92 C9 DA 91 09 [09:30:24]CommunicateWithHost err = 0 [09:30:24]CheckOFDResponse [09:30:24]1017 (14) - 77093643461234 [09:30:24]1041 (16) - 0000000000959358 [09:30:24]1040 (4) - 22113 [09:30:24]1012 (4) - 22.09.2024 03:24 [09:30:24]1206 (1) - 0 [09:30:24]OFD Sender: Remove packet 22113 [09:30:24]ProducePacketName [09:30:24]name=ofd_packets/00022113 [09:30:24]NVStorageDeleteData [09:30:25]OFD Sender: No OFD packet to send [09:30:25]*** Cut start [09:30:25]*** Partial cut [09:30:25]*** CUTSNS_PIN = 1 [09:30:25]*** CUTSNS_PIN = 0 [09:30:25]*** Brake cut motor [09:30:26]Read from MH i2c: 01 [09:30:26]MH_I2C_Read... [09:30:26]*** Stop cut motor [09:30:26]*** Cut end [09:30:26]Read from MH i2c: 01 07 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [09:30:26]process_action close_receipt done [09:30:26]requested_data is exist [09:30:26]produce_requested_data [09:30:26]requested_item fm.sn is exist - process it [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 11 00 00 [09:30:26]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 17 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 F9 [09:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:30:26]wFMCommunicate OK [09:30:26]requested_item fd.num is exist - process it [09:30:26]SAM_PROTO_GetFieldsCounters [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 13 00 00 [09:30:26]Write to MH i2c: E2 08 00 23 03 80 13 00 00 00 00 00 00 A2 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 62 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 62 00 23 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 61 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 61 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_GetFieldsCounters done [09:30:26]requested_item shift.num is exist - process it [09:30:26]requested_item shift.opened is exist - process it [09:30:26]req_shift_opened [09:30:26]FM_GetShiftState [09:30:26]SAM_PROTO_GetShiftState [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 13 01 00 [09:30:26]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 1F [09:30:26]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_GetShiftState done [09:30:26]FM_GetShiftState done [09:30:26]req_shift_opened done [09:30:26]requested_item shift.open_date is exist - process it [09:30:26]req_shift_open_date [09:30:26]req_shift_open_date done [09:30:26]produce_requested_data done [09:30:26]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22113,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:30:26]process_action_free close_receipt [09:30:26]json_value_free [09:30:26]json_value_free done [09:30:26]process_json_proto returns [09:30:26]Send response to host [09:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22113,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:30:26]free response buf [09:30:26]execute_script done [09:30:26]execute_script returns [09:30:26]free content buf [09:30:26]Sock 7.Close socket [09:30:26]Sock 7.Thread stoped [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:17]accept exits with 9 [09:40:17]New connection [09:40:17]New thread 3067182436 created [09:40:17]Thread 3067039076 joined [09:40:17]Waiting for new connection... [09:40:17] Sock 9.Parse request [09:40:17]Sock 9.Check first char [09:40:17]Sock 9.First char is OK [09:40:17]request: POST /json_proto HTTP/1.0 [09:40:17]Method: POST [09:40:17]URL: /json_proto [09:40:17]Method is POST - this is cgi request [09:40:17]url: /json_proto [09:40:17]query_string will be loaded in cgi processing [09:40:17]execute_cgi json_proto POST (null) [09:40:17]execute_cgi path=json_proto method=POST [09:40:17]POST find Content-Length [09:40:17]Host: 172.17.43.4:8080 [09:40:17]Content-Length: 631 [09:40:17]Content-Type: application/json [09:40:17] [09:40:17]POST finish read [09:40:17]Found Content-Length = 631 [09:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51383", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:17]execute_script... [09:40: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)51383", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:17]POST & json_proto [09:40:17]process_json_proto [09:40:17]json parsed OK: [09:40:17]protocol is kg_v1.0 [09:40:17]action value=close_receipt [09:40:17]process_action close_receipt [09:40:17]cmd_close_receipt [09:40:17]MH_GetDate [09:40:17]Write to MH i2c: F0 00 00 25 03 17 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: F0 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: F0 09 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: F0 09 00 25 03 00 02 E6 EF 66 02 BF CF 66 53 [09:40:17]GetLastDocTimeStamp 1726997423 [09:40:17]current date 1726998018 [09:40:17]FM_GetShiftState [09:40:17]SAM_PROTO_GetShiftState [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 13 01 00 [09:40:17]Write to MH i2c: E2 08 00 26 03 80 13 01 00 00 00 00 00 A6 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 0E 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 0E 00 26 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 21 [09:40:17]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:40:17]wFMCommunicate OK [09:40:17]SAM_PROTO_GetShiftState done [09:40:17]FM_GetShiftState done [09:40:17]opened in 1726964408 [09:40:17]opened+sec_in_day 1727050808 [09:40:17]quantity*price = 1000 [09:40:17]sum+1 = 1001 [09:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 29 22.09.2024 09:40 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22114 ФПД: 12364336006427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T094018&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22114&fm=12364336006427&tin=02508201610067®Number=0000000000146243&sum=1000 0 [09:40:18]StoreToDocumentArchive [09:40:18]shift 228 fd 22114 [09:40:18]save to /storage/0228/doc_00022114 [09:40:18]save last doc name /storage/0228/doc_00022114 to /storage/kkm_last_doc_name [09:40:18]save OK [09:40:18]Clear old archive folders... [09:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:40:18]tlvbuf is 00212BF0 [09:40:18]SAM_PROTO_ClearQueue [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 09 00 00 [09:40:18]Write to MH i2c: E2 08 00 33 03 80 09 00 00 00 00 00 00 A8 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_ClearQueue done [09:40:18]KKMCreateOFDPacket [09:40:18]OFDProtocolAddRootSTLVToBuf [09:40:18]FM_MakeSignedData [09:40:18]FM_MakeSignedData [09:40:18]SAM_PROTO_SignData [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 01 02 [09:40:18]Write to MH i2c: E2 08 00 34 03 80 0D 01 02 00 00 00 00 B0 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=255 [09:40:18]MH_SAM_APDU [09:40: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 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 02 E6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [09:40:18]Write to MH i2c: E2 02 01 35 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 02 E6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 4F [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=34 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 62 56 00 00 35 04 06 00 0B 3E CB DB 05 1B [09:40:18]Write to MH i2c: E2 25 00 36 03 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 62 56 00 00 35 04 06 00 0B 3E CB DB 05 1B 00 00 42 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 03 02 [09:40:18]Write to MH i2c: E2 08 00 37 03 80 0D 03 02 00 00 00 00 B5 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0B 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0B 00 37 03 00 72 A5 EB 75 B8 19 A3 82 90 00 23 [09:40:18]RAPDU: 72 A5 EB 75 B8 19 A3 82 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_SignData done [09:40:18]FM_MakeSignedData done [09:40:18]CreateOFDProtocolMessage [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 0F [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:40:18]wFMCommunicate OK [09:40:18]CreateOFDProtocolMessage done [09:40:18]OFDSenderStorePacket 22114 [09:40:18]StoreOFDPacket docnum=22114 [09:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 28 86 1F 01 45 52 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 02 E6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 62 56 00 00 35 04 06 00 0B 3E CB DB 05 1B 72 A5 EB 75 B8 19 A3 82 [09:40:18]CheckFolder [09:40:18]dirname=/storage/ofd_packets [09:40:18]CheckFolder done [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00022114 [09:40:18]NVStorageSaveData ofd_packets/00022114 [09:40:18]File name is /storage/ofd_packets/00022114 [09:40:18]Write 325 bytes [09:40:18]NVStorageSaveData done [09:40:18]OFDSenderStorePacket done [09:40:18]KKMCreateOFDPacket done [09:40:18]NVStorageSaveData kkm_last_timestamp [09:40:18]File name is /storage/kkm_last_timestamp [09:40:18]Write 4 bytes [09:40:18]NVStorageSaveData done [09:40:18]ExternCall_PrintAddStr [09:40:18]wPrintStart [09:40:18]Write to MH i2c: 01 00 00 39 03 3C [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 FF 0F 51 [09:40:18]RasterBufferAndPrint [09:40:18]line Счет N : (3)51383 [09:40:18]line ИНН: 02508201610067 [09:40:18]line Контрольно-Кассовый Чек [09:40:18]line ПРОДАЖА [09:40:18]line Товар: 46231512 [09:40:18]line Mentos ПФ Виноград 6*100*2г [09:40:18]line 1.000 * 10.00 [09:40:18]line = 10.00 [09:40:18]line НДС 12% НСП 1% [09:40:18]line > о реализуемом товаре [09:40:18]line ИТОГО: 10.00 [09:40:18]line НСП 1% : 0.09 [09:40:18]line НДС 12% : 1.06 [09:40:18]line Наличными: 10.00 [09:40:18]line Безнал.: 0.00 [09:40:18]line Место: АЗС № 88 "Партнер Нефть" [09:40:18]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [09:40:18]line СНО: Общий режим [09:40:18]line Чек 29 22.09.2024 09:40 [09:40:18]line Смена: 228 ФФД: 1.0 [09:40:18]line ЗНМ: 0300000061 [09:40:18]line РНМ: 0000000000146243 [09:40:18]line Версия ККМ: v1.0 [09:40:18]line ФМ: 0000000000959358 [09:40:18]line ФД: 22114 [09:40:18]line ФПД: 12364336006427 [09:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T094018&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22114&fm=12364336006427&tin=02508201610067®Number=0000000000146243&sum=1000 [09:40:19]line 0 [09:40:19]OFD Sender: Processing packet 22114 [packets to send 23, broken 22] [09:40:19]ProducePacketName [09:40:19]name=ofd_packets/00022114 [09:40:19]OFD Sender: To server: pG, [09:40:19]CommunicateWithHost lk.salyk.kg:30040 [09:40:19]ConnectInit lk.salyk.kg [09:40:19]written 0, free lines is 4095 [09:40:19]Connected sock=10 [09:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 28 86 1F 01 45 52 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 02 E6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 62 56 00 00 35 04 06 00 0B 3E CB DB 05 1B 72 A5 EB 75 B8 19 A3 82 [09:40:19]Write to MH i2c: 01 00 00 61 03 64 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 1E 0D 96 [09:40:19]RasterBufferAndPrint [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]written 0, free lines is 3364 [09:40:19]MH_Cut [09:40:19]Write to MH i2c: D1 01 00 68 03 01 3D [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 01 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 01 00 68 03 00 3C [09:40:19]Write to MH i2c: 01 00 00 69 03 6C [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 9C F1 47 00 61 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 62 56 00 00 F4 03 04 00 2E 90 EF 66 B6 04 01 00 00 EC 3D 86 E1 72 87 35 75 [09:40:19]CommunicateWithHost err = 0 [09:40:19]CheckOFDResponse [09:40:19]1017 (14) - 77093643461234 [09:40:19]1041 (16) - 0000000000959358 [09:40:19]1040 (4) - 22114 [09:40:19]1012 (4) - 22.09.2024 03:34 [09:40:19]1206 (1) - 0 [09:40:19]OFD Sender: Remove packet 22114 [09:40:19]ProducePacketName [09:40:19]name=ofd_packets/00022114 [09:40:19]NVStorageDeleteData [09:40:20]OFD Sender: No OFD packet to send [09:40:20]*** Cut start [09:40:20]*** Partial cut [09:40:20]*** CUTSNS_PIN = 1 [09:40:20]*** CUTSNS_PIN = 0 [09:40:20]*** Brake cut motor [09:40:20]Read from MH i2c: 01 [09:40:20]MH_I2C_Read... [09:40:20]*** Stop cut motor [09:40:20]*** Cut end [09:40:20]Read from MH i2c: 01 07 00 [09:40:20]MH_I2C_Read... [09:40:20]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [09:40:20]process_action close_receipt done [09:40:20]requested_data is exist [09:40:20]produce_requested_data [09:40:20]requested_item fm.sn is exist - process it [09:40:20]wFMCommunicate request_size=4 [09:40:20]MH_SAM_APDU [09:40:20]CAPDU: 80 11 00 00 [09:40:20]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [09:40:20]Write i2c OK [09:40:20]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 17 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 41 [09:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [09:40:21]wFMCommunicate OK [09:40:21]requested_item fd.num is exist - process it [09:40:21]SAM_PROTO_GetFieldsCounters [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 13 00 00 [09:40:21]Write to MH i2c: E2 08 00 6B 03 80 13 00 00 00 00 00 00 EA [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 62 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 62 00 6B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 62 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [09:40:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 62 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:21]wFMCommunicate OK [09:40:21]SAM_PROTO_GetFieldsCounters done [09:40:21]requested_item shift.num is exist - process it [09:40:21]requested_item shift.opened is exist - process it [09:40:21]req_shift_opened [09:40:21]FM_GetShiftState [09:40:21]SAM_PROTO_GetShiftState [09:40:21]wFMCommunicate request_size=4 [09:40:21]MH_SAM_APDU [09:40:21]CAPDU: 80 13 01 00 [09:40:21]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [09:40:21]Write i2c OK [09:40:21]MH_I2C_Read... [09:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:21]Read from MH i2c: E2 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 0E 00 [09:40:21]MH_I2C_Read... [09:40:21]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 67 [09:40:21]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [09:40:21]wFMCommunicate OK [09:40:21]SAM_PROTO_GetShiftState done [09:40:21]FM_GetShiftState done [09:40:21]req_shift_opened done [09:40:21]requested_item shift.open_date is exist - process it [09:40:21]req_shift_open_date [09:40:21]req_shift_open_date done [09:40:21]produce_requested_data done [09:40:21]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22114,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [09:40:21]process_action_free close_receipt [09:40:21]json_value_free [09:40:21]json_value_free done [09:40:21]process_json_proto returns [09:40:21]Send response to host [09:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22114,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [09:40:21]free response buf [09:40:21]execute_script done [09:40:21]execute_script returns [09:40:21]free content buf [09:40:21]Sock 9.Close socket [09:40:21]Sock 9.Thread stoped [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:08]accept exits with 7 [10:02:08]New connection [10:02:08]New thread 3067039076 created [10:02:08]Thread 3067182436 joined [10:02:08]Waiting for new connection... [10:02:08] Sock 7.Parse request [10:02:08]Sock 7.Check first char [10:02:08]Sock 7.First char is OK [10:02:08]request: POST /json_proto HTTP/1.0 [10:02:08]Method: POST [10:02:08]URL: /json_proto [10:02:08]Method is POST - this is cgi request [10:02:08]url: /json_proto [10:02:08]query_string will be loaded in cgi processing [10:02:08]execute_cgi json_proto POST (null) [10:02:08]execute_cgi path=json_proto method=POST [10:02:08]POST find Content-Length [10:02:08]Host: 172.17.43.4:8080 [10:02:08]Content-Length: 654 [10:02:08]Content-Type: application/json [10:02:08] [10:02:08]POST finish read [10:02:08]Found Content-Length = 654 [10:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51384", "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:02:08]execute_script... [10:02: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)51384", "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:02:08]POST & json_proto [10:02:08]process_json_proto [10:02:08]json parsed OK: [10:02:08]protocol is kg_v1.0 [10:02:08]action value=close_receipt [10:02:08]process_action close_receipt [10:02:08]cmd_close_receipt [10:02:08]MH_GetDate [10:02:08]Write to MH i2c: F0 00 00 6D 03 5F [10:02:08]Write i2c OK [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: F0 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: F0 09 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: F0 09 00 6D 03 00 21 EB EF 66 02 BF CF 66 BF [10:02:08]GetLastDocTimeStamp 1726998018 [10:02:08]current date 1726999329 [10:02:08]FM_GetShiftState [10:02:08]SAM_PROTO_GetShiftState [10:02:08]wFMCommunicate request_size=4 [10:02:08]MH_SAM_APDU [10:02:08]CAPDU: 80 13 01 00 [10:02:08]Write to MH i2c: E2 08 00 6E 03 80 13 01 00 00 00 00 00 EE [10:02:08]Write i2c OK [10:02:08]MH_I2C_Read... [10:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:08]Read from MH i2c: E2 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 0E 00 [10:02:08]MH_I2C_Read... [10:02:08]Read from MH i2c: E2 0E 00 6E 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 69 [10:02:08]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:02:08]wFMCommunicate OK [10:02:08]SAM_PROTO_GetShiftState done [10:02:08]FM_GetShiftState done [10:02:08]opened in 1726964408 [10:02:08]opened+sec_in_day 1727050808 [10:02:08]quantity*price = 8500 [10:02:08]sum+1 = 8501 [10:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 30 22.09.2024 10:02 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22115 ФПД: 66871996158676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100209&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22115&fm=66871996158676&tin=02508201610067®Number=0000000000146243&sum=8500 0 [10:02:09]StoreToDocumentArchive [10:02:09]shift 228 fd 22115 [10:02:09]save to /storage/0228/doc_00022115 [10:02:09]save last doc name /storage/0228/doc_00022115 to /storage/kkm_last_doc_name [10:02:09]save OK [10:02:09]Clear old archive folders... [10:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:02:09]tlvbuf is 00225E30 [10:02:09]SAM_PROTO_ClearQueue [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 09 00 00 [10:02:09]Write to MH i2c: E2 08 00 7B 03 80 09 00 00 00 00 00 00 F0 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [10:02:09]RAPDU: 90 00 [10:02:09]wFMCommunicate OK [10:02:09]SAM_PROTO_ClearQueue done [10:02:09]KKMCreateOFDPacket [10:02:09]OFDProtocolAddRootSTLVToBuf [10:02:09]FM_MakeSignedData [10:02:09]FM_MakeSignedData [10:02:09]SAM_PROTO_SignData [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 0D 01 02 [10:02:09]Write to MH i2c: E2 08 00 7C 03 80 0D 01 02 00 00 00 00 F8 [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [10:02:09]RAPDU: 90 00 [10:02:09]wFMCommunicate OK [10:02:09]wFMCommunicate request_size=255 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1E 00 00 00 F4 03 04 00 21 EB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:02:09]Write to MH i2c: E2 02 01 7D 03 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1E 00 00 00 F4 03 04 00 21 EB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 3F [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [10:02:09]RAPDU: 90 00 [10:02:09]wFMCommunicate OK [10:02:09]wFMCommunicate request_size=53 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 0D 02 02 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 63 56 00 00 35 04 06 00 3C D1 D9 93 92 D4 [10:02:09]Write to MH i2c: E2 38 00 7E 03 80 0D 02 02 30 00 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 63 56 00 00 35 04 06 00 3C D1 D9 93 92 D4 00 00 8A [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:09]Read from MH i2c: E2 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 [10:02:09]MH_I2C_Read... [10:02:09]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [10:02:09]RAPDU: 90 00 [10:02:09]wFMCommunicate OK [10:02:09]wFMCommunicate request_size=4 [10:02:09]MH_SAM_APDU [10:02:09]CAPDU: 80 0D 03 02 [10:02:09]Write to MH i2c: E2 08 00 7F 03 80 0D 03 02 00 00 00 00 FD [10:02:09]Write i2c OK [10:02:09]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 0B 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 0B 00 7F 03 00 0F DC C7 A6 3E 56 B1 B9 90 00 54 [10:02:10]RAPDU: 0F DC C7 A6 3E 56 B1 B9 90 00 [10:02:10]wFMCommunicate OK [10:02:10]SAM_PROTO_SignData done [10:02:10]FM_MakeSignedData done [10:02:10]CreateOFDProtocolMessage [10:02:10]wFMCommunicate request_size=4 [10:02:10]MH_SAM_APDU [10:02:10]CAPDU: 80 11 00 00 [10:02:10]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:10]Read from MH i2c: E2 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 17 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: E2 17 00 80 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 57 [10:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:02:10]wFMCommunicate OK [10:02:10]CreateOFDProtocolMessage done [10:02:10]OFDSenderStorePacket 22115 [10:02:10]StoreOFDPacket docnum=22115 [10:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3A 01 00 00 D9 14 32 01 BD 3D 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 1E 00 00 00 F4 03 04 00 21 EB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 63 56 00 00 35 04 06 00 3C D1 D9 93 92 D4 0F DC C7 A6 3E 56 B1 B9 [10:02:10]CheckFolder [10:02:10]dirname=/storage/ofd_packets [10:02:10]CheckFolder done [10:02:10]ProducePacketName [10:02:10]name=ofd_packets/00022115 [10:02:10]NVStorageSaveData ofd_packets/00022115 [10:02:10]File name is /storage/ofd_packets/00022115 [10:02:10]Write 344 bytes [10:02:10]NVStorageSaveData done [10:02:10]OFDSenderStorePacket done [10:02:10]KKMCreateOFDPacket done [10:02:10]NVStorageSaveData kkm_last_timestamp [10:02:10]File name is /storage/kkm_last_timestamp [10:02:10]Write 4 bytes [10:02:10]NVStorageSaveData done [10:02:10]ExternCall_PrintAddStr [10:02:10]wPrintStart [10:02:10]Write to MH i2c: 01 00 00 81 03 84 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 07 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 FF 0F 99 [10:02:10]RasterBufferAndPrint [10:02:10]line Счет N : (3)51384 [10:02:10]line ИНН: 02508201610067 [10:02:10]line Контрольно-Кассовый Чек [10:02:10]line ПРОДАЖА [10:02:10]line Товар: 4600682557456 [10:02:10]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:02:10]line 1.000 * 85.00 [10:02:10]line = 85.00 [10:02:10]line НДС 12% НСП 1% [10:02:10]line > о реализуемом товаре [10:02:10]line ИТОГО: 85.00 [10:02:10]line НСП 1% : 0.75 [10:02:10]line НДС 12% : 9.03 [10:02:10]line Наличными: 85.00 [10:02:10]line Безнал.: 0.00 [10:02:10]line Место: АЗС № 88 "Партнер Нефть" [10:02:10]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [10:02:10]line СНО: Общий режим [10:02:10]line Чек 30 22.09.2024 10:02 [10:02:10]line Смена: 228 ФФД: 1.0 [10:02:10]line ЗНМ: 0300000061 [10:02:10]line РНМ: 0000000000146243 [10:02:10]line Версия ККМ: v1.0 [10:02:10]line ФМ: 0000000000959358 [10:02:10]line ФД: 22115 [10:02:10]line ФПД: 66871996158676 [10:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100209&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22115&fm=66871996158676&tin=02508201610067®Number=0000000000146243&sum=8500 [10:02:10]line 0 [10:02:10]OFD Sender: Processing packet 22115 [packets to send 23, broken 22] [10:02:10]ProducePacketName [10:02:10]name=ofd_packets/00022115 [10:02:10]OFD Sender: To server: pG, [10:02:10]CommunicateWithHost lk.salyk.kg:30040 [10:02:10]ConnectInit lk.salyk.kg [10:02:10]written 0, free lines is 4095 [10:02:10]Connected sock=10 [10:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3A 01 00 00 D9 14 32 01 BD 3D 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 1E 00 00 00 F4 03 04 00 21 EB EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 63 56 00 00 35 04 06 00 3C D1 D9 93 92 D4 0F DC C7 A6 3E 56 B1 B9 [10:02:10]Write to MH i2c: 01 00 00 AA 03 AD [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 07 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 14 0D D5 [10:02:10]RasterBufferAndPrint [10:02:10]line [10:02:10]line [10:02:10]line [10:02:10]line [10:02:10]line [10:02:10]written 0, free lines is 3354 [10:02:10]MH_Cut [10:02:10]Write to MH i2c: D1 01 00 B1 03 01 86 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: D1 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: D1 01 00 [10:02:10]MH_I2C_Read... [10:02:10]Read from MH i2c: D1 01 00 B1 03 00 85 [10:02:10]Write to MH i2c: 01 00 00 B2 03 B5 [10:02:10]Write i2c OK [10:02:10]MH_I2C_Read... [10:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 AC 7A 47 00 9C 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 39 35 39 33 35 38 10 04 04 00 63 56 00 00 F4 03 04 00 4D 95 EF 66 B6 04 01 00 00 77 70 7D 50 00 CA 00 01 [10:02:10]CommunicateWithHost err = 0 [10:02:10]CheckOFDResponse [10:02:10]1017 (14) - 77093643461234 [10:02:10]1041 (16) - 0000000000959358 [10:02:10]1040 (4) - 22115 [10:02:10]1012 (4) - 22.09.2024 03:55 [10:02:10]1206 (1) - 0 [10:02:10]OFD Sender: Remove packet 22115 [10:02:10]ProducePacketName [10:02:10]name=ofd_packets/00022115 [10:02:10]NVStorageDeleteData [10:02:11]OFD Sender: No OFD packet to send [10:02:11]*** Cut start [10:02:11]*** Partial cut [10:02:11]*** CUTSNS_PIN = 1 [10:02:11]*** CUTSNS_PIN = 0 [10:02:11]*** Brake cut motor [10:02:12]Read from MH i2c: 01 [10:02:12]MH_I2C_Read... [10:02:12]*** Stop cut motor [10:02:12]*** Cut end [10:02:12]Read from MH i2c: 01 07 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [10:02:12]process_action close_receipt done [10:02:12]requested_data is exist [10:02:12]produce_requested_data [10:02:12]requested_item fm.sn is exist - process it [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 11 00 00 [10:02:12]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 17 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 8A [10:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:02:12]wFMCommunicate OK [10:02:12]requested_item fd.num is exist - process it [10:02:12]SAM_PROTO_GetFieldsCounters [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 13 00 00 [10:02:12]Write to MH i2c: E2 08 00 B4 03 80 13 00 00 00 00 00 00 33 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 62 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 62 00 B4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 63 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 63 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:12]wFMCommunicate OK [10:02:12]SAM_PROTO_GetFieldsCounters done [10:02:12]requested_item shift.num is exist - process it [10:02:12]requested_item shift.opened is exist - process it [10:02:12]req_shift_opened [10:02:12]FM_GetShiftState [10:02:12]SAM_PROTO_GetShiftState [10:02:12]wFMCommunicate request_size=4 [10:02:12]MH_SAM_APDU [10:02:12]CAPDU: 80 13 01 00 [10:02:12]Write to MH i2c: E2 08 00 B5 03 80 13 01 00 00 00 00 00 35 [10:02:12]Write i2c OK [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 [10:02:12]MH_I2C_Read... [10:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:12]Read from MH i2c: E2 0E 00 [10:02:12]MH_I2C_Read... [10:02:12]Read from MH i2c: E2 0E 00 B5 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B0 [10:02:12]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:02:12]wFMCommunicate OK [10:02:12]SAM_PROTO_GetShiftState done [10:02:12]FM_GetShiftState done [10:02:12]req_shift_opened done [10:02:12]requested_item shift.open_date is exist - process it [10:02:12]req_shift_open_date [10:02:12]req_shift_open_date done [10:02:12]produce_requested_data done [10:02:12]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22115,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [10:02:12]process_action_free close_receipt [10:02:12]json_value_free [10:02:12]json_value_free done [10:02:12]process_json_proto returns [10:02:12]Send response to host [10:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22115,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [10:02:12]free response buf [10:02:12]execute_script done [10:02:12]execute_script returns [10:02:12]free content buf [10:02:12]Sock 7.Close socket [10:02:12]Sock 7.Thread stoped [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:47]accept exits with 9 [10:09:47]New connection [10:09:47]New thread 3067182436 created [10:09:47]Thread 3067039076 joined [10:09:47]Waiting for new connection... [10:09:47] Sock 9.Parse request [10:09:47]Sock 9.Check first char [10:09:47]Sock 9.First char is OK [10:09:47]request: POST /json_proto HTTP/1.0 [10:09:47]Method: POST [10:09:47]URL: /json_proto [10:09:47]Method is POST - this is cgi request [10:09:47]url: /json_proto [10:09:47]query_string will be loaded in cgi processing [10:09:47]execute_cgi json_proto POST (null) [10:09:47]execute_cgi path=json_proto method=POST [10:09:47]POST find Content-Length [10:09:47]Host: 172.17.43.4:8080 [10:09:47]Content-Length: 689 [10:09:47]Content-Type: application/json [10:09:47] [10:09:47]POST finish read [10:09:47]Found Content-Length = 689 [10:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51385", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:47]execute_script... [10: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)51385", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:47]POST & json_proto [10:09:47]process_json_proto [10:09:47]json parsed OK: [10:09:47]protocol is kg_v1.0 [10:09:47]action value=close_receipt [10:09:47]process_action close_receipt [10:09:47]cmd_close_receipt [10:09:47]MH_GetDate [10:09:47]Write to MH i2c: F0 00 00 B6 03 A8 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: F0 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: F0 09 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: F0 09 00 B6 03 00 EC EC EF 66 02 BF CF 66 D4 [10:09:47]GetLastDocTimeStamp 1726999329 [10:09:47]current date 1726999788 [10:09:47]FM_GetShiftState [10:09:47]SAM_PROTO_GetShiftState [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 01 00 [10:09:47]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B2 [10:09:47]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetShiftState done [10:09:47]FM_GetShiftState done [10:09:47]opened in 1726964408 [10:09:47]opened+sec_in_day 1727050808 [10:09:47]quantity*price = 12500 [10:09:47]sum+1 = 12501 [10:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 31 22.09.2024 10:09 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22116 ФПД: 2015609732781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100948&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22116&fm=2015609732781&tin=02508201610067®Number=0000000000146243&sum=12500 0 [10:09:48]StoreToDocumentArchive [10:09:48]shift 228 fd 22116 [10:09:48]save to /storage/0228/doc_00022116 [10:09:48]save last doc name /storage/0228/doc_00022116 to /storage/kkm_last_doc_name [10:09:48]save OK [10:09:48]Clear old archive folders... [10:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:09:48]tlvbuf is 0020A730 [10:09:48]SAM_PROTO_ClearQueue [10:09:48]wFMCommunicate request_size=4 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 09 00 00 [10:09:48]Write to MH i2c: E2 08 00 C4 03 80 09 00 00 00 00 00 00 39 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [10:09:48]RAPDU: 90 00 [10:09:48]wFMCommunicate OK [10:09:48]SAM_PROTO_ClearQueue done [10:09:48]KKMCreateOFDPacket [10:09:48]OFDProtocolAddRootSTLVToBuf [10:09:48]FM_MakeSignedData [10:09:48]FM_MakeSignedData [10:09:48]SAM_PROTO_SignData [10:09:48]wFMCommunicate request_size=4 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 0D 01 02 [10:09:48]Write to MH i2c: E2 08 00 C5 03 80 0D 01 02 00 00 00 00 41 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [10:09:48]RAPDU: 90 00 [10:09:48]wFMCommunicate OK [10:09:48]wFMCommunicate request_size=255 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC EC EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:09:48]Write to MH i2c: E2 02 01 C6 03 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC EC EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 F4 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [10:09:48]RAPDU: 90 00 [10:09:48]wFMCommunicate OK [10:09:48]wFMCommunicate request_size=53 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 0D 02 02 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 64 56 00 00 35 04 06 00 01 D5 4B B3 BE AD [10:09:48]Write to MH i2c: E2 38 00 C7 03 80 0D 02 02 30 00 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 64 56 00 00 35 04 06 00 01 D5 4B B3 BE AD 00 00 34 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [10:09:48]RAPDU: 90 00 [10:09:48]wFMCommunicate OK [10:09:48]wFMCommunicate request_size=4 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 0D 03 02 [10:09:48]Write to MH i2c: E2 08 00 C8 03 80 0D 03 02 00 00 00 00 46 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 0B 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 0B 00 C8 03 00 EF AA 29 52 B7 13 39 7A 90 00 D8 [10:09:48]RAPDU: EF AA 29 52 B7 13 39 7A 90 00 [10:09:48]wFMCommunicate OK [10:09:48]SAM_PROTO_SignData done [10:09:48]FM_MakeSignedData done [10:09:48]CreateOFDProtocolMessage [10:09:48]wFMCommunicate request_size=4 [10:09:48]MH_SAM_APDU [10:09:48]CAPDU: 80 11 00 00 [10:09:48]Write to MH i2c: E2 08 00 C9 03 80 11 00 00 00 00 00 00 46 [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:48]Read from MH i2c: E2 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 17 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: E2 17 00 C9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A0 [10:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:09:48]wFMCommunicate OK [10:09:48]CreateOFDProtocolMessage done [10:09:48]OFDSenderStorePacket 22116 [10:09:48]StoreOFDPacket docnum=22116 [10:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3A 01 00 00 04 B4 32 01 5F 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC EC EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 64 56 00 00 35 04 06 00 01 D5 4B B3 BE AD EF AA 29 52 B7 13 39 7A [10:09:48]CheckFolder [10:09:48]dirname=/storage/ofd_packets [10:09:48]CheckFolder done [10:09:48]ProducePacketName [10:09:48]name=ofd_packets/00022116 [10:09:48]NVStorageSaveData ofd_packets/00022116 [10:09:48]File name is /storage/ofd_packets/00022116 [10:09:48]Write 344 bytes [10:09:48]NVStorageSaveData done [10:09:48]OFDSenderStorePacket done [10:09:48]KKMCreateOFDPacket done [10:09:48]NVStorageSaveData kkm_last_timestamp [10:09:48]File name is /storage/kkm_last_timestamp [10:09:48]Write 4 bytes [10:09:48]NVStorageSaveData done [10:09:48]ExternCall_PrintAddStr [10:09:48]wPrintStart [10:09:48]Write to MH i2c: 01 00 00 CA 03 CD [10:09:48]Write i2c OK [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: 01 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: 01 07 00 [10:09:48]MH_I2C_Read... [10:09:48]Read from MH i2c: 01 07 00 CA 03 00 00 00 00 00 FF 0F E2 [10:09:48]RasterBufferAndPrint [10:09:48]line Счет N : (3)51385 [10:09:48]line ИНН: 02508201610067 [10:09:48]line Контрольно-Кассовый Чек [10:09:48]line ПРОДАЖА [10:09:48]line Товар: 4870202521247 [10:09:48]line Напиток MAXI чай 1,2 черн.персик [10:09:48]line 1.000 * 125.00 [10:09:48]line = 125.00 [10:09:48]line НДС 12% НСП 1% [10:09:48]line > о реализуемом товаре [10:09:48]line ИТОГО: 125.00 [10:09:48]line НСП 1% : 1.11 [10:09:48]line НДС 12% : 13.27 [10:09:48]line Наличными: 125.00 [10:09:48]line Безнал.: 0.00 [10:09:48]line Место: АЗС № 88 "Партнер Нефть" [10:09:48]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [10:09:48]line СНО: Общий режим [10:09:48]line Чек 31 22.09.2024 10:09 [10:09:48]line Смена: 228 ФФД: 1.0 [10:09:48]line ЗНМ: 0300000061 [10:09:48]line РНМ: 0000000000146243 [10:09:48]line Версия ККМ: v1.0 [10:09:48]line ФМ: 0000000000959358 [10:09:48]line ФД: 22116 [10:09:48]line ФПД: 2015609732781 [10:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T100948&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22116&fm=2015609732781&tin=02508201610067®Number=0000000000146243&sum=12500 [10:09:49]line 0 [10:09:49]OFD Sender: Processing packet 22116 [packets to send 23, broken 22] [10:09:49]ProducePacketName [10:09:49]name=ofd_packets/00022116 [10:09:49]OFD Sender: To server: pG, [10:09:49]CommunicateWithHost lk.salyk.kg:30040 [10:09:49]ConnectInit lk.salyk.kg [10:09:49]written 0, free lines is 4095 [10:09:49]Connected sock=10 [10:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3A 01 00 00 04 B4 32 01 5F 37 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC EC EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 64 56 00 00 35 04 06 00 01 D5 4B B3 BE AD EF AA 29 52 B7 13 39 7A [10:09:49]Write to MH i2c: 01 00 00 F3 03 F6 [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: 01 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: 01 07 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 01 0D 0B [10:09:49]RasterBufferAndPrint [10:09:49]line [10:09:49]line [10:09:49]line [10:09:49]line [10:09:49]line [10:09:49]written 0, free lines is 3335 [10:09:49]MH_Cut [10:09:49]Write to MH i2c: D1 01 00 FA 03 01 CF [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: D1 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: D1 01 00 [10:09:49]MH_I2C_Read... [10:09:49]Read from MH i2c: D1 01 00 FA 03 00 CE [10:09:49]Write to MH i2c: 01 00 00 FB 03 FE [10:09:49]Write i2c OK [10:09:49]MH_I2C_Read... [10:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 E5 6F 47 00 8B 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 64 56 00 00 F4 03 04 00 18 97 EF 66 B6 04 01 00 00 D9 73 F9 D7 FD 35 63 56 [10:09:49]CommunicateWithHost err = 0 [10:09:49]CheckOFDResponse [10:09:49]1017 (14) - 77093643461234 [10:09:49]1041 (16) - 0000000000959358 [10:09:49]1040 (4) - 22116 [10:09:49]1012 (4) - 22.09.2024 04:03 [10:09:49]1206 (1) - 0 [10:09:49]OFD Sender: Remove packet 22116 [10:09:49]ProducePacketName [10:09:49]name=ofd_packets/00022116 [10:09:49]NVStorageDeleteData [10:09:50]OFD Sender: No OFD packet to send [10:09:50]*** Cut start [10:09:50]*** Partial cut [10:09:50]*** CUTSNS_PIN = 1 [10:09:50]*** CUTSNS_PIN = 0 [10:09:50]*** Brake cut motor [10:09:50]Read from MH i2c: 01 [10:09:50]MH_I2C_Read... [10:09:50]*** Stop cut motor [10:09:50]*** Cut end [10:09:50]Read from MH i2c: 01 07 00 [10:09:50]MH_I2C_Read... [10:09:50]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FF 0F 13 [10:09:50]process_action close_receipt done [10:09:50]requested_data is exist [10:09:50]produce_requested_data [10:09:50]requested_item fm.sn is exist - process it [10:09:50]wFMCommunicate request_size=4 [10:09:50]MH_SAM_APDU [10:09:50]CAPDU: 80 11 00 00 [10:09:50]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [10:09:50]Write i2c OK [10:09:50]MH_I2C_Read... [10:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:51]Read from MH i2c: E2 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: E2 17 00 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D3 [10:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:09:51]wFMCommunicate OK [10:09:51]requested_item fd.num is exist - process it [10:09:51]SAM_PROTO_GetFieldsCounters [10:09:51]wFMCommunicate request_size=4 [10:09:51]MH_SAM_APDU [10:09:51]CAPDU: 80 13 00 00 [10:09:51]Write to MH i2c: E2 08 00 FD 03 80 13 00 00 00 00 00 00 7C [10:09:51]Write i2c OK [10:09:51]MH_I2C_Read... [10:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:51]Read from MH i2c: E2 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: E2 62 00 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: E2 62 00 FD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 64 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 64 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:51]wFMCommunicate OK [10:09:51]SAM_PROTO_GetFieldsCounters done [10:09:51]requested_item shift.num is exist - process it [10:09:51]requested_item shift.opened is exist - process it [10:09:51]req_shift_opened [10:09:51]FM_GetShiftState [10:09:51]SAM_PROTO_GetShiftState [10:09:51]wFMCommunicate request_size=4 [10:09:51]MH_SAM_APDU [10:09:51]CAPDU: 80 13 01 00 [10:09:51]Write to MH i2c: E2 08 00 FE 03 80 13 01 00 00 00 00 00 7E [10:09:51]Write i2c OK [10:09:51]MH_I2C_Read... [10:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:51]Read from MH i2c: E2 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: E2 0E 00 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: E2 0E 00 FE 03 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 F9 [10:09:51]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:09:51]wFMCommunicate OK [10:09:51]SAM_PROTO_GetShiftState done [10:09:51]FM_GetShiftState done [10:09:51]req_shift_opened done [10:09:51]requested_item shift.open_date is exist - process it [10:09:51]req_shift_open_date [10:09:51]req_shift_open_date done [10:09:51]produce_requested_data done [10:09:51]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22116,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [10:09:51]process_action_free close_receipt [10:09:51]json_value_free [10:09:51]json_value_free done [10:09:51]process_json_proto returns [10:09:51]Send response to host [10:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22116,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [10:09:51]free response buf [10:09:51]execute_script done [10:09:51]execute_script returns [10:09:51]free content buf [10:09:51]Sock 9.Close socket [10:09:51]Sock 9.Thread stoped [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:13]accept exits with 7 [10:18:13]New connection [10:18:13]New thread 3067039076 created [10:18:13]Thread 3067182436 joined [10:18:13]Waiting for new connection... [10:18:13] Sock 7.Parse request [10:18:13]Sock 7.Check first char [10:18:13]Sock 7.First char is OK [10:18:13]request: POST /json_proto HTTP/1.0 [10:18:13]Method: POST [10:18:13]URL: /json_proto [10:18:13]Method is POST - this is cgi request [10:18:13]url: /json_proto [10:18:13]query_string will be loaded in cgi processing [10:18:13]execute_cgi json_proto POST (null) [10:18:13]execute_cgi path=json_proto method=POST [10:18:13]POST find Content-Length [10:18:13]Host: 172.17.43.4:8080 [10:18:13]Content-Length: 620 [10:18:13]Content-Type: application/json [10:18:13] [10:18:13]POST finish read [10:18:13]Found Content-Length = 620 [10:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51386", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:13]execute_script... [10:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51386", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:13]POST & json_proto [10:18:13]process_json_proto [10:18:13]json parsed OK: [10:18:13]protocol is kg_v1.0 [10:18:13]action value=close_receipt [10:18:13]process_action close_receipt [10:18:13]cmd_close_receipt [10:18:13]MH_GetDate [10:18:13]Write to MH i2c: F0 00 00 FF 03 F1 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 09 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: F0 09 00 FF 03 00 E6 EE EF 66 02 BF CF 66 19 [10:18:13]GetLastDocTimeStamp 1726999788 [10:18:13]current date 1727000294 [10:18:13]FM_GetShiftState [10:18:13]SAM_PROTO_GetShiftState [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 13 01 00 [10:18:13]Write to MH i2c: E2 08 00 00 04 80 13 01 00 00 00 00 00 81 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0E 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0E 00 00 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FC [10:18:13]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:18:13]wFMCommunicate OK [10:18:13]SAM_PROTO_GetShiftState done [10:18:13]FM_GetShiftState done [10:18:13]opened in 1726964408 [10:18:13]opened+sec_in_day 1727050808 [10:18:13]quantity*price = 14400 [10:18:13]sum+1 = 14401 [10:18:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 32 22.09.2024 10:18 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22117 ФПД: 109646457010674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101814&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22117&fm=109646457010674&tin=02508201610067®Number=0000000000146243&sum=14400 0 [10:18:14]StoreToDocumentArchive [10:18:14]shift 228 fd 22117 [10:18:14]save to /storage/0228/doc_00022117 [10:18:14]save last doc name /storage/0228/doc_00022117 to /storage/kkm_last_doc_name [10:18:14]save OK [10:18:14]Clear old archive folders... [10:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:18:14]tlvbuf is 0022B4B0 [10:18:14]SAM_PROTO_ClearQueue [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 09 00 00 [10:18:14]Write to MH i2c: E2 08 00 0D 04 80 09 00 00 00 00 00 00 83 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_ClearQueue done [10:18:14]KKMCreateOFDPacket [10:18:14]OFDProtocolAddRootSTLVToBuf [10:18:14]FM_MakeSignedData [10:18:14]FM_MakeSignedData [10:18:14]SAM_PROTO_SignData [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 01 02 [10:18:14]Write to MH i2c: E2 08 00 0E 04 80 0D 01 02 00 00 00 00 8B [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=255 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E6 EE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [10:18:14]Write to MH i2c: E2 02 01 0F 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E6 EE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 1D [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=32 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 65 56 00 00 35 04 06 00 63 B9 0E 1E F9 F2 [10:18:14]Write to MH i2c: E2 23 00 10 04 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 65 56 00 00 35 04 06 00 63 B9 0E 1E F9 F2 00 00 E0 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 03 02 [10:18:14]Write to MH i2c: E2 08 00 11 04 80 0D 03 02 00 00 00 00 90 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 11 04 00 60 2A FD 67 17 1A F7 7C 90 00 23 [10:18:14]RAPDU: 60 2A FD 67 17 1A F7 7C 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_SignData done [10:18:14]FM_MakeSignedData done [10:18:14]CreateOFDProtocolMessage [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 11 00 00 [10:18:14]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EA [10:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:18:14]wFMCommunicate OK [10:18:14]CreateOFDProtocolMessage done [10:18:14]OFDSenderStorePacket 22117 [10:18:14]StoreOFDPacket docnum=22117 [10:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 DA 2C 1D 01 8D E7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E6 EE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 65 56 00 00 35 04 06 00 63 B9 0E 1E F9 F2 60 2A FD 67 17 1A F7 7C [10:18:14]CheckFolder [10:18:14]dirname=/storage/ofd_packets [10:18:14]CheckFolder done [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00022117 [10:18:14]NVStorageSaveData ofd_packets/00022117 [10:18:14]File name is /storage/ofd_packets/00022117 [10:18:14]Write 323 bytes [10:18:14]NVStorageSaveData done [10:18:14]OFDSenderStorePacket done [10:18:14]KKMCreateOFDPacket done [10:18:14]NVStorageSaveData kkm_last_timestamp [10:18:14]File name is /storage/kkm_last_timestamp [10:18:14]Write 4 bytes [10:18:14]NVStorageSaveData done [10:18:14]ExternCall_PrintAddStr [10:18:14]wPrintStart [10:18:14]Write to MH i2c: 01 00 00 13 04 17 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 FF 0F 2C [10:18:14]RasterBufferAndPrint [10:18:14]line Счет N : (3)51386 [10:18:14]line ИНН: 02508201610067 [10:18:14]line Контрольно-Кассовый Чек [10:18:14]line ПРОДАЖА [10:18:14]line Товар: 48743570 [10:18:14]line Сигареты Winston XStyle Blue [10:18:14]line 1.000 * 144.00 [10:18:14]line = 144.00 [10:18:14]line НДС 12% НСП 1% [10:18:14]line > о реализуемом товаре [10:18:14]line ИТОГО: 144.00 [10:18:14]line НСП 1% : 1.27 [10:18:14]line НДС 12% : 15.29 [10:18:14]line Наличными: 144.00 [10:18:14]line Безнал.: 0.00 [10:18:14]line Место: АЗС № 88 "Партнер Нефть" [10:18:14]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [10:18:14]line СНО: Общий режим [10:18:14]line Чек 32 22.09.2024 10:18 [10:18:14]line Смена: 228 ФФД: 1.0 [10:18:14]line ЗНМ: 0300000061 [10:18:14]line РНМ: 0000000000146243 [10:18:14]line Версия ККМ: v1.0 [10:18:14]line ФМ: 0000000000959358 [10:18:14]line ФД: 22117 [10:18:14]line ФПД: 109646457010674 [10:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T101814&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22117&fm=109646457010674&tin=02508201610067®Number=0000000000146243&sum=14400 [10:18:15]line 0 [10:18:15]OFD Sender: Processing packet 22117 [packets to send 23, broken 22] [10:18:15]ProducePacketName [10:18:15]name=ofd_packets/00022117 [10:18:15]OFD Sender: To server: pG, [10:18:15]CommunicateWithHost lk.salyk.kg:30040 [10:18:15]ConnectInit lk.salyk.kg [10:18:15]written 0, free lines is 4095 [10:18:15]Connected sock=10 [10:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 DA 2C 1D 01 8D E7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E6 EE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 65 56 00 00 35 04 06 00 63 B9 0E 1E F9 F2 60 2A FD 67 17 1A F7 7C [10:18:15]Write to MH i2c: 01 00 00 3B 04 3F [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 20 0D 73 [10:18:15]RasterBufferAndPrint [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]written 0, free lines is 3366 [10:18:15]MH_Cut [10:18:15]Write to MH i2c: D1 01 00 42 04 01 18 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 01 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 01 00 42 04 00 17 [10:18:15]Write to MH i2c: 01 00 00 43 04 47 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 1E 38 47 00 38 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 65 56 00 00 F4 03 04 00 12 99 EF 66 B6 04 01 00 00 D0 BD F9 87 CD F0 77 01 [10:18:15]CommunicateWithHost err = 0 [10:18:15]CheckOFDResponse [10:18:15]1017 (14) - 77093643461234 [10:18:15]1041 (16) - 0000000000959358 [10:18:15]1040 (4) - 22117 [10:18:15]1012 (4) - 22.09.2024 04:12 [10:18:15]1206 (1) - 0 [10:18:15]OFD Sender: Remove packet 22117 [10:18:15]ProducePacketName [10:18:15]name=ofd_packets/00022117 [10:18:15]NVStorageDeleteData [10:18:16]OFD Sender: No OFD packet to send [10:18:16]*** Cut start [10:18:16]*** Partial cut [10:18:16]*** CUTSNS_PIN = 1 [10:18:16]*** CUTSNS_PIN = 0 [10:18:16]*** Brake cut motor [10:18:16]Read from MH i2c: 01 [10:18:16]MH_I2C_Read... [10:18:16]*** Stop cut motor [10:18:16]*** Cut end [10:18:16]Read from MH i2c: 01 07 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 FF 0F 5C [10:18:16]process_action close_receipt done [10:18:16]requested_data is exist [10:18:16]produce_requested_data [10:18:16]requested_item fm.sn is exist - process it [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 11 00 00 [10:18:16]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:16]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 17 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1C [10:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:18:17]wFMCommunicate OK [10:18:17]requested_item fd.num is exist - process it [10:18:17]SAM_PROTO_GetFieldsCounters [10:18:17]wFMCommunicate request_size=4 [10:18:17]MH_SAM_APDU [10:18:17]CAPDU: 80 13 00 00 [10:18:17]Write to MH i2c: E2 08 00 45 04 80 13 00 00 00 00 00 00 C5 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 62 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 62 00 45 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 65 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 65 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:17]wFMCommunicate OK [10:18:17]SAM_PROTO_GetFieldsCounters done [10:18:17]requested_item shift.num is exist - process it [10:18:17]requested_item shift.opened is exist - process it [10:18:17]req_shift_opened [10:18:17]FM_GetShiftState [10:18:17]SAM_PROTO_GetShiftState [10:18:17]wFMCommunicate request_size=4 [10:18:17]MH_SAM_APDU [10:18:17]CAPDU: 80 13 01 00 [10:18:17]Write to MH i2c: E2 08 00 46 04 80 13 01 00 00 00 00 00 C7 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 0E 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 0E 00 46 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 42 [10:18:17]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:18:17]wFMCommunicate OK [10:18:17]SAM_PROTO_GetShiftState done [10:18:17]FM_GetShiftState done [10:18:17]req_shift_opened done [10:18:17]requested_item shift.open_date is exist - process it [10:18:17]req_shift_open_date [10:18:17]req_shift_open_date done [10:18:17]produce_requested_data done [10:18:17]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22117,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [10:18:17]process_action_free close_receipt [10:18:17]json_value_free [10:18:17]json_value_free done [10:18:17]process_json_proto returns [10:18:17]Send response to host [10:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22117,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [10:18:17]free response buf [10:18:17]execute_script done [10:18:17]execute_script returns [10:18:17]free content buf [10:18:17]Sock 7.Close socket [10:18:17]Sock 7.Thread stoped [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:13]accept exits with 9 [10:23:13]New connection [10:23:13]New thread 3067182436 created [10:23:13]Thread 3067039076 joined [10:23:13]Waiting for new connection... [10:23:13] Sock 9.Parse request [10:23:13]Sock 9.Check first char [10:23:13]Sock 9.First char is OK [10:23:13]request: POST /json_proto HTTP/1.0 [10:23:13]Method: POST [10:23:13]URL: /json_proto [10:23:13]Method is POST - this is cgi request [10:23:13]url: /json_proto [10:23:13]query_string will be loaded in cgi processing [10:23:13]execute_cgi json_proto POST (null) [10:23:13]execute_cgi path=json_proto method=POST [10:23:13]POST find Content-Length [10:23:13]Host: 172.17.43.4:8080 [10:23:13]Content-Length: 887 [10:23:13]Content-Type: application/json [10:23:13] [10:23:13]POST finish read [10:23:13]Found Content-Length = 887 [10:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51387", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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:23:13]execute_script... [10:23:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51387", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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:23:13]POST & json_proto [10:23:13]process_json_proto [10:23:13]json parsed OK: [10:23:13]protocol is kg_v1.0 [10:23:13]action value=close_receipt [10:23:13]process_action close_receipt [10:23:13]cmd_close_receipt [10:23:13]MH_GetDate [10:23:13]Write to MH i2c: F0 00 00 47 04 3A [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: F0 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: F0 09 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: F0 09 00 47 04 00 12 F0 EF 66 02 BF CF 66 90 [10:23:13]GetLastDocTimeStamp 1727000294 [10:23:13]current date 1727000594 [10:23:13]FM_GetShiftState [10:23:13]SAM_PROTO_GetShiftState [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 13 01 00 [10:23:13]Write to MH i2c: E2 08 00 48 04 80 13 01 00 00 00 00 00 C9 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 0E 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 0E 00 48 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 44 [10:23:13]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:23:13]wFMCommunicate OK [10:23:13]SAM_PROTO_GetShiftState done [10:23:13]FM_GetShiftState done [10:23:13]opened in 1726964408 [10:23:13]opened+sec_in_day 1727050808 [10:23:13]quantity*price = 11500 [10:23:13]sum+1 = 11501 [10:23:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46003553 Nestle NUTS батончик 30х50г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 33 22.09.2024 10:23 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22118 ФПД: 181379873704462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102314&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22118&fm=181379873704462&tin=02508201610067®Number=0000000000146243&sum=19000 0 [10:23:14]StoreToDocumentArchive [10:23:14]shift 228 fd 22118 [10:23:14]save to /storage/0228/doc_00022118 [10:23:14]save last doc name /storage/0228/doc_00022118 to /storage/kkm_last_doc_name [10:23:14]save OK [10:23:14]Clear old archive folders... [10:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=384 [10:23:14]tlvbuf is 0020A030 [10:23:14]SAM_PROTO_ClearQueue [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 09 00 00 [10:23:14]Write to MH i2c: E2 08 00 55 04 80 09 00 00 00 00 00 00 CB [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [10:23:14]RAPDU: 90 00 [10:23:14]wFMCommunicate OK [10:23:14]SAM_PROTO_ClearQueue done [10:23:14]KKMCreateOFDPacket [10:23:14]OFDProtocolAddRootSTLVToBuf [10:23:14]FM_MakeSignedData [10:23:14]FM_MakeSignedData [10:23:14]SAM_PROTO_SignData [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 0D 01 02 [10:23:14]Write to MH i2c: E2 08 00 56 04 80 0D 01 02 00 00 00 00 D3 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 56 04 00 90 00 CE [10:23:14]RAPDU: 90 00 [10:23:14]wFMCommunicate OK [10:23:14]wFMCommunicate request_size=255 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [10:23:14]Write to MH i2c: E2 02 01 57 04 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 3D [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 03 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 03 00 57 04 00 90 00 CF [10:23:15]RAPDU: 90 00 [10:23:15]wFMCommunicate OK [10:23:15]wFMCommunicate request_size=143 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 0D 02 02 8A 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 21 00 00 00 F4 03 04 00 12 F0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 66 56 00 00 35 04 06 00 A4 F6 CA F1 0A 0E [10:23:15]Write to MH i2c: E2 92 00 58 04 80 0D 02 02 8A 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 21 00 00 00 F4 03 04 00 12 F0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 66 56 00 00 35 04 06 00 A4 F6 CA F1 0A 0E 00 00 B0 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 03 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [10:23:15]RAPDU: 90 00 [10:23:15]wFMCommunicate OK [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 0D 03 02 [10:23:15]Write to MH i2c: E2 08 00 59 04 80 0D 03 02 00 00 00 00 D8 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 0B 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 0B 00 59 04 00 DD 01 5B E6 F2 1B 1C 51 90 00 72 [10:23:15]RAPDU: DD 01 5B E6 F2 1B 1C 51 90 00 [10:23:15]wFMCommunicate OK [10:23:15]SAM_PROTO_SignData done [10:23:15]FM_MakeSignedData done [10:23:15]CreateOFDProtocolMessage [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 11 00 00 [10:23:15]Write to MH i2c: E2 08 00 5A 04 80 11 00 00 00 00 00 00 D8 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 17 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 17 00 5A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 32 [10:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:23:15]wFMCommunicate OK [10:23:15]CreateOFDProtocolMessage done [10:23:15]OFDSenderStorePacket 22118 [10:23:15]StoreOFDPacket docnum=22118 [10:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 94 01 00 00 88 D2 8C 01 2B EE 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 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 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 21 00 00 00 F4 03 04 00 12 F0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 66 56 00 00 35 04 06 00 A4 F6 CA F1 0A 0E DD 01 5B E6 F2 1B 1C 51 [10:23:15]CheckFolder [10:23:15]dirname=/storage/ofd_packets [10:23:15]CheckFolder done [10:23:15]ProducePacketName [10:23:15]name=ofd_packets/00022118 [10:23:15]NVStorageSaveData ofd_packets/00022118 [10:23:15]File name is /storage/ofd_packets/00022118 [10:23:15]Write 434 bytes [10:23:15]NVStorageSaveData done [10:23:15]OFDSenderStorePacket done [10:23:15]KKMCreateOFDPacket done [10:23:15]NVStorageSaveData kkm_last_timestamp [10:23:15]File name is /storage/kkm_last_timestamp [10:23:15]Write 4 bytes [10:23:15]NVStorageSaveData done [10:23:15]ExternCall_PrintAddStr [10:23:15]wPrintStart [10:23:15]Write to MH i2c: 01 00 00 5B 04 5F [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 07 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [10:23:15]RasterBufferAndPrint [10:23:15]line Счет N : (3)51387 [10:23:15]line ИНН: 02508201610067 [10:23:15]line Контрольно-Кассовый Чек [10:23:15]line ПРОДАЖА [10:23:15]line Товар: 2000036210013 [10:23:15]line Кофе Капучино (GABB TRADE) [10:23:15]line 1.000 * 115.00 [10:23:15]line = 115.00 [10:23:15]line НДС 12% НСП 1% [10:23:15]line > о реализуемом товаре [10:23:15]line Товар: 46003553 [10:23:15]line Nestle NUTS батончик 30х50г [10:23:15]line 1.000 * 75.00 [10:23:15]line = 75.00 [10:23:15]line НДС 12% НСП 1% [10:23:15]line > о реализуемом товаре [10:23:15]line ИТОГО: 190.00 [10:23:15]line НСП 1% : 1.68 [10:23:15]line НДС 12% : 20.17 [10:23:15]line Наличными: 190.00 [10:23:15]line Безнал.: 0.00 [10:23:15]line Место: АЗС № 88 "Партнер Нефть" [10:23:15]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [10:23:15]line СНО: Общий режим [10:23:15]line Чек 33 22.09.2024 10:23 [10:23:15]line Смена: 228 ФФД: 1.0 [10:23:15]line ЗНМ: 0300000061 [10:23:15]line РНМ: 0000000000146243 [10:23:15]line Версия ККМ: v1.0 [10:23:15]line ФМ: 0000000000959358 [10:23:15]line ФД: 22118 [10:23:15]line ФПД: 181379873704462 [10:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T102314&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22118&fm=181379873704462&tin=02508201610067®Number=0000000000146243&sum=19000 [10:23:15]OFD Sender: Processing packet 22118 [packets to send 23, broken 22] [10:23:15]ProducePacketName [10:23:15]name=ofd_packets/00022118 [10:23:15]OFD Sender: To server: pG, [10:23:15]CommunicateWithHost lk.salyk.kg:30040 [10:23:15]ConnectInit lk.salyk.kg [10:23:15]line 0 [10:23:15]written 0, free lines is 4095 [10:23:15]Connected sock=10 [10:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 94 01 00 00 88 D2 8C 01 2B EE 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 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 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 21 00 00 00 F4 03 04 00 12 F0 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 66 56 00 00 35 04 06 00 A4 F6 CA F1 0A 0E DD 01 5B E6 F2 1B 1C 51 [10:23:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 52 F9 47 00 3B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 66 56 00 00 F4 03 04 00 3E 9A EF 66 B6 04 01 00 00 3D E8 9A E4 21 AA B1 70 [10:23:16]CommunicateWithHost err = 0 [10:23:16]CheckOFDResponse [10:23:16]1017 (14) - 77093643461234 [10:23:16]1041 (16) - 0000000000959358 [10:23:16]1040 (4) - 22118 [10:23:16]1012 (4) - 22.09.2024 04:17 [10:23:16]1206 (1) - 0 [10:23:16]OFD Sender: Remove packet 22118 [10:23:16]ProducePacketName [10:23:16]name=ofd_packets/00022118 [10:23:16]NVStorageDeleteData [10:23:16]Write to MH i2c: 01 00 00 89 04 8D [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: 01 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: 01 07 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 D2 0C 72 [10:23:16]RasterBufferAndPrint [10:23:16]line [10:23:16]line [10:23:16]line [10:23:16]line [10:23:16]line [10:23:16]written 0, free lines is 3292 [10:23:16]MH_Cut [10:23:16]Write to MH i2c: D1 01 00 90 04 01 66 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: D1 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: D1 01 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: D1 01 00 90 04 00 65 [10:23:16]Write to MH i2c: 01 00 00 91 04 95 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]OFD Sender: No OFD packet to send [10:23:16]*** Cut start [10:23:16]*** Partial cut [10:23:16]*** CUTSNS_PIN = 1 [10:23:16]*** CUTSNS_PIN = 0 [10:23:17]*** Brake cut motor [10:23:17]Read from MH i2c: 01 [10:23:17]MH_I2C_Read... [10:23:17]*** Stop cut motor [10:23:17]*** Cut end [10:23:17]Read from MH i2c: 01 07 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 FF 0F AA [10:23:17]process_action close_receipt done [10:23:17]requested_data is exist [10:23:17]produce_requested_data [10:23:17]requested_item fm.sn is exist - process it [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 11 00 00 [10:23:17]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 17 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6A [10:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:23:17]wFMCommunicate OK [10:23:17]requested_item fd.num is exist - process it [10:23:17]SAM_PROTO_GetFieldsCounters [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 13 00 00 [10:23:17]Write to MH i2c: E2 08 00 93 04 80 13 00 00 00 00 00 00 13 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 62 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 62 00 93 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 66 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [10:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 66 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:17]wFMCommunicate OK [10:23:17]SAM_PROTO_GetFieldsCounters done [10:23:17]requested_item shift.num is exist - process it [10:23:17]requested_item shift.opened is exist - process it [10:23:17]req_shift_opened [10:23:17]FM_GetShiftState [10:23:17]SAM_PROTO_GetShiftState [10:23:17]wFMCommunicate request_size=4 [10:23:17]MH_SAM_APDU [10:23:17]CAPDU: 80 13 01 00 [10:23:17]Write to MH i2c: E2 08 00 94 04 80 13 01 00 00 00 00 00 15 [10:23:17]Write i2c OK [10:23:17]MH_I2C_Read... [10:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:17]Read from MH i2c: E2 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 0E 00 [10:23:17]MH_I2C_Read... [10:23:17]Read from MH i2c: E2 0E 00 94 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 90 [10:23:17]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:23:17]wFMCommunicate OK [10:23:17]SAM_PROTO_GetShiftState done [10:23:17]FM_GetShiftState done [10:23:17]req_shift_opened done [10:23:17]requested_item shift.open_date is exist - process it [10:23:17]req_shift_open_date [10:23:17]req_shift_open_date done [10:23:17]produce_requested_data done [10:23:17]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22118,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [10:23:17]process_action_free close_receipt [10:23:17]json_value_free [10:23:17]json_value_free done [10:23:17]process_json_proto returns [10:23:17]Send response to host [10:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22118,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [10:23:17]free response buf [10:23:17]execute_script done [10:23:17]execute_script returns [10:23:17]free content buf [10:23:17]Sock 9.Close socket [10:23:17]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:52]accept exits with 7 [10:32:52]New connection [10:32:52]New thread 3067039076 created [10:32:52]Thread 3067182436 joined [10:32:52]Waiting for new connection... [10:32:52] Sock 7.Parse request [10:32:52]Sock 7.Check first char [10:32:52]Sock 7.First char is OK [10:32:52]request: POST /json_proto HTTP/1.0 [10:32:52]Method: POST [10:32:52]URL: /json_proto [10:32:52]Method is POST - this is cgi request [10:32:52]url: /json_proto [10:32:52]query_string will be loaded in cgi processing [10:32:52]execute_cgi json_proto POST (null) [10:32:52]execute_cgi path=json_proto method=POST [10:32:52]POST find Content-Length [10:32:52]Host: 172.17.43.4:8080 [10:32:52]Content-Length: 1095 [10:32:52]Content-Type: application/json [10:32:52] [10:32:52]POST finish read [10:32:52]Found Content-Length = 1095 [10:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51388", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:52]execute_script... [10:32: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)51388", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 670.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:52]POST & json_proto [10:32:52]process_json_proto [10:32:52]json parsed OK: [10:32:52]protocol is kg_v1.0 [10:32:52]action value=close_receipt [10:32:52]process_action close_receipt [10:32:52]cmd_close_receipt [10:32:52]MH_GetDate [10:32:52]Write to MH i2c: F0 00 00 95 04 88 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: F0 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: F0 09 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: F0 09 00 95 04 00 55 F2 EF 66 02 BF CF 66 23 [10:32:52]GetLastDocTimeStamp 1727000594 [10:32:52]current date 1727001173 [10:32:52]FM_GetShiftState [10:32:52]SAM_PROTO_GetShiftState [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 13 01 00 [10:32:52]Write to MH i2c: E2 08 00 96 04 80 13 01 00 00 00 00 00 17 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0E 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0E 00 96 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 92 [10:32:52]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:32:52]wFMCommunicate OK [10:32:52]SAM_PROTO_GetShiftState done [10:32:52]FM_GetShiftState done [10:32:52]opened in 1726964408 [10:32:52]opened+sec_in_day 1727050808 [10:32:52]quantity*price = 26000 [10:32:52]sum+1 = 26001 [10:32:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 670.00 НСП 1% : 5.92 НДС 12% : 71.15 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 34 22.09.2024 10:32 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22119 ФПД: 57819893870038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103253&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22119&fm=57819893870038&tin=02508201610067®Number=0000000000146243&sum=67000 0 [10:32:53]StoreToDocumentArchive [10:32:53]shift 228 fd 22119 [10:32:53]save to /storage/0228/doc_00022119 [10:32:53]save last doc name /storage/0228/doc_00022119 to /storage/kkm_last_doc_name [10:32:53]save OK [10:32:53]Clear old archive folders... [10:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=476 [10:32:53]tlvbuf is 0022B310 [10:32:53]SAM_PROTO_ClearQueue [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 09 00 00 [10:32:53]Write to MH i2c: E2 08 00 A3 04 80 09 00 00 00 00 00 00 19 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 A3 04 00 90 00 1B [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]SAM_PROTO_ClearQueue done [10:32:53]KKMCreateOFDPacket [10:32:53]OFDProtocolAddRootSTLVToBuf [10:32:53]FM_MakeSignedData [10:32:53]FM_MakeSignedData [10:32:53]SAM_PROTO_SignData [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 01 02 [10:32:53]Write to MH i2c: E2 08 00 A4 04 80 0D 01 02 00 00 00 00 21 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 A4 04 00 90 00 1C [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]wFMCommunicate request_size=255 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 [10:32:54]Write to MH i2c: E2 02 01 A5 04 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 00 00 31 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 A5 04 00 90 00 1D [10:32:54]RAPDU: 90 00 [10:32:54]wFMCommunicate OK [10:32:54]wFMCommunicate request_size=235 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 0D 02 02 E6 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 F2 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 67 56 00 00 35 04 06 00 34 96 3E 3C 2D D6 [10:32:54]Write to MH i2c: E2 EE 00 A6 04 80 0D 02 02 E6 00 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 F2 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 67 56 00 00 35 04 06 00 34 96 3E 3C 2D D6 00 00 57 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 A6 04 00 90 00 1E [10:32:54]RAPDU: 90 00 [10:32:54]wFMCommunicate OK [10:32:54]wFMCommunicate request_size=4 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 0D 03 02 [10:32:54]Write to MH i2c: E2 08 00 A7 04 80 0D 03 02 00 00 00 00 26 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 0B 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 0B 00 A7 04 00 62 C3 76 12 3F 52 3F 9E 90 00 42 [10:32:54]RAPDU: 62 C3 76 12 3F 52 3F 9E 90 00 [10:32:54]wFMCommunicate OK [10:32:54]SAM_PROTO_SignData done [10:32:54]FM_MakeSignedData done [10:32:54]CreateOFDProtocolMessage [10:32:54]wFMCommunicate request_size=4 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 11 00 00 [10:32:54]Write to MH i2c: E2 08 00 A8 04 80 11 00 00 00 00 00 00 26 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 17 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 17 00 A8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 80 [10:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:32:54]wFMCommunicate OK [10:32:54]CreateOFDProtocolMessage done [10:32:54]OFDSenderStorePacket 22119 [10:32:54]StoreOFDPacket docnum=22119 [10:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 F0 01 00 00 3E 8E E8 01 94 2D 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 F2 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 67 56 00 00 35 04 06 00 34 96 3E 3C 2D D6 62 C3 76 12 3F 52 3F 9E [10:32:54]CheckFolder [10:32:54]dirname=/storage/ofd_packets [10:32:54]CheckFolder done [10:32:54]ProducePacketName [10:32:54]name=ofd_packets/00022119 [10:32:54]NVStorageSaveData ofd_packets/00022119 [10:32:54]File name is /storage/ofd_packets/00022119 [10:32:54]Write 526 bytes [10:32:54]NVStorageSaveData done [10:32:54]OFDSenderStorePacket done [10:32:54]KKMCreateOFDPacket done [10:32:54]NVStorageSaveData kkm_last_timestamp [10:32:54]File name is /storage/kkm_last_timestamp [10:32:54]Write 4 bytes [10:32:54]NVStorageSaveData done [10:32:54]ExternCall_PrintAddStr [10:32:54]wPrintStart [10:32:54]Write to MH i2c: 01 00 00 A9 04 AD [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 A9 04 00 00 00 00 00 FF 0F C2 [10:32:54]RasterBufferAndPrint [10:32:54]line Счет N : (3)51388 [10:32:54]line ИНН: 02508201610067 [10:32:54]line Контрольно-Кассовый Чек [10:32:54]line ПРОДАЖА [10:32:54]line Товар: 2000036230011 [10:32:54]line Кофе Латте XL(GABB TRADE) [10:32:54]line 2.000 * 130.00 [10:32:54]line = 260.00 [10:32:54]line НДС 12% НСП 1% [10:32:54]line > о реализуемом товаре [10:32:54]line Товар: 4870001570071 [10:32:54]line Напиток Pepsi 1л [10:32:54]line 1.000 * 110.00 [10:32:54]line = 110.00 [10:32:54]line НДС 12% НСП 1% [10:32:54]line > о реализуемом товаре [10:32:54]line Товар: 4640030091645 [10:32:54]line Сигареты ESSE Exchange M [10:32:54]line 2.000 * 150.00 [10:32:54]line = 300.00 [10:32:54]line НДС 12% НСП 1% [10:32:54]line > о реализуемом товаре [10:32:54]line ИТОГО: 670.00 [10:32:54]line НСП 1% : 5.92 [10:32:54]line НДС 12% : 71.15 [10:32:54]line Наличными: 670.00 [10:32:54]line Безнал.: 0.00 [10:32:54]line Место: АЗС № 88 "Партнер Нефть" [10:32:54]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [10:32:54]line СНО: Общий режим [10:32:54]line Чек 34 22.09.2024 10:32 [10:32:54]line Смена: 228 ФФД: 1.0 [10:32:54]line ЗНМ: 0300000061 [10:32:54]line РНМ: 0000000000146243 [10:32:54]line Версия ККМ: v1.0 [10:32:54]line ФМ: 0000000000959358 [10:32:54]line ФД: 22119 [10:32:54]line ФПД: 57819893870038 [10:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T103253&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22119&fm=57819893870038&tin=02508201610067®Number=0000000000146243&sum=67000 [10:32:54]line 0 [10:32:54]written 0, free lines is 4095 [10:32:54]OFD Sender: Processing packet 22119 [packets to send 23, broken 22] [10:32:54]ProducePacketName [10:32:54]name=ofd_packets/00022119 [10:32:54]OFD Sender: To server: pG, [10:32:54]CommunicateWithHost lk.salyk.kg:30040 [10:32:54]ConnectInit lk.salyk.kg [10:32:54]Connected sock=10 [10:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 F0 01 00 00 3E 8E E8 01 94 2D 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 55 F2 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 67 56 00 00 35 04 06 00 34 96 3E 3C 2D D6 62 C3 76 12 3F 52 3F 9E [10:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 D4 23 47 00 1E F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 67 56 00 00 F4 03 04 00 81 9C EF 66 B6 04 01 00 00 0C 48 A1 D7 77 A3 99 AC [10:32:55]CommunicateWithHost err = 0 [10:32:55]CheckOFDResponse [10:32:55]1017 (14) - 77093643461234 [10:32:55]1041 (16) - 0000000000959358 [10:32:55]1040 (4) - 22119 [10:32:55]1012 (4) - 22.09.2024 04:26 [10:32:55]1206 (1) - 0 [10:32:55]OFD Sender: Remove packet 22119 [10:32:55]ProducePacketName [10:32:55]name=ofd_packets/00022119 [10:32:55]NVStorageDeleteData [10:32:55]Write to MH i2c: 01 00 00 DD 04 E1 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 8D 0C 81 [10:32:55]RasterBufferAndPrint [10:32:55]line [10:32:55]line [10:32:55]line [10:32:55]line [10:32:55]line [10:32:55]written 0, free lines is 3220 [10:32:55]MH_Cut [10:32:55]Write to MH i2c: D1 01 00 E4 04 01 BA [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: D1 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: D1 01 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: D1 01 00 E4 04 00 B9 [10:32:55]Write to MH i2c: 01 00 00 E5 04 E9 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]OFD Sender: No OFD packet to send [10:32:56]*** Cut start [10:32:56]*** Partial cut [10:32:56]*** CUTSNS_PIN = 1 [10:32:56]*** CUTSNS_PIN = 0 [10:32:56]*** Brake cut motor [10:32:56]Read from MH i2c: 01 [10:32:56]MH_I2C_Read... [10:32:56]*** Stop cut motor [10:32:56]*** Cut end [10:32:56]Read from MH i2c: 01 07 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 FF 0F FE [10:32:56]process_action close_receipt done [10:32:56]requested_data is exist [10:32:56]produce_requested_data [10:32:56]requested_item fm.sn is exist - process it [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 11 00 00 [10:32:56]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 17 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 BE [10:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:32:56]wFMCommunicate OK [10:32:56]requested_item fd.num is exist - process it [10:32:56]SAM_PROTO_GetFieldsCounters [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 13 00 00 [10:32:56]Write to MH i2c: E2 08 00 E7 04 80 13 00 00 00 00 00 00 67 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 62 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 62 00 E7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 67 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 67 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetFieldsCounters done [10:32:56]requested_item shift.num is exist - process it [10:32:56]requested_item shift.opened is exist - process it [10:32:56]req_shift_opened [10:32:56]FM_GetShiftState [10:32:56]SAM_PROTO_GetShiftState [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 13 01 00 [10:32:56]Write to MH i2c: E2 08 00 E8 04 80 13 01 00 00 00 00 00 69 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 E8 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 E4 [10:32:56]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetShiftState done [10:32:56]FM_GetShiftState done [10:32:56]req_shift_opened done [10:32:56]requested_item shift.open_date is exist - process it [10:32:56]req_shift_open_date [10:32:56]req_shift_open_date done [10:32:56]produce_requested_data done [10:32:56]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22119,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [10:32:56]process_action_free close_receipt [10:32:56]json_value_free [10:32:56]json_value_free done [10:32:56]process_json_proto returns [10:32:56]Send response to host [10:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22119,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [10:32:56]free response buf [10:32:56]execute_script done [10:32:56]execute_script returns [10:32:56]free content buf [10:32:56]Sock 7.Close socket [10:32:56]Sock 7.Thread stoped [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:33]accept exits with 9 [10:48:33]New connection [10:48:33]New thread 3067182436 created [10:48:33]Thread 3067039076 joined [10:48:33]Waiting for new connection... [10:48:33] Sock 9.Parse request [10:48:33]Sock 9.Check first char [10:48:33]Sock 9.First char is OK [10:48:33]request: POST /json_proto HTTP/1.0 [10:48:33]Method: POST [10:48:33]URL: /json_proto [10:48:33]Method is POST - this is cgi request [10:48:33]url: /json_proto [10:48:33]query_string will be loaded in cgi processing [10:48:33]execute_cgi json_proto POST (null) [10:48:33]execute_cgi path=json_proto method=POST [10:48:33]POST find Content-Length [10:48:33]Host: 172.17.43.4:8080 [10:48:33]Content-Length: 646 [10:48:33]Content-Type: application/json [10:48:33] [10:48:33]POST finish read [10:48:33]Found Content-Length = 646 [10:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51389", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:33]execute_script... [10:48: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)51389", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:33]POST & json_proto [10:48:33]process_json_proto [10:48:33]json parsed OK: [10:48:33]protocol is kg_v1.0 [10:48:33]action value=close_receipt [10:48:33]process_action close_receipt [10:48:33]cmd_close_receipt [10:48:33]MH_GetDate [10:48:33]Write to MH i2c: F0 00 00 E9 04 DC [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: F0 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: F0 09 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: F0 09 00 E9 04 00 02 F6 EF 66 02 BF CF 66 28 [10:48:33]GetLastDocTimeStamp 1727001173 [10:48:33]current date 1727002114 [10:48:33]FM_GetShiftState [10:48:33]SAM_PROTO_GetShiftState [10:48:33]wFMCommunicate request_size=4 [10:48:33]MH_SAM_APDU [10:48:33]CAPDU: 80 13 01 00 [10:48:33]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:33]Read from MH i2c: E2 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: E2 0E 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 E6 [10:48:33]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:48:33]wFMCommunicate OK [10:48:33]SAM_PROTO_GetShiftState done [10:48:33]FM_GetShiftState done [10:48:33]opened in 1726964408 [10:48:33]opened+sec_in_day 1727050808 [10:48:33]quantity*price = 26500 [10:48:33]sum+1 = 26501 [10:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 35 22.09.2024 10:48 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22120 ФПД: 96252272776619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104834&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22120&fm=96252272776619&tin=02508201610067®Number=0000000000146243&sum=26500 0 [10:48:34]StoreToDocumentArchive [10:48:34]shift 228 fd 22120 [10:48:34]save to /storage/0228/doc_00022120 [10:48:34]save last doc name /storage/0228/doc_00022120 to /storage/kkm_last_doc_name [10:48:34]save OK [10:48:34]Clear old archive folders... [10:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:48:34]tlvbuf is 00244760 [10:48:34]SAM_PROTO_ClearQueue [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 09 00 00 [10:48:34]Write to MH i2c: E2 08 00 F7 04 80 09 00 00 00 00 00 00 6D [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [10:48:34]RAPDU: 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_ClearQueue done [10:48:34]KKMCreateOFDPacket [10:48:34]OFDProtocolAddRootSTLVToBuf [10:48:34]FM_MakeSignedData [10:48:34]FM_MakeSignedData [10:48:34]SAM_PROTO_SignData [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 0D 01 02 [10:48:34]Write to MH i2c: E2 08 00 F8 04 80 0D 01 02 00 00 00 00 75 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [10:48:34]RAPDU: 90 00 [10:48:34]wFMCommunicate OK [10:48:34]wFMCommunicate request_size=255 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 02 F6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 [10:48:34]Write to MH i2c: E2 02 01 F9 04 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 02 F6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 00 00 33 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [10:48:34]RAPDU: 90 00 [10:48:34]wFMCommunicate OK [10:48:34]wFMCommunicate request_size=38 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 68 56 00 00 35 04 06 00 57 8A 7A 87 15 AB [10:48:34]Write to MH i2c: E2 29 00 FA 04 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 68 56 00 00 35 04 06 00 57 8A 7A 87 15 AB 00 00 68 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [10:48:34]RAPDU: 90 00 [10:48:34]wFMCommunicate OK [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 0D 03 02 [10:48:34]Write to MH i2c: E2 08 00 FB 04 80 0D 03 02 00 00 00 00 7A [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0B 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0B 00 FB 04 00 0A 06 8F 1B 4F 76 12 EC 90 00 F8 [10:48:34]RAPDU: 0A 06 8F 1B 4F 76 12 EC 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_SignData done [10:48:34]FM_MakeSignedData done [10:48:34]CreateOFDProtocolMessage [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 11 00 00 [10:48:34]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 17 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D4 [10:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:48:34]wFMCommunicate OK [10:48:34]CreateOFDProtocolMessage done [10:48:34]OFDSenderStorePacket 22120 [10:48:34]StoreOFDPacket docnum=22120 [10:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2B 01 00 00 CB AC 23 01 F9 82 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 02 F6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 68 56 00 00 35 04 06 00 57 8A 7A 87 15 AB 0A 06 8F 1B 4F 76 12 EC [10:48:34]CheckFolder [10:48:34]dirname=/storage/ofd_packets [10:48:34]CheckFolder done [10:48:34]ProducePacketName [10:48:34]name=ofd_packets/00022120 [10:48:34]NVStorageSaveData ofd_packets/00022120 [10:48:34]File name is /storage/ofd_packets/00022120 [10:48:34]Write 329 bytes [10:48:34]NVStorageSaveData done [10:48:34]OFDSenderStorePacket done [10:48:34]KKMCreateOFDPacket done [10:48:34]NVStorageSaveData kkm_last_timestamp [10:48:34]File name is /storage/kkm_last_timestamp [10:48:34]Write 4 bytes [10:48:34]NVStorageSaveData done [10:48:34]ExternCall_PrintAddStr [10:48:34]wPrintStart [10:48:34]Write to MH i2c: 01 00 00 FD 04 01 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: 01 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: 01 07 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [10:48:34]RasterBufferAndPrint [10:48:34]line Счет N : (3)51389 [10:48:34]line ИНН: 02508201610067 [10:48:34]line Контрольно-Кассовый Чек [10:48:34]line ПРОДАЖА [10:48:34]line Товар: 90448300 [10:48:34]line Энерг напиток Red Bull 0,355л [10:48:34]line 1.000 * 265.00 [10:48:34]line = 265.00 [10:48:34]line НДС 12% НСП 1% [10:48:34]line > о реализуемом товаре [10:48:34]line ИТОГО: 265.00 [10:48:34]line НСП 1% : 2.34 [10:48:34]line НДС 12% : 28.14 [10:48:34]line Наличными: 265.00 [10:48:34]line Безнал.: 0.00 [10:48:34]line Место: АЗС № 88 "Партнер Нефть" [10:48:34]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [10:48:34]line СНО: Общий режим [10:48:34]line Чек 35 22.09.2024 10:48 [10:48:34]line Смена: 228 ФФД: 1.0 [10:48:34]line ЗНМ: 0300000061 [10:48:34]line РНМ: 0000000000146243 [10:48:34]line Версия ККМ: v1.0 [10:48:34]line ФМ: 0000000000959358 [10:48:34]line ФД: 22120 [10:48:34]line ФПД: 96252272776619 [10:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T104834&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22120&fm=96252272776619&tin=02508201610067®Number=0000000000146243&sum=26500 [10:48:35]line 0 [10:48:35]OFD Sender: Processing packet 22120 [packets to send 23, broken 22] [10:48:35]ProducePacketName [10:48:35]name=ofd_packets/00022120 [10:48:35]OFD Sender: To server: pG, [10:48:35]CommunicateWithHost lk.salyk.kg:30040 [10:48:35]ConnectInit lk.salyk.kg [10:48:35]written 0, free lines is 4095 [10:48:35]Connected sock=10 [10:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2B 01 00 00 CB AC 23 01 F9 82 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 02 F6 EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 68 56 00 00 35 04 06 00 57 8A 7A 87 15 AB 0A 06 8F 1B 4F 76 12 EC [10:48:35]Write to MH i2c: 01 00 00 25 05 2A [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: 01 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: 01 07 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: 01 07 00 25 05 00 00 00 00 00 1F 0D 5D [10:48:35]RasterBufferAndPrint [10:48:35]line [10:48:35]line [10:48:35]line [10:48:35]line [10:48:35]line [10:48:35]written 0, free lines is 3365 [10:48:35]MH_Cut [10:48:35]Write to MH i2c: D1 01 00 2C 05 01 03 [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: D1 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: D1 01 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: D1 01 00 2C 05 00 02 [10:48:35]Write to MH i2c: 01 00 00 2D 05 32 [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 19 ED 47 00 DD 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 68 56 00 00 F4 03 04 00 2E A0 EF 66 B6 04 01 00 00 EF 70 6A CC 24 DA B5 18 [10:48:35]CommunicateWithHost err = 0 [10:48:35]CheckOFDResponse [10:48:35]1017 (14) - 77093643461234 [10:48:35]1041 (16) - 0000000000959358 [10:48:35]1040 (4) - 22120 [10:48:35]1012 (4) - 22.09.2024 04:42 [10:48:35]1206 (1) - 0 [10:48:35]OFD Sender: Remove packet 22120 [10:48:35]ProducePacketName [10:48:35]name=ofd_packets/00022120 [10:48:35]NVStorageDeleteData [10:48:36]OFD Sender: No OFD packet to send [10:48:36]*** Cut start [10:48:36]*** Partial cut [10:48:36]*** CUTSNS_PIN = 1 [10:48:36]*** CUTSNS_PIN = 0 [10:48:36]*** Brake cut motor [10:48:36]Read from MH i2c: 01 [10:48:36]MH_I2C_Read... [10:48:36]*** Stop cut motor [10:48:36]*** Cut end [10:48:36]Read from MH i2c: 01 07 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 FF 0F 47 [10:48:36]process_action close_receipt done [10:48:36]requested_data is exist [10:48:36]produce_requested_data [10:48:36]requested_item fm.sn is exist - process it [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 11 00 00 [10:48:36]Write to MH i2c: E2 08 00 2E 05 80 11 00 00 00 00 00 00 AD [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 17 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 17 00 2E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 07 [10:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [10:48:36]wFMCommunicate OK [10:48:36]requested_item fd.num is exist - process it [10:48:36]SAM_PROTO_GetFieldsCounters [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 13 00 00 [10:48:36]Write to MH i2c: E2 08 00 2F 05 80 13 00 00 00 00 00 00 B0 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 62 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 62 00 2F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 68 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 68 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:37]wFMCommunicate OK [10:48:37]SAM_PROTO_GetFieldsCounters done [10:48:37]requested_item shift.num is exist - process it [10:48:37]requested_item shift.opened is exist - process it [10:48:37]req_shift_opened [10:48:37]FM_GetShiftState [10:48:37]SAM_PROTO_GetShiftState [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 13 01 00 [10:48:37]Write to MH i2c: E2 08 00 30 05 80 13 01 00 00 00 00 00 B2 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 0E 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 0E 00 30 05 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2D [10:48:37]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [10:48:37]wFMCommunicate OK [10:48:37]SAM_PROTO_GetShiftState done [10:48:37]FM_GetShiftState done [10:48:37]req_shift_opened done [10:48:37]requested_item shift.open_date is exist - process it [10:48:37]req_shift_open_date [10:48:37]req_shift_open_date done [10:48:37]produce_requested_data done [10:48:37]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22120,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [10:48:37]process_action_free close_receipt [10:48:37]json_value_free [10:48:37]json_value_free done [10:48:37]process_json_proto returns [10:48:37]Send response to host [10:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22120,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [10:48:37]free response buf [10:48:37]execute_script done [10:48:37]execute_script returns [10:48:37]free content buf [10:48:37]Sock 9.Close socket [10:48:37]Sock 9.Thread stoped [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]accept exits with 7 [11:20:47]New connection [11:20:47]New thread 3067039076 created [11:20:47]Thread 3067182436 joined [11:20:47]Waiting for new connection... [11:20:47] Sock 7.Parse request [11:20:47]Sock 7.Check first char [11:20:47]Sock 7.First char is OK [11:20:47]request: POST /json_proto HTTP/1.0 [11:20:47]Method: POST [11:20:47]URL: /json_proto [11:20:47]Method is POST - this is cgi request [11:20:47]url: /json_proto [11:20:47]query_string will be loaded in cgi processing [11:20:47]execute_cgi json_proto POST (null) [11:20:47]execute_cgi path=json_proto method=POST [11:20:47]POST find Content-Length [11:20:47]Host: 172.17.43.4:8080 [11:20:47]Content-Length: 887 [11:20:47]Content-Type: application/json [11:20:47] [11:20:47]POST finish read [11:20:47]Found Content-Length = 887 [11:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51390", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:47]execute_script... [11:20:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51390", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 360.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:47]POST & json_proto [11:20:47]process_json_proto [11:20:47]json parsed OK: [11:20:47]protocol is kg_v1.0 [11:20:47]action value=close_receipt [11:20:47]process_action close_receipt [11:20:47]cmd_close_receipt [11:20:47]MH_GetDate [11:20:47]Write to MH i2c: F0 00 00 31 05 25 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: F0 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: F0 09 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: F0 09 00 31 05 00 90 FD EF 66 02 BF CF 66 06 [11:20:47]GetLastDocTimeStamp 1727002114 [11:20:47]current date 1727004048 [11:20:47]FM_GetShiftState [11:20:47]SAM_PROTO_GetShiftState [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 13 01 00 [11:20:47]Write to MH i2c: E2 08 00 32 05 80 13 01 00 00 00 00 00 B4 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 0E 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 0E 00 32 05 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2F [11:20:47]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:20:47]wFMCommunicate OK [11:20:47]SAM_PROTO_GetShiftState done [11:20:47]FM_GetShiftState done [11:20:47]opened in 1726964408 [11:20:47]opened+sec_in_day 1727050808 [11:20:47]quantity*price = 23000 [11:20:47]sum+1 = 23001 [11:20:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 360.00 НСП 1% : 3.18 НДС 12% : 38.22 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 36 22.09.2024 11:20 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22121 ФПД: 129470491120801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112048&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22121&fm=129470491120801&tin=02508201610067®Number=0000000000146243&sum=36000 0 [11:20:48]StoreToDocumentArchive [11:20:48]shift 228 fd 22121 [11:20:48]save to /storage/0228/doc_00022121 [11:20:48]save last doc name /storage/0228/doc_00022121 to /storage/kkm_last_doc_name [11:20:48]save OK [11:20:48]Clear old archive folders... [11:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=386 [11:20:48]tlvbuf is 00210980 [11:20:48]SAM_PROTO_ClearQueue [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 09 00 00 [11:20:48]Write to MH i2c: E2 08 00 3F 05 80 09 00 00 00 00 00 00 B6 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 3F 05 00 90 00 B8 [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]SAM_PROTO_ClearQueue done [11:20:48]KKMCreateOFDPacket [11:20:48]OFDProtocolAddRootSTLVToBuf [11:20:48]FM_MakeSignedData [11:20:48]FM_MakeSignedData [11:20:48]SAM_PROTO_SignData [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 01 02 [11:20:48]Write to MH i2c: E2 08 00 40 05 80 0D 01 02 00 00 00 00 BE [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=255 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [11:20:48]Write to MH i2c: E2 02 01 41 05 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 0B [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 41 05 00 90 00 BA [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=145 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 02 02 8C 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 FD EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 69 56 00 00 35 04 06 00 75 C0 B2 A1 D4 A1 [11:20:48]Write to MH i2c: E2 94 00 42 05 80 0D 02 02 8C 00 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 FD EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 69 56 00 00 35 04 06 00 75 C0 B2 A1 D4 A1 00 00 1B [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 42 05 00 90 00 BB [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 03 02 [11:20:48]Write to MH i2c: E2 08 00 43 05 80 0D 03 02 00 00 00 00 C3 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 0B 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 0B 00 43 05 00 10 33 5F 2F 41 23 36 17 90 00 46 [11:20:49]RAPDU: 10 33 5F 2F 41 23 36 17 90 00 [11:20:49]wFMCommunicate OK [11:20:49]SAM_PROTO_SignData done [11:20:49]FM_MakeSignedData done [11:20:49]CreateOFDProtocolMessage [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 11 00 00 [11:20:49]Write to MH i2c: E2 08 00 44 05 80 11 00 00 00 00 00 00 C3 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 17 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 17 00 44 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1D [11:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:20:49]wFMCommunicate OK [11:20:49]CreateOFDProtocolMessage done [11:20:49]OFDSenderStorePacket 22121 [11:20:49]StoreOFDPacket docnum=22121 [11:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 96 01 00 00 F5 91 8E 01 BD 64 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 FD EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 69 56 00 00 35 04 06 00 75 C0 B2 A1 D4 A1 10 33 5F 2F 41 23 36 17 [11:20:49]CheckFolder [11:20:49]dirname=/storage/ofd_packets [11:20:49]CheckFolder done [11:20:49]ProducePacketName [11:20:49]name=ofd_packets/00022121 [11:20:49]NVStorageSaveData ofd_packets/00022121 [11:20:49]File name is /storage/ofd_packets/00022121 [11:20:49]Write 436 bytes [11:20:49]NVStorageSaveData done [11:20:49]OFDSenderStorePacket done [11:20:49]KKMCreateOFDPacket done [11:20:49]NVStorageSaveData kkm_last_timestamp [11:20:49]File name is /storage/kkm_last_timestamp [11:20:49]Write 4 bytes [11:20:49]NVStorageSaveData done [11:20:49]ExternCall_PrintAddStr [11:20:49]wPrintStart [11:20:49]Write to MH i2c: 01 00 00 45 05 4A [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [11:20:49]RasterBufferAndPrint [11:20:49]line Счет N : (3)51390 [11:20:49]line ИНН: 02508201610067 [11:20:49]line Контрольно-Кассовый Чек [11:20:49]line ПРОДАЖА [11:20:49]line Товар: 2000036210013 [11:20:49]line Кофе Капучино (GABB TRADE) [11:20:49]line 2.000 * 115.00 [11:20:49]line = 230.00 [11:20:49]line НДС 12% НСП 1% [11:20:49]line > о реализуемом товаре [11:20:49]line Товар: 2000036230011 [11:20:49]line Кофе Латте XL(GABB TRADE) [11:20:49]line 1.000 * 130.00 [11:20:49]line = 130.00 [11:20:49]line НДС 12% НСП 1% [11:20:49]line > о реализуемом товаре [11:20:49]line ИТОГО: 360.00 [11:20:49]line НСП 1% : 3.18 [11:20:49]line НДС 12% : 38.22 [11:20:49]line Наличными: 360.00 [11:20:49]line Безнал.: 0.00 [11:20:49]line Место: АЗС № 88 "Партнер Нефть" [11:20:49]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [11:20:49]line СНО: Общий режим [11:20:49]line Чек 36 22.09.2024 11:20 [11:20:49]line Смена: 228 ФФД: 1.0 [11:20:49]line ЗНМ: 0300000061 [11:20:49]line РНМ: 0000000000146243 [11:20:49]line Версия ККМ: v1.0 [11:20:49]line ФМ: 0000000000959358 [11:20:49]line ФД: 22121 [11:20:49]line ФПД: 129470491120801 [11:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112048&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22121&fm=129470491120801&tin=02508201610067®Number=0000000000146243&sum=36000 [11:20:49]OFD Sender: Processing packet 22121 [packets to send 23, broken 22] [11:20:49]ProducePacketName [11:20:49]name=ofd_packets/00022121 [11:20:49]OFD Sender: To server: pG, [11:20:49]CommunicateWithHost lk.salyk.kg:30040 [11:20:49]ConnectInit lk.salyk.kg [11:20:49]line 0 [11:20:49]written 0, free lines is 4095 [11:20:49]Connected sock=10 [11:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 96 01 00 00 F5 91 8E 01 BD 64 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 FD EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 69 56 00 00 35 04 06 00 75 C0 B2 A1 D4 A1 10 33 5F 2F 41 23 36 17 [11:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 5D 22 47 00 5F 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 39 35 39 33 35 38 10 04 04 00 69 56 00 00 F4 03 04 00 BC A7 EF 66 B6 04 01 00 00 90 97 BD 57 2A BE 5B F7 [11:20:49]CommunicateWithHost err = 0 [11:20:49]CheckOFDResponse [11:20:49]1017 (14) - 77093643461234 [11:20:49]1041 (16) - 0000000000959358 [11:20:49]1040 (4) - 22121 [11:20:49]1012 (4) - 22.09.2024 05:14 [11:20:49]1206 (1) - 0 [11:20:49]OFD Sender: Remove packet 22121 [11:20:49]ProducePacketName [11:20:49]name=ofd_packets/00022121 [11:20:49]NVStorageDeleteData [11:20:49]Write to MH i2c: 01 00 00 73 05 78 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 E3 0C 6E [11:20:49]RasterBufferAndPrint [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]written 0, free lines is 3305 [11:20:49]MH_Cut [11:20:49]Write to MH i2c: D1 01 00 7A 05 01 51 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: D1 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: D1 01 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: D1 01 00 7A 05 00 50 [11:20:49]Write to MH i2c: 01 00 00 7B 05 80 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:50]OFD Sender: No OFD packet to send [11:20:50]*** Cut start [11:20:50]*** Partial cut [11:20:50]*** CUTSNS_PIN = 1 [11:20:50]*** CUTSNS_PIN = 0 [11:20:50]*** Brake cut motor [11:20:51]Read from MH i2c: 01 [11:20:51]MH_I2C_Read... [11:20:51]*** Stop cut motor [11:20:51]*** Cut end [11:20:51]Read from MH i2c: 01 07 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 7B 05 00 00 00 00 00 FF 0F 95 [11:20:51]process_action close_receipt done [11:20:51]requested_data is exist [11:20:51]produce_requested_data [11:20:51]requested_item fm.sn is exist - process it [11:20:51]wFMCommunicate request_size=4 [11:20:51]MH_SAM_APDU [11:20:51]CAPDU: 80 11 00 00 [11:20:51]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:51]Read from MH i2c: E2 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: E2 17 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 55 [11:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:20:51]wFMCommunicate OK [11:20:51]requested_item fd.num is exist - process it [11:20:51]SAM_PROTO_GetFieldsCounters [11:20:51]wFMCommunicate request_size=4 [11:20:51]MH_SAM_APDU [11:20:51]CAPDU: 80 13 00 00 [11:20:51]Write to MH i2c: E2 08 00 7D 05 80 13 00 00 00 00 00 00 FE [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:51]Read from MH i2c: E2 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: E2 62 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: E2 62 00 7D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 69 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:20:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 69 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:51]wFMCommunicate OK [11:20:51]SAM_PROTO_GetFieldsCounters done [11:20:51]requested_item shift.num is exist - process it [11:20:51]requested_item shift.opened is exist - process it [11:20:51]req_shift_opened [11:20:51]FM_GetShiftState [11:20:51]SAM_PROTO_GetShiftState [11:20:51]wFMCommunicate request_size=4 [11:20:51]MH_SAM_APDU [11:20:51]CAPDU: 80 13 01 00 [11:20:51]Write to MH i2c: E2 08 00 7E 05 80 13 01 00 00 00 00 00 00 [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:51]Read from MH i2c: E2 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: E2 0E 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: E2 0E 00 7E 05 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 7B [11:20:51]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:20:51]wFMCommunicate OK [11:20:51]SAM_PROTO_GetShiftState done [11:20:51]FM_GetShiftState done [11:20:51]req_shift_opened done [11:20:51]requested_item shift.open_date is exist - process it [11:20:51]req_shift_open_date [11:20:51]req_shift_open_date done [11:20:51]produce_requested_data done [11:20:51]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22121,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [11:20:51]process_action_free close_receipt [11:20:51]json_value_free [11:20:51]json_value_free done [11:20:51]process_json_proto returns [11:20:51]Send response to host [11:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22121,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [11:20:51]free response buf [11:20:51]execute_script done [11:20:51]execute_script returns [11:20:51]free content buf [11:20:51]Sock 7.Close socket [11:20:51]Sock 7.Thread stoped [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:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:54]accept exits with 9 [11:26:54]New connection [11:26:54]New thread 3067182436 created [11:26:54]Thread 3067039076 joined [11:26:54]Waiting for new connection... [11:26:54] Sock 9.Parse request [11:26:54]Sock 9.Check first char [11:26:54]Sock 9.First char is OK [11:26:54]request: POST /json_proto HTTP/1.0 [11:26:54]Method: POST [11:26:54]URL: /json_proto [11:26:54]Method is POST - this is cgi request [11:26:54]url: /json_proto [11:26:54]query_string will be loaded in cgi processing [11:26:54]execute_cgi json_proto POST (null) [11:26:54]execute_cgi path=json_proto method=POST [11:26:54]POST find Content-Length [11:26:54]Host: 172.17.43.4:8080 [11:26:54]Content-Length: 629 [11:26:54]Content-Type: application/json [11:26:54] [11:26:54]POST finish read [11:26:54]Found Content-Length = 629 [11:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51391", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:54]execute_script... [11:26: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)51391", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:54]POST & json_proto [11:26:54]process_json_proto [11:26:54]json parsed OK: [11:26:54]protocol is kg_v1.0 [11:26:54]action value=close_receipt [11:26:54]process_action close_receipt [11:26:54]cmd_close_receipt [11:26:54]MH_GetDate [11:26:54]Write to MH i2c: F0 00 00 7F 05 73 [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: F0 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: F0 09 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: F0 09 00 7F 05 00 FF FE EF 66 02 BF CF 66 C4 [11:26:54]GetLastDocTimeStamp 1727004048 [11:26:54]current date 1727004415 [11:26:54]FM_GetShiftState [11:26:54]SAM_PROTO_GetShiftState [11:26:54]wFMCommunicate request_size=4 [11:26:54]MH_SAM_APDU [11:26:54]CAPDU: 80 13 01 00 [11:26:54]Write to MH i2c: E2 08 00 80 05 80 13 01 00 00 00 00 00 02 [11:26:54]Write i2c OK [11:26:54]MH_I2C_Read... [11:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:54]Read from MH i2c: E2 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 0E 00 [11:26:54]MH_I2C_Read... [11:26:54]Read from MH i2c: E2 0E 00 80 05 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 7D [11:26:54]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:26:54]wFMCommunicate OK [11:26:54]SAM_PROTO_GetShiftState done [11:26:54]FM_GetShiftState done [11:26:54]opened in 1726964408 [11:26:54]opened+sec_in_day 1727050808 [11:26:54]quantity*price = 5000 [11:26:54]sum+1 = 5001 [11:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 37 22.09.2024 11:26 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22122 ФПД: 238173625343505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112655&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22122&fm=238173625343505&tin=02508201610067®Number=0000000000146243&sum=5000 0 [11:26:55]StoreToDocumentArchive [11:26:55]shift 228 fd 22122 [11:26:55]save to /storage/0228/doc_00022122 [11:26:55]save last doc name /storage/0228/doc_00022122 to /storage/kkm_last_doc_name [11:26:55]save OK [11:26:55]Clear old archive folders... [11:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:26:55]tlvbuf is 00219E60 [11:26:55]SAM_PROTO_ClearQueue [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 09 00 00 [11:26:55]Write to MH i2c: E2 08 00 8D 05 80 09 00 00 00 00 00 00 04 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [11:26:55]RAPDU: 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_ClearQueue done [11:26:55]KKMCreateOFDPacket [11:26:55]OFDProtocolAddRootSTLVToBuf [11:26:55]FM_MakeSignedData [11:26:55]FM_MakeSignedData [11:26:55]SAM_PROTO_SignData [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 0D 01 02 [11:26:55]Write to MH i2c: E2 08 00 8E 05 80 0D 01 02 00 00 00 00 0C [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [11:26:55]RAPDU: 90 00 [11:26:55]wFMCommunicate OK [11:26:55]wFMCommunicate request_size=255 [11:26:55]MH_SAM_APDU [11:26:55]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 25 00 00 00 F4 03 04 00 FF FE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [11:26:55]Write to MH i2c: E2 02 01 8F 05 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 25 00 00 00 F4 03 04 00 FF FE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 7A [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [11:26:55]RAPDU: 90 00 [11:26:55]wFMCommunicate OK [11:26:55]wFMCommunicate request_size=28 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 0D 02 02 17 35 39 33 35 38 10 04 04 00 6A 56 00 00 35 04 06 00 D8 9E 1E 55 5E 11 [11:26:55]Write to MH i2c: E2 1F 00 90 05 80 0D 02 02 17 00 35 39 33 35 38 10 04 04 00 6A 56 00 00 35 04 06 00 D8 9E 1E 55 5E 11 00 00 BA [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]OFD Sender: No OFD packet to send [11:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [11:26:55]RAPDU: 90 00 [11:26:55]wFMCommunicate OK [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 0D 03 02 [11:26:55]Write to MH i2c: E2 08 00 91 05 80 0D 03 02 00 00 00 00 11 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0B 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 0B 00 91 05 00 67 7E 83 72 FD 16 FB 8A 90 00 84 [11:26:55]RAPDU: 67 7E 83 72 FD 16 FB 8A 90 00 [11:26:55]wFMCommunicate OK [11:26:55]SAM_PROTO_SignData done [11:26:55]FM_MakeSignedData done [11:26:55]CreateOFDProtocolMessage [11:26:55]wFMCommunicate request_size=4 [11:26:55]MH_SAM_APDU [11:26:55]CAPDU: 80 11 00 00 [11:26:55]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:55]Read from MH i2c: E2 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 17 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6B [11:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:26:55]wFMCommunicate OK [11:26:55]CreateOFDProtocolMessage done [11:26:55]OFDSenderStorePacket 22122 [11:26:55]StoreOFDPacket docnum=22122 [11:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 21 01 00 00 77 C8 19 01 F6 09 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 25 00 00 00 F4 03 04 00 FF FE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6A 56 00 00 35 04 06 00 D8 9E 1E 55 5E 11 67 7E 83 72 FD 16 FB 8A [11:26:55]CheckFolder [11:26:55]dirname=/storage/ofd_packets [11:26:55]CheckFolder done [11:26:55]ProducePacketName [11:26:55]name=ofd_packets/00022122 [11:26:55]NVStorageSaveData ofd_packets/00022122 [11:26:55]File name is /storage/ofd_packets/00022122 [11:26:55]Write 319 bytes [11:26:55]NVStorageSaveData done [11:26:55]OFDSenderStorePacket done [11:26:55]KKMCreateOFDPacket done [11:26:55]NVStorageSaveData kkm_last_timestamp [11:26:55]File name is /storage/kkm_last_timestamp [11:26:55]Write 4 bytes [11:26:55]NVStorageSaveData done [11:26:55]ExternCall_PrintAddStr [11:26:55]wPrintStart [11:26:55]Write to MH i2c: 01 00 00 93 05 98 [11:26:55]Write i2c OK [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 07 00 [11:26:55]MH_I2C_Read... [11:26:55]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 FF 0F AD [11:26:55]RasterBufferAndPrint [11:26:55]line Счет N : (3)51391 [11:26:55]line ИНН: 02508201610067 [11:26:55]line Контрольно-Кассовый Чек [11:26:55]line ПРОДАЖА [11:26:55]line Товар: 4700000160358 [11:26:55]line Вода Легенда 1л [11:26:55]line 1.000 * 50.00 [11:26:55]line = 50.00 [11:26:55]line НДС 12% НСП 1% [11:26:55]line > о реализуемом товаре [11:26:55]line ИТОГО: 50.00 [11:26:55]line НСП 1% : 0.44 [11:26:55]line НДС 12% : 5.31 [11:26:55]line Наличными: 50.00 [11:26:55]line Безнал.: 0.00 [11:26:55]line Место: АЗС № 88 "Партнер Нефть" [11:26:55]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [11:26:55]line СНО: Общий режим [11:26:55]line Чек 37 22.09.2024 11:26 [11:26:55]line Смена: 228 ФФД: 1.0 [11:26:55]line ЗНМ: 0300000061 [11:26:55]line РНМ: 0000000000146243 [11:26:55]line Версия ККМ: v1.0 [11:26:55]line ФМ: 0000000000959358 [11:26:55]line ФД: 22122 [11:26:55]line ФПД: 238173625343505 [11:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T112655&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22122&fm=238173625343505&tin=02508201610067®Number=0000000000146243&sum=5000 [11:26:55]line 0 [11:26:55]OFD Sender: Processing packet 22122 [packets to send 23, broken 22] [11:26:55]ProducePacketName [11:26:55]name=ofd_packets/00022122 [11:26:55]OFD Sender: To server: pG, [11:26:56]CommunicateWithHost lk.salyk.kg:30040 [11:26:56]ConnectInit lk.salyk.kg [11:26:56]written 0, free lines is 4095 [11:26:56]Connected sock=10 [11:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 21 01 00 00 77 C8 19 01 F6 09 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 25 00 00 00 F4 03 04 00 FF FE EF 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6A 56 00 00 35 04 06 00 D8 9E 1E 55 5E 11 67 7E 83 72 FD 16 FB 8A [11:26:56]Write to MH i2c: 01 00 00 BB 05 C0 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 07 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 14 0D E8 [11:26:56]RasterBufferAndPrint [11:26:56]line [11:26:56]line [11:26:56]line [11:26:56]line [11:26:56]line [11:26:56]written 0, free lines is 3354 [11:26:56]MH_Cut [11:26:56]Write to MH i2c: D1 01 00 C2 05 01 99 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: D1 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: D1 01 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: D1 01 00 C2 05 00 98 [11:26:56]Write to MH i2c: 01 00 00 C3 05 C8 [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 2B 68 47 00 1D 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 39 35 39 33 35 38 10 04 04 00 6A 56 00 00 F4 03 04 00 2A A9 EF 66 B6 04 01 00 00 4B 85 40 5C 63 56 32 CA [11:26:56]CommunicateWithHost err = 0 [11:26:56]CheckOFDResponse [11:26:56]1017 (14) - 77093643461234 [11:26:56]1041 (16) - 0000000000959358 [11:26:56]1040 (4) - 22122 [11:26:56]1012 (4) - 22.09.2024 05:20 [11:26:56]1206 (1) - 0 [11:26:56]OFD Sender: Remove packet 22122 [11:26:56]ProducePacketName [11:26:56]name=ofd_packets/00022122 [11:26:56]NVStorageDeleteData [11:26:56]OFD Sender: No OFD packet to send [11:26:57]*** Cut start [11:26:57]*** Partial cut [11:26:57]*** CUTSNS_PIN = 1 [11:26:57]*** CUTSNS_PIN = 0 [11:26:57]*** Brake cut motor [11:26:57]Read from MH i2c: 01 [11:26:57]MH_I2C_Read... [11:26:57]*** Stop cut motor [11:26:57]*** Cut end [11:26:57]Read from MH i2c: 01 07 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: 01 07 00 C3 05 00 00 00 00 00 FF 0F DD [11:26:57]process_action close_receipt done [11:26:57]requested_data is exist [11:26:57]produce_requested_data [11:26:57]requested_item fm.sn is exist - process it [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 11 00 00 [11:26:57]Write to MH i2c: E2 08 00 C4 05 80 11 00 00 00 00 00 00 43 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 17 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 17 00 C4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9D [11:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:26:57]wFMCommunicate OK [11:26:57]requested_item fd.num is exist - process it [11:26:57]SAM_PROTO_GetFieldsCounters [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 13 00 00 [11:26:57]Write to MH i2c: E2 08 00 C5 05 80 13 00 00 00 00 00 00 46 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 62 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 62 00 C5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:57]wFMCommunicate OK [11:26:57]SAM_PROTO_GetFieldsCounters done [11:26:57]requested_item shift.num is exist - process it [11:26:57]requested_item shift.opened is exist - process it [11:26:57]req_shift_opened [11:26:57]FM_GetShiftState [11:26:57]SAM_PROTO_GetShiftState [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 13 01 00 [11:26:57]Write to MH i2c: E2 08 00 C6 05 80 13 01 00 00 00 00 00 48 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:57]Read from MH i2c: E2 0E 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 0E 00 C6 05 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C3 [11:26:57]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:26:57]wFMCommunicate OK [11:26:57]SAM_PROTO_GetShiftState done [11:26:57]FM_GetShiftState done [11:26:57]req_shift_opened done [11:26:57]requested_item shift.open_date is exist - process it [11:26:57]req_shift_open_date [11:26:57]req_shift_open_date done [11:26:57]produce_requested_data done [11:26:57]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22122,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [11:26:57]process_action_free close_receipt [11:26:57]json_value_free [11:26:57]json_value_free done [11:26:57]process_json_proto returns [11:26:57]Send response to host [11:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22122,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [11:26:57]free response buf [11:26:57]execute_script done [11:26:57]execute_script returns [11:26:57]free content buf [11:26:57]Sock 9.Close socket [11:26:57]Sock 9.Thread stoped [11:27:01]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29: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:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:43]accept exits with 7 [11:38:43]New connection [11:38:43]New thread 3067039076 created [11:38:43]Thread 3067182436 joined [11:38:43]Waiting for new connection... [11:38:43] Sock 7.Parse request [11:38:43]Sock 7.Check first char [11:38:43]Sock 7.First char is OK [11:38:43]request: POST /json_proto HTTP/1.0 [11:38:43]Method: POST [11:38:43]URL: /json_proto [11:38:43]Method is POST - this is cgi request [11:38:43]url: /json_proto [11:38:43]query_string will be loaded in cgi processing [11:38:43]execute_cgi json_proto POST (null) [11:38:43]execute_cgi path=json_proto method=POST [11:38:43]POST find Content-Length [11:38:43]Host: 172.17.43.4:8080 [11:38:43]Content-Length: 1062 [11:38:43]Content-Type: application/json [11:38:43] [11:38:43]POST finish read [11:38:43]Found Content-Length = 1062 [11:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51392", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:43]execute_script... [11:38: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)51392", "tax_sys" : 0, "items" : [ { "code": "4680021880490", "name": "\u041F\u0435\u0447.\u0441\u0434.\u0421 \u043A\u0430\u043F\u043B\u044F\u043C\u0438 200\u0433/12", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:43]POST & json_proto [11:38:43]process_json_proto [11:38:43]json parsed OK: [11:38:43]protocol is kg_v1.0 [11:38:43]action value=close_receipt [11:38:43]process_action close_receipt [11:38:43]cmd_close_receipt [11:38:43]MH_GetDate [11:38:43]Write to MH i2c: F0 00 00 C7 05 BB [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: F0 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: F0 09 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: F0 09 00 C7 05 00 C4 01 F0 66 02 BF CF 66 D5 [11:38:43]GetLastDocTimeStamp 1727004415 [11:38:43]current date 1727005124 [11:38:43]FM_GetShiftState [11:38:43]SAM_PROTO_GetShiftState [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 13 01 00 [11:38:43]Write to MH i2c: E2 08 00 C8 05 80 13 01 00 00 00 00 00 4A [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:43]Read from MH i2c: E2 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 0E 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 0E 00 C8 05 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C5 [11:38:43]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:38:43]wFMCommunicate OK [11:38:43]SAM_PROTO_GetShiftState done [11:38:43]FM_GetShiftState done [11:38:43]opened in 1726964408 [11:38:43]opened+sec_in_day 1727050808 [11:38:43]quantity*price = 0 [11:38:43]sum+1 = 1 [11:38:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 38 22.09.2024 11:38 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22123 ФПД: 166644111549654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113844&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22123&fm=166644111549654&tin=02508201610067®Number=0000000000146243&sum=0 0 [11:38:44]StoreToDocumentArchive [11:38:44]shift 228 fd 22123 [11:38:44]save to /storage/0228/doc_00022123 [11:38:44]save last doc name /storage/0228/doc_00022123 to /storage/kkm_last_doc_name [11:38:44]save OK [11:38:44]Clear old archive folders... [11:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=404 [11:38:44]tlvbuf is 00226700 [11:38:44]SAM_PROTO_ClearQueue [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 09 00 00 [11:38:44]Write to MH i2c: E2 08 00 D5 05 80 09 00 00 00 00 00 00 4C [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 D5 05 00 90 00 4E [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_ClearQueue done [11:38:44]KKMCreateOFDPacket [11:38:44]OFDProtocolAddRootSTLVToBuf [11:38:44]FM_MakeSignedData [11:38:44]FM_MakeSignedData [11:38:44]SAM_PROTO_SignData [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 01 02 [11:38:44]Write to MH i2c: E2 08 00 D6 05 80 0D 01 02 00 00 00 00 54 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=255 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 [11:38:44]Write to MH i2c: E2 02 01 D7 05 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 F3 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=163 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 01 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6B 56 00 00 35 04 06 00 97 8F DB 12 A4 D6 [11:38:44]Write to MH i2c: E2 A6 00 D8 05 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 01 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6B 56 00 00 35 04 06 00 97 8F DB 12 A4 D6 00 00 45 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [11:38:45]RAPDU: 90 00 [11:38:45]wFMCommunicate OK [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 0D 03 02 [11:38:45]Write to MH i2c: E2 08 00 D9 05 80 0D 03 02 00 00 00 00 59 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0B 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0B 00 D9 05 00 AC DB AE 95 3A F2 DB 1B 90 00 46 [11:38:45]RAPDU: AC DB AE 95 3A F2 DB 1B 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_SignData done [11:38:45]FM_MakeSignedData done [11:38:45]CreateOFDProtocolMessage [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 11 00 00 [11:38:45]Write to MH i2c: E2 08 00 DA 05 80 11 00 00 00 00 00 00 59 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 DA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B3 [11:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:38:45]wFMCommunicate OK [11:38:45]CreateOFDProtocolMessage done [11:38:45]OFDSenderStorePacket 22123 [11:38:45]StoreOFDPacket docnum=22123 [11:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A8 01 00 00 D9 DF A0 01 98 C7 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 01 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6B 56 00 00 35 04 06 00 97 8F DB 12 A4 D6 AC DB AE 95 3A F2 DB 1B [11:38:45]CheckFolder [11:38:45]dirname=/storage/ofd_packets [11:38:45]CheckFolder done [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00022123 [11:38:45]NVStorageSaveData ofd_packets/00022123 [11:38:45]File name is /storage/ofd_packets/00022123 [11:38:45]Write 454 bytes [11:38:45]NVStorageSaveData done [11:38:45]OFDSenderStorePacket done [11:38:45]KKMCreateOFDPacket done [11:38:45]NVStorageSaveData kkm_last_timestamp [11:38:45]File name is /storage/kkm_last_timestamp [11:38:45]Write 4 bytes [11:38:45]NVStorageSaveData done [11:38:45]ExternCall_PrintAddStr [11:38:45]wPrintStart [11:38:45]Write to MH i2c: 01 00 00 DB 05 E0 [11:38:45]OFD Sender: Processing packet 22123 [packets to send 23, broken 22] [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00022123 [11:38:45]OFD Sender: To server: pG, [11:38:45]Write i2c OK [11:38:45]CommunicateWithHost lk.salyk.kg:30040 [11:38:45]MH_I2C_Read... [11:38:45]ConnectInit lk.salyk.kg [11:38:45]Read from MH i2c: 01 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [11:38:45]RasterBufferAndPrint [11:38:45]line Счет N : (3)51392 [11:38:45]line ИНН: 02508201610067 [11:38:45]line Контрольно-Кассовый Чек [11:38:45]line ПРОДАЖА [11:38:45]line Товар: 4680021880490 [11:38:45]line Печ.сд.С каплями 200г/12 [11:38:45]line 1.000 * 0.00 [11:38:45]line = 0.00 [11:38:45]line НДС 12% НСП 1% [11:38:45]line > о реализуемом товаре [11:38:45]line Товар: 4650243871828 [11:38:45]line Gorilla эн нап манго-кокос 0,45 ж/б [11:38:45]line 1.000 * 0.00 [11:38:45]line = 0.00 [11:38:45]line НДС 12% НСП 1% [11:38:45]line > о реализуемом товаре [11:38:45]line ИТОГО: 0.00 [11:38:45]line НСП 1% : 0.00 [11:38:45]line НДС 12% : 0.00 [11:38:45]line Наличными: 0.00 [11:38:45]line Безнал.: 0.00 [11:38:45]line Место: АЗС № 88 "Партнер Нефть" [11:38:45]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [11:38:45]line СНО: Общий режим [11:38:45]line Чек 38 22.09.2024 11:38 [11:38:45]line Смена: 228 ФФД: 1.0 [11:38:45]line ЗНМ: 0300000061 [11:38:45]line РНМ: 0000000000146243 [11:38:45]line Версия ККМ: v1.0 [11:38:45]line Платежная система: Mbank [11:38:45]line ФМ: 0000000000959358 [11:38:45]line ФД: 22123 [11:38:45]line ФПД: 166644111549654 [11:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T113844&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22123&fm=166644111549654&tin=02508201610067®Number=0000000000146243&sum=0 [11:38:45]line 0 [11:38:45]written 0, free lines is 4095 [11:38:45]Connected sock=10 [11:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A8 01 00 00 D9 DF A0 01 98 C7 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 38 30 30 32 31 38 38 30 34 39 30 06 04 26 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B4 2E D0 A1 20 D0 BA D0 B0 D0 BF D0 BB D1 8F D0 BC D0 B8 20 32 30 30 D0 B3 2F 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 C4 01 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6B 56 00 00 35 04 06 00 97 8F DB 12 A4 D6 AC DB AE 95 3A F2 DB 1B [11:38:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 CF 13 47 00 79 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 39 35 39 33 35 38 10 04 04 00 6B 56 00 00 F4 03 04 00 F0 AB EF 66 B6 04 01 00 00 38 D7 09 58 09 DC 71 A8 [11:38:46]CommunicateWithHost err = 0 [11:38:46]CheckOFDResponse [11:38:46]1017 (14) - 77093643461234 [11:38:46]1041 (16) - 0000000000959358 [11:38:46]1040 (4) - 22123 [11:38:46]1012 (4) - 22.09.2024 05:32 [11:38:46]1206 (1) - 0 [11:38:46]OFD Sender: Remove packet 22123 [11:38:46]ProducePacketName [11:38:46]name=ofd_packets/00022123 [11:38:46]NVStorageDeleteData [11:38:46]Write to MH i2c: 01 00 00 0B 06 11 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: 01 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: 01 07 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 BC 0C E0 [11:38:46]RasterBufferAndPrint [11:38:46]line [11:38:46]line [11:38:46]line [11:38:46]line [11:38:46]line [11:38:46]written 0, free lines is 3269 [11:38:46]MH_Cut [11:38:46]Write to MH i2c: D1 01 00 12 06 01 EA [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: D1 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: D1 01 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: D1 01 00 12 06 00 E9 [11:38:46]Write to MH i2c: 01 00 00 13 06 19 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]OFD Sender: No OFD packet to send [11:38:46]*** Cut start [11:38:46]*** Partial cut [11:38:46]*** CUTSNS_PIN = 1 [11:38:46]*** CUTSNS_PIN = 0 [11:38:47]*** Brake cut motor [11:38:47]Read from MH i2c: 01 [11:38:47]MH_I2C_Read... [11:38:47]*** Stop cut motor [11:38:47]*** Cut end [11:38:47]Read from MH i2c: 01 07 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 FF 0F 2E [11:38:47]process_action close_receipt done [11:38:47]requested_data is exist [11:38:47]produce_requested_data [11:38:47]requested_item fm.sn is exist - process it [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 11 00 00 [11:38:47]Write to MH i2c: E2 08 00 14 06 80 11 00 00 00 00 00 00 94 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 14 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EE [11:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:38:47]wFMCommunicate OK [11:38:47]requested_item fd.num is exist - process it [11:38:47]SAM_PROTO_GetFieldsCounters [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 13 00 00 [11:38:47]Write to MH i2c: E2 08 00 15 06 80 13 00 00 00 00 00 00 97 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 62 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 62 00 15 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [11:38:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:47]wFMCommunicate OK [11:38:47]SAM_PROTO_GetFieldsCounters done [11:38:47]requested_item shift.num is exist - process it [11:38:47]requested_item shift.opened is exist - process it [11:38:47]req_shift_opened [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 16 06 80 13 01 00 00 00 00 00 99 [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 16 06 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 14 [11:38:47]RAPDU: 09 00 01 B8 62 EF 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]req_shift_opened done [11:38:47]requested_item shift.open_date is exist - process it [11:38:47]req_shift_open_date [11:38:47]req_shift_open_date done [11:38:47]produce_requested_data done [11:38:47]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22123,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [11:38:47]process_action_free close_receipt [11:38:47]json_value_free [11:38:47]json_value_free done [11:38:47]process_json_proto returns [11:38:47]Send response to host [11:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22123,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [11:38:47]free response buf [11:38:47]execute_script done [11:38:47]execute_script returns [11:38:47]free content buf [11:38:47]Sock 7.Close socket [11:38:47]Sock 7.Thread stoped [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:19]accept exits with 9 [11:40:19]New connection [11:40:19]New thread 3067182436 created [11:40:19]Thread 3067039076 joined [11:40:19]Waiting for new connection... [11:40:19] Sock 9.Parse request [11:40:19]Sock 9.Check first char [11:40:19]Sock 9.First char is OK [11:40:19]request: POST /json_proto HTTP/1.0 [11:40:19]Method: POST [11:40:19]URL: /json_proto [11:40:19]Method is POST - this is cgi request [11:40:19]url: /json_proto [11:40:19]query_string will be loaded in cgi processing [11:40:19]execute_cgi json_proto POST (null) [11:40:19]execute_cgi path=json_proto method=POST [11:40:19]POST find Content-Length [11:40:19]Host: 172.17.43.4:8080 [11:40:19]Content-Length: 747 [11:40:19]Content-Type: application/json [11:40:19] [11:40:19]POST finish read [11:40:19]Found Content-Length = 747 [11:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51393", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:19]execute_script... [11:40: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)51393", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:19]POST & json_proto [11:40:19]process_json_proto [11:40:19]json parsed OK: [11:40:19]protocol is kg_v1.0 [11:40:19]action value=close_receipt [11:40:19]process_action close_receipt [11:40:19]cmd_close_receipt [11:40:19]MH_GetDate [11:40:19]Write to MH i2c: F0 00 00 17 06 0C [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: F0 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: F0 09 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: F0 09 00 17 06 00 24 02 F0 66 02 BF CF 66 87 [11:40:19]GetLastDocTimeStamp 1727005124 [11:40:19]current date 1727005220 [11:40:19]FM_GetShiftState [11:40:19]SAM_PROTO_GetShiftState [11:40:19]wFMCommunicate request_size=4 [11:40:19]MH_SAM_APDU [11:40:19]CAPDU: 80 13 01 00 [11:40:19]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [11:40:19]Write i2c OK [11:40:19]MH_I2C_Read... [11:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:19]Read from MH i2c: E2 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 0E 00 [11:40:19]MH_I2C_Read... [11:40:19]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 16 [11:40:19]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:40:19]wFMCommunicate OK [11:40:19]SAM_PROTO_GetShiftState done [11:40:19]FM_GetShiftState done [11:40:19]opened in 1726964408 [11:40:19]opened+sec_in_day 1727050808 [11:40:19]quantity*price = 12500 [11:40:19]sum+1 = 12501 [11:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 39 22.09.2024 11:40 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22124 ФПД: 217364777135877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114020&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22124&fm=217364777135877&tin=02508201610067®Number=0000000000146243&sum=12500 0 [11:40:20]StoreToDocumentArchive [11:40:20]shift 228 fd 22124 [11:40:20]save to /storage/0228/doc_00022124 [11:40:20]save last doc name /storage/0228/doc_00022124 to /storage/kkm_last_doc_name [11:40:20]save OK [11:40:20]Clear old archive folders... [11:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=312 [11:40:20]tlvbuf is 002184F0 [11:40:20]SAM_PROTO_ClearQueue [11:40:20]wFMCommunicate request_size=4 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 09 00 00 [11:40:20]Write to MH i2c: E2 08 00 25 06 80 09 00 00 00 00 00 00 9D [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [11:40:20]RAPDU: 90 00 [11:40:20]wFMCommunicate OK [11:40:20]SAM_PROTO_ClearQueue done [11:40:20]KKMCreateOFDPacket [11:40:20]OFDProtocolAddRootSTLVToBuf [11:40:20]FM_MakeSignedData [11:40:20]FM_MakeSignedData [11:40:20]SAM_PROTO_SignData [11:40:20]wFMCommunicate request_size=4 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 0D 01 02 [11:40:20]Write to MH i2c: E2 08 00 26 06 80 0D 01 02 00 00 00 00 A5 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [11:40:20]RAPDU: 90 00 [11:40:20]wFMCommunicate OK [11:40:20]wFMCommunicate request_size=255 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 24 02 F0 66 0E 04 04 00 E4 [11:40:20]Write to MH i2c: E2 02 01 27 06 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 24 02 F0 66 0E 04 04 00 E4 00 00 48 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [11:40:20]RAPDU: 90 00 [11:40:20]wFMCommunicate OK [11:40:20]wFMCommunicate request_size=71 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 0D 02 02 42 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6C 56 00 00 35 04 06 00 C5 B1 2E 53 EF 05 [11:40:20]Write to MH i2c: E2 4A 00 28 06 80 0D 02 02 42 00 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6C 56 00 00 35 04 06 00 C5 B1 2E 53 EF 05 00 00 70 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [11:40:20]RAPDU: 90 00 [11:40:20]wFMCommunicate OK [11:40:20]wFMCommunicate request_size=4 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 0D 03 02 [11:40:20]Write to MH i2c: E2 08 00 29 06 80 0D 03 02 00 00 00 00 AA [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 0B 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 0B 00 29 06 00 15 FD CD 16 10 77 55 70 90 00 EC [11:40:20]RAPDU: 15 FD CD 16 10 77 55 70 90 00 [11:40:20]wFMCommunicate OK [11:40:20]SAM_PROTO_SignData done [11:40:20]FM_MakeSignedData done [11:40:20]CreateOFDProtocolMessage [11:40:20]wFMCommunicate request_size=4 [11:40:20]MH_SAM_APDU [11:40:20]CAPDU: 80 11 00 00 [11:40:20]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:20]Read from MH i2c: E2 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 17 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 04 [11:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:40:20]wFMCommunicate OK [11:40:20]CreateOFDProtocolMessage done [11:40:20]OFDSenderStorePacket 22124 [11:40:20]StoreOFDPacket docnum=22124 [11:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4C 01 00 00 06 17 44 01 6F 4A 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 24 02 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6C 56 00 00 35 04 06 00 C5 B1 2E 53 EF 05 15 FD CD 16 10 77 55 70 [11:40:20]CheckFolder [11:40:20]dirname=/storage/ofd_packets [11:40:20]CheckFolder done [11:40:20]ProducePacketName [11:40:20]name=ofd_packets/00022124 [11:40:20]NVStorageSaveData ofd_packets/00022124 [11:40:20]File name is /storage/ofd_packets/00022124 [11:40:20]Write 362 bytes [11:40:20]NVStorageSaveData done [11:40:20]OFDSenderStorePacket done [11:40:20]KKMCreateOFDPacket done [11:40:20]NVStorageSaveData kkm_last_timestamp [11:40:20]File name is /storage/kkm_last_timestamp [11:40:20]Write 4 bytes [11:40:20]NVStorageSaveData done [11:40:20]ExternCall_PrintAddStr [11:40:20]wPrintStart [11:40:20]Write to MH i2c: 01 00 00 2B 06 31 [11:40:20]Write i2c OK [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 [11:40:20]MH_I2C_Read... [11:40:20]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [11:40:20]RasterBufferAndPrint [11:40:20]line Счет N : (3)51393 [11:40:20]line ИНН: 02508201610067 [11:40:20]line Контрольно-Кассовый Чек [11:40:20]line ПРОДАЖА [11:40:20]line Товар: 4870202521254 [11:40:20]line Чай холодный MAXI черный со вкусом клубн [11:40:20]line 1.000 * 125.00 [11:40:20]line = 125.00 [11:40:20]line НДС 12% НСП 1% [11:40:20]line > о реализуемом товаре [11:40:20]line ИТОГО: 125.00 [11:40:20]line НСП 1% : 1.11 [11:40:20]line НДС 12% : 13.27 [11:40:20]line Наличными: 125.00 [11:40:20]line Безнал.: 0.00 [11:40:20]line Место: АЗС № 88 "Партнер Нефть" [11:40:20]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [11:40:20]line СНО: Общий режим [11:40:20]line Чек 39 22.09.2024 11:40 [11:40:20]line Смена: 228 ФФД: 1.0 [11:40:20]line ЗНМ: 0300000061 [11:40:20]line РНМ: 0000000000146243 [11:40:20]line Версия ККМ: v1.0 [11:40:20]line ФМ: 0000000000959358 [11:40:20]line ФД: 22124 [11:40:20]line ФПД: 217364777135877 [11:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T114020&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22124&fm=217364777135877&tin=02508201610067®Number=0000000000146243&sum=12500 [11:40:21]line 0 [11:40:21]OFD Sender: Processing packet 22124 [packets to send 23, broken 22] [11:40:21]ProducePacketName [11:40:21]name=ofd_packets/00022124 [11:40:21]OFD Sender: To server: pG, [11:40:21]CommunicateWithHost lk.salyk.kg:30040 [11:40:21]ConnectInit lk.salyk.kg [11:40:21]written 0, free lines is 4095 [11:40:21]Connected sock=10 [11:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4C 01 00 00 06 17 44 01 6F 4A 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 24 02 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6C 56 00 00 35 04 06 00 C5 B1 2E 53 EF 05 15 FD CD 16 10 77 55 70 [11:40:21]Write to MH i2c: 01 00 00 54 06 5A [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: 01 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: 01 07 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 0F 0D 7D [11:40:21]RasterBufferAndPrint [11:40:21]line [11:40:21]line [11:40:21]line [11:40:21]line [11:40:21]line [11:40:21]written 0, free lines is 3349 [11:40:21]MH_Cut [11:40:21]Write to MH i2c: D1 01 00 5B 06 01 33 [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: D1 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: D1 01 00 [11:40:21]MH_I2C_Read... [11:40:21]Read from MH i2c: D1 01 00 5B 06 00 32 [11:40:21]Write to MH i2c: 01 00 00 5C 06 62 [11:40:21]Write i2c OK [11:40:21]MH_I2C_Read... [11:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 24 E3 47 00 A8 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6C 56 00 00 F4 03 04 00 50 AC EF 66 B6 04 01 00 00 76 57 DC 61 5E 63 61 D2 [11:40:21]CommunicateWithHost err = 0 [11:40:21]CheckOFDResponse [11:40:21]1017 (14) - 77093643461234 [11:40:21]1041 (16) - 0000000000959358 [11:40:21]1040 (4) - 22124 [11:40:21]1012 (4) - 22.09.2024 05:34 [11:40:21]1206 (1) - 0 [11:40:21]OFD Sender: Remove packet 22124 [11:40:21]ProducePacketName [11:40:21]name=ofd_packets/00022124 [11:40:21]NVStorageDeleteData [11:40:22]OFD Sender: No OFD packet to send [11:40:22]*** Cut start [11:40:22]*** Partial cut [11:40:22]*** CUTSNS_PIN = 1 [11:40:22]*** CUTSNS_PIN = 0 [11:40:22]*** Brake cut motor [11:40:22]Read from MH i2c: 01 [11:40:22]MH_I2C_Read... [11:40:22]*** Stop cut motor [11:40:22]*** Cut end [11:40:22]Read from MH i2c: 01 07 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: 01 07 00 5C 06 00 00 00 00 00 FF 0F 77 [11:40:22]process_action close_receipt done [11:40:22]requested_data is exist [11:40:22]produce_requested_data [11:40:22]requested_item fm.sn is exist - process it [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 11 00 00 [11:40:22]Write to MH i2c: E2 08 00 5D 06 80 11 00 00 00 00 00 00 DD [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:22]Read from MH i2c: E2 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 17 00 [11:40:22]MH_I2C_Read... [11:40:22]Read from MH i2c: E2 17 00 5D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 37 [11:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [11:40:22]wFMCommunicate OK [11:40:22]requested_item fd.num is exist - process it [11:40:22]SAM_PROTO_GetFieldsCounters [11:40:22]wFMCommunicate request_size=4 [11:40:22]MH_SAM_APDU [11:40:22]CAPDU: 80 13 00 00 [11:40:22]Write to MH i2c: E2 08 00 5E 06 80 13 00 00 00 00 00 00 E0 [11:40:22]Write i2c OK [11:40:22]MH_I2C_Read... [11:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:23]Read from MH i2c: E2 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 62 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 62 00 5E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:23]wFMCommunicate OK [11:40:23]SAM_PROTO_GetFieldsCounters done [11:40:23]requested_item shift.num is exist - process it [11:40:23]requested_item shift.opened is exist - process it [11:40:23]req_shift_opened [11:40:23]FM_GetShiftState [11:40:23]SAM_PROTO_GetShiftState [11:40:23]wFMCommunicate request_size=4 [11:40:23]MH_SAM_APDU [11:40:23]CAPDU: 80 13 01 00 [11:40:23]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:23]Read from MH i2c: E2 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 0E 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 5D [11:40:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [11:40:23]wFMCommunicate OK [11:40:23]SAM_PROTO_GetShiftState done [11:40:23]FM_GetShiftState done [11:40:23]req_shift_opened done [11:40:23]requested_item shift.open_date is exist - process it [11:40:23]req_shift_open_date [11:40:23]req_shift_open_date done [11:40:23]produce_requested_data done [11:40:23]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22124,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [11:40:23]process_action_free close_receipt [11:40:23]json_value_free [11:40:23]json_value_free done [11:40:23]process_json_proto returns [11:40:23]Send response to host [11:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22124,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [11:40:23]free response buf [11:40:23]execute_script done [11:40:23]execute_script returns [11:40:23]free content buf [11:40:23]Sock 9.Close socket [11:40:23]Sock 9.Thread stoped [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26: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:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:07]accept exits with 7 [12:35:07]New connection [12:35:07]New thread 3067039076 created [12:35:07]Thread 3067182436 joined [12:35:07]Waiting for new connection... [12:35:07] Sock 7.Parse request [12:35:07]Sock 7.Check first char [12:35:07]Sock 7.First char is OK [12:35:07]request: POST /json_proto HTTP/1.0 [12:35:07]Method: POST [12:35:07]URL: /json_proto [12:35:07]Method is POST - this is cgi request [12:35:07]url: /json_proto [12:35:07]query_string will be loaded in cgi processing [12:35:07]execute_cgi json_proto POST (null) [12:35:07]execute_cgi path=json_proto method=POST [12:35:07]POST find Content-Length [12:35:07]Host: 172.17.43.4:8080 [12:35:07]Content-Length: 850 [12:35:07]Content-Type: application/json [12:35:07] [12:35:07]POST finish read [12:35:07]Found Content-Length = 850 [12:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51394", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:07]execute_script... [12:35: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)51394", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:07]POST & json_proto [12:35:07]process_json_proto [12:35:07]json parsed OK: [12:35:07]protocol is kg_v1.0 [12:35:07]action value=close_receipt [12:35:07]process_action close_receipt [12:35:07]cmd_close_receipt [12:35:07]MH_GetDate [12:35:07]Write to MH i2c: F0 00 00 60 06 55 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: F0 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: F0 09 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: F0 09 00 60 06 00 FC 0E F0 66 02 BF CF 66 B4 [12:35:07]GetLastDocTimeStamp 1727005220 [12:35:07]current date 1727008508 [12:35:07]FM_GetShiftState [12:35:07]SAM_PROTO_GetShiftState [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 13 01 00 [12:35:07]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0E 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 5F [12:35:07]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_GetShiftState done [12:35:07]FM_GetShiftState done [12:35:07]opened in 1726964408 [12:35:07]opened+sec_in_day 1727050808 [12:35:07]quantity*price = 3700 [12:35:07]sum+1 = 3701 [12:35:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 152.00 НСП 1% : 1.35 НДС 12% : 16.14 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 40 22.09.2024 12:35 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22125 ФПД: 250107667142635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123508&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22125&fm=250107667142635&tin=02508201610067®Number=0000000000146243&sum=15200 0 [12:35:08]StoreToDocumentArchive [12:35:08]shift 228 fd 22125 [12:35:08]save to /storage/0228/doc_00022125 [12:35:08]save last doc name /storage/0228/doc_00022125 to /storage/kkm_last_doc_name [12:35:08]save OK [12:35:08]Clear old archive folders... [12:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=375 [12:35:08]tlvbuf is 00249A70 [12:35:08]SAM_PROTO_ClearQueue [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 09 00 00 [12:35:08]Write to MH i2c: E2 08 00 6E 06 80 09 00 00 00 00 00 00 E6 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]SAM_PROTO_ClearQueue done [12:35:08]KKMCreateOFDPacket [12:35:08]OFDProtocolAddRootSTLVToBuf [12:35:08]FM_MakeSignedData [12:35:08]FM_MakeSignedData [12:35:08]SAM_PROTO_SignData [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 01 02 [12:35:08]Write to MH i2c: E2 08 00 6F 06 80 0D 01 02 00 00 00 00 EE [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]wFMCommunicate request_size=255 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F [12:35:08]Write to MH i2c: E2 02 01 70 06 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 00 FD [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]wFMCommunicate request_size=134 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FC 0E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6D 56 00 00 35 04 06 00 E3 78 BA A7 D7 EB [12:35:08]Write to MH i2c: E2 89 00 71 06 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FC 0E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6D 56 00 00 35 04 06 00 E3 78 BA A7 D7 EB 00 00 BE [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 03 02 [12:35:08]Write to MH i2c: E2 08 00 72 06 80 0D 03 02 00 00 00 00 F3 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 0B 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 0B 00 72 06 00 64 63 18 48 47 26 74 E8 90 00 E4 [12:35:08]RAPDU: 64 63 18 48 47 26 74 E8 90 00 [12:35:08]wFMCommunicate OK [12:35:08]SAM_PROTO_SignData done [12:35:08]FM_MakeSignedData done [12:35:08]CreateOFDProtocolMessage [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 11 00 00 [12:35:08]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 17 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 4D [12:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [12:35:08]wFMCommunicate OK [12:35:08]CreateOFDProtocolMessage done [12:35:08]OFDSenderStorePacket 22125 [12:35:08]StoreOFDPacket docnum=22125 [12:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 8B 01 00 00 04 42 83 01 47 95 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FC 0E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6D 56 00 00 35 04 06 00 E3 78 BA A7 D7 EB 64 63 18 48 47 26 74 E8 [12:35:08]CheckFolder [12:35:08]dirname=/storage/ofd_packets [12:35:08]CheckFolder done [12:35:08]ProducePacketName [12:35:08]name=ofd_packets/00022125 [12:35:08]NVStorageSaveData ofd_packets/00022125 [12:35:08]File name is /storage/ofd_packets/00022125 [12:35:08]Write 425 bytes [12:35:08]NVStorageSaveData done [12:35:08]OFDSenderStorePacket done [12:35:08]KKMCreateOFDPacket done [12:35:08]NVStorageSaveData kkm_last_timestamp [12:35:08]File name is /storage/kkm_last_timestamp [12:35:08]Write 4 bytes [12:35:08]NVStorageSaveData done [12:35:08]ExternCall_PrintAddStr [12:35:08]wPrintStart [12:35:08]Write to MH i2c: 01 00 00 74 06 7A [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [12:35:08]RasterBufferAndPrint [12:35:08]line Счет N : (3)51394 [12:35:08]line ИНН: 02508201610067 [12:35:09]line Контрольно-Кассовый Чек [12:35:09]line ПРОДАЖА [12:35:09]line Товар: 42113164 [12:35:09]line Жев Orbit White Spearmint [12:35:09]line 1.000 * 37.00 [12:35:09]line = 37.00 [12:35:09]line НДС 12% НСП 1% [12:35:09]line > о реализуемом товаре [12:35:09]line Товар: 2000036210013 [12:35:09]line Кофе Капучино (GABB TRADE) [12:35:09]line 1.000 * 115.00 [12:35:09]line = 115.00 [12:35:09]line НДС 12% НСП 1% [12:35:09]line > о реализуемом товаре [12:35:09]line ИТОГО: 152.00 [12:35:09]line НСП 1% : 1.35 [12:35:09]line НДС 12% : 16.14 [12:35:09]line Наличными: 152.00 [12:35:09]line Безнал.: 0.00 [12:35:09]line Место: АЗС № 88 "Партнер Нефть" [12:35:09]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [12:35:09]line СНО: Общий режим [12:35:09]line Чек 40 22.09.2024 12:35 [12:35:09]line Смена: 228 ФФД: 1.0 [12:35:09]line ЗНМ: 0300000061 [12:35:09]line РНМ: 0000000000146243 [12:35:09]line Версия ККМ: v1.0 [12:35:09]line ФМ: 0000000000959358 [12:35:09]line ФД: 22125 [12:35:09]line ФПД: 250107667142635 [12:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T123508&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22125&fm=250107667142635&tin=02508201610067®Number=0000000000146243&sum=15200 [12:35:09]line 0 [12:35:09]OFD Sender: Processing packet 22125 [packets to send 23, broken 22] [12:35:09]ProducePacketName [12:35:09]name=ofd_packets/00022125 [12:35:09]OFD Sender: To server: pG, [12:35:09]CommunicateWithHost lk.salyk.kg:30040 [12:35:09]ConnectInit lk.salyk.kg [12:35:09]written 0, free lines is 4095 [12:35:09]Connected sock=10 [12:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 8B 01 00 00 04 42 83 01 47 95 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 FC 0E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6D 56 00 00 35 04 06 00 E3 78 BA A7 D7 EB 64 63 18 48 47 26 74 E8 [12:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 F5 F8 47 00 A6 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6D 56 00 00 F4 03 04 00 28 B9 EF 66 B6 04 01 00 00 86 9F 0F 1B 84 2D F3 E4 [12:35:09]CommunicateWithHost err = 0 [12:35:09]CheckOFDResponse [12:35:09]1017 (14) - 77093643461234 [12:35:09]1041 (16) - 0000000000959358 [12:35:09]1040 (4) - 22125 [12:35:09]1012 (4) - 22.09.2024 06:28 [12:35:09]1206 (1) - 0 [12:35:09]OFD Sender: Remove packet 22125 [12:35:09]ProducePacketName [12:35:09]name=ofd_packets/00022125 [12:35:09]NVStorageDeleteData [12:35:09]Write to MH i2c: 01 00 00 A2 06 A8 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 07 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 07 00 A2 06 00 00 00 00 00 E5 0C A0 [12:35:09]RasterBufferAndPrint [12:35:09]line [12:35:09]line [12:35:09]line [12:35:09]line [12:35:09]line [12:35:09]written 0, free lines is 3310 [12:35:09]MH_Cut [12:35:09]Write to MH i2c: D1 01 00 A9 06 01 81 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: D1 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: D1 01 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: D1 01 00 A9 06 00 80 [12:35:09]Write to MH i2c: 01 00 00 AA 06 B0 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:10]OFD Sender: No OFD packet to send [12:35:10]*** Cut start [12:35:10]*** Partial cut [12:35:10]*** CUTSNS_PIN = 1 [12:35:10]*** CUTSNS_PIN = 0 [12:35:10]*** Brake cut motor [12:35:11]Read from MH i2c: 01 [12:35:11]MH_I2C_Read... [12:35:11]*** Stop cut motor [12:35:11]*** Cut end [12:35:11]Read from MH i2c: 01 07 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 FF 0F C5 [12:35:11]process_action close_receipt done [12:35:11]requested_data is exist [12:35:11]produce_requested_data [12:35:11]requested_item fm.sn is exist - process it [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 11 00 00 [12:35:11]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 17 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 85 [12:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [12:35:11]wFMCommunicate OK [12:35:11]requested_item fd.num is exist - process it [12:35:11]SAM_PROTO_GetFieldsCounters [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 13 00 00 [12:35:11]Write to MH i2c: E2 08 00 AC 06 80 13 00 00 00 00 00 00 2E [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 62 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 62 00 AC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [12:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:11]wFMCommunicate OK [12:35:11]SAM_PROTO_GetFieldsCounters done [12:35:11]requested_item shift.num is exist - process it [12:35:11]requested_item shift.opened is exist - process it [12:35:11]req_shift_opened [12:35:11]FM_GetShiftState [12:35:11]SAM_PROTO_GetShiftState [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 13 01 00 [12:35:11]Write to MH i2c: E2 08 00 AD 06 80 13 01 00 00 00 00 00 30 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 0E 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 0E 00 AD 06 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 AB [12:35:11]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [12:35:11]wFMCommunicate OK [12:35:11]SAM_PROTO_GetShiftState done [12:35:11]FM_GetShiftState done [12:35:11]req_shift_opened done [12:35:11]requested_item shift.open_date is exist - process it [12:35:11]req_shift_open_date [12:35:11]req_shift_open_date done [12:35:11]produce_requested_data done [12:35:11]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22125,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [12:35:11]process_action_free close_receipt [12:35:11]json_value_free [12:35:11]json_value_free done [12:35:11]process_json_proto returns [12:35:11]Send response to host [12:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22125,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [12:35:11]free response buf [12:35:11]execute_script done [12:35:11]execute_script returns [12:35:11]free content buf [12:35:11]Sock 7.Close socket [12:35:11]Sock 7.Thread stoped [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:41]accept exits with 9 [12:55:41]New connection [12:55:41]New thread 3067182436 created [12:55:41]Thread 3067039076 joined [12:55:41]Waiting for new connection... [12:55:41] Sock 9.Parse request [12:55:41]Sock 9.Check first char [12:55:41]Sock 9.First char is OK [12:55:41]request: POST /json_proto HTTP/1.0 [12:55:41]Method: POST [12:55:41]URL: /json_proto [12:55:41]Method is POST - this is cgi request [12:55:41]url: /json_proto [12:55:41]query_string will be loaded in cgi processing [12:55:41]execute_cgi json_proto POST (null) [12:55:41]execute_cgi path=json_proto method=POST [12:55:41]POST find Content-Length [12:55:41]Host: 172.17.43.4:8080 [12:55:41]Content-Length: 1693 [12:55:41]Content-Type: application/json [12:55:41] [12:55:41]POST finish read [12:55:41]Found Content-Length = 1693 [12:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51395", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:41]execute_script... [12:55: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)51395", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 410.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:42]POST & json_proto [12:55:42]process_json_proto [12:55:42]json parsed OK: [12:55:42]protocol is kg_v1.0 [12:55:42]action value=close_receipt [12:55:42]process_action close_receipt [12:55:42]cmd_close_receipt [12:55:42]MH_GetDate [12:55:42]Write to MH i2c: F0 00 00 AE 06 A3 [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: F0 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: F0 09 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: F0 09 00 AE 06 00 CF 13 F0 66 02 BF CF 66 DA [12:55:42]GetLastDocTimeStamp 1727008508 [12:55:42]current date 1727009743 [12:55:42]FM_GetShiftState [12:55:42]SAM_PROTO_GetShiftState [12:55:42]wFMCommunicate request_size=4 [12:55:42]MH_SAM_APDU [12:55:42]CAPDU: 80 13 01 00 [12:55:42]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:42]Read from MH i2c: E2 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: E2 0E 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 AD [12:55:42]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [12:55:42]wFMCommunicate OK [12:55:42]SAM_PROTO_GetShiftState done [12:55:42]FM_GetShiftState done [12:55:42]opened in 1726964408 [12:55:42]opened+sec_in_day 1727050808 [12:55:42]quantity*price = 2000 [12:55:42]sum+1 = 2001 [12:55:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006996716 Водка Талка 0,1л 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160013 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 410.00 НСП 1% : 3.63 НДС 12% : 43.52 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 41 22.09.2024 12:55 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22126 ФПД: 13088157490412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125543&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22126&fm=13088157490412&tin=02508201610067®Number=0000000000146243&sum=41000 0 [12:55:43]StoreToDocumentArchive [12:55:43]shift 228 fd 22126 [12:55:43]save to /storage/0228/doc_00022126 [12:55:43]save last doc name /storage/0228/doc_00022126 to /storage/kkm_last_doc_name [12:55:43]save OK [12:55:43]Clear old archive folders... [12:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=710 [12:55:43]tlvbuf is 0025DF40 [12:55:43]SAM_PROTO_ClearQueue [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 09 00 00 [12:55:43]Write to MH i2c: E2 08 00 BC 06 80 09 00 00 00 00 00 00 34 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [12:55:43]RAPDU: 90 00 [12:55:43]wFMCommunicate OK [12:55:43]SAM_PROTO_ClearQueue done [12:55:43]KKMCreateOFDPacket [12:55:43]OFDProtocolAddRootSTLVToBuf [12:55:43]FM_MakeSignedData [12:55:43]FM_MakeSignedData [12:55:43]SAM_PROTO_SignData [12:55:43]wFMCommunicate request_size=4 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 0D 01 02 [12:55:43]Write to MH i2c: E2 08 00 BD 06 80 0D 01 02 00 00 00 00 3C [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [12:55:43]RAPDU: 90 00 [12:55:43]wFMCommunicate OK [12:55:43]wFMCommunicate request_size=255 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 0D 02 02 FA 03 00 C6 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 [12:55:43]Write to MH i2c: E2 02 01 BE 06 80 0D 02 02 FA 00 03 00 C6 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 00 00 7D [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [12:55:43]RAPDU: 90 00 [12:55:43]wFMCommunicate OK [12:55:43]wFMCommunicate request_size=255 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 0D 02 02 FA B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B [12:55:43]Write to MH i2c: E2 02 01 BF 06 80 0D 02 02 FA 00 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B 00 00 E3 [12:55:43]Write i2c OK [12:55:43]MH_I2C_Read... [12:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:43]Read from MH i2c: E2 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 [12:55:43]MH_I2C_Read... [12:55:43]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [12:55:43]RAPDU: 90 00 [12:55:43]wFMCommunicate OK [12:55:43]wFMCommunicate request_size=219 [12:55:43]MH_SAM_APDU [12:55:43]CAPDU: 80 0D 02 02 D6 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 13 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6E 56 00 00 35 04 06 00 0B E7 52 FA 5C EC [12:55:44]Write to MH i2c: E2 DE 00 C0 06 80 0D 02 02 D6 00 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 13 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6E 56 00 00 35 04 06 00 0B E7 52 FA 5C EC 00 00 21 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [12:55:44]RAPDU: 90 00 [12:55:44]wFMCommunicate OK [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 0D 03 02 [12:55:44]Write to MH i2c: E2 08 00 C1 06 80 0D 03 02 00 00 00 00 42 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 0B 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 0B 00 C1 06 00 A0 C1 1E 96 74 36 4C 57 90 00 A5 [12:55:44]RAPDU: A0 C1 1E 96 74 36 4C 57 90 00 [12:55:44]wFMCommunicate OK [12:55:44]SAM_PROTO_SignData done [12:55:44]FM_MakeSignedData done [12:55:44]CreateOFDProtocolMessage [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 11 00 00 [12:55:44]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 17 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9C [12:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [12:55:44]wFMCommunicate OK [12:55:44]CreateOFDProtocolMessage done [12:55:44]OFDSenderStorePacket 22126 [12:55:44]StoreOFDPacket docnum=22126 [12:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 DA 02 00 00 81 24 D2 02 26 68 5A 03 01 00 03 00 C6 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 13 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6E 56 00 00 35 04 06 00 0B E7 52 FA 5C EC A0 C1 1E 96 74 36 4C 57 [12:55:44]CheckFolder [12:55:44]dirname=/storage/ofd_packets [12:55:44]CheckFolder done [12:55:44]ProducePacketName [12:55:44]name=ofd_packets/00022126 [12:55:44]NVStorageSaveData ofd_packets/00022126 [12:55:44]File name is /storage/ofd_packets/00022126 [12:55:44]Write 760 bytes [12:55:44]NVStorageSaveData done [12:55:44]OFDSenderStorePacket done [12:55:44]KKMCreateOFDPacket done [12:55:44]NVStorageSaveData kkm_last_timestamp [12:55:44]File name is /storage/kkm_last_timestamp [12:55:44]Write 4 bytes [12:55:44]NVStorageSaveData done [12:55:44]ExternCall_PrintAddStr [12:55:44]wPrintStart [12:55:44]Write to MH i2c: 01 00 00 C3 06 C9 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [12:55:44]RasterBufferAndPrint [12:55:44]line Счет N : (3)51395 [12:55:44]line ИНН: 02508201610067 [12:55:44]line Контрольно-Кассовый Чек [12:55:44]line ПРОДАЖА [12:55:44]line Товар: 46231512 [12:55:44]line Mentos ПФ Виноград 6*100*2г [12:55:44]line 2.000 * 10.00 [12:55:44]line = 20.00 [12:55:44]line НДС 12% НСП 1% [12:55:44]line > о реализуемом товаре [12:55:44]line Товар: 4620006996716 [12:55:44]line Водка Талка 0,1л [12:55:44]line 1.000 * 130.00 [12:55:44]line = 130.00 [12:55:44]line НДС 12% НСП 1% [12:55:44]line > о реализуемом товаре [12:55:44]line Товар: 2000036210013 [12:55:44]line Кофе Капучино (GABB TRADE) [12:55:44]line 1.000 * 115.00 [12:55:44]line = 115.00 [12:55:44]line НДС 12% НСП 1% [12:55:44]line > о реализуемом товаре [12:55:44]line Товар: 2000036230011 [12:55:44]line Кофе Латте XL(GABB TRADE) [12:55:44]line 1.000 * 130.00 [12:55:44]line = 130.00 [12:55:44]line НДС 12% НСП 1% [12:55:44]line > о реализуемом товаре [12:55:44]line Товар: 4700000160013 [12:55:44]line Снек Курут индивидуальный [12:55:44]line 1.000 * 15.00 [12:55:44]line = 15.00 [12:55:44]line НДС 12% НСП 1% [12:55:44]line > о реализуемом товаре [12:55:44]line ИТОГО: 410.00 [12:55:44]line НСП 1% : 3.63 [12:55:44]line НДС 12% : 43.52 [12:55:44]line Наличными: 410.00 [12:55:44]line Безнал.: 0.00 [12:55:44]line Место: АЗС № 88 "Партнер Нефть" [12:55:44]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [12:55:44]line СНО: Общий режим [12:55:44]line Чек 41 22.09.2024 12:55 [12:55:44]line Смена: 228 ФФД: 1.0 [12:55:44]line ЗНМ: 0300000061 [12:55:44]line РНМ: 0000000000146243 [12:55:44]line Версия ККМ: v1.0 [12:55:44]line ФМ: 0000000000959358 [12:55:44]line ФД: 22126 [12:55:44]line ФПД: 13088157490412 [12:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T125543&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22126&fm=13088157490412&tin=02508201610067®Number=0000000000146243&sum=41000 [12:55:44]line 0 [12:55:44]written 0, free lines is 4095 [12:55:44]OFD Sender: Processing packet 22126 [packets to send 23, broken 22] [12:55:44]ProducePacketName [12:55:44]name=ofd_packets/00022126 [12:55:44]OFD Sender: To server: pG, [12:55:44]CommunicateWithHost lk.salyk.kg:30040 [12:55:44]ConnectInit lk.salyk.kg [12:55:44]Connected sock=10 [12:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 DA 02 00 00 81 24 D2 02 26 68 5A 03 01 00 03 00 C6 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 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 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 13 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6E 56 00 00 35 04 06 00 0B E7 52 FA 5C EC A0 C1 1E 96 74 36 4C 57 [12:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 C0 A4 47 00 DE 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6E 56 00 00 F4 03 04 00 FB BD EF 66 B6 04 01 00 00 4C CA AD AF 64 F5 28 B3 [12:55:45]CommunicateWithHost err = 0 [12:55:45]CheckOFDResponse [12:55:45]1017 (14) - 77093643461234 [12:55:45]1041 (16) - 0000000000959358 [12:55:45]1040 (4) - 22126 [12:55:45]1012 (4) - 22.09.2024 06:49 [12:55:45]1206 (1) - 0 [12:55:45]OFD Sender: Remove packet 22126 [12:55:45]ProducePacketName [12:55:45]name=ofd_packets/00022126 [12:55:45]NVStorageDeleteData [12:55:45]Write to MH i2c: 01 00 00 03 07 0A [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: 01 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: 01 07 00 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 1A 0C 37 [12:55:45]RasterBufferAndPrint [12:55:45]line [12:55:45]line [12:55:45]line [12:55:45]line [12:55:45]line [12:55:45]written 0, free lines is 3108 [12:55:45]MH_Cut [12:55:45]Write to MH i2c: D1 01 00 0A 07 01 E3 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: D1 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: D1 01 00 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: D1 01 00 0A 07 00 E2 [12:55:45]Write to MH i2c: 01 00 00 0B 07 12 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]OFD Sender: No OFD packet to send [12:55:46]*** Cut start [12:55:46]*** Partial cut [12:55:46]*** CUTSNS_PIN = 1 [12:55:46]*** CUTSNS_PIN = 0 [12:55:46]*** Brake cut motor [12:55:46]Read from MH i2c: 01 [12:55:46]MH_I2C_Read... [12:55:46]*** Stop cut motor [12:55:46]*** Cut end [12:55:46]Read from MH i2c: 01 07 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [12:55:46]process_action close_receipt done [12:55:46]requested_data is exist [12:55:46]produce_requested_data [12:55:46]requested_item fm.sn is exist - process it [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 11 00 00 [12:55:46]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 17 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 17 00 0C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 E7 [12:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [12:55:46]wFMCommunicate OK [12:55:46]requested_item fd.num is exist - process it [12:55:46]SAM_PROTO_GetFieldsCounters [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 13 00 00 [12:55:46]Write to MH i2c: E2 08 00 0D 07 80 13 00 00 00 00 00 00 90 [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:47]Read from MH i2c: E2 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 62 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 62 00 0D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:47]wFMCommunicate OK [12:55:47]SAM_PROTO_GetFieldsCounters done [12:55:47]requested_item shift.num is exist - process it [12:55:47]requested_item shift.opened is exist - process it [12:55:47]req_shift_opened [12:55:47]FM_GetShiftState [12:55:47]SAM_PROTO_GetShiftState [12:55:47]wFMCommunicate request_size=4 [12:55:47]MH_SAM_APDU [12:55:47]CAPDU: 80 13 01 00 [12:55:47]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:47]Read from MH i2c: E2 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 0E 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 0D [12:55:47]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [12:55:47]wFMCommunicate OK [12:55:47]SAM_PROTO_GetShiftState done [12:55:47]FM_GetShiftState done [12:55:47]req_shift_opened done [12:55:47]requested_item shift.open_date is exist - process it [12:55:47]req_shift_open_date [12:55:47]req_shift_open_date done [12:55:47]produce_requested_data done [12:55:47]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22126,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [12:55:47]process_action_free close_receipt [12:55:47]json_value_free [12:55:47]json_value_free done [12:55:47]process_json_proto returns [12:55:47]Send response to host [12:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22126,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [12:55:47]free response buf [12:55:47]execute_script done [12:55:47]execute_script returns [12:55:47]free content buf [12:55:47]Sock 9.Close socket [12:55:47]Sock 9.Thread stoped [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:49]accept exits with 7 [13:00:49]New connection [13:00:49]New thread 3067039076 created [13:00:49]Thread 3067182436 joined [13:00:49]Waiting for new connection... [13:00:49] Sock 7.Parse request [13:00:49]Sock 7.Check first char [13:00:49]Sock 7.First char is OK [13:00:49]request: POST /json_proto HTTP/1.0 [13:00:49]Method: POST [13:00:49]URL: /json_proto [13:00:49]Method is POST - this is cgi request [13:00:49]url: /json_proto [13:00:49]query_string will be loaded in cgi processing [13:00:49]execute_cgi json_proto POST (null) [13:00:49]execute_cgi path=json_proto method=POST [13:00:49]POST find Content-Length [13:00:49]Host: 172.17.43.4:8080 [13:00:49]Content-Length: 646 [13:00:49]Content-Type: application/json [13:00:49] [13:00:49]POST finish read [13:00:49]Found Content-Length = 646 [13:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51396", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:49]execute_script... [13:00:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51396", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:49]POST & json_proto [13:00:49]process_json_proto [13:00:49]json parsed OK: [13:00:49]protocol is kg_v1.0 [13:00:49]action value=close_receipt [13:00:49]process_action close_receipt [13:00:49]cmd_close_receipt [13:00:49]MH_GetDate [13:00:49]Write to MH i2c: F0 00 00 0F 07 05 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: F0 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: F0 09 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: F0 09 00 0F 07 00 03 15 F0 66 02 BF CF 66 72 [13:00:49]GetLastDocTimeStamp 1727009743 [13:00:49]current date 1727010051 [13:00:49]FM_GetShiftState [13:00:49]SAM_PROTO_GetShiftState [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 13 01 00 [13:00:49]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 0E 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 0F [13:00:49]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:00:49]wFMCommunicate OK [13:00:49]SAM_PROTO_GetShiftState done [13:00:49]FM_GetShiftState done [13:00:49]opened in 1726964408 [13:00:49]opened+sec_in_day 1727050808 [13:00:49]quantity*price = 25000 [13:00:49]sum+1 = 25001 [13:00:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 42 22.09.2024 13:00 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22127 ФПД: 280803162650062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130051&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22127&fm=280803162650062&tin=02508201610067®Number=0000000000146243&sum=25000 0 [13:00:51]StoreToDocumentArchive [13:00:51]shift 228 fd 22127 [13:00:51]save to /storage/0228/doc_00022127 [13:00:51]save last doc name /storage/0228/doc_00022127 to /storage/kkm_last_doc_name [13:00:51]save OK [13:00:51]Clear old archive folders... [13:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:00:51]tlvbuf is 0024A670 [13:00:51]SAM_PROTO_ClearQueue [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 09 00 00 [13:00:51]Write to MH i2c: E2 08 00 1D 07 80 09 00 00 00 00 00 00 96 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_ClearQueue done [13:00:51]KKMCreateOFDPacket [13:00:51]OFDProtocolAddRootSTLVToBuf [13:00:51]FM_MakeSignedData [13:00:51]FM_MakeSignedData [13:00:51]SAM_PROTO_SignData [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 01 02 [13:00:51]Write to MH i2c: E2 08 00 1E 07 80 0D 01 02 00 00 00 00 9E [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]wFMCommunicate request_size=255 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 03 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [13:00:51]Write to MH i2c: E2 02 01 1F 07 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 03 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 DD [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]wFMCommunicate request_size=34 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6F 56 00 00 35 04 06 00 FF 63 94 C2 F5 CE [13:00:51]Write to MH i2c: E2 25 00 20 07 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6F 56 00 00 35 04 06 00 FF 63 94 C2 F5 CE 00 00 A9 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 03 02 [13:00:51]Write to MH i2c: E2 08 00 21 07 80 0D 03 02 00 00 00 00 A3 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0B 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0B 00 21 07 00 60 28 8B 47 C4 2F A5 BB 90 00 51 [13:00:51]RAPDU: 60 28 8B 47 C4 2F A5 BB 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_SignData done [13:00:51]FM_MakeSignedData done [13:00:51]CreateOFDProtocolMessage [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 11 00 00 [13:00:51]Write to MH i2c: E2 08 00 22 07 80 11 00 00 00 00 00 00 A3 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 17 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 17 00 22 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 FD [13:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:00:51]wFMCommunicate OK [13:00:51]CreateOFDProtocolMessage done [13:00:51]OFDSenderStorePacket 22127 [13:00:51]StoreOFDPacket docnum=22127 [13:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 A1 F5 1F 01 1B B3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 03 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6F 56 00 00 35 04 06 00 FF 63 94 C2 F5 CE 60 28 8B 47 C4 2F A5 BB [13:00:51]CheckFolder [13:00:51]dirname=/storage/ofd_packets [13:00:51]CheckFolder done [13:00:51]ProducePacketName [13:00:51]name=ofd_packets/00022127 [13:00:51]NVStorageSaveData ofd_packets/00022127 [13:00:51]File name is /storage/ofd_packets/00022127 [13:00:51]Write 325 bytes [13:00:51]NVStorageSaveData done [13:00:51]OFDSenderStorePacket done [13:00:51]KKMCreateOFDPacket done [13:00:51]NVStorageSaveData kkm_last_timestamp [13:00:51]File name is /storage/kkm_last_timestamp [13:00:51]Write 4 bytes [13:00:51]NVStorageSaveData done [13:00:51]ExternCall_PrintAddStr [13:00:51]wPrintStart [13:00:51]Write to MH i2c: 01 00 00 23 07 2A [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 07 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [13:00:51]RasterBufferAndPrint [13:00:51]line Счет N : (3)51396 [13:00:51]line ИНН: 02508201610067 [13:00:51]line Контрольно-Кассовый Чек [13:00:51]line ПРОДАЖА [13:00:51]line Товар: 4700001061104 [13:00:51]line Коньяк Семетей 0,2л [13:00:51]line 1.000 * 250.00 [13:00:51]line = 250.00 [13:00:51]line НДС 12% НСП 1% [13:00:51]line > о реализуемом товаре [13:00:51]line ИТОГО: 250.00 [13:00:51]line НСП 1% : 2.21 [13:00:51]line НДС 12% : 26.55 [13:00:51]line Наличными: 250.00 [13:00:51]line Безнал.: 0.00 [13:00:51]line Место: АЗС № 88 "Партнер Нефть" [13:00:51]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [13:00:51]line СНО: Общий режим [13:00:51]line Чек 42 22.09.2024 13:00 [13:00:51]line Смена: 228 ФФД: 1.0 [13:00:51]line ЗНМ: 0300000061 [13:00:51]line РНМ: 0000000000146243 [13:00:51]line Версия ККМ: v1.0 [13:00:51]line ФМ: 0000000000959358 [13:00:51]line ФД: 22127 [13:00:51]line ФПД: 280803162650062 [13:00:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130051&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22127&fm=280803162650062&tin=02508201610067®Number=0000000000146243&sum=25000 [13:00:51]line 0 [13:00:51]OFD Sender: Processing packet 22127 [packets to send 23, broken 22] [13:00:51]ProducePacketName [13:00:51]name=ofd_packets/00022127 [13:00:51]OFD Sender: To server: pG, [13:00:51]CommunicateWithHost lk.salyk.kg:30040 [13:00:51]ConnectInit lk.salyk.kg [13:00:51]written 0, free lines is 4095 [13:00:52]Connected sock=10 [13:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 A1 F5 1F 01 1B B3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 03 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6F 56 00 00 35 04 06 00 FF 63 94 C2 F5 CE 60 28 8B 47 C4 2F A5 BB [13:00:52]Write to MH i2c: 01 00 00 4B 07 52 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 27 0D 8D [13:00:52]RasterBufferAndPrint [13:00:52]line [13:00:52]line [13:00:52]line [13:00:52]line [13:00:52]line [13:00:52]written 0, free lines is 3373 [13:00:52]MH_Cut [13:00:52]Write to MH i2c: D1 01 00 52 07 01 2B [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: D1 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: D1 01 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: D1 01 00 52 07 00 2A [13:00:52]Write to MH i2c: 01 00 00 53 07 5A [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 ED E0 47 00 1C 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 6F 56 00 00 F4 03 04 00 2F BF EF 66 B6 04 01 00 00 BD 2B EC 66 B1 70 17 6B [13:00:52]CommunicateWithHost err = 0 [13:00:52]CheckOFDResponse [13:00:52]1017 (14) - 77093643461234 [13:00:52]1041 (16) - 0000000000959358 [13:00:52]1040 (4) - 22127 [13:00:52]1012 (4) - 22.09.2024 06:54 [13:00:52]1206 (1) - 0 [13:00:52]OFD Sender: Remove packet 22127 [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00022127 [13:00:52]NVStorageDeleteData [13:00:52]OFD Sender: No OFD packet to send [13:00:53]*** Cut start [13:00:53]*** Partial cut [13:00:53]*** CUTSNS_PIN = 1 [13:00:53]*** CUTSNS_PIN = 0 [13:00:53]*** Brake cut motor [13:00:53]Read from MH i2c: 01 [13:00:53]MH_I2C_Read... [13:00:53]*** Stop cut motor [13:00:53]*** Cut end [13:00:53]Read from MH i2c: 01 07 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [13:00:53]process_action close_receipt done [13:00:53]requested_data is exist [13:00:53]produce_requested_data [13:00:53]requested_item fm.sn is exist - process it [13:00:53]wFMCommunicate request_size=4 [13:00:53]MH_SAM_APDU [13:00:53]CAPDU: 80 11 00 00 [13:00:53]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:53]Read from MH i2c: E2 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 17 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 2F [13:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:00:53]wFMCommunicate OK [13:00:53]requested_item fd.num is exist - process it [13:00:53]SAM_PROTO_GetFieldsCounters [13:00:53]wFMCommunicate request_size=4 [13:00:53]MH_SAM_APDU [13:00:53]CAPDU: 80 13 00 00 [13:00:53]Write to MH i2c: E2 08 00 55 07 80 13 00 00 00 00 00 00 D8 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:53]Read from MH i2c: E2 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 62 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 62 00 55 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [13:00:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 6F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:53]wFMCommunicate OK [13:00:53]SAM_PROTO_GetFieldsCounters done [13:00:53]requested_item shift.num is exist - process it [13:00:53]requested_item shift.opened is exist - process it [13:00:53]req_shift_opened [13:00:53]FM_GetShiftState [13:00:53]SAM_PROTO_GetShiftState [13:00:53]wFMCommunicate request_size=4 [13:00:53]MH_SAM_APDU [13:00:53]CAPDU: 80 13 01 00 [13:00:53]Write to MH i2c: E2 08 00 56 07 80 13 01 00 00 00 00 00 DA [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:53]Read from MH i2c: E2 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 0E 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 0E 00 56 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 55 [13:00:53]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:00:53]wFMCommunicate OK [13:00:53]SAM_PROTO_GetShiftState done [13:00:53]FM_GetShiftState done [13:00:53]req_shift_opened done [13:00:53]requested_item shift.open_date is exist - process it [13:00:53]req_shift_open_date [13:00:53]req_shift_open_date done [13:00:53]produce_requested_data done [13:00:53]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22127,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [13:00:53]process_action_free close_receipt [13:00:53]json_value_free [13:00:53]json_value_free done [13:00:53]process_json_proto returns [13:00:53]Send response to host [13:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22127,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [13:00:53]free response buf [13:00:53]execute_script done [13:00:53]execute_script returns [13:00:53]free content buf [13:00:53]Sock 7.Close socket [13:00:53]Sock 7.Thread stoped [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:46]accept exits with 9 [13:03:46]New connection [13:03:46]New thread 3067182436 created [13:03:46]Thread 3067039076 joined [13:03:46]Waiting for new connection... [13:03:46] Sock 9.Parse request [13:03:46]Sock 9.Check first char [13:03:46]Sock 9.First char is OK [13:03:46]request: POST /json_proto HTTP/1.0 [13:03:46]Method: POST [13:03:46]URL: /json_proto [13:03:46]Method is POST - this is cgi request [13:03:46]url: /json_proto [13:03:46]query_string will be loaded in cgi processing [13:03:46]execute_cgi json_proto POST (null) [13:03:46]execute_cgi path=json_proto method=POST [13:03:46]POST find Content-Length [13:03:46]Host: 172.17.43.4:8080 [13:03:46]Content-Length: 791 [13:03:46]Content-Type: application/json [13:03:46] [13:03:46]POST finish read [13:03:46]Found Content-Length = 791 [13:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51397", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:46]execute_script... [13:03: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)51397", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:46]POST & json_proto [13:03:46]process_json_proto [13:03:46]json parsed OK: [13:03:46]protocol is kg_v1.0 [13:03:46]action value=close_receipt [13:03:46]process_action close_receipt [13:03:46]cmd_close_receipt [13:03:46]MH_GetDate [13:03:46]Write to MH i2c: F0 00 00 57 07 4D [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: F0 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: F0 09 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: F0 09 00 57 07 00 B4 15 F0 66 02 BF CF 66 6B [13:03:46]GetLastDocTimeStamp 1727010051 [13:03:46]current date 1727010228 [13:03:46]FM_GetShiftState [13:03:46]SAM_PROTO_GetShiftState [13:03:46]wFMCommunicate request_size=4 [13:03:46]MH_SAM_APDU [13:03:46]CAPDU: 80 13 01 00 [13:03:46]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:46]Read from MH i2c: E2 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 0E 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 57 [13:03:46]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:03:46]wFMCommunicate OK [13:03:46]SAM_PROTO_GetShiftState done [13:03:46]FM_GetShiftState done [13:03:46]opened in 1726964408 [13:03:46]opened+sec_in_day 1727050808 [13:03:46]quantity*price = 0 [13:03:46]sum+1 = 1 [13:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 43 22.09.2024 13:03 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22128 ФПД: 219718109841720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130348&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22128&fm=219718109841720&tin=02508201610067®Number=0000000000146243&sum=0 0 [13:03:48]StoreToDocumentArchive [13:03:48]shift 228 fd 22128 [13:03:48]save to /storage/0228/doc_00022128 [13:03:48]save last doc name /storage/0228/doc_00022128 to /storage/kkm_last_doc_name [13:03:48]save OK [13:03:48]Clear old archive folders... [13:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:03:48]tlvbuf is 0025D8E0 [13:03:48]SAM_PROTO_ClearQueue [13:03:48]wFMCommunicate request_size=4 [13:03:48]MH_SAM_APDU [13:03:48]CAPDU: 80 09 00 00 [13:03:48]Write to MH i2c: E2 08 00 65 07 80 09 00 00 00 00 00 00 DE [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:48]Read from MH i2c: E2 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [13:03:48]RAPDU: 90 00 [13:03:48]wFMCommunicate OK [13:03:48]SAM_PROTO_ClearQueue done [13:03:48]KKMCreateOFDPacket [13:03:48]OFDProtocolAddRootSTLVToBuf [13:03:48]FM_MakeSignedData [13:03:48]FM_MakeSignedData [13:03:48]SAM_PROTO_SignData [13:03:48]wFMCommunicate request_size=4 [13:03:48]MH_SAM_APDU [13:03:48]CAPDU: 80 0D 01 02 [13:03:48]Write to MH i2c: E2 08 00 66 07 80 0D 01 02 00 00 00 00 E6 [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]OFD Sender: No OFD packet to send [13:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:48]Read from MH i2c: E2 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [13:03:48]RAPDU: 90 00 [13:03:48]wFMCommunicate OK [13:03:48]wFMCommunicate request_size=255 [13:03:48]MH_SAM_APDU [13:03:48]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 [13:03:48]Write to MH i2c: E2 02 01 67 07 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 00 00 8D [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:48]Read from MH i2c: E2 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [13:03:48]RAPDU: 90 00 [13:03:48]wFMCommunicate OK [13:03:48]wFMCommunicate request_size=46 [13:03:48]MH_SAM_APDU [13:03:48]CAPDU: 80 0D 02 02 29 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 70 56 00 00 35 04 06 00 C7 D5 1B E3 49 38 [13:03:48]Write to MH i2c: E2 31 00 68 07 80 0D 02 02 29 00 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 70 56 00 00 35 04 06 00 C7 D5 1B E3 49 38 00 00 58 [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:48]Read from MH i2c: E2 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [13:03:48]RAPDU: 90 00 [13:03:48]wFMCommunicate OK [13:03:48]wFMCommunicate request_size=4 [13:03:48]MH_SAM_APDU [13:03:48]CAPDU: 80 0D 03 02 [13:03:48]Write to MH i2c: E2 08 00 69 07 80 0D 03 02 00 00 00 00 EB [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:48]Read from MH i2c: E2 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 0B 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 0B 00 69 07 00 C0 C1 53 25 D6 03 DE E0 90 00 7C [13:03:48]RAPDU: C0 C1 53 25 D6 03 DE E0 90 00 [13:03:48]wFMCommunicate OK [13:03:48]SAM_PROTO_SignData done [13:03:48]FM_MakeSignedData done [13:03:48]CreateOFDProtocolMessage [13:03:48]wFMCommunicate request_size=4 [13:03:48]MH_SAM_APDU [13:03:48]CAPDU: 80 11 00 00 [13:03:48]Write to MH i2c: E2 08 00 6A 07 80 11 00 00 00 00 00 00 EB [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:48]Read from MH i2c: E2 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 17 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: E2 17 00 6A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 45 [13:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:03:48]wFMCommunicate OK [13:03:48]CreateOFDProtocolMessage done [13:03:48]OFDSenderStorePacket 22128 [13:03:48]StoreOFDPacket docnum=22128 [13:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 33 01 00 00 9B 9C 2B 01 DA 5F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 70 56 00 00 35 04 06 00 C7 D5 1B E3 49 38 C0 C1 53 25 D6 03 DE E0 [13:03:48]CheckFolder [13:03:48]dirname=/storage/ofd_packets [13:03:48]CheckFolder done [13:03:48]ProducePacketName [13:03:48]name=ofd_packets/00022128 [13:03:48]NVStorageSaveData ofd_packets/00022128 [13:03:48]File name is /storage/ofd_packets/00022128 [13:03:48]Write 337 bytes [13:03:48]NVStorageSaveData done [13:03:48]OFDSenderStorePacket done [13:03:48]KKMCreateOFDPacket done [13:03:48]NVStorageSaveData kkm_last_timestamp [13:03:48]File name is /storage/kkm_last_timestamp [13:03:48]Write 4 bytes [13:03:48]NVStorageSaveData done [13:03:48]ExternCall_PrintAddStr [13:03:48]wPrintStart [13:03:48]Write to MH i2c: 01 00 00 6B 07 72 [13:03:48]Write i2c OK [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: 01 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: 01 07 00 [13:03:48]MH_I2C_Read... [13:03:48]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [13:03:48]RasterBufferAndPrint [13:03:48]line Счет N : (3)51397 [13:03:48]line ИНН: 02508201610067 [13:03:48]line Контрольно-Кассовый Чек [13:03:48]line ПРОДАЖА [13:03:48]line Товар: 5449000189394 [13:03:48]line Холодный чай Fuse ягода 0,5л [13:03:48]line 1.000 * 0.00 [13:03:48]line = 0.00 [13:03:48]line НДС 12% НСП 1% [13:03:48]line > о реализуемом товаре [13:03:48]line ИТОГО: 0.00 [13:03:48]line НСП 1% : 0.00 [13:03:48]line НДС 12% : 0.00 [13:03:48]line Наличными: 0.00 [13:03:48]line Безнал.: 0.00 [13:03:48]line Место: АЗС № 88 "Партнер Нефть" [13:03:48]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [13:03:48]line СНО: Общий режим [13:03:48]line Чек 43 22.09.2024 13:03 [13:03:48]line Смена: 228 ФФД: 1.0 [13:03:48]line ЗНМ: 0300000061 [13:03:48]line РНМ: 0000000000146243 [13:03:48]line Версия ККМ: v1.0 [13:03:48]line Платежная система: Mbank [13:03:48]line ФМ: 0000000000959358 [13:03:48]line ФД: 22128 [13:03:48]line ФПД: 219718109841720 [13:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T130348&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22128&fm=219718109841720&tin=02508201610067®Number=0000000000146243&sum=0 [13:03:48]OFD Sender: Processing packet 22128 [packets to send 23, broken 22] [13:03:48]ProducePacketName [13:03:48]name=ofd_packets/00022128 [13:03:48]OFD Sender: To server: pG, [13:03:48]CommunicateWithHost lk.salyk.kg:30040 [13:03:48]ConnectInit lk.salyk.kg [13:03:48]line 0 [13:03:48]written 0, free lines is 4095 [13:03:49]Connected sock=11 [13:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 33 01 00 00 9B 9C 2B 01 DA 5F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 70 56 00 00 35 04 06 00 C7 D5 1B E3 49 38 C0 C1 53 25 D6 03 DE E0 [13:03:49]recv_with_timeout no data received [13:03:49]CommunicateWithHost answer receiving error [13:03:49]CommunicateWithHost err = -3 [13:03:49]OFD Sender: Server communicate error [13:03:49]Write to MH i2c: 01 00 00 94 07 9B [13:03:49]Write i2c OK [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: 01 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: 01 07 00 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 21 0D D0 [13:03:49]RasterBufferAndPrint [13:03:49]line [13:03:49]line [13:03:49]line [13:03:49]line [13:03:49]line [13:03:49]written 0, free lines is 3368 [13:03:49]MH_Cut [13:03:49]Write to MH i2c: D1 01 00 9B 07 01 74 [13:03:49]Write i2c OK [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: D1 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: D1 01 00 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: D1 01 00 9B 07 00 73 [13:03:49]Write to MH i2c: 01 00 00 9C 07 A3 [13:03:49]Write i2c OK [13:03:49]MH_I2C_Read... [13:03:50]*** Cut start [13:03:50]*** Partial cut [13:03:50]*** CUTSNS_PIN = 1 [13:03:50]*** CUTSNS_PIN = 0 [13:03:50]*** Brake cut motor [13:03:50]Read from MH i2c: 01 [13:03:50]MH_I2C_Read... [13:03:50]*** Stop cut motor [13:03:50]*** Cut end [13:03:50]Read from MH i2c: 01 07 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [13:03:50]process_action close_receipt done [13:03:50]requested_data is exist [13:03:50]produce_requested_data [13:03:50]requested_item fm.sn is exist - process it [13:03:50]wFMCommunicate request_size=4 [13:03:50]MH_SAM_APDU [13:03:50]CAPDU: 80 11 00 00 [13:03:50]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:50]Read from MH i2c: E2 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 17 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 78 [13:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:03:50]wFMCommunicate OK [13:03:50]requested_item fd.num is exist - process it [13:03:50]SAM_PROTO_GetFieldsCounters [13:03:50]wFMCommunicate request_size=4 [13:03:50]MH_SAM_APDU [13:03:50]CAPDU: 80 13 00 00 [13:03:50]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:50]Read from MH i2c: E2 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 62 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 70 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 70 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:50]wFMCommunicate OK [13:03:50]SAM_PROTO_GetFieldsCounters done [13:03:50]requested_item shift.num is exist - process it [13:03:50]requested_item shift.opened is exist - process it [13:03:50]req_shift_opened [13:03:50]FM_GetShiftState [13:03:50]SAM_PROTO_GetShiftState [13:03:50]wFMCommunicate request_size=4 [13:03:50]MH_SAM_APDU [13:03:50]CAPDU: 80 13 01 00 [13:03:50]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:50]Read from MH i2c: E2 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 0E 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 9E [13:03:50]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:03:50]wFMCommunicate OK [13:03:50]SAM_PROTO_GetShiftState done [13:03:50]FM_GetShiftState done [13:03:50]req_shift_opened done [13:03:50]requested_item shift.open_date is exist - process it [13:03:50]req_shift_open_date [13:03:50]req_shift_open_date done [13:03:50]produce_requested_data done [13:03:50]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22128,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [13:03:50]process_action_free close_receipt [13:03:50]json_value_free [13:03:50]json_value_free done [13:03:50]process_json_proto returns [13:03:50]Send response to host [13:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22128,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [13:03:50]free response buf [13:03:50]execute_script done [13:03:50]execute_script returns [13:03:50]free content buf [13:03:50]Sock 9.Close socket [13:03:50]Sock 9.Thread stoped [13:03:54]OFD Sender: Processing packet 22128 [packets to send 23, broken 22] [13:03:54]ProducePacketName [13:03:54]name=ofd_packets/00022128 [13:03:54]OFD Sender: To server: pG, [13:03:54]CommunicateWithHost lk.salyk.kg:30040 [13:03:54]ConnectInit lk.salyk.kg [13:03:54]Connected sock=10 [13:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 33 01 00 00 9B 9C 2B 01 DA 5F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 15 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 70 56 00 00 35 04 06 00 C7 D5 1B E3 49 38 C0 C1 53 25 D6 03 DE E0 [13:03:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 D0 63 47 00 01 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 70 56 00 00 F4 03 04 00 E5 BF EF 66 B6 04 01 00 00 CA 8E 66 40 35 C2 94 10 [13:03:55]CommunicateWithHost err = 0 [13:03:55]CheckOFDResponse [13:03:55]1017 (14) - 77093643461234 [13:03:55]1041 (16) - 0000000000959358 [13:03:55]1040 (4) - 22128 [13:03:55]1012 (4) - 22.09.2024 06:57 [13:03:55]1206 (1) - 0 [13:03:55]OFD Sender: Remove packet 22128 [13:03:55]ProducePacketName [13:03:55]name=ofd_packets/00022128 [13:03:55]NVStorageDeleteData [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:49]accept exits with 7 [13:10:49]New connection [13:10:49]New thread 3067039076 created [13:10:49]Thread 3067182436 joined [13:10:49]Waiting for new connection... [13:10:49] Sock 7.Parse request [13:10:49]Sock 7.Check first char [13:10:49]Sock 7.First char is OK [13:10:49]request: POST /json_proto HTTP/1.0 [13:10:49]Method: POST [13:10:49]URL: /json_proto [13:10:49]Method is POST - this is cgi request [13:10:49]url: /json_proto [13:10:49]query_string will be loaded in cgi processing [13:10:49]execute_cgi json_proto POST (null) [13:10:49]execute_cgi path=json_proto method=POST [13:10:49]POST find Content-Length [13:10:49]Host: 172.17.43.4:8080 [13:10:49]Content-Length: 613 [13:10:49]Content-Type: application/json [13:10:49] [13:10:49]POST finish read [13:10:49]Found Content-Length = 613 [13:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51398", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:49]execute_script... [13:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51398", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:49]POST & json_proto [13:10:49]process_json_proto [13:10:49]json parsed OK: [13:10:49]protocol is kg_v1.0 [13:10:49]action value=close_receipt [13:10:49]process_action close_receipt [13:10:49]cmd_close_receipt [13:10:49]MH_GetDate [13:10:49]Write to MH i2c: F0 00 00 A0 07 96 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: F0 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: F0 09 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: F0 09 00 A0 07 00 5B 17 F0 66 02 BF CF 66 5D [13:10:49]GetLastDocTimeStamp 1727010228 [13:10:49]current date 1727010651 [13:10:49]FM_GetShiftState [13:10:49]SAM_PROTO_GetShiftState [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 13 01 00 [13:10:49]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:49]Read from MH i2c: E2 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 0E 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A0 [13:10:49]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:10:49]wFMCommunicate OK [13:10:49]SAM_PROTO_GetShiftState done [13:10:49]FM_GetShiftState done [13:10:49]opened in 1726964408 [13:10:49]opened+sec_in_day 1727050808 [13:10:49]quantity*price = 21000 [13:10:49]sum+1 = 21001 [13:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 44 22.09.2024 13:10 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22129 ФПД: 59477812025436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131051&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22129&fm=59477812025436&tin=02508201610067®Number=0000000000146243&sum=21000 0 [13:10:50]StoreToDocumentArchive [13:10:50]shift 228 fd 22129 [13:10:50]save to /storage/0228/doc_00022129 [13:10:50]save last doc name /storage/0228/doc_00022129 to /storage/kkm_last_doc_name [13:10:50]save OK [13:10:50]Clear old archive folders... [13:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=266 [13:10:50]tlvbuf is 0025D960 [13:10:50]SAM_PROTO_ClearQueue [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 09 00 00 [13:10:50]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:51]Read from MH i2c: E2 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [13:10:51]RAPDU: 90 00 [13:10:51]wFMCommunicate OK [13:10:51]SAM_PROTO_ClearQueue done [13:10:51]KKMCreateOFDPacket [13:10:51]OFDProtocolAddRootSTLVToBuf [13:10:51]FM_MakeSignedData [13:10:51]FM_MakeSignedData [13:10:51]SAM_PROTO_SignData [13:10:51]wFMCommunicate request_size=4 [13:10:51]MH_SAM_APDU [13:10:51]CAPDU: 80 0D 01 02 [13:10:51]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]OFD Sender: No OFD packet to send [13:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:51]Read from MH i2c: E2 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [13:10:51]RAPDU: 90 00 [13:10:51]wFMCommunicate OK [13:10:51]wFMCommunicate request_size=255 [13:10:51]MH_SAM_APDU [13:10:51]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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5B 17 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 [13:10:51]Write to MH i2c: E2 02 01 B0 07 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5B 17 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 00 00 E5 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:51]Read from MH i2c: E2 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [13:10:51]RAPDU: 90 00 [13:10:51]wFMCommunicate OK [13:10:51]wFMCommunicate request_size=25 [13:10:51]MH_SAM_APDU [13:10:51]CAPDU: 80 0D 02 02 14 35 38 10 04 04 00 71 56 00 00 35 04 06 00 36 18 41 DB 98 5C [13:10:51]Write to MH i2c: E2 1C 00 B1 07 80 0D 02 02 14 00 35 38 10 04 04 00 71 56 00 00 35 04 06 00 36 18 41 DB 98 5C 00 00 43 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:51]Read from MH i2c: E2 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [13:10:51]RAPDU: 90 00 [13:10:51]wFMCommunicate OK [13:10:51]wFMCommunicate request_size=4 [13:10:51]MH_SAM_APDU [13:10:51]CAPDU: 80 0D 03 02 [13:10:51]Write to MH i2c: E2 08 00 B2 07 80 0D 03 02 00 00 00 00 34 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:51]Read from MH i2c: E2 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 0B 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 0B 00 B2 07 00 4C 12 94 9D C7 98 62 30 90 00 B5 [13:10:51]RAPDU: 4C 12 94 9D C7 98 62 30 90 00 [13:10:51]wFMCommunicate OK [13:10:51]SAM_PROTO_SignData done [13:10:51]FM_MakeSignedData done [13:10:51]CreateOFDProtocolMessage [13:10:51]wFMCommunicate request_size=4 [13:10:51]MH_SAM_APDU [13:10:51]CAPDU: 80 11 00 00 [13:10:51]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:51]Read from MH i2c: E2 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 17 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 8E [13:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:10:51]wFMCommunicate OK [13:10:51]CreateOFDProtocolMessage done [13:10:51]OFDSenderStorePacket 22129 [13:10:51]StoreOFDPacket docnum=22129 [13:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1E 01 00 00 A7 B8 16 01 3D 57 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5B 17 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 71 56 00 00 35 04 06 00 36 18 41 DB 98 5C 4C 12 94 9D C7 98 62 30 [13:10:51]CheckFolder [13:10:51]dirname=/storage/ofd_packets [13:10:51]CheckFolder done [13:10:51]ProducePacketName [13:10:51]name=ofd_packets/00022129 [13:10:51]NVStorageSaveData ofd_packets/00022129 [13:10:51]File name is /storage/ofd_packets/00022129 [13:10:51]Write 316 bytes [13:10:51]NVStorageSaveData done [13:10:51]OFDSenderStorePacket done [13:10:51]KKMCreateOFDPacket done [13:10:51]NVStorageSaveData kkm_last_timestamp [13:10:51]File name is /storage/kkm_last_timestamp [13:10:51]Write 4 bytes [13:10:51]NVStorageSaveData done [13:10:51]ExternCall_PrintAddStr [13:10:51]wPrintStart [13:10:51]Write to MH i2c: 01 00 00 B4 07 BB [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [13:10:51]RasterBufferAndPrint [13:10:51]line Счет N : (3)51398 [13:10:51]line ИНН: 02508201610067 [13:10:51]line Контрольно-Кассовый Чек [13:10:51]line ПРОДАЖА [13:10:51]line Товар: 4870001570095 [13:10:51]line Напиток Pepsi 2л [13:10:51]line 1.000 * 210.00 [13:10:51]line = 210.00 [13:10:51]line НДС 12% НСП 1% [13:10:51]line > о реализуемом товаре [13:10:51]line ИТОГО: 210.00 [13:10:51]line НСП 1% : 1.86 [13:10:51]line НДС 12% : 22.30 [13:10:51]line Наличными: 210.00 [13:10:51]line Безнал.: 0.00 [13:10:51]line Место: АЗС № 88 "Партнер Нефть" [13:10:51]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [13:10:51]line СНО: Общий режим [13:10:51]line Чек 44 22.09.2024 13:10 [13:10:51]line Смена: 228 ФФД: 1.0 [13:10:51]line ЗНМ: 0300000061 [13:10:51]line РНМ: 0000000000146243 [13:10:51]line Версия ККМ: v1.0 [13:10:51]line ФМ: 0000000000959358 [13:10:51]line ФД: 22129 [13:10:51]line ФПД: 59477812025436 [13:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T131051&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22129&fm=59477812025436&tin=02508201610067®Number=0000000000146243&sum=21000 [13:10:51]line 0 [13:10:51]OFD Sender: Processing packet 22129 [packets to send 23, broken 22] [13:10:51]ProducePacketName [13:10:51]name=ofd_packets/00022129 [13:10:51]OFD Sender: To server: pG, [13:10:51]CommunicateWithHost lk.salyk.kg:30040 [13:10:51]ConnectInit lk.salyk.kg [13:10:51]written 0, free lines is 4095 [13:10:52]Connected sock=10 [13:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1E 01 00 00 A7 B8 16 01 3D 57 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 5B 17 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 71 56 00 00 35 04 06 00 36 18 41 DB 98 5C 4C 12 94 9D C7 98 62 30 [13:10:52]Write to MH i2c: 01 00 00 DC 07 E3 [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: 01 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: 01 07 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 27 0D 1E [13:10:52]RasterBufferAndPrint [13:10:52]line [13:10:52]line [13:10:52]line [13:10:52]line [13:10:52]line [13:10:52]written 0, free lines is 3374 [13:10:52]MH_Cut [13:10:52]Write to MH i2c: D1 01 00 E3 07 01 BC [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: D1 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: D1 01 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: D1 01 00 E3 07 00 BB [13:10:52]Write to MH i2c: 01 00 00 E4 07 EB [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 29 9F 47 00 9E 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 39 35 39 33 35 38 10 04 04 00 71 56 00 00 F4 03 04 00 86 C1 EF 66 B6 04 01 00 00 84 F2 8B 23 22 B8 6C 43 [13:10:52]CommunicateWithHost err = 0 [13:10:52]CheckOFDResponse [13:10:52]1017 (14) - 77093643461234 [13:10:52]1041 (16) - 0000000000959358 [13:10:52]1040 (4) - 22129 [13:10:52]1012 (4) - 22.09.2024 07:04 [13:10:52]1206 (1) - 0 [13:10:52]OFD Sender: Remove packet 22129 [13:10:52]ProducePacketName [13:10:52]name=ofd_packets/00022129 [13:10:52]NVStorageDeleteData [13:10:52]OFD Sender: No OFD packet to send [13:10:52]*** Cut start [13:10:52]*** Partial cut [13:10:52]*** CUTSNS_PIN = 1 [13:10:52]*** CUTSNS_PIN = 0 [13:10:53]*** Brake cut motor [13:10:53]Read from MH i2c: 01 [13:10:53]MH_I2C_Read... [13:10:53]*** Stop cut motor [13:10:53]*** Cut end [13:10:53]Read from MH i2c: 01 07 00 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 FF 0F 00 [13:10:53]process_action close_receipt done [13:10:53]requested_data is exist [13:10:53]produce_requested_data [13:10:53]requested_item fm.sn is exist - process it [13:10:53]wFMCommunicate request_size=4 [13:10:53]MH_SAM_APDU [13:10:53]CAPDU: 80 11 00 00 [13:10:53]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [13:10:53]Write i2c OK [13:10:53]MH_I2C_Read... [13:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:53]Read from MH i2c: E2 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 17 00 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C0 [13:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:10:53]wFMCommunicate OK [13:10:53]requested_item fd.num is exist - process it [13:10:53]SAM_PROTO_GetFieldsCounters [13:10:53]wFMCommunicate request_size=4 [13:10:53]MH_SAM_APDU [13:10:53]CAPDU: 80 13 00 00 [13:10:53]Write to MH i2c: E2 08 00 E6 07 80 13 00 00 00 00 00 00 69 [13:10:53]Write i2c OK [13:10:53]MH_I2C_Read... [13:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:53]Read from MH i2c: E2 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 62 00 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 62 00 E6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 71 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 71 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:53]wFMCommunicate OK [13:10:53]SAM_PROTO_GetFieldsCounters done [13:10:53]requested_item shift.num is exist - process it [13:10:53]requested_item shift.opened is exist - process it [13:10:53]req_shift_opened [13:10:53]FM_GetShiftState [13:10:53]SAM_PROTO_GetShiftState [13:10:53]wFMCommunicate request_size=4 [13:10:53]MH_SAM_APDU [13:10:53]CAPDU: 80 13 01 00 [13:10:53]Write to MH i2c: E2 08 00 E7 07 80 13 01 00 00 00 00 00 6B [13:10:53]Write i2c OK [13:10:53]MH_I2C_Read... [13:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:53]Read from MH i2c: E2 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 0E 00 [13:10:53]MH_I2C_Read... [13:10:53]Read from MH i2c: E2 0E 00 E7 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 E6 [13:10:53]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:10:53]wFMCommunicate OK [13:10:53]SAM_PROTO_GetShiftState done [13:10:53]FM_GetShiftState done [13:10:53]req_shift_opened done [13:10:53]requested_item shift.open_date is exist - process it [13:10:53]req_shift_open_date [13:10:53]req_shift_open_date done [13:10:53]produce_requested_data done [13:10:53]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22129,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [13:10:53]process_action_free close_receipt [13:10:53]json_value_free [13:10:53]json_value_free done [13:10:53]process_json_proto returns [13:10:53]Send response to host [13:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22129,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [13:10:53]free response buf [13:10:53]execute_script done [13:10:53]execute_script returns [13:10:53]free content buf [13:10:53]Sock 7.Close socket [13:10:53]Sock 7.Thread stoped [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:37]accept exits with 9 [13:37:37]New connection [13:37:37]New thread 3067182436 created [13:37:37]Thread 3067039076 joined [13:37:37]Waiting for new connection... [13:37:37] Sock 9.Parse request [13:37:37]Sock 9.Check first char [13:37:37]Sock 9.First char is OK [13:37:37]request: POST /json_proto HTTP/1.0 [13:37:37]Method: POST [13:37:37]URL: /json_proto [13:37:37]Method is POST - this is cgi request [13:37:37]url: /json_proto [13:37:37]query_string will be loaded in cgi processing [13:37:37]execute_cgi json_proto POST (null) [13:37:37]execute_cgi path=json_proto method=POST [13:37:37]POST find Content-Length [13:37:37]Host: 172.17.43.4:8080 [13:37:37]Content-Length: 659 [13:37:37]Content-Type: application/json [13:37:37] [13:37:37]POST finish read [13:37:37]Found Content-Length = 659 [13:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51399", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:37]execute_script... [13:37:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51399", "tax_sys" : 0, "items" : [ { "code": "4620016307540", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut Nat FITOGUARD \u0430\u043B\u043E\u044D 20 \u0448", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:37]POST & json_proto [13:37:37]process_json_proto [13:37:37]json parsed OK: [13:37:37]protocol is kg_v1.0 [13:37:37]action value=close_receipt [13:37:37]process_action close_receipt [13:37:37]cmd_close_receipt [13:37:37]MH_GetDate [13:37:37]Write to MH i2c: F0 00 00 E8 07 DE [13:37:37]Write i2c OK [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: F0 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: F0 09 00 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: F0 09 00 E8 07 00 A3 1D F0 66 02 BF CF 66 F3 [13:37:37]GetLastDocTimeStamp 1727010651 [13:37:37]current date 1727012259 [13:37:37]FM_GetShiftState [13:37:37]SAM_PROTO_GetShiftState [13:37:37]wFMCommunicate request_size=4 [13:37:37]MH_SAM_APDU [13:37:37]CAPDU: 80 13 01 00 [13:37:37]Write to MH i2c: E2 08 00 E9 07 80 13 01 00 00 00 00 00 6D [13:37:37]Write i2c OK [13:37:37]MH_I2C_Read... [13:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:37]Read from MH i2c: E2 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: E2 0E 00 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: E2 0E 00 E9 07 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 E8 [13:37:37]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:37:37]wFMCommunicate OK [13:37:37]SAM_PROTO_GetShiftState done [13:37:37]FM_GetShiftState done [13:37:37]opened in 1726964408 [13:37:37]opened+sec_in_day 1727050808 [13:37:37]quantity*price = 5500 [13:37:37]sum+1 = 5501 [13:37:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 45 22.09.2024 13:37 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22130 ФПД: 179585848717829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133739&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22130&fm=179585848717829&tin=02508201610067®Number=0000000000146243&sum=5500 0 [13:37:39]StoreToDocumentArchive [13:37:39]shift 228 fd 22130 [13:37:39]save to /storage/0228/doc_00022130 [13:37:39]save last doc name /storage/0228/doc_00022130 to /storage/kkm_last_doc_name [13:37:39]save OK [13:37:39]Clear old archive folders... [13:37:39]ProcessDocumentItem done err = 0, tmpTLVsize=295 [13:37:39]tlvbuf is 002403A0 [13:37:39]SAM_PROTO_ClearQueue [13:37:39]wFMCommunicate request_size=4 [13:37:39]MH_SAM_APDU [13:37:39]CAPDU: 80 09 00 00 [13:37:39]Write to MH i2c: E2 08 00 F6 07 80 09 00 00 00 00 00 00 6F [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:39]Read from MH i2c: E2 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [13:37:39]RAPDU: 90 00 [13:37:39]wFMCommunicate OK [13:37:39]SAM_PROTO_ClearQueue done [13:37:39]KKMCreateOFDPacket [13:37:39]OFDProtocolAddRootSTLVToBuf [13:37:39]FM_MakeSignedData [13:37:39]FM_MakeSignedData [13:37:39]SAM_PROTO_SignData [13:37:39]wFMCommunicate request_size=4 [13:37:39]MH_SAM_APDU [13:37:39]CAPDU: 80 0D 01 02 [13:37:39]Write to MH i2c: E2 08 00 F7 07 80 0D 01 02 00 00 00 00 77 [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:39]Read from MH i2c: E2 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [13:37:39]RAPDU: 90 00 [13:37:39]wFMCommunicate OK [13:37:39]wFMCommunicate request_size=255 [13:37:39]MH_SAM_APDU [13:37:39]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 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A3 1D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [13:37:39]Write to MH i2c: E2 02 01 F8 07 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 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A3 1D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 09 [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]OFD Sender: No OFD packet to send [13:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:39]Read from MH i2c: E2 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [13:37:39]RAPDU: 90 00 [13:37:39]wFMCommunicate OK [13:37:39]wFMCommunicate request_size=54 [13:37:39]MH_SAM_APDU [13:37:39]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 72 56 00 00 35 04 06 00 A3 55 16 B8 32 05 [13:37:39]Write to MH i2c: E2 39 00 F9 07 80 0D 02 02 31 00 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 72 56 00 00 35 04 06 00 A3 55 16 B8 32 05 00 00 68 [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:39]Read from MH i2c: E2 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [13:37:39]RAPDU: 90 00 [13:37:39]wFMCommunicate OK [13:37:39]wFMCommunicate request_size=4 [13:37:39]MH_SAM_APDU [13:37:39]CAPDU: 80 0D 03 02 [13:37:39]Write to MH i2c: E2 08 00 FA 07 80 0D 03 02 00 00 00 00 7C [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:39]Read from MH i2c: E2 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 0B 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 0B 00 FA 07 00 41 76 02 75 E5 C1 72 5F 90 00 22 [13:37:39]RAPDU: 41 76 02 75 E5 C1 72 5F 90 00 [13:37:39]wFMCommunicate OK [13:37:39]SAM_PROTO_SignData done [13:37:39]FM_MakeSignedData done [13:37:39]CreateOFDProtocolMessage [13:37:39]wFMCommunicate request_size=4 [13:37:39]MH_SAM_APDU [13:37:39]CAPDU: 80 11 00 00 [13:37:39]Write to MH i2c: E2 08 00 FB 07 80 11 00 00 00 00 00 00 7C [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:39]Read from MH i2c: E2 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 17 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: E2 17 00 FB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D6 [13:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:37:39]wFMCommunicate OK [13:37:39]CreateOFDProtocolMessage done [13:37:39]OFDSenderStorePacket 22130 [13:37:39]StoreOFDPacket docnum=22130 [13:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3B 01 00 00 F8 BA 33 01 0A D6 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A3 1D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 72 56 00 00 35 04 06 00 A3 55 16 B8 32 05 41 76 02 75 E5 C1 72 5F [13:37:39]CheckFolder [13:37:39]dirname=/storage/ofd_packets [13:37:39]CheckFolder done [13:37:39]ProducePacketName [13:37:39]name=ofd_packets/00022130 [13:37:39]NVStorageSaveData ofd_packets/00022130 [13:37:39]File name is /storage/ofd_packets/00022130 [13:37:39]Write 345 bytes [13:37:39]NVStorageSaveData done [13:37:39]OFDSenderStorePacket done [13:37:39]KKMCreateOFDPacket done [13:37:39]NVStorageSaveData kkm_last_timestamp [13:37:39]File name is /storage/kkm_last_timestamp [13:37:39]Write 4 bytes [13:37:39]NVStorageSaveData done [13:37:39]ExternCall_PrintAddStr [13:37:39]wPrintStart [13:37:39]Write to MH i2c: 01 00 00 FC 07 03 [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: 01 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: 01 07 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 FF 0F 18 [13:37:39]RasterBufferAndPrint [13:37:39]line Счет N : (3)51399 [13:37:39]line ИНН: 02508201610067 [13:37:39]line Контрольно-Кассовый Чек [13:37:39]line ПРОДАЖА [13:37:39]line Товар: 4620016307540 [13:37:39]line Салфетки Absolut Nat FITOGUARD алоэ 20 ш [13:37:39]line 1.000 * 55.00 [13:37:39]line = 55.00 [13:37:39]line НДС 12% НСП 1% [13:37:39]line > о реализуемом товаре [13:37:39]line ИТОГО: 55.00 [13:37:39]line НСП 1% : 0.49 [13:37:39]line НДС 12% : 5.84 [13:37:39]line Наличными: 55.00 [13:37:39]line Безнал.: 0.00 [13:37:39]line Место: АЗС № 88 "Партнер Нефть" [13:37:39]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [13:37:39]line СНО: Общий режим [13:37:39]line Чек 45 22.09.2024 13:37 [13:37:39]line Смена: 228 ФФД: 1.0 [13:37:39]line ЗНМ: 0300000061 [13:37:39]line РНМ: 0000000000146243 [13:37:39]line Версия ККМ: v1.0 [13:37:39]line ФМ: 0000000000959358 [13:37:39]line ФД: 22130 [13:37:39]line ФПД: 179585848717829 [13:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T133739&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22130&fm=179585848717829&tin=02508201610067®Number=0000000000146243&sum=5500 [13:37:39]line 0 [13:37:39]OFD Sender: Processing packet 22130 [packets to send 23, broken 22] [13:37:39]ProducePacketName [13:37:39]name=ofd_packets/00022130 [13:37:39]OFD Sender: To server: pG, [13:37:39]CommunicateWithHost lk.salyk.kg:30040 [13:37:39]ConnectInit lk.salyk.kg [13:37:39]written 0, free lines is 4095 [13:37:40]Connected sock=10 [13:37:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3B 01 00 00 F8 BA 33 01 0A D6 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 37 35 34 30 06 04 35 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 4E 61 74 20 46 49 54 4F 47 55 41 52 44 20 D0 B0 D0 BB D0 BE D1 8D 20 32 30 20 D1 88 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 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A3 1D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 72 56 00 00 35 04 06 00 A3 55 16 B8 32 05 41 76 02 75 E5 C1 72 5F [13:37:40]Write to MH i2c: 01 00 00 25 08 2D [13:37:40]Write i2c OK [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: 01 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: 01 07 00 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 23 0D 64 [13:37:40]RasterBufferAndPrint [13:37:40]line [13:37:40]line [13:37:40]line [13:37:40]line [13:37:40]line [13:37:40]written 0, free lines is 3370 [13:37:40]MH_Cut [13:37:40]Write to MH i2c: D1 01 00 2C 08 01 06 [13:37:40]Write i2c OK [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: D1 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: D1 01 00 [13:37:40]MH_I2C_Read... [13:37:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 18 61 47 00 C3 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 39 35 39 33 35 38 10 04 04 00 72 56 00 00 F4 03 04 00 CF C7 EF 66 B6 04 01 00 00 8F 13 E6 62 BC F5 BD 6D [13:37:40]CommunicateWithHost err = 0 [13:37:40]CheckOFDResponse [13:37:40]1017 (14) - 77093643461234 [13:37:40]1041 (16) - 0000000000959358 [13:37:40]1040 (4) - 22130 [13:37:40]1012 (4) - 22.09.2024 07:31 [13:37:40]1206 (1) - 0 [13:37:40]OFD Sender: Remove packet 22130 [13:37:40]ProducePacketName [13:37:40]name=ofd_packets/00022130 [13:37:40]NVStorageDeleteData [13:37:40]Read from MH i2c: D1 01 00 2C 08 00 05 [13:37:40]Write to MH i2c: 01 00 00 2D 08 35 [13:37:40]Write i2c OK [13:37:40]MH_I2C_Read... [13:37:40]OFD Sender: No OFD packet to send [13:37:41]*** Cut start [13:37:41]*** Partial cut [13:37:41]*** CUTSNS_PIN = 1 [13:37:41]*** CUTSNS_PIN = 0 [13:37:41]*** Brake cut motor [13:37:41]Read from MH i2c: 01 [13:37:41]MH_I2C_Read... [13:37:41]*** Stop cut motor [13:37:41]*** Cut end [13:37:41]Read from MH i2c: 01 07 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 FF 0F 4A [13:37:41]process_action close_receipt done [13:37:41]requested_data is exist [13:37:41]produce_requested_data [13:37:41]requested_item fm.sn is exist - process it [13:37:41]wFMCommunicate request_size=4 [13:37:41]MH_SAM_APDU [13:37:41]CAPDU: 80 11 00 00 [13:37:41]Write to MH i2c: E2 08 00 2E 08 80 11 00 00 00 00 00 00 B0 [13:37:41]Write i2c OK [13:37:41]MH_I2C_Read... [13:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:41]Read from MH i2c: E2 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 17 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 17 00 2E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 0A [13:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:37:41]wFMCommunicate OK [13:37:41]requested_item fd.num is exist - process it [13:37:41]SAM_PROTO_GetFieldsCounters [13:37:41]wFMCommunicate request_size=4 [13:37:41]MH_SAM_APDU [13:37:41]CAPDU: 80 13 00 00 [13:37:41]Write to MH i2c: E2 08 00 2F 08 80 13 00 00 00 00 00 00 B3 [13:37:41]Write i2c OK [13:37:41]MH_I2C_Read... [13:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:41]Read from MH i2c: E2 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 62 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 62 00 2F 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 72 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [13:37:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 72 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:41]wFMCommunicate OK [13:37:41]SAM_PROTO_GetFieldsCounters done [13:37:41]requested_item shift.num is exist - process it [13:37:41]requested_item shift.opened is exist - process it [13:37:41]req_shift_opened [13:37:41]FM_GetShiftState [13:37:41]SAM_PROTO_GetShiftState [13:37:41]wFMCommunicate request_size=4 [13:37:41]MH_SAM_APDU [13:37:41]CAPDU: 80 13 01 00 [13:37:41]Write to MH i2c: E2 08 00 30 08 80 13 01 00 00 00 00 00 B5 [13:37:41]Write i2c OK [13:37:41]MH_I2C_Read... [13:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:41]Read from MH i2c: E2 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 0E 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 0E 00 30 08 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 30 [13:37:41]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:37:41]wFMCommunicate OK [13:37:41]SAM_PROTO_GetShiftState done [13:37:41]FM_GetShiftState done [13:37:41]req_shift_opened done [13:37:41]requested_item shift.open_date is exist - process it [13:37:41]req_shift_open_date [13:37:41]req_shift_open_date done [13:37:41]produce_requested_data done [13:37:41]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22130,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [13:37:41]process_action_free close_receipt [13:37:41]json_value_free [13:37:41]json_value_free done [13:37:41]process_json_proto returns [13:37:41]Send response to host [13:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22130,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [13:37:41]free response buf [13:37:41]execute_script done [13:37:41]execute_script returns [13:37:41]free content buf [13:37:41]Sock 9.Close socket [13:37:41]Sock 9.Thread stoped [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38: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:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:26]accept exits with 7 [13:52:26]New connection [13:52:26]New thread 3067039076 created [13:52:26]Thread 3067182436 joined [13:52:26]Waiting for new connection... [13:52:26] Sock 7.Parse request [13:52:26]Sock 7.Check first char [13:52:26]Sock 7.First char is OK [13:52:26]request: POST /json_proto HTTP/1.0 [13:52:26]Method: POST [13:52:26]URL: /json_proto [13:52:26]Method is POST - this is cgi request [13:52:26]url: /json_proto [13:52:26]query_string will be loaded in cgi processing [13:52:26]execute_cgi json_proto POST (null) [13:52:26]execute_cgi path=json_proto method=POST [13:52:26]POST find Content-Length [13:52:26]Host: 172.17.43.4:8080 [13:52:26]Content-Length: 788 [13:52:26]Content-Type: application/json [13:52:26] [13:52:26]POST finish read [13:52:26]Found Content-Length = 788 [13:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51400", "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" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:26]execute_script... [13:52: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)51400", "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" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:26]POST & json_proto [13:52:26]process_json_proto [13:52:26]json parsed OK: [13:52:26]protocol is kg_v1.0 [13:52:26]action value=close_receipt [13:52:26]process_action close_receipt [13:52:26]cmd_close_receipt [13:52:26]MH_GetDate [13:52:26]Write to MH i2c: F0 00 00 31 08 28 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: F0 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: F0 09 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: F0 09 00 31 08 00 1C 21 F0 66 02 BF CF 66 BA [13:52:26]GetLastDocTimeStamp 1727012259 [13:52:26]current date 1727013148 [13:52:26]FM_GetShiftState [13:52:26]SAM_PROTO_GetShiftState [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 13 01 00 [13:52:26]Write to MH i2c: E2 08 00 32 08 80 13 01 00 00 00 00 00 B7 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 0E 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 0E 00 32 08 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 32 [13:52:26]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:52:26]wFMCommunicate OK [13:52:26]SAM_PROTO_GetShiftState done [13:52:26]FM_GetShiftState done [13:52:26]opened in 1726964408 [13:52:26]opened+sec_in_day 1727050808 [13:52:26]quantity*price = 0 [13:52:26]sum+1 = 1 [13:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 46 22.09.2024 13:52 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22131 ФПД: 108652249506801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135228&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22131&fm=108652249506801&tin=02508201610067®Number=0000000000146243&sum=0 0 [13:52:27]StoreToDocumentArchive [13:52:27]shift 228 fd 22131 [13:52:27]save to /storage/0228/doc_00022131 [13:52:27]save last doc name /storage/0228/doc_00022131 to /storage/kkm_last_doc_name [13:52:27]save OK [13:52:27]Clear old archive folders... [13:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:52:27]tlvbuf is 0020BE70 [13:52:27]SAM_PROTO_ClearQueue [13:52:27]wFMCommunicate request_size=4 [13:52:27]MH_SAM_APDU [13:52:27]CAPDU: 80 09 00 00 [13:52:27]Write to MH i2c: E2 08 00 3F 08 80 09 00 00 00 00 00 00 B9 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:27]Read from MH i2c: E2 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: E2 03 00 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [13:52:27]RAPDU: 90 00 [13:52:27]wFMCommunicate OK [13:52:27]SAM_PROTO_ClearQueue done [13:52:27]KKMCreateOFDPacket [13:52:27]OFDProtocolAddRootSTLVToBuf [13:52:27]FM_MakeSignedData [13:52:27]FM_MakeSignedData [13:52:27]SAM_PROTO_SignData [13:52:27]wFMCommunicate request_size=4 [13:52:27]MH_SAM_APDU [13:52:27]CAPDU: 80 0D 01 02 [13:52:27]Write to MH i2c: E2 08 00 40 08 80 0D 01 02 00 00 00 00 C1 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 03 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [13:52:28]RAPDU: 90 00 [13:52:28]wFMCommunicate OK [13:52:28]wFMCommunicate request_size=255 [13:52:28]MH_SAM_APDU [13:52:28]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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1C 21 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:52:28]Write to MH i2c: E2 02 01 41 08 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1C 21 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 9A [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 03 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [13:52:28]RAPDU: 90 00 [13:52:28]wFMCommunicate OK [13:52:28]wFMCommunicate request_size=55 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 73 56 00 00 35 04 06 00 62 D1 92 BC 63 F1 [13:52:28]Write to MH i2c: E2 3A 00 42 08 80 0D 02 02 32 00 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 73 56 00 00 35 04 06 00 62 D1 92 BC 63 F1 00 00 BD [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 03 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 03 00 42 08 00 90 00 BE [13:52:28]RAPDU: 90 00 [13:52:28]wFMCommunicate OK [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 0D 03 02 [13:52:28]Write to MH i2c: E2 08 00 43 08 80 0D 03 02 00 00 00 00 C6 [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 0B 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 0B 00 43 08 00 FD F2 70 D6 E3 34 D0 7D 90 00 60 [13:52:28]RAPDU: FD F2 70 D6 E3 34 D0 7D 90 00 [13:52:28]wFMCommunicate OK [13:52:28]SAM_PROTO_SignData done [13:52:28]FM_MakeSignedData done [13:52:28]CreateOFDProtocolMessage [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 11 00 00 [13:52:28]Write to MH i2c: E2 08 00 44 08 80 11 00 00 00 00 00 00 C6 [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 17 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 17 00 44 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 20 [13:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:52:28]wFMCommunicate OK [13:52:28]CreateOFDProtocolMessage done [13:52:28]OFDSenderStorePacket 22131 [13:52:28]StoreOFDPacket docnum=22131 [13:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3C 01 00 00 01 A6 34 01 BD 19 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1C 21 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 73 56 00 00 35 04 06 00 62 D1 92 BC 63 F1 FD F2 70 D6 E3 34 D0 7D [13:52:28]CheckFolder [13:52:28]dirname=/storage/ofd_packets [13:52:28]CheckFolder done [13:52:28]ProducePacketName [13:52:28]name=ofd_packets/00022131 [13:52:28]NVStorageSaveData ofd_packets/00022131 [13:52:28]File name is /storage/ofd_packets/00022131 [13:52:28]Write 346 bytes [13:52:28]NVStorageSaveData done [13:52:28]OFDSenderStorePacket done [13:52:28]KKMCreateOFDPacket done [13:52:28]NVStorageSaveData kkm_last_timestamp [13:52:28]File name is /storage/kkm_last_timestamp [13:52:28]Write 4 bytes [13:52:28]NVStorageSaveData done [13:52:28]ExternCall_PrintAddStr [13:52:28]wPrintStart [13:52:28]Write to MH i2c: 01 00 00 45 08 4D [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: 01 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: 01 07 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FF 0F 62 [13:52:28]RasterBufferAndPrint [13:52:28]line Счет N : (3)51400 [13:52:28]line ИНН: 02508201610067 [13:52:28]line Контрольно-Кассовый Чек [13:52:28]line ПРОДАЖА [13:52:28]line Товар: 4631150682851 [13:52:28]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [13:52:28]line 1.000 * 0.00 [13:52:28]line = 0.00 [13:52:28]line НДС 12% НСП 1% [13:52:28]line > о реализуемом товаре [13:52:28]line ИТОГО: 0.00 [13:52:28]line НСП 1% : 0.00 [13:52:28]line НДС 12% : 0.00 [13:52:28]line Наличными: 0.00 [13:52:28]line Безнал.: 0.00 [13:52:28]line Место: АЗС № 88 "Партнер Нефть" [13:52:28]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [13:52:28]line СНО: Общий режим [13:52:28]line Чек 46 22.09.2024 13:52 [13:52:28]line Смена: 228 ФФД: 1.0 [13:52:28]line ЗНМ: 0300000061 [13:52:28]line РНМ: 0000000000146243 [13:52:28]line Версия ККМ: v1.0 [13:52:28]line Платежная система: Mbank [13:52:28]line ФМ: 0000000000959358 [13:52:28]line ФД: 22131 [13:52:28]line ФПД: 108652249506801 [13:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T135228&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22131&fm=108652249506801&tin=02508201610067®Number=0000000000146243&sum=0 [13:52:28]line 0 [13:52:28]OFD Sender: Processing packet 22131 [packets to send 23, broken 22] [13:52:28]ProducePacketName [13:52:28]name=ofd_packets/00022131 [13:52:28]OFD Sender: To server: pG, [13:52:28]CommunicateWithHost lk.salyk.kg:30040 [13:52:28]ConnectInit lk.salyk.kg [13:52:28]written 0, free lines is 4095 [13:52:29]Connected sock=11 [13:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3C 01 00 00 01 A6 34 01 BD 19 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1C 21 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 73 56 00 00 35 04 06 00 62 D1 92 BC 63 F1 FD F2 70 D6 E3 34 D0 7D [13:52:29]Write to MH i2c: 01 00 00 6F 08 77 [13:52:29]Write i2c OK [13:52:29]MH_I2C_Read... [13:52:29]Read from MH i2c: 01 [13:52:29]MH_I2C_Read... [13:52:29]Read from MH i2c: 01 07 00 [13:52:29]MH_I2C_Read... [13:52:29]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 10 0D 9B [13:52:29]RasterBufferAndPrint [13:52:29]line [13:52:29]line [13:52:29]line [13:52:29]line [13:52:29]line [13:52:29]written 0, free lines is 3349 [13:52:29]MH_Cut [13:52:29]Write to MH i2c: D1 01 00 76 08 01 50 [13:52:29]Write i2c OK [13:52:29]MH_I2C_Read... [13:52:29]Read from MH i2c: D1 [13:52:29]MH_I2C_Read... [13:52:29]Read from MH i2c: D1 01 00 [13:52:29]MH_I2C_Read... [13:52:29]Read from MH i2c: D1 01 00 76 08 00 4F [13:52:29]Write to MH i2c: 01 00 00 77 08 7F [13:52:29]Write i2c OK [13:52:29]MH_I2C_Read... [13:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 2D 97 47 00 03 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 73 56 00 00 F4 03 04 00 48 CB EF 66 B6 04 01 00 00 95 6F AD CB 5E 43 5C B3 [13:52:29]CommunicateWithHost err = 0 [13:52:29]CheckOFDResponse [13:52:29]1017 (14) - 77093643461234 [13:52:29]1041 (16) - 0000000000959358 [13:52:29]1040 (4) - 22131 [13:52:29]1012 (4) - 22.09.2024 07:46 [13:52:29]1206 (1) - 0 [13:52:29]OFD Sender: Remove packet 22131 [13:52:29]ProducePacketName [13:52:29]name=ofd_packets/00022131 [13:52:29]NVStorageDeleteData [13:52:29]*** Cut start [13:52:29]*** Partial cut [13:52:29]*** CUTSNS_PIN = 1 [13:52:30]*** CUTSNS_PIN = 0 [13:52:30]OFD Sender: No OFD packet to send [13:52:30]*** Brake cut motor [13:52:30]Read from MH i2c: 01 [13:52:30]MH_I2C_Read... [13:52:30]*** Stop cut motor [13:52:30]*** Cut end [13:52:30]Read from MH i2c: 01 07 00 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 FF 0F 94 [13:52:30]process_action close_receipt done [13:52:30]requested_data is exist [13:52:30]produce_requested_data [13:52:30]requested_item fm.sn is exist - process it [13:52:30]wFMCommunicate request_size=4 [13:52:30]MH_SAM_APDU [13:52:30]CAPDU: 80 11 00 00 [13:52:30]Write to MH i2c: E2 08 00 78 08 80 11 00 00 00 00 00 00 FA [13:52:30]Write i2c OK [13:52:30]MH_I2C_Read... [13:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:30]Read from MH i2c: E2 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 17 00 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 17 00 78 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 54 [13:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [13:52:30]wFMCommunicate OK [13:52:30]requested_item fd.num is exist - process it [13:52:30]SAM_PROTO_GetFieldsCounters [13:52:30]wFMCommunicate request_size=4 [13:52:30]MH_SAM_APDU [13:52:30]CAPDU: 80 13 00 00 [13:52:30]Write to MH i2c: E2 08 00 79 08 80 13 00 00 00 00 00 00 FD [13:52:30]Write i2c OK [13:52:30]MH_I2C_Read... [13:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:30]Read from MH i2c: E2 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 62 00 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 62 00 79 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 73 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [13:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 73 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:30]wFMCommunicate OK [13:52:30]SAM_PROTO_GetFieldsCounters done [13:52:30]requested_item shift.num is exist - process it [13:52:30]requested_item shift.opened is exist - process it [13:52:30]req_shift_opened [13:52:30]FM_GetShiftState [13:52:30]SAM_PROTO_GetShiftState [13:52:30]wFMCommunicate request_size=4 [13:52:30]MH_SAM_APDU [13:52:30]CAPDU: 80 13 01 00 [13:52:30]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [13:52:30]Write i2c OK [13:52:30]MH_I2C_Read... [13:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:30]Read from MH i2c: E2 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 0E 00 [13:52:30]MH_I2C_Read... [13:52:30]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 7A [13:52:30]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [13:52:30]wFMCommunicate OK [13:52:30]SAM_PROTO_GetShiftState done [13:52:30]FM_GetShiftState done [13:52:30]req_shift_opened done [13:52:30]requested_item shift.open_date is exist - process it [13:52:30]req_shift_open_date [13:52:30]req_shift_open_date done [13:52:30]produce_requested_data done [13:52:30]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22131,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [13:52:30]process_action_free close_receipt [13:52:30]json_value_free [13:52:30]json_value_free done [13:52:30]process_json_proto returns [13:52:30]Send response to host [13:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22131,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [13:52:30]free response buf [13:52:30]execute_script done [13:52:30]execute_script returns [13:52:30]free content buf [13:52:30]Sock 7.Close socket [13:52:30]Sock 7.Thread stoped [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]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:25]accept exits with 9 [14:01:25]New connection [14:01:25]New thread 3067182436 created [14:01:25]Thread 3067039076 joined [14:01:25]Waiting for new connection... [14:01:25] Sock 9.Parse request [14:01:25]Sock 9.Check first char [14:01:25]Sock 9.First char is OK [14:01:25]request: POST /json_proto HTTP/1.0 [14:01:25]Method: POST [14:01:25]URL: /json_proto [14:01:25]Method is POST - this is cgi request [14:01:25]url: /json_proto [14:01:25]query_string will be loaded in cgi processing [14:01:25]execute_cgi json_proto POST (null) [14:01:25]execute_cgi path=json_proto method=POST [14:01:25]POST find Content-Length [14:01:25]Host: 172.17.43.4:8080 [14:01:25]Content-Length: 810 [14:01:25]Content-Type: application/json [14:01:25] [14:01:25]POST finish read [14:01:25]Found Content-Length = 810 [14:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51401", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 0.00, "quantity" : 2.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:25]execute_script... [14:01: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)51401", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 0.00, "quantity" : 2.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:25]POST & json_proto [14:01:25]process_json_proto [14:01:25]json parsed OK: [14:01:25]protocol is kg_v1.0 [14:01:25]action value=close_receipt [14:01:25]process_action close_receipt [14:01:25]cmd_close_receipt [14:01:25]MH_GetDate [14:01:25]Write to MH i2c: F0 00 00 7B 08 72 [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: F0 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: F0 09 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: F0 09 00 7B 08 00 37 23 F0 66 02 BF CF 66 21 [14:01:25]GetLastDocTimeStamp 1727013148 [14:01:25]current date 1727013687 [14:01:25]FM_GetShiftState [14:01:25]SAM_PROTO_GetShiftState [14:01:25]wFMCommunicate request_size=4 [14:01:25]MH_SAM_APDU [14:01:25]CAPDU: 80 13 01 00 [14:01:25]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:25]Read from MH i2c: E2 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 0E 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 7C [14:01:25]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:01:25]wFMCommunicate OK [14:01:25]SAM_PROTO_GetShiftState done [14:01:25]FM_GetShiftState done [14:01:25]opened in 1726964408 [14:01:25]opened+sec_in_day 1727050808 [14:01:25]quantity*price = 0 [14:01:25]sum+1 = 1 [14:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 47 22.09.2024 14:01 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22132 ФПД: 268362904675522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140127&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22132&fm=268362904675522&tin=02508201610067®Number=0000000000146243&sum=0 0 [14:01:27]StoreToDocumentArchive [14:01:27]shift 228 fd 22132 [14:01:27]save to /storage/0228/doc_00022132 [14:01:27]save last doc name /storage/0228/doc_00022132 to /storage/kkm_last_doc_name [14:01:27]save OK [14:01:27]Clear old archive folders... [14:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=298 [14:01:27]tlvbuf is 0020F760 [14:01:27]SAM_PROTO_ClearQueue [14:01:27]wFMCommunicate request_size=4 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 09 00 00 [14:01:27]Write to MH i2c: E2 08 00 89 08 80 09 00 00 00 00 00 00 03 [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [14:01:27]RAPDU: 90 00 [14:01:27]wFMCommunicate OK [14:01:27]SAM_PROTO_ClearQueue done [14:01:27]KKMCreateOFDPacket [14:01:27]OFDProtocolAddRootSTLVToBuf [14:01:27]FM_MakeSignedData [14:01:27]FM_MakeSignedData [14:01:27]SAM_PROTO_SignData [14:01:27]wFMCommunicate request_size=4 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 0D 01 02 [14:01:27]Write to MH i2c: E2 08 00 8A 08 80 0D 01 02 00 00 00 00 0B [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [14:01:27]RAPDU: 90 00 [14:01:27]wFMCommunicate OK [14:01:27]wFMCommunicate request_size=255 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [14:01:27]Write to MH i2c: E2 02 01 8B 08 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 0D [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [14:01:27]RAPDU: 90 00 [14:01:27]wFMCommunicate OK [14:01:27]wFMCommunicate request_size=57 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 74 56 00 00 35 04 06 00 F4 13 1B 9A A4 C2 [14:01:27]Write to MH i2c: E2 3C 00 8C 08 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 74 56 00 00 35 04 06 00 F4 13 1B 9A A4 C2 00 00 B9 [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [14:01:27]RAPDU: 90 00 [14:01:27]wFMCommunicate OK [14:01:27]wFMCommunicate request_size=4 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 0D 03 02 [14:01:27]Write to MH i2c: E2 08 00 8D 08 80 0D 03 02 00 00 00 00 10 [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 0B 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 0B 00 8D 08 00 63 1F ED 8D F1 2F FC C7 90 00 F0 [14:01:27]RAPDU: 63 1F ED 8D F1 2F FC C7 90 00 [14:01:27]wFMCommunicate OK [14:01:27]SAM_PROTO_SignData done [14:01:27]FM_MakeSignedData done [14:01:27]CreateOFDProtocolMessage [14:01:27]wFMCommunicate request_size=4 [14:01:27]MH_SAM_APDU [14:01:27]CAPDU: 80 11 00 00 [14:01:27]Write to MH i2c: E2 08 00 8E 08 80 11 00 00 00 00 00 00 10 [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:27]Read from MH i2c: E2 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 17 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: E2 17 00 8E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6A [14:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:01:27]wFMCommunicate OK [14:01:27]CreateOFDProtocolMessage done [14:01:27]OFDSenderStorePacket 22132 [14:01:27]StoreOFDPacket docnum=22132 [14:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3E 01 00 00 86 67 36 01 33 0C 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 74 56 00 00 35 04 06 00 F4 13 1B 9A A4 C2 63 1F ED 8D F1 2F FC C7 [14:01:27]CheckFolder [14:01:27]dirname=/storage/ofd_packets [14:01:27]CheckFolder done [14:01:27]ProducePacketName [14:01:27]name=ofd_packets/00022132 [14:01:27]NVStorageSaveData ofd_packets/00022132 [14:01:27]File name is /storage/ofd_packets/00022132 [14:01:27]Write 348 bytes [14:01:27]NVStorageSaveData done [14:01:27]OFDSenderStorePacket done [14:01:27]KKMCreateOFDPacket done [14:01:27]NVStorageSaveData kkm_last_timestamp [14:01:27]File name is /storage/kkm_last_timestamp [14:01:27]Write 4 bytes [14:01:27]NVStorageSaveData done [14:01:27]ExternCall_PrintAddStr [14:01:27]wPrintStart [14:01:27]Write to MH i2c: 01 00 00 8F 08 97 [14:01:27]Write i2c OK [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: 01 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: 01 07 00 [14:01:27]MH_I2C_Read... [14:01:27]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [14:01:27]RasterBufferAndPrint [14:01:27]line Счет N : (3)51401 [14:01:27]line ИНН: 02508201610067 [14:01:27]line Контрольно-Кассовый Чек [14:01:27]line ПРОДАЖА [14:01:27]line Товар: 4700003010032 [14:01:27]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [14:01:27]line 2.000 * 0.00 [14:01:27]line = 0.00 [14:01:27]line НДС 12% НСП 1% [14:01:27]line > о реализуемом товаре [14:01:27]line ИТОГО: 0.00 [14:01:27]line НСП 1% : 0.00 [14:01:27]line НДС 12% : 0.00 [14:01:27]line Наличными: 0.00 [14:01:27]line Безнал.: 0.00 [14:01:27]line Место: АЗС № 88 "Партнер Нефть" [14:01:27]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [14:01:27]line СНО: Общий режим [14:01:27]line Чек 47 22.09.2024 14:01 [14:01:27]line Смена: 228 ФФД: 1.0 [14:01:27]line ЗНМ: 0300000061 [14:01:27]line РНМ: 0000000000146243 [14:01:27]line Версия ККМ: v1.0 [14:01:27]line Платежная система: Mbank [14:01:27]line ФМ: 0000000000959358 [14:01:27]line ФД: 22132 [14:01:27]line ФПД: 268362904675522 [14:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T140127&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22132&fm=268362904675522&tin=02508201610067®Number=0000000000146243&sum=0 [14:01:27]line 0 [14:01:27]OFD Sender: Processing packet 22132 [packets to send 23, broken 22] [14:01:27]ProducePacketName [14:01:27]name=ofd_packets/00022132 [14:01:27]OFD Sender: To server: pG, [14:01:27]CommunicateWithHost lk.salyk.kg:30040 [14:01:27]ConnectInit lk.salyk.kg [14:01:27]written 0, free lines is 4095 [14:01:28]Connected sock=10 [14:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3E 01 00 00 86 67 36 01 33 0C 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 37 23 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 74 56 00 00 35 04 06 00 F4 13 1B 9A A4 C2 63 1F ED 8D F1 2F FC C7 [14:01:28]Write to MH i2c: 01 00 00 B9 08 C1 [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: 01 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: 01 07 00 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: 01 07 00 B9 08 00 00 00 00 00 10 0D E5 [14:01:28]RasterBufferAndPrint [14:01:28]line [14:01:28]line [14:01:28]line [14:01:28]line [14:01:28]line [14:01:28]written 0, free lines is 3350 [14:01:28]MH_Cut [14:01:28]Write to MH i2c: D1 01 00 C0 08 01 9A [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: D1 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: D1 01 00 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: D1 01 00 C0 08 00 99 [14:01:28]Write to MH i2c: 01 00 00 C1 08 C9 [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 2B B5 47 00 87 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 74 56 00 00 F4 03 04 00 63 CD EF 66 B6 04 01 00 00 5F DF 36 31 F9 39 3F 9B [14:01:28]CommunicateWithHost err = 0 [14:01:28]CheckOFDResponse [14:01:28]1017 (14) - 77093643461234 [14:01:28]1041 (16) - 0000000000959358 [14:01:28]1040 (4) - 22132 [14:01:28]1012 (4) - 22.09.2024 07:55 [14:01:28]1206 (1) - 0 [14:01:28]OFD Sender: Remove packet 22132 [14:01:28]ProducePacketName [14:01:28]name=ofd_packets/00022132 [14:01:28]NVStorageDeleteData [14:01:28]OFD Sender: No OFD packet to send [14:01:29]*** Cut start [14:01:29]*** Partial cut [14:01:29]*** CUTSNS_PIN = 1 [14:01:29]*** CUTSNS_PIN = 0 [14:01:29]*** Brake cut motor [14:01:29]Read from MH i2c: 01 [14:01:29]MH_I2C_Read... [14:01:29]*** Stop cut motor [14:01:29]Read from MH i2c: 01 07 00 [14:01:29]MH_I2C_Read... [14:01:29]*** Cut end [14:01:29]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 FF 0F DE [14:01:29]process_action close_receipt done [14:01:29]requested_data is exist [14:01:29]produce_requested_data [14:01:29]requested_item fm.sn is exist - process it [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 11 00 00 [14:01:29]Write to MH i2c: E2 08 00 C2 08 80 11 00 00 00 00 00 00 44 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 17 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 17 00 C2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9E [14:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:01:29]wFMCommunicate OK [14:01:29]requested_item fd.num is exist - process it [14:01:29]SAM_PROTO_GetFieldsCounters [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 13 00 00 [14:01:29]Write to MH i2c: E2 08 00 C3 08 80 13 00 00 00 00 00 00 47 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 62 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 62 00 C3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 74 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 74 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:29]wFMCommunicate OK [14:01:29]SAM_PROTO_GetFieldsCounters done [14:01:29]requested_item shift.num is exist - process it [14:01:29]requested_item shift.opened is exist - process it [14:01:29]req_shift_opened [14:01:29]FM_GetShiftState [14:01:29]SAM_PROTO_GetShiftState [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 13 01 00 [14:01:29]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 0E 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C4 [14:01:29]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:01:29]wFMCommunicate OK [14:01:29]SAM_PROTO_GetShiftState done [14:01:29]FM_GetShiftState done [14:01:29]req_shift_opened done [14:01:29]requested_item shift.open_date is exist - process it [14:01:29]req_shift_open_date [14:01:29]req_shift_open_date done [14:01:29]produce_requested_data done [14:01:29]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22132,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [14:01:29]process_action_free close_receipt [14:01:29]json_value_free [14:01:29]json_value_free done [14:01:29]process_json_proto returns [14:01:29]Send response to host [14:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22132,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [14:01:29]free response buf [14:01:29]execute_script done [14:01:29]execute_script returns [14:01:29]free content buf [14:01:29]Sock 9.Close socket [14:01:29]Sock 9.Thread stoped [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [14:27:30]New connection [14:27:30]New thread 3067039076 created [14:27:30]Thread 3067182436 joined [14:27:30]Waiting for new connection... [14:27:30] Sock 7.Parse request [14:27:30]Sock 7.Check first char [14:27:30]Sock 7.First char is OK [14:27:30]request: POST /json_proto HTTP/1.0 [14:27:30]Method: POST [14:27:30]URL: /json_proto [14:27:30]Method is POST - this is cgi request [14:27:30]url: /json_proto [14:27:30]query_string will be loaded in cgi processing [14:27:30]execute_cgi json_proto POST (null) [14:27:30]execute_cgi path=json_proto method=POST [14:27:30]POST find Content-Length [14:27:30]Host: 172.17.43.4:8080 [14:27:30]Content-Length: 822 [14:27:30]Content-Type: application/json [14:27:30] [14:27:30]POST finish read [14:27:30]Found Content-Length = 822 [14:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51402", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]execute_script... [14:27: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)51402", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]POST & json_proto [14:27:30]process_json_proto [14:27:30]json parsed OK: [14:27:30]protocol is kg_v1.0 [14:27:30]action value=close_receipt [14:27:30]process_action close_receipt [14:27:30]cmd_close_receipt [14:27:30]MH_GetDate [14:27:30]Write to MH i2c: F0 00 00 C5 08 BC [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 C5 08 00 54 29 F0 66 02 BF CF 66 8E [14:27:30]GetLastDocTimeStamp 1727013687 [14:27:30]current date 1727015252 [14:27:30]FM_GetShiftState [14:27:30]SAM_PROTO_GetShiftState [14:27:30]wFMCommunicate request_size=4 [14:27:30]MH_SAM_APDU [14:27:30]CAPDU: 80 13 01 00 [14:27:30]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:30]Read from MH i2c: E2 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C6 [14:27:30]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:27:30]wFMCommunicate OK [14:27:30]SAM_PROTO_GetShiftState done [14:27:30]FM_GetShiftState done [14:27:30]opened in 1726964408 [14:27:30]opened+sec_in_day 1727050808 [14:27:30]quantity*price = 0 [14:27:30]sum+1 = 1 [14:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 48 22.09.2024 14:27 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22133 ФПД: 83351708533732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142732&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22133&fm=83351708533732&tin=02508201610067®Number=0000000000146243&sum=0 0 [14:27:31]StoreToDocumentArchive [14:27:31]shift 228 fd 22133 [14:27:31]save to /storage/0228/doc_00022133 [14:27:31]save last doc name /storage/0228/doc_00022133 to /storage/kkm_last_doc_name [14:27:31]save OK [14:27:31]Clear old archive folders... [14:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=302 [14:27:31]tlvbuf is 002499C0 [14:27:31]SAM_PROTO_ClearQueue [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 09 00 00 [14:27:31]Write to MH i2c: E2 08 00 D3 08 80 09 00 00 00 00 00 00 4D [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_ClearQueue done [14:27:31]KKMCreateOFDPacket [14:27:31]OFDProtocolAddRootSTLVToBuf [14:27:31]FM_MakeSignedData [14:27:31]FM_MakeSignedData [14:27:31]SAM_PROTO_SignData [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 01 02 [14:27:31]Write to MH i2c: E2 08 00 D4 08 80 0D 01 02 00 00 00 00 55 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=255 [14:27:32]MH_SAM_APDU [14:27:32]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 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 29 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 [14:27:32]Write to MH i2c: E2 02 01 D5 08 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 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 29 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 00 00 40 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [14:27:32]RAPDU: 90 00 [14:27:32]wFMCommunicate OK [14:27:32]wFMCommunicate request_size=61 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 75 56 00 00 35 04 06 00 4B CE D4 FA 83 E4 [14:27:32]Write to MH i2c: E2 40 00 D6 08 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 75 56 00 00 35 04 06 00 4B CE D4 FA 83 E4 00 00 A8 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [14:27:32]RAPDU: 90 00 [14:27:32]wFMCommunicate OK [14:27:32]wFMCommunicate request_size=4 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 0D 03 02 [14:27:32]Write to MH i2c: E2 08 00 D7 08 80 0D 03 02 00 00 00 00 5A [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 0B 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 0B 00 D7 08 00 ED 0E EF 2F 07 AE D2 0D 90 00 08 [14:27:32]RAPDU: ED 0E EF 2F 07 AE D2 0D 90 00 [14:27:32]wFMCommunicate OK [14:27:32]SAM_PROTO_SignData done [14:27:32]FM_MakeSignedData done [14:27:32]CreateOFDProtocolMessage [14:27:32]wFMCommunicate request_size=4 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 11 00 00 [14:27:32]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 17 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B4 [14:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:27:32]wFMCommunicate OK [14:27:32]CreateOFDProtocolMessage done [14:27:32]OFDSenderStorePacket 22133 [14:27:32]StoreOFDPacket docnum=22133 [14:27:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 42 01 00 00 C2 09 3A 01 00 B6 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 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 29 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 75 56 00 00 35 04 06 00 4B CE D4 FA 83 E4 ED 0E EF 2F 07 AE D2 0D [14:27:32]CheckFolder [14:27:32]dirname=/storage/ofd_packets [14:27:32]CheckFolder done [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00022133 [14:27:32]NVStorageSaveData ofd_packets/00022133 [14:27:32]File name is /storage/ofd_packets/00022133 [14:27:32]Write 352 bytes [14:27:32]NVStorageSaveData done [14:27:32]OFDSenderStorePacket done [14:27:32]KKMCreateOFDPacket done [14:27:32]NVStorageSaveData kkm_last_timestamp [14:27:32]File name is /storage/kkm_last_timestamp [14:27:32]Write 4 bytes [14:27:32]NVStorageSaveData done [14:27:32]ExternCall_PrintAddStr [14:27:32]wPrintStart [14:27:32]Write to MH i2c: 01 00 00 D9 08 E1 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [14:27:32]RasterBufferAndPrint [14:27:32]line Счет N : (3)51402 [14:27:32]line ИНН: 02508201610067 [14:27:32]line Контрольно-Кассовый Чек [14:27:32]line ПРОДАЖА [14:27:32]line Товар: 4700003010087 [14:27:32]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [14:27:32]line 1.000 * 0.00 [14:27:32]line = 0.00 [14:27:32]line НДС 12% НСП 1% [14:27:32]line > о реализуемом товаре [14:27:32]line ИТОГО: 0.00 [14:27:32]line НСП 1% : 0.00 [14:27:32]line НДС 12% : 0.00 [14:27:32]line Наличными: 0.00 [14:27:32]line Безнал.: 0.00 [14:27:32]line Место: АЗС № 88 "Партнер Нефть" [14:27:32]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [14:27:32]line СНО: Общий режим [14:27:32]line Чек 48 22.09.2024 14:27 [14:27:32]line Смена: 228 ФФД: 1.0 [14:27:32]line ЗНМ: 0300000061 [14:27:32]line РНМ: 0000000000146243 [14:27:32]line Версия ККМ: v1.0 [14:27:32]line Платежная система: Mbank [14:27:32]line ФМ: 0000000000959358 [14:27:32]line ФД: 22133 [14:27:32]line ФПД: 83351708533732 [14:27:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T142732&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22133&fm=83351708533732&tin=02508201610067®Number=0000000000146243&sum=0 [14:27:32]line 0 [14:27:32]OFD Sender: Processing packet 22133 [packets to send 23, broken 22] [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00022133 [14:27:32]OFD Sender: To server: pG, [14:27:32]CommunicateWithHost lk.salyk.kg:30040 [14:27:32]ConnectInit lk.salyk.kg [14:27:32]written 0, free lines is 4095 [14:27:32]Connected sock=9 [14:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 42 01 00 00 C2 09 3A 01 00 B6 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 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 29 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 75 56 00 00 35 04 06 00 4B CE D4 FA 83 E4 ED 0E EF 2F 07 AE D2 0D [14:27:33]Write to MH i2c: 01 00 00 03 09 0C [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 07 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 07 00 03 09 00 00 00 00 00 01 0D 21 [14:27:33]RasterBufferAndPrint [14:27:33]line [14:27:33]line [14:27:33]line [14:27:33]line [14:27:33]line [14:27:33]written 0, free lines is 3335 [14:27:33]MH_Cut [14:27:33]Write to MH i2c: D1 01 00 0A 09 01 E5 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: D1 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: D1 01 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: D1 01 00 0A 09 00 E4 [14:27:33]Write to MH i2c: 01 00 00 0B 09 14 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 69 B5 47 00 54 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 75 56 00 00 F4 03 04 00 7F D3 EF 66 B6 04 01 00 00 76 F1 8B FE 55 E5 CE E6 [14:27:33]CommunicateWithHost err = 0 [14:27:33]CheckOFDResponse [14:27:33]1017 (14) - 77093643461234 [14:27:33]1041 (16) - 0000000000959358 [14:27:33]1040 (4) - 22133 [14:27:33]1012 (4) - 22.09.2024 08:21 [14:27:33]1206 (1) - 0 [14:27:33]OFD Sender: Remove packet 22133 [14:27:33]ProducePacketName [14:27:33]name=ofd_packets/00022133 [14:27:33]NVStorageDeleteData [14:27:33]OFD Sender: No OFD packet to send [14:27:33]*** Cut start [14:27:33]*** Partial cut [14:27:33]*** CUTSNS_PIN = 1 [14:27:33]*** CUTSNS_PIN = 0 [14:27:34]*** Brake cut motor [14:27:34]Read from MH i2c: 01 [14:27:34]MH_I2C_Read... [14:27:34]*** Stop cut motor [14:27:34]*** Cut end [14:27:34]Read from MH i2c: 01 07 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 0B 09 00 00 00 00 00 FF 0F 29 [14:27:34]process_action close_receipt done [14:27:34]requested_data is exist [14:27:34]produce_requested_data [14:27:34]requested_item fm.sn is exist - process it [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 11 00 00 [14:27:34]Write to MH i2c: E2 08 00 0C 09 80 11 00 00 00 00 00 00 8F [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 0C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 E9 [14:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:27:34]wFMCommunicate OK [14:27:34]requested_item fd.num is exist - process it [14:27:34]SAM_PROTO_GetFieldsCounters [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 00 00 [14:27:34]Write to MH i2c: E2 08 00 0D 09 80 13 00 00 00 00 00 00 92 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 0D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 75 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 75 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetFieldsCounters done [14:27:34]requested_item shift.num is exist - process it [14:27:34]requested_item shift.opened is exist - process it [14:27:34]req_shift_opened [14:27:34]FM_GetShiftState [14:27:34]SAM_PROTO_GetShiftState [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 01 00 [14:27:34]Write to MH i2c: E2 08 00 0E 09 80 13 01 00 00 00 00 00 94 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 0E 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 0F [14:27:34]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetShiftState done [14:27:34]FM_GetShiftState done [14:27:34]req_shift_opened done [14:27:34]requested_item shift.open_date is exist - process it [14:27:34]req_shift_open_date [14:27:34]req_shift_open_date done [14:27:34]produce_requested_data done [14:27:34]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22133,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [14:27:34]process_action_free close_receipt [14:27:34]json_value_free [14:27:34]json_value_free done [14:27:34]process_json_proto returns [14:27:34]Send response to host [14:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22133,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [14:27:34]free response buf [14:27:34]execute_script done [14:27:34]execute_script returns [14:27:34]free content buf [14:27:34]Sock 7.Close socket [14:27:34]Sock 7.Thread stoped [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39: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:23]accept exits with 10 [14:44:23]New connection [14:44:23]New thread 3067182436 created [14:44:23]Thread 3067039076 joined [14:44:23]Waiting for new connection... [14:44:23] Sock 10.Parse request [14:44:23]Sock 10.Check first char [14:44:23]Sock 10.First char is OK [14:44:23]request: POST /json_proto HTTP/1.0 [14:44:23]Method: POST [14:44:23]URL: /json_proto [14:44:23]Method is POST - this is cgi request [14:44:23]url: /json_proto [14:44:23]query_string will be loaded in cgi processing [14:44:23]execute_cgi json_proto POST (null) [14:44:23]execute_cgi path=json_proto method=POST [14:44:23]POST find Content-Length [14:44:23]Host: 172.17.43.4:8080 [14:44:23]Content-Length: 644 [14:44:23]Content-Type: application/json [14:44:23] [14:44:23]POST finish read [14:44:23]Found Content-Length = 644 [14:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51403", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "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" ] } } [14:44:23]execute_script... [14:44:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51403", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "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" ] } } [14:44:23]POST & json_proto [14:44:23]process_json_proto [14:44:23]json parsed OK: [14:44:23]protocol is kg_v1.0 [14:44:23]action value=close_receipt [14:44:23]process_action close_receipt [14:44:23]cmd_close_receipt [14:44:23]MH_GetDate [14:44:23]Write to MH i2c: F0 00 00 0F 09 07 [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 0F 09 00 49 2D F0 66 02 BF CF 66 D2 [14:44:23]GetLastDocTimeStamp 1727015252 [14:44:23]current date 1727016265 [14:44:23]FM_GetShiftState [14:44:23]SAM_PROTO_GetShiftState [14:44:23]wFMCommunicate request_size=4 [14:44:23]MH_SAM_APDU [14:44:23]CAPDU: 80 13 01 00 [14:44:23]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:23]Read from MH i2c: E2 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 11 [14:44:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:44:23]wFMCommunicate OK [14:44:23]SAM_PROTO_GetShiftState done [14:44:23]FM_GetShiftState done [14:44:23]opened in 1726964408 [14:44:23]opened+sec_in_day 1727050808 [14:44:23]quantity*price = 5000 [14:44:23]sum+1 = 5001 [14:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 49 22.09.2024 14:44 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22134 ФПД: 94929469816470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144425&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22134&fm=94929469816470&tin=02508201610067®Number=0000000000146243&sum=5000 0 [14:44:24]StoreToDocumentArchive [14:44:24]shift 228 fd 22134 [14:44:24]save to /storage/0228/doc_00022134 [14:44:24]save last doc name /storage/0228/doc_00022134 to /storage/kkm_last_doc_name [14:44:24]save OK [14:44:24]Clear old archive folders... [14:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:44:24]tlvbuf is 002464A0 [14:44:24]SAM_PROTO_ClearQueue [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 09 00 00 [14:44:24]Write to MH i2c: E2 08 00 1D 09 80 09 00 00 00 00 00 00 98 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_ClearQueue done [14:44:24]KKMCreateOFDPacket [14:44:24]OFDProtocolAddRootSTLVToBuf [14:44:24]FM_MakeSignedData [14:44:24]FM_MakeSignedData [14:44:24]SAM_PROTO_SignData [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 01 02 [14:44:24]Write to MH i2c: E2 08 00 1E 09 80 0D 01 02 00 00 00 00 A0 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=255 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 31 00 00 00 F4 03 04 00 49 2D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 [14:44:24]Write to MH i2c: E2 02 01 1F 09 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 31 00 00 00 F4 03 04 00 49 2D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 00 00 4E [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [14:44:25]RAPDU: 90 00 [14:44:25]wFMCommunicate OK [14:44:25]wFMCommunicate request_size=39 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 76 56 00 00 35 04 06 00 56 56 7D 53 BE 96 [14:44:25]Write to MH i2c: E2 2A 00 20 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 76 56 00 00 35 04 06 00 56 56 7D 53 BE 96 00 00 01 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [14:44:25]RAPDU: 90 00 [14:44:25]wFMCommunicate OK [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 0D 03 02 [14:44:25]Write to MH i2c: E2 08 00 21 09 80 0D 03 02 00 00 00 00 A5 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0B 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0B 00 21 09 00 EC 7A 3C 79 7B 4D 2E 62 90 00 19 [14:44:25]RAPDU: EC 7A 3C 79 7B 4D 2E 62 90 00 [14:44:25]wFMCommunicate OK [14:44:25]SAM_PROTO_SignData done [14:44:25]FM_MakeSignedData done [14:44:25]CreateOFDProtocolMessage [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 11 00 00 [14:44:25]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 17 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 FF [14:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:44:25]wFMCommunicate OK [14:44:25]CreateOFDProtocolMessage done [14:44:25]OFDSenderStorePacket 22134 [14:44:25]StoreOFDPacket docnum=22134 [14:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 42 3C 24 01 50 E1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 31 00 00 00 F4 03 04 00 49 2D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 76 56 00 00 35 04 06 00 56 56 7D 53 BE 96 EC 7A 3C 79 7B 4D 2E 62 [14:44:25]CheckFolder [14:44:25]dirname=/storage/ofd_packets [14:44:25]CheckFolder done [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00022134 [14:44:25]NVStorageSaveData ofd_packets/00022134 [14:44:25]File name is /storage/ofd_packets/00022134 [14:44:25]Write 330 bytes [14:44:25]NVStorageSaveData done [14:44:25]OFDSenderStorePacket done [14:44:25]KKMCreateOFDPacket done [14:44:25]NVStorageSaveData kkm_last_timestamp [14:44:25]File name is /storage/kkm_last_timestamp [14:44:25]Write 4 bytes [14:44:25]NVStorageSaveData done [14:44:25]ExternCall_PrintAddStr [14:44:25]wPrintStart [14:44:25]Write to MH i2c: 01 00 00 23 09 2C [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [14:44:25]RasterBufferAndPrint [14:44:25]line Счет N : (3)51403 [14:44:25]line ИНН: 02508201610067 [14:44:25]line Контрольно-Кассовый Чек [14:44:25]line ПРОДАЖА [14:44:25]line Товар: 46226617 [14:44:25]line Mentos ПВ Нежная Мята 6*100*2г [14:44:25]line 5.000 * 10.00 [14:44:25]line = 50.00 [14:44:25]line НДС 12% НСП 1% [14:44:25]line > о реализуемом товаре [14:44:25]line ИТОГО: 50.00 [14:44:25]line НСП 1% : 0.44 [14:44:25]line НДС 12% : 5.31 [14:44:25]line Наличными: 50.00 [14:44:25]line Безнал.: 0.00 [14:44:25]line Место: АЗС № 88 "Партнер Нефть" [14:44:25]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [14:44:25]line СНО: Общий режим [14:44:25]line Чек 49 22.09.2024 14:44 [14:44:25]line Смена: 228 ФФД: 1.0 [14:44:25]line ЗНМ: 0300000061 [14:44:25]line РНМ: 0000000000146243 [14:44:25]line Версия ККМ: v1.0 [14:44:25]line ФМ: 0000000000959358 [14:44:25]line ФД: 22134 [14:44:25]line ФПД: 94929469816470 [14:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T144425&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22134&fm=94929469816470&tin=02508201610067®Number=0000000000146243&sum=5000 [14:44:25]line 0 [14:44:25]OFD Sender: Processing packet 22134 [packets to send 23, broken 22] [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00022134 [14:44:25]OFD Sender: To server: pG, [14:44:25]CommunicateWithHost lk.salyk.kg:30040 [14:44:25]ConnectInit lk.salyk.kg [14:44:25]written 0, free lines is 4095 [14:44:25]Connected sock=9 [14:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 42 3C 24 01 50 E1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 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 31 00 00 00 F4 03 04 00 49 2D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 76 56 00 00 35 04 06 00 56 56 7D 53 BE 96 EC 7A 3C 79 7B 4D 2E 62 [14:44:26]Write to MH i2c: 01 00 00 4C 09 55 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 05 0D 6E [14:44:26]RasterBufferAndPrint [14:44:26]line [14:44:26]line [14:44:26]line [14:44:26]line [14:44:26]line [14:44:26]written 0, free lines is 3339 [14:44:26]MH_Cut [14:44:26]Write to MH i2c: D1 01 00 53 09 01 2E [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: D1 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: D1 01 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: D1 01 00 53 09 00 2D [14:44:26]Write to MH i2c: 01 00 00 54 09 5D [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 73 BB 47 00 C6 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 76 56 00 00 F4 03 04 00 74 D7 EF 66 B6 04 01 00 00 35 2E 93 88 1A CE 12 E4 [14:44:26]CommunicateWithHost err = 0 [14:44:26]CheckOFDResponse [14:44:26]1017 (14) - 77093643461234 [14:44:26]1041 (16) - 0000000000959358 [14:44:26]1040 (4) - 22134 [14:44:26]1012 (4) - 22.09.2024 08:38 [14:44:26]1206 (1) - 0 [14:44:26]OFD Sender: Remove packet 22134 [14:44:26]ProducePacketName [14:44:26]name=ofd_packets/00022134 [14:44:26]NVStorageDeleteData [14:44:26]OFD Sender: No OFD packet to send [14:44:26]*** Cut start [14:44:26]*** Partial cut [14:44:26]*** CUTSNS_PIN = 1 [14:44:26]*** CUTSNS_PIN = 0 [14:44:27]*** Brake cut motor [14:44:27]Read from MH i2c: 01 [14:44:27]MH_I2C_Read... [14:44:27]*** Stop cut motor [14:44:27]*** Cut end [14:44:27]Read from MH i2c: 01 07 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [14:44:27]process_action close_receipt done [14:44:27]requested_data is exist [14:44:27]produce_requested_data [14:44:27]requested_item fm.sn is exist - process it [14:44:27]wFMCommunicate request_size=4 [14:44:27]MH_SAM_APDU [14:44:27]CAPDU: 80 11 00 00 [14:44:27]Write to MH i2c: E2 08 00 55 09 80 11 00 00 00 00 00 00 D8 [14:44:27]Write i2c OK [14:44:27]MH_I2C_Read... [14:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:27]Read from MH i2c: E2 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 17 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 17 00 55 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 32 [14:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:44:27]wFMCommunicate OK [14:44:27]requested_item fd.num is exist - process it [14:44:27]SAM_PROTO_GetFieldsCounters [14:44:27]wFMCommunicate request_size=4 [14:44:27]MH_SAM_APDU [14:44:27]CAPDU: 80 13 00 00 [14:44:27]Write to MH i2c: E2 08 00 56 09 80 13 00 00 00 00 00 00 DB [14:44:27]Write i2c OK [14:44:27]MH_I2C_Read... [14:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:27]Read from MH i2c: E2 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 62 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 62 00 56 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 76 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:44:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 76 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:27]wFMCommunicate OK [14:44:27]SAM_PROTO_GetFieldsCounters done [14:44:27]requested_item shift.num is exist - process it [14:44:27]requested_item shift.opened is exist - process it [14:44:27]req_shift_opened [14:44:27]FM_GetShiftState [14:44:27]SAM_PROTO_GetShiftState [14:44:27]wFMCommunicate request_size=4 [14:44:27]MH_SAM_APDU [14:44:27]CAPDU: 80 13 01 00 [14:44:27]Write to MH i2c: E2 08 00 57 09 80 13 01 00 00 00 00 00 DD [14:44:27]Write i2c OK [14:44:27]MH_I2C_Read... [14:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:27]Read from MH i2c: E2 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 0E 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 0E 00 57 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 58 [14:44:27]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:44:27]wFMCommunicate OK [14:44:27]SAM_PROTO_GetShiftState done [14:44:27]FM_GetShiftState done [14:44:27]req_shift_opened done [14:44:27]requested_item shift.open_date is exist - process it [14:44:27]req_shift_open_date [14:44:27]req_shift_open_date done [14:44:27]produce_requested_data done [14:44:27]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22134,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [14:44:27]process_action_free close_receipt [14:44:27]json_value_free [14:44:27]json_value_free done [14:44:27]process_json_proto returns [14:44:27]Send response to host [14:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22134,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [14:44:27]free response buf [14:44:27]execute_script done [14:44:27]execute_script returns [14:44:27]free content buf [14:44:27]Sock 10.Close socket [14:44:27]Sock 10.Thread stoped [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]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:21]accept exits with 7 [14:53:21]New connection [14:53:21]New thread 3067039076 created [14:53:21]Thread 3067182436 joined [14:53:21]Waiting for new connection... [14:53:21] Sock 7.Parse request [14:53:21]Sock 7.Check first char [14:53:21]Sock 7.First char is OK [14:53:21]request: POST /json_proto HTTP/1.0 [14:53:21]Method: POST [14:53:21]URL: /json_proto [14:53:21]Method is POST - this is cgi request [14:53:21]url: /json_proto [14:53:21]query_string will be loaded in cgi processing [14:53:21]execute_cgi json_proto POST (null) [14:53:21]execute_cgi path=json_proto method=POST [14:53:21]POST find Content-Length [14:53:21]Host: 172.17.43.4:8080 [14:53:21]Content-Length: 942 [14:53:21]Content-Type: application/json [14:53:21] [14:53:21]POST finish read [14:53:21]Found Content-Length = 942 [14:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51404", "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": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 505.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:21]execute_script... [14:53: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)51404", "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": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 505.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:21]POST & json_proto [14:53:21]process_json_proto [14:53:21]json parsed OK: [14:53:21]protocol is kg_v1.0 [14:53:21]action value=close_receipt [14:53:21]process_action close_receipt [14:53:21]cmd_close_receipt [14:53:21]MH_GetDate [14:53:21]Write to MH i2c: F0 00 00 58 09 50 [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: F0 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: F0 09 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: F0 09 00 58 09 00 64 2F F0 66 02 BF CF 66 38 [14:53:21]GetLastDocTimeStamp 1727016265 [14:53:21]current date 1727016804 [14:53:21]FM_GetShiftState [14:53:21]SAM_PROTO_GetShiftState [14:53:21]wFMCommunicate request_size=4 [14:53:21]MH_SAM_APDU [14:53:21]CAPDU: 80 13 01 00 [14:53:21]Write to MH i2c: E2 08 00 59 09 80 13 01 00 00 00 00 00 DF [14:53:21]Write i2c OK [14:53:21]MH_I2C_Read... [14:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:21]Read from MH i2c: E2 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 0E 00 [14:53:21]MH_I2C_Read... [14:53:21]Read from MH i2c: E2 0E 00 59 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 5A [14:53:21]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:53:21]wFMCommunicate OK [14:53:21]SAM_PROTO_GetShiftState done [14:53:21]FM_GetShiftState done [14:53:21]opened in 1726964408 [14:53:21]opened+sec_in_day 1727050808 [14:53:21]quantity*price = 15500 [14:53:21]sum+1 = 15501 [14:53:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002082191 Водка Белое золото 0,46л 1.000 * 350.00 = 350.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 505.00 НСП 1% : 4.47 НДС 12% : 53.63 Наличными: 505.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 50 22.09.2024 14:53 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22135 ФПД: 46104879356376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145324&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22135&fm=46104879356376&tin=02508201610067®Number=0000000000146243&sum=50500 0 [14:53:23]StoreToDocumentArchive [14:53:23]shift 228 fd 22135 [14:53:23]save to /storage/0228/doc_00022135 [14:53:23]save last doc name /storage/0228/doc_00022135 to /storage/kkm_last_doc_name [14:53:23]save OK [14:53:23]Clear old archive folders... [14:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=393 [14:53:23]tlvbuf is 002108A0 [14:53:23]SAM_PROTO_ClearQueue [14:53:23]wFMCommunicate request_size=4 [14:53:23]MH_SAM_APDU [14:53:23]CAPDU: 80 09 00 00 [14:53:23]Write to MH i2c: E2 08 00 66 09 80 09 00 00 00 00 00 00 E1 [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:23]Read from MH i2c: E2 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [14:53:23]RAPDU: 90 00 [14:53:23]wFMCommunicate OK [14:53:23]SAM_PROTO_ClearQueue done [14:53:23]KKMCreateOFDPacket [14:53:23]OFDProtocolAddRootSTLVToBuf [14:53:23]FM_MakeSignedData [14:53:23]FM_MakeSignedData [14:53:23]SAM_PROTO_SignData [14:53:23]wFMCommunicate request_size=4 [14:53:23]MH_SAM_APDU [14:53:23]CAPDU: 80 0D 01 02 [14:53:23]Write to MH i2c: E2 08 00 67 09 80 0D 01 02 00 00 00 00 E9 [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:23]Read from MH i2c: E2 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [14:53:23]RAPDU: 90 00 [14:53:23]wFMCommunicate OK [14:53:23]wFMCommunicate request_size=255 [14:53:23]MH_SAM_APDU [14:53:23]CAPDU: 80 0D 02 02 FA 03 00 89 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 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 [14:53:23]Write to MH i2c: E2 02 01 68 09 80 0D 02 02 FA 00 03 00 89 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 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 7E [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:23]Read from MH i2c: E2 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [14:53:23]RAPDU: 90 00 [14:53:23]wFMCommunicate OK [14:53:23]wFMCommunicate request_size=152 [14:53:23]MH_SAM_APDU [14:53:23]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 14 00 00 00 00 07 04 06 00 44 C5 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 64 2F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 77 56 00 00 35 04 06 00 29 EE A0 F4 D9 D8 [14:53:23]Write to MH i2c: E2 9B 00 69 09 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 14 00 00 00 00 07 04 06 00 44 C5 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 64 2F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 77 56 00 00 35 04 06 00 29 EE A0 F4 D9 D8 00 00 34 [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:23]Read from MH i2c: E2 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [14:53:23]RAPDU: 90 00 [14:53:23]wFMCommunicate OK [14:53:23]wFMCommunicate request_size=4 [14:53:23]MH_SAM_APDU [14:53:23]CAPDU: 80 0D 03 02 [14:53:23]Write to MH i2c: E2 08 00 6A 09 80 0D 03 02 00 00 00 00 EE [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:23]Read from MH i2c: E2 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 0B 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 0B 00 6A 09 00 3D FD CD A4 20 5F D9 76 90 00 68 [14:53:23]RAPDU: 3D FD CD A4 20 5F D9 76 90 00 [14:53:23]wFMCommunicate OK [14:53:23]SAM_PROTO_SignData done [14:53:23]FM_MakeSignedData done [14:53:23]CreateOFDProtocolMessage [14:53:23]wFMCommunicate request_size=4 [14:53:23]MH_SAM_APDU [14:53:23]CAPDU: 80 11 00 00 [14:53:23]Write to MH i2c: E2 08 00 6B 09 80 11 00 00 00 00 00 00 EE [14:53:23]Write i2c OK [14:53:23]MH_I2C_Read... [14:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:23]Read from MH i2c: E2 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 17 00 [14:53:23]MH_I2C_Read... [14:53:23]Read from MH i2c: E2 17 00 6B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 48 [14:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:53:23]wFMCommunicate OK [14:53:23]CreateOFDProtocolMessage done [14:53:23]OFDSenderStorePacket 22135 [14:53:23]StoreOFDPacket docnum=22135 [14:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9D 01 00 00 29 98 95 01 C7 A4 5A 03 01 00 03 00 89 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 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 14 00 00 00 00 07 04 06 00 44 C5 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 64 2F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 77 56 00 00 35 04 06 00 29 EE A0 F4 D9 D8 3D FD CD A4 20 5F D9 76 [14:53:23]CheckFolder [14:53:23]dirname=/storage/ofd_packets [14:53:23]CheckFolder done [14:53:23]ProducePacketName [14:53:23]name=ofd_packets/00022135 [14:53:23]NVStorageSaveData ofd_packets/00022135 [14:53:23]File name is /storage/ofd_packets/00022135 [14:53:23]Write 443 bytes [14:53:23]NVStorageSaveData done [14:53:23]OFDSenderStorePacket done [14:53:23]KKMCreateOFDPacket done [14:53:23]NVStorageSaveData kkm_last_timestamp [14:53:23]File name is /storage/kkm_last_timestamp [14:53:23]Write 4 bytes [14:53:23]NVStorageSaveData done [14:53:23]ExternCall_PrintAddStr [14:53:23]wPrintStart [14:53:23]Write to MH i2c: 01 00 00 6C 09 75 [14:53:23]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:24]OFD Sender: Processing packet 22135 [packets to send 23, broken 22] [14:53:24]ProducePacketName [14:53:24]name=ofd_packets/00022135 [14:53:24]OFD Sender: To server: pG, [14:53:24]CommunicateWithHost lk.salyk.kg:30040 [14:53:24]ConnectInit lk.salyk.kg [14:53:24]Read from MH i2c: 01 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: 01 07 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 FF 0F 8A [14:53:24]RasterBufferAndPrint [14:53:24]line Счет N : (3)51404 [14:53:24]line ИНН: 02508201610067 [14:53:24]line Контрольно-Кассовый Чек [14:53:24]line ПРОДАЖА [14:53:24]line Товар: 5449000000439 [14:53:24]line Напиток Кока-Кола 1,5л [14:53:24]line 1.000 * 155.00 [14:53:24]line = 155.00 [14:53:24]line НДС 12% НСП 1% [14:53:24]line > о реализуемом товаре [14:53:24]line Товар: 4700002082191 [14:53:24]line Водка Белое золото 0,46л [14:53:24]line 1.000 * 350.00 [14:53:24]line = 350.00 [14:53:24]line НДС 12% НСП 1% [14:53:24]line > о реализуемом товаре [14:53:24]line ИТОГО: 505.00 [14:53:24]line НСП 1% : 4.47 [14:53:24]line НДС 12% : 53.63 [14:53:24]line Наличными: 505.00 [14:53:24]line Безнал.: 0.00 [14:53:24]line Место: АЗС № 88 "Партнер Нефть" [14:53:24]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [14:53:24]line СНО: Общий режим [14:53:24]line Чек 50 22.09.2024 14:53 [14:53:24]line Смена: 228 ФФД: 1.0 [14:53:24]line ЗНМ: 0300000061 [14:53:24]line РНМ: 0000000000146243 [14:53:24]line Версия ККМ: v1.0 [14:53:24]line ФМ: 0000000000959358 [14:53:24]line ФД: 22135 [14:53:24]line ФПД: 46104879356376 [14:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T145324&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22135&fm=46104879356376&tin=02508201610067®Number=0000000000146243&sum=50500 [14:53:24]line 0 [14:53:24]written 0, free lines is 4095 [14:53:24]Connected sock=10 [14:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9D 01 00 00 29 98 95 01 C7 A4 5A 03 01 00 03 00 89 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 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 14 00 00 00 00 07 04 06 00 44 C5 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 64 2F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 77 56 00 00 35 04 06 00 29 EE A0 F4 D9 D8 3D FD CD A4 20 5F D9 76 [14:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 A5 75 47 00 6B 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 77 56 00 00 F4 03 04 00 8F D9 EF 66 B6 04 01 00 00 D0 02 A6 C5 2C 4D FC 35 [14:53:24]CommunicateWithHost err = 0 [14:53:24]CheckOFDResponse [14:53:24]1017 (14) - 77093643461234 [14:53:24]1041 (16) - 0000000000959358 [14:53:24]1040 (4) - 22135 [14:53:24]1012 (4) - 22.09.2024 08:47 [14:53:24]1206 (1) - 0 [14:53:24]OFD Sender: Remove packet 22135 [14:53:24]ProducePacketName [14:53:24]name=ofd_packets/00022135 [14:53:24]NVStorageDeleteData [14:53:24]Write to MH i2c: 01 00 00 9A 09 A3 [14:53:24]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: 01 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: 01 07 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: 01 07 00 9A 09 00 00 00 00 00 E0 0C 96 [14:53:24]RasterBufferAndPrint [14:53:24]line [14:53:24]line [14:53:24]line [14:53:24]line [14:53:24]line [14:53:24]written 0, free lines is 3305 [14:53:24]MH_Cut [14:53:24]Write to MH i2c: D1 01 00 A1 09 01 7C [14:53:24]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: D1 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: D1 01 00 [14:53:24]MH_I2C_Read... [14:53:24]Read from MH i2c: D1 01 00 A1 09 00 7B [14:53:24]Write to MH i2c: 01 00 00 A2 09 AB [14:53:24]Write i2c OK [14:53:24]MH_I2C_Read... [14:53:25]OFD Sender: No OFD packet to send [14:53:25]*** Cut start [14:53:25]*** Partial cut [14:53:25]*** CUTSNS_PIN = 1 [14:53:25]*** CUTSNS_PIN = 0 [14:53:25]*** Brake cut motor [14:53:25]Read from MH i2c: 01 [14:53:25]MH_I2C_Read... [14:53:25]*** Stop cut motor [14:53:25]*** Cut end [14:53:25]Read from MH i2c: 01 07 00 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 FF 0F C0 [14:53:25]process_action close_receipt done [14:53:25]requested_data is exist [14:53:25]produce_requested_data [14:53:25]requested_item fm.sn is exist - process it [14:53:25]wFMCommunicate request_size=4 [14:53:25]MH_SAM_APDU [14:53:25]CAPDU: 80 11 00 00 [14:53:25]Write to MH i2c: E2 08 00 A3 09 80 11 00 00 00 00 00 00 26 [14:53:25]Write i2c OK [14:53:25]MH_I2C_Read... [14:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:25]Read from MH i2c: E2 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 17 00 [14:53:25]MH_I2C_Read... [14:53:25]Read from MH i2c: E2 17 00 A3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 80 [14:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [14:53:25]wFMCommunicate OK [14:53:25]requested_item fd.num is exist - process it [14:53:25]SAM_PROTO_GetFieldsCounters [14:53:25]wFMCommunicate request_size=4 [14:53:25]MH_SAM_APDU [14:53:25]CAPDU: 80 13 00 00 [14:53:25]Write to MH i2c: E2 08 00 A4 09 80 13 00 00 00 00 00 00 29 [14:53:25]Write i2c OK [14:53:25]MH_I2C_Read... [14:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:26]Read from MH i2c: E2 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: E2 62 00 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: E2 62 00 A4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 77 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 77 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:26]wFMCommunicate OK [14:53:26]SAM_PROTO_GetFieldsCounters done [14:53:26]requested_item shift.num is exist - process it [14:53:26]requested_item shift.opened is exist - process it [14:53:26]req_shift_opened [14:53:26]FM_GetShiftState [14:53:26]SAM_PROTO_GetShiftState [14:53:26]wFMCommunicate request_size=4 [14:53:26]MH_SAM_APDU [14:53:26]CAPDU: 80 13 01 00 [14:53:26]Write to MH i2c: E2 08 00 A5 09 80 13 01 00 00 00 00 00 2B [14:53:26]Write i2c OK [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: E2 [14:53:26]MH_I2C_Read... [14:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:26]Read from MH i2c: E2 0E 00 [14:53:26]MH_I2C_Read... [14:53:26]Read from MH i2c: E2 0E 00 A5 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A6 [14:53:26]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [14:53:26]wFMCommunicate OK [14:53:26]SAM_PROTO_GetShiftState done [14:53:26]FM_GetShiftState done [14:53:26]req_shift_opened done [14:53:26]requested_item shift.open_date is exist - process it [14:53:26]req_shift_open_date [14:53:26]req_shift_open_date done [14:53:26]produce_requested_data done [14:53:26]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22135,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [14:53:26]process_action_free close_receipt [14:53:26]json_value_free [14:53:26]json_value_free done [14:53:26]process_json_proto returns [14:53:26]Send response to host [14:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22135,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [14:53:26]free response buf [14:53:26]execute_script done [14:53:26]execute_script returns [14:53:26]free content buf [14:53:26]Sock 7.Close socket [14:53:26]Sock 7.Thread stoped [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:52]accept exits with 9 [15:02:52]New connection [15:02:52]New thread 3067182436 created [15:02:52]Thread 3067039076 joined [15:02:52]Waiting for new connection... [15:02:52] Sock 9.Parse request [15:02:52]Sock 9.Check first char [15:02:52]Sock 9.First char is OK [15:02:52]request: POST /json_proto HTTP/1.0 [15:02:52]Method: POST [15:02:52]URL: /json_proto [15:02:52]Method is POST - this is cgi request [15:02:52]url: /json_proto [15:02:52]query_string will be loaded in cgi processing [15:02:52]execute_cgi json_proto POST (null) [15:02:52]execute_cgi path=json_proto method=POST [15:02:52]POST find Content-Length [15:02:52]Host: 172.17.43.4:8080 [15:02:52]Content-Length: 624 [15:02:52]Content-Type: application/json [15:02:52] [15:02:52]POST finish read [15:02:52]Found Content-Length = 624 [15:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51405", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:52]execute_script... [15:02: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)51405", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:52]POST & json_proto [15:02:52]process_json_proto [15:02:52]json parsed OK: [15:02:52]protocol is kg_v1.0 [15:02:52]action value=close_receipt [15:02:52]process_action close_receipt [15:02:52]cmd_close_receipt [15:02:52]MH_GetDate [15:02:52]Write to MH i2c: F0 00 00 A6 09 9E [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: F0 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: F0 09 00 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: F0 09 00 A6 09 00 9E 31 F0 66 02 BF CF 66 C2 [15:02:52]GetLastDocTimeStamp 1727016804 [15:02:52]current date 1727017374 [15:02:52]FM_GetShiftState [15:02:52]SAM_PROTO_GetShiftState [15:02:52]wFMCommunicate request_size=4 [15:02:52]MH_SAM_APDU [15:02:52]CAPDU: 80 13 01 00 [15:02:52]Write to MH i2c: E2 08 00 A7 09 80 13 01 00 00 00 00 00 2D [15:02:52]Write i2c OK [15:02:52]MH_I2C_Read... [15:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:52]Read from MH i2c: E2 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 0E 00 [15:02:52]MH_I2C_Read... [15:02:52]Read from MH i2c: E2 0E 00 A7 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A8 [15:02:52]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:02:52]wFMCommunicate OK [15:02:52]SAM_PROTO_GetShiftState done [15:02:52]FM_GetShiftState done [15:02:52]opened in 1726964408 [15:02:52]opened+sec_in_day 1727050808 [15:02:52]quantity*price = 15400 [15:02:52]sum+1 = 15401 [15:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 51 22.09.2024 15:02 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22136 ФПД: 192550361709411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150254&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22136&fm=192550361709411&tin=02508201610067®Number=0000000000146243&sum=15400 0 [15:02:53]StoreToDocumentArchive [15:02:53]shift 228 fd 22136 [15:02:53]save to /storage/0228/doc_00022136 [15:02:53]save last doc name /storage/0228/doc_00022136 to /storage/kkm_last_doc_name [15:02:53]save OK [15:02:53]Clear old archive folders... [15:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=277 [15:02:53]tlvbuf is 0020B5F0 [15:02:53]SAM_PROTO_ClearQueue [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 09 00 00 [15:02:53]Write to MH i2c: E2 08 00 B4 09 80 09 00 00 00 00 00 00 2F [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 B4 09 00 90 00 31 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]SAM_PROTO_ClearQueue done [15:02:53]KKMCreateOFDPacket [15:02:53]OFDProtocolAddRootSTLVToBuf [15:02:53]FM_MakeSignedData [15:02:53]FM_MakeSignedData [15:02:53]SAM_PROTO_SignData [15:02:53]wFMCommunicate request_size=4 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 01 02 [15:02:53]Write to MH i2c: E2 08 00 B5 09 80 0D 01 02 00 00 00 00 37 [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:53]Read from MH i2c: E2 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 [15:02:53]MH_I2C_Read... [15:02:53]Read from MH i2c: E2 03 00 B5 09 00 90 00 32 [15:02:53]RAPDU: 90 00 [15:02:53]wFMCommunicate OK [15:02:53]wFMCommunicate request_size=255 [15:02:53]MH_SAM_APDU [15:02:53]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9E 31 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 [15:02:53]Write to MH i2c: E2 02 01 B6 09 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9E 31 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 00 00 CB [15:02:53]Write i2c OK [15:02:53]MH_I2C_Read... [15:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:54]Read from MH i2c: E2 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 03 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [15:02:54]RAPDU: 90 00 [15:02:54]wFMCommunicate OK [15:02:54]wFMCommunicate request_size=36 [15:02:54]MH_SAM_APDU [15:02:54]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 78 56 00 00 35 04 06 00 AF 1F 9F E9 3B 63 [15:02:54]Write to MH i2c: E2 27 00 B7 09 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 78 56 00 00 35 04 06 00 AF 1F 9F E9 3B 63 00 00 28 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:54]Read from MH i2c: E2 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 03 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [15:02:54]RAPDU: 90 00 [15:02:54]wFMCommunicate OK [15:02:54]wFMCommunicate request_size=4 [15:02:54]MH_SAM_APDU [15:02:54]CAPDU: 80 0D 03 02 [15:02:54]Write to MH i2c: E2 08 00 B8 09 80 0D 03 02 00 00 00 00 3C [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:54]Read from MH i2c: E2 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 0B 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 0B 00 B8 09 00 B0 75 A4 02 29 AF 5E A0 90 00 DE [15:02:54]RAPDU: B0 75 A4 02 29 AF 5E A0 90 00 [15:02:54]wFMCommunicate OK [15:02:54]SAM_PROTO_SignData done [15:02:54]FM_MakeSignedData done [15:02:54]CreateOFDProtocolMessage [15:02:54]wFMCommunicate request_size=4 [15:02:54]MH_SAM_APDU [15:02:54]CAPDU: 80 11 00 00 [15:02:54]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:54]Read from MH i2c: E2 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 17 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: E2 17 00 B9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 96 [15:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:02:54]wFMCommunicate OK [15:02:54]CreateOFDProtocolMessage done [15:02:54]OFDSenderStorePacket 22136 [15:02:54]StoreOFDPacket docnum=22136 [15:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 29 01 00 00 E0 B3 21 01 DA 2D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9E 31 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 78 56 00 00 35 04 06 00 AF 1F 9F E9 3B 63 B0 75 A4 02 29 AF 5E A0 [15:02:54]CheckFolder [15:02:54]dirname=/storage/ofd_packets [15:02:54]CheckFolder done [15:02:54]ProducePacketName [15:02:54]name=ofd_packets/00022136 [15:02:54]NVStorageSaveData ofd_packets/00022136 [15:02:54]File name is /storage/ofd_packets/00022136 [15:02:54]Write 327 bytes [15:02:54]NVStorageSaveData done [15:02:54]OFDSenderStorePacket done [15:02:54]KKMCreateOFDPacket done [15:02:54]NVStorageSaveData kkm_last_timestamp [15:02:54]File name is /storage/kkm_last_timestamp [15:02:54]Write 4 bytes [15:02:54]NVStorageSaveData done [15:02:54]ExternCall_PrintAddStr [15:02:54]wPrintStart [15:02:54]Write to MH i2c: 01 00 00 BA 09 C3 [15:02:54]Write i2c OK [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 [15:02:54]MH_I2C_Read... [15:02:54]Read from MH i2c: 01 07 00 BA 09 00 00 00 00 00 FF 0F D8 [15:02:54]RasterBufferAndPrint [15:02:54]line Счет N : (3)51405 [15:02:54]line ИНН: 02508201610067 [15:02:54]line Контрольно-Кассовый Чек [15:02:54]line ПРОДАЖА [15:02:54]line Товар: 46230607 [15:02:54]line Сигареты Richmond Bronze Edition [15:02:54]line 1.000 * 154.00 [15:02:54]line = 154.00 [15:02:54]line НДС 12% НСП 1% [15:02:54]line > о реализуемом товаре [15:02:54]line ИТОГО: 154.00 [15:02:54]line НСП 1% : 1.36 [15:02:54]line НДС 12% : 16.35 [15:02:54]line Наличными: 154.00 [15:02:54]line Безнал.: 0.00 [15:02:54]line Место: АЗС № 88 "Партнер Нефть" [15:02:54]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:02:54]line СНО: Общий режим [15:02:54]line Чек 51 22.09.2024 15:02 [15:02:54]line Смена: 228 ФФД: 1.0 [15:02:54]line ЗНМ: 0300000061 [15:02:54]line РНМ: 0000000000146243 [15:02:54]line Версия ККМ: v1.0 [15:02:54]line ФМ: 0000000000959358 [15:02:54]line ФД: 22136 [15:02:54]line ФПД: 192550361709411 [15:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150254&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22136&fm=192550361709411&tin=02508201610067®Number=0000000000146243&sum=15400 [15:02:54]line 0 [15:02:54]OFD Sender: Processing packet 22136 [packets to send 23, broken 22] [15:02:54]ProducePacketName [15:02:54]name=ofd_packets/00022136 [15:02:54]OFD Sender: To server: pG, [15:02:54]CommunicateWithHost lk.salyk.kg:30040 [15:02:54]ConnectInit lk.salyk.kg [15:02:54]written 0, free lines is 4095 [15:02:54]Connected sock=10 [15:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 29 01 00 00 E0 B3 21 01 DA 2D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9E 31 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 78 56 00 00 35 04 06 00 AF 1F 9F E9 3B 63 B0 75 A4 02 29 AF 5E A0 [15:02:55]Write to MH i2c: 01 00 00 E3 09 EC [15:02:55]Write i2c OK [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: 01 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: 01 07 00 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 01 0D 01 [15:02:55]RasterBufferAndPrint [15:02:55]line [15:02:55]line [15:02:55]line [15:02:55]line [15:02:55]line [15:02:55]written 0, free lines is 3338 [15:02:55]MH_Cut [15:02:55]Write to MH i2c: D1 01 00 EA 09 01 C5 [15:02:55]Write i2c OK [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: D1 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: D1 01 00 [15:02:55]MH_I2C_Read... [15:02:55]Read from MH i2c: D1 01 00 EA 09 00 C4 [15:02:55]Write to MH i2c: 01 00 00 EB 09 F4 [15:02:55]Write i2c OK [15:02:55]MH_I2C_Read... [15:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 EF 27 47 00 F3 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 39 35 39 33 35 38 10 04 04 00 78 56 00 00 F4 03 04 00 C9 DB EF 66 B6 04 01 00 00 5F F5 07 6E 7F 92 E4 15 [15:02:55]CommunicateWithHost err = 0 [15:02:55]CheckOFDResponse [15:02:55]1017 (14) - 77093643461234 [15:02:55]1041 (16) - 0000000000959358 [15:02:55]1040 (4) - 22136 [15:02:55]1012 (4) - 22.09.2024 08:56 [15:02:55]1206 (1) - 0 [15:02:55]OFD Sender: Remove packet 22136 [15:02:55]ProducePacketName [15:02:55]name=ofd_packets/00022136 [15:02:55]NVStorageDeleteData [15:02:55]OFD Sender: No OFD packet to send [15:02:55]*** Cut start [15:02:55]*** Partial cut [15:02:55]*** CUTSNS_PIN = 1 [15:02:55]*** CUTSNS_PIN = 0 [15:02:56]*** Brake cut motor [15:02:56]Read from MH i2c: 01 [15:02:56]MH_I2C_Read... [15:02:56]*** Stop cut motor [15:02:56]*** Cut end [15:02:56]Read from MH i2c: 01 07 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [15:02:56]process_action close_receipt done [15:02:56]requested_data is exist [15:02:56]produce_requested_data [15:02:56]requested_item fm.sn is exist - process it [15:02:56]wFMCommunicate request_size=4 [15:02:56]MH_SAM_APDU [15:02:56]CAPDU: 80 11 00 00 [15:02:56]Write to MH i2c: E2 08 00 EC 09 80 11 00 00 00 00 00 00 6F [15:02:56]Write i2c OK [15:02:56]MH_I2C_Read... [15:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:56]Read from MH i2c: E2 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 17 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 17 00 EC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C9 [15:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:02:56]wFMCommunicate OK [15:02:56]requested_item fd.num is exist - process it [15:02:56]SAM_PROTO_GetFieldsCounters [15:02:56]wFMCommunicate request_size=4 [15:02:56]MH_SAM_APDU [15:02:56]CAPDU: 80 13 00 00 [15:02:56]Write to MH i2c: E2 08 00 ED 09 80 13 00 00 00 00 00 00 72 [15:02:56]Write i2c OK [15:02:56]MH_I2C_Read... [15:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:56]Read from MH i2c: E2 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 62 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 62 00 ED 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 78 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [15:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 78 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:56]wFMCommunicate OK [15:02:56]SAM_PROTO_GetFieldsCounters done [15:02:56]requested_item shift.num is exist - process it [15:02:56]requested_item shift.opened is exist - process it [15:02:56]req_shift_opened [15:02:56]FM_GetShiftState [15:02:56]SAM_PROTO_GetShiftState [15:02:56]wFMCommunicate request_size=4 [15:02:56]MH_SAM_APDU [15:02:56]CAPDU: 80 13 01 00 [15:02:56]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [15:02:56]Write i2c OK [15:02:56]MH_I2C_Read... [15:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:56]Read from MH i2c: E2 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 0E 00 [15:02:56]MH_I2C_Read... [15:02:56]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 EF [15:02:56]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:02:56]wFMCommunicate OK [15:02:56]SAM_PROTO_GetShiftState done [15:02:56]FM_GetShiftState done [15:02:56]req_shift_opened done [15:02:56]requested_item shift.open_date is exist - process it [15:02:56]req_shift_open_date [15:02:56]req_shift_open_date done [15:02:56]produce_requested_data done [15:02:56]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22136,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:02:56]process_action_free close_receipt [15:02:56]json_value_free [15:02:56]json_value_free done [15:02:56]process_json_proto returns [15:02:56]Send response to host [15:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22136,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:02:56]free response buf [15:02:56]execute_script done [15:02:56]execute_script returns [15:02:56]free content buf [15:02:56]Sock 9.Close socket [15:02:56]Sock 9.Thread stoped [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:07]accept exits with 7 [15:08:07]New connection [15:08:07]New thread 3067039076 created [15:08:07]Thread 3067182436 joined [15:08:07]Waiting for new connection... [15:08:07] Sock 7.Parse request [15:08:07]Sock 7.Check first char [15:08:07]Sock 7.First char is OK [15:08:07]request: POST /json_proto HTTP/1.0 [15:08:07]Method: POST [15:08:07]URL: /json_proto [15:08:07]Method is POST - this is cgi request [15:08:07]url: /json_proto [15:08:07]query_string will be loaded in cgi processing [15:08:07]execute_cgi json_proto POST (null) [15:08:07]execute_cgi path=json_proto method=POST [15:08:07]POST find Content-Length [15:08:07]Host: 172.17.43.4:8080 [15:08:07]Content-Length: 622 [15:08:07]Content-Type: application/json [15:08:07] [15:08:07]POST finish read [15:08:07]Found Content-Length = 622 [15:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51406", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:07]execute_script... [15:08: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)51406", "tax_sys" : 0, "items" : [ { "code": "4700003150486", "name": "\u0412\u043E\u0434\u043A\u0430 \u041E\u0440\u043E\u043E\u043D 0,5", "price" : 425.00, "quantity" : 1.000, "sum" : 425.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:07]POST & json_proto [15:08:07]process_json_proto [15:08:07]json parsed OK: [15:08:07]protocol is kg_v1.0 [15:08:07]action value=close_receipt [15:08:07]process_action close_receipt [15:08:07]cmd_close_receipt [15:08:07]MH_GetDate [15:08:07]Write to MH i2c: F0 00 00 EF 09 E7 [15:08:07]Write i2c OK [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: F0 [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: F0 09 00 [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: F0 09 00 EF 09 00 D9 32 F0 66 02 BF CF 66 47 [15:08:07]GetLastDocTimeStamp 1727017374 [15:08:07]current date 1727017689 [15:08:07]FM_GetShiftState [15:08:07]SAM_PROTO_GetShiftState [15:08:07]wFMCommunicate request_size=4 [15:08:07]MH_SAM_APDU [15:08:07]CAPDU: 80 13 01 00 [15:08:07]Write to MH i2c: E2 08 00 F0 09 80 13 01 00 00 00 00 00 76 [15:08:07]Write i2c OK [15:08:07]MH_I2C_Read... [15:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:07]Read from MH i2c: E2 [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: E2 0E 00 [15:08:07]MH_I2C_Read... [15:08:07]Read from MH i2c: E2 0E 00 F0 09 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 F1 [15:08:07]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:08:07]wFMCommunicate OK [15:08:07]SAM_PROTO_GetShiftState done [15:08:07]FM_GetShiftState done [15:08:07]opened in 1726964408 [15:08:07]opened+sec_in_day 1727050808 [15:08:07]quantity*price = 42500 [15:08:07]sum+1 = 42501 [15:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 52 22.09.2024 15:08 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22137 ФПД: 86181572217574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150809&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22137&fm=86181572217574&tin=02508201610067®Number=0000000000146243&sum=42500 0 [15:08:08]StoreToDocumentArchive [15:08:08]shift 228 fd 22137 [15:08:08]save to /storage/0228/doc_00022137 [15:08:08]save last doc name /storage/0228/doc_00022137 to /storage/kkm_last_doc_name [15:08:08]save OK [15:08:08]Clear old archive folders... [15:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=267 [15:08:08]tlvbuf is 0021D350 [15:08:08]SAM_PROTO_ClearQueue [15:08:08]wFMCommunicate request_size=4 [15:08:08]MH_SAM_APDU [15:08:08]CAPDU: 80 09 00 00 [15:08:08]Write to MH i2c: E2 08 00 FD 09 80 09 00 00 00 00 00 00 78 [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:08]Read from MH i2c: E2 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 03 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [15:08:08]RAPDU: 90 00 [15:08:08]wFMCommunicate OK [15:08:08]SAM_PROTO_ClearQueue done [15:08:08]KKMCreateOFDPacket [15:08:08]OFDProtocolAddRootSTLVToBuf [15:08:08]FM_MakeSignedData [15:08:08]FM_MakeSignedData [15:08:08]SAM_PROTO_SignData [15:08:08]wFMCommunicate request_size=4 [15:08:08]MH_SAM_APDU [15:08:08]CAPDU: 80 0D 01 02 [15:08:08]Write to MH i2c: E2 08 00 FE 09 80 0D 01 02 00 00 00 00 80 [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:08]Read from MH i2c: E2 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 03 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [15:08:08]RAPDU: 90 00 [15:08:08]wFMCommunicate OK [15:08:08]wFMCommunicate request_size=255 [15:08:08]MH_SAM_APDU [15:08:08]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 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 D9 32 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 [15:08:09]Write to MH i2c: E2 02 01 FF 09 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 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 D9 32 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 00 00 DC [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 03 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [15:08:09]RAPDU: 90 00 [15:08:09]wFMCommunicate OK [15:08:09]wFMCommunicate request_size=26 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 0D 02 02 15 33 35 38 10 04 04 00 79 56 00 00 35 04 06 00 4E 61 B5 FF 8A E6 [15:08:09]Write to MH i2c: E2 1D 00 00 0A 80 0D 02 02 15 00 33 35 38 10 04 04 00 79 56 00 00 35 04 06 00 4E 61 B5 FF 8A E6 00 00 47 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 03 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [15:08:09]RAPDU: 90 00 [15:08:09]wFMCommunicate OK [15:08:09]wFMCommunicate request_size=4 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 0D 03 02 [15:08:09]Write to MH i2c: E2 08 00 01 0A 80 0D 03 02 00 00 00 00 86 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0B 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0B 00 01 0A 00 D9 32 55 34 7A 93 1B E9 90 00 2C [15:08:09]RAPDU: D9 32 55 34 7A 93 1B E9 90 00 [15:08:09]wFMCommunicate OK [15:08:09]SAM_PROTO_SignData done [15:08:09]FM_MakeSignedData done [15:08:09]CreateOFDProtocolMessage [15:08:09]wFMCommunicate request_size=4 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 11 00 00 [15:08:09]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 17 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 E0 [15:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:08:09]wFMCommunicate OK [15:08:09]CreateOFDProtocolMessage done [15:08:09]OFDSenderStorePacket 22137 [15:08:09]StoreOFDPacket docnum=22137 [15:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1F 01 00 00 1D E7 17 01 51 BC 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 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 D9 32 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 79 56 00 00 35 04 06 00 4E 61 B5 FF 8A E6 D9 32 55 34 7A 93 1B E9 [15:08:09]CheckFolder [15:08:09]dirname=/storage/ofd_packets [15:08:09]CheckFolder done [15:08:09]ProducePacketName [15:08:09]name=ofd_packets/00022137 [15:08:09]NVStorageSaveData ofd_packets/00022137 [15:08:09]File name is /storage/ofd_packets/00022137 [15:08:09]Write 317 bytes [15:08:09]NVStorageSaveData done [15:08:09]OFDSenderStorePacket done [15:08:09]KKMCreateOFDPacket done [15:08:09]NVStorageSaveData kkm_last_timestamp [15:08:09]File name is /storage/kkm_last_timestamp [15:08:09]Write 4 bytes [15:08:09]NVStorageSaveData done [15:08:09]ExternCall_PrintAddStr [15:08:09]wPrintStart [15:08:09]Write to MH i2c: 01 00 00 03 0A 0D [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: 01 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: 01 07 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 FF 0F 22 [15:08:09]RasterBufferAndPrint [15:08:09]line Счет N : (3)51406 [15:08:09]line ИНН: 02508201610067 [15:08:09]line Контрольно-Кассовый Чек [15:08:09]line ПРОДАЖА [15:08:09]line Товар: 4700003150486 [15:08:09]line Водка Ороон 0,5 [15:08:09]line 1.000 * 425.00 [15:08:09]line = 425.00 [15:08:09]line НДС 12% НСП 1% [15:08:09]line > о реализуемом товаре [15:08:09]line ИТОГО: 425.00 [15:08:09]line НСП 1% : 3.76 [15:08:09]line НДС 12% : 45.13 [15:08:09]line Наличными: 425.00 [15:08:09]line Безнал.: 0.00 [15:08:09]line Место: АЗС № 88 "Партнер Нефть" [15:08:09]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:08:09]line СНО: Общий режим [15:08:09]line Чек 52 22.09.2024 15:08 [15:08:09]line Смена: 228 ФФД: 1.0 [15:08:09]line ЗНМ: 0300000061 [15:08:09]line РНМ: 0000000000146243 [15:08:09]line Версия ККМ: v1.0 [15:08:09]line ФМ: 0000000000959358 [15:08:09]line ФД: 22137 [15:08:09]line ФПД: 86181572217574 [15:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T150809&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22137&fm=86181572217574&tin=02508201610067®Number=0000000000146243&sum=42500 [15:08:09]line 0 [15:08:09]OFD Sender: Processing packet 22137 [packets to send 23, broken 22] [15:08:09]ProducePacketName [15:08:09]name=ofd_packets/00022137 [15:08:09]OFD Sender: To server: pG, [15:08:09]CommunicateWithHost lk.salyk.kg:30040 [15:08:09]ConnectInit lk.salyk.kg [15:08:09]written 0, free lines is 4095 [15:08:09]Connected sock=10 [15:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1F 01 00 00 1D E7 17 01 51 BC 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 33 31 35 30 34 38 36 06 04 19 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9E D1 80 D0 BE D0 BE D0 BD 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 A6 00 00 00 00 13 04 06 00 04 A6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 D9 32 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 79 56 00 00 35 04 06 00 4E 61 B5 FF 8A E6 D9 32 55 34 7A 93 1B E9 [15:08:10]Write to MH i2c: 01 00 00 2B 0A 35 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: 01 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: 01 07 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 14 0D 5D [15:08:10]RasterBufferAndPrint [15:08:10]line [15:08:10]line [15:08:10]line [15:08:10]line [15:08:10]line [15:08:10]written 0, free lines is 3354 [15:08:10]MH_Cut [15:08:10]Write to MH i2c: D1 01 00 32 0A 01 0E [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: D1 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: D1 01 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: D1 01 00 32 0A 00 0D [15:08:10]Write to MH i2c: 01 00 00 33 0A 3D [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 80 47 47 00 C6 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 79 56 00 00 F4 03 04 00 05 DD EF 66 B6 04 01 00 00 23 7C 3A 9B 76 69 19 56 [15:08:10]CommunicateWithHost err = 0 [15:08:10]CheckOFDResponse [15:08:10]1017 (14) - 77093643461234 [15:08:10]1041 (16) - 0000000000959358 [15:08:10]1040 (4) - 22137 [15:08:10]1012 (4) - 22.09.2024 09:01 [15:08:10]1206 (1) - 0 [15:08:10]OFD Sender: Remove packet 22137 [15:08:10]ProducePacketName [15:08:10]name=ofd_packets/00022137 [15:08:10]NVStorageDeleteData [15:08:10]OFD Sender: No OFD packet to send [15:08:10]*** Cut start [15:08:10]*** Partial cut [15:08:10]*** CUTSNS_PIN = 1 [15:08:10]*** CUTSNS_PIN = 0 [15:08:11]*** Brake cut motor [15:08:11]Read from MH i2c: 01 [15:08:11]MH_I2C_Read... [15:08:11]*** Stop cut motor [15:08:11]*** Cut end [15:08:11]Read from MH i2c: 01 07 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 33 0A 00 00 00 00 00 FF 0F 52 [15:08:11]process_action close_receipt done [15:08:11]requested_data is exist [15:08:11]produce_requested_data [15:08:11]requested_item fm.sn is exist - process it [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 11 00 00 [15:08:11]Write to MH i2c: E2 08 00 34 0A 80 11 00 00 00 00 00 00 B8 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 34 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 12 [15:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:08:11]wFMCommunicate OK [15:08:11]requested_item fd.num is exist - process it [15:08:11]SAM_PROTO_GetFieldsCounters [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 13 00 00 [15:08:11]Write to MH i2c: E2 08 00 35 0A 80 13 00 00 00 00 00 00 BB [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 62 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 62 00 35 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 79 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [15:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 79 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_GetFieldsCounters done [15:08:11]requested_item shift.num is exist - process it [15:08:11]requested_item shift.opened is exist - process it [15:08:11]req_shift_opened [15:08:11]FM_GetShiftState [15:08:11]SAM_PROTO_GetShiftState [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 13 01 00 [15:08:11]Write to MH i2c: E2 08 00 36 0A 80 13 01 00 00 00 00 00 BD [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0E 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0E 00 36 0A 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 38 [15:08:11]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_GetShiftState done [15:08:11]FM_GetShiftState done [15:08:11]req_shift_opened done [15:08:11]requested_item shift.open_date is exist - process it [15:08:11]req_shift_open_date [15:08:11]req_shift_open_date done [15:08:11]produce_requested_data done [15:08:11]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22137,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:08:11]process_action_free close_receipt [15:08:11]json_value_free [15:08:11]json_value_free done [15:08:11]process_json_proto returns [15:08:11]Send response to host [15:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22137,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:08:11]free response buf [15:08:11]execute_script done [15:08:11]execute_script returns [15:08:11]free content buf [15:08:11]Sock 7.Close socket [15:08:11]Sock 7.Thread stoped [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:39]accept exits with 9 [15:11:39]New connection [15:11:39]New thread 3067182436 created [15:11:39]Thread 3067039076 joined [15:11:39]Waiting for new connection... [15:11:39] Sock 9.Parse request [15:11:39]Sock 9.Check first char [15:11:39]Sock 9.First char is OK [15:11:39]request: POST /json_proto HTTP/1.0 [15:11:39]Method: POST [15:11:39]URL: /json_proto [15:11:39]Method is POST - this is cgi request [15:11:39]url: /json_proto [15:11:39]query_string will be loaded in cgi processing [15:11:39]execute_cgi json_proto POST (null) [15:11:39]execute_cgi path=json_proto method=POST [15:11:39]POST find Content-Length [15:11:39]Host: 172.17.43.4:8080 [15:11:39]Content-Length: 973 [15:11:39]Content-Type: application/json [15:11:39] [15:11:39]POST finish read [15:11:39]Found Content-Length = 973 [15:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51407", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \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": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:39]execute_script... [15:11: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)51407", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \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": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:39]POST & json_proto [15:11:39]process_json_proto [15:11:39]json parsed OK: [15:11:39]protocol is kg_v1.0 [15:11:39]action value=close_receipt [15:11:39]process_action close_receipt [15:11:39]cmd_close_receipt [15:11:39]MH_GetDate [15:11:39]Write to MH i2c: F0 00 00 37 0A 30 [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: F0 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: F0 09 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: F0 09 00 37 0A 00 AE 33 F0 66 02 BF CF 66 66 [15:11:39]GetLastDocTimeStamp 1727017689 [15:11:39]current date 1727017902 [15:11:39]FM_GetShiftState [15:11:39]SAM_PROTO_GetShiftState [15:11:39]wFMCommunicate request_size=4 [15:11:39]MH_SAM_APDU [15:11:39]CAPDU: 80 13 01 00 [15:11:39]Write to MH i2c: E2 08 00 38 0A 80 13 01 00 00 00 00 00 BF [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:39]Read from MH i2c: E2 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 0E 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 0E 00 38 0A 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 3A [15:11:39]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:11:39]wFMCommunicate OK [15:11:39]SAM_PROTO_GetShiftState done [15:11:39]FM_GetShiftState done [15:11:39]opened in 1726964408 [15:11:39]opened+sec_in_day 1727050808 [15:11:39]quantity*price = 10000 [15:11:39]sum+1 = 10001 [15:11:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.40 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 53 22.09.2024 15:11 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22138 ФПД: 195509293495065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151142&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22138&fm=195509293495065&tin=02508201610067®Number=0000000000146243&sum=15900 0 [15:11:41]StoreToDocumentArchive [15:11:41]shift 228 fd 22138 [15:11:41]save to /storage/0228/doc_00022138 [15:11:41]save last doc name /storage/0228/doc_00022138 to /storage/kkm_last_doc_name [15:11:41]save OK [15:11:41]Clear old archive folders... [15:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=406 [15:11:41]tlvbuf is 00218090 [15:11:41]SAM_PROTO_ClearQueue [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 09 00 00 [15:11:41]Write to MH i2c: E2 08 00 45 0A 80 09 00 00 00 00 00 00 C1 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [15:11:41]RAPDU: 90 00 [15:11:41]wFMCommunicate OK [15:11:41]SAM_PROTO_ClearQueue done [15:11:41]KKMCreateOFDPacket [15:11:41]OFDProtocolAddRootSTLVToBuf [15:11:41]FM_MakeSignedData [15:11:41]FM_MakeSignedData [15:11:41]SAM_PROTO_SignData [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 0D 01 02 [15:11:41]Write to MH i2c: E2 08 00 46 0A 80 0D 01 02 00 00 00 00 C9 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [15:11:41]RAPDU: 90 00 [15:11:41]wFMCommunicate OK [15:11:41]wFMCommunicate request_size=255 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE 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 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 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C [15:11:41]Write to MH i2c: E2 02 01 47 0A 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE 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 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 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 00 00 C6 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [15:11:41]RAPDU: 90 00 [15:11:41]wFMCommunicate OK [15:11:41]wFMCommunicate request_size=165 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 0D 02 02 A0 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AE 33 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7A 56 00 00 35 04 06 00 B1 D0 8D FD 33 19 [15:11:41]Write to MH i2c: E2 A8 00 48 0A 80 0D 02 02 A0 00 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AE 33 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7A 56 00 00 35 04 06 00 B1 D0 8D FD 33 19 00 00 84 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [15:11:41]RAPDU: 90 00 [15:11:41]wFMCommunicate OK [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 0D 03 02 [15:11:41]Write to MH i2c: E2 08 00 49 0A 80 0D 03 02 00 00 00 00 CE [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0B 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0B 00 49 0A 00 76 7A C0 05 FE 30 7C 4D 90 00 7B [15:11:41]RAPDU: 76 7A C0 05 FE 30 7C 4D 90 00 [15:11:41]wFMCommunicate OK [15:11:41]SAM_PROTO_SignData done [15:11:41]FM_MakeSignedData done [15:11:41]CreateOFDProtocolMessage [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 11 00 00 [15:11:41]Write to MH i2c: E2 08 00 4A 0A 80 11 00 00 00 00 00 00 CE [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 17 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 17 00 4A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 28 [15:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:11:41]wFMCommunicate OK [15:11:41]CreateOFDProtocolMessage done [15:11:41]OFDSenderStorePacket 22138 [15:11:41]StoreOFDPacket docnum=22138 [15:11:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 AA 01 00 00 D2 C2 A2 01 8F 4C 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE 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 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 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AE 33 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7A 56 00 00 35 04 06 00 B1 D0 8D FD 33 19 76 7A C0 05 FE 30 7C 4D [15:11:41]CheckFolder [15:11:41]dirname=/storage/ofd_packets [15:11:41]CheckFolder done [15:11:41]ProducePacketName [15:11:41]name=ofd_packets/00022138 [15:11:41]NVStorageSaveData ofd_packets/00022138 [15:11:41]File name is /storage/ofd_packets/00022138 [15:11:41]Write 456 bytes [15:11:41]NVStorageSaveData done [15:11:41]OFDSenderStorePacket done [15:11:41]KKMCreateOFDPacket done [15:11:41]NVStorageSaveData kkm_last_timestamp [15:11:41]File name is /storage/kkm_last_timestamp [15:11:41]Write 4 bytes [15:11:41]NVStorageSaveData done [15:11:41]ExternCall_PrintAddStr [15:11:41]wPrintStart [15:11:41]Write to MH i2c: 01 00 00 4B 0A 55 [15:11:41]OFD Sender: Processing packet 22138 [packets to send 23, broken 22] [15:11:41]ProducePacketName [15:11:41]name=ofd_packets/00022138 [15:11:41]OFD Sender: To server: pG, [15:11:41]CommunicateWithHost lk.salyk.kg:30040 [15:11:42]ConnectInit lk.salyk.kg [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 FF 0F 6A [15:11:42]RasterBufferAndPrint [15:11:42]line Счет N : (3)51407 [15:11:42]line ИНН: 02508201610067 [15:11:42]line Контрольно-Кассовый Чек [15:11:42]line ПРОДАЖА [15:11:42]line Товар: 4870002326172 [15:11:42]line Вода ASU пит н.газ лимон ПЭТ 1л [15:11:42]line 1.000 * 100.00 [15:11:42]line = 100.00 [15:11:42]line НДС 12% НСП 1% [15:11:42]line > о реализуемом товаре [15:11:42]line Товар: 4011100977624 [15:11:42]line Шок Батончик Баунти 55г [15:11:42]line 1.000 * 59.00 [15:11:42]line = 59.00 [15:11:42]line НДС 12% НСП 1% [15:11:42]line > о реализуемом товаре [15:11:42]line ИТОГО: 159.00 [15:11:42]line НСП 1% : 1.40 [15:11:42]line НДС 12% : 16.88 [15:11:42]line Наличными: 159.00 [15:11:42]line Безнал.: 0.00 [15:11:42]line Место: АЗС № 88 "Партнер Нефть" [15:11:42]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:11:42]line СНО: Общий режим [15:11:42]line Чек 53 22.09.2024 15:11 [15:11:42]line Смена: 228 ФФД: 1.0 [15:11:42]line ЗНМ: 0300000061 [15:11:42]line РНМ: 0000000000146243 [15:11:42]line Версия ККМ: v1.0 [15:11:42]line ФМ: 0000000000959358 [15:11:42]line ФД: 22138 [15:11:42]line ФПД: 195509293495065 [15:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151142&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22138&fm=195509293495065&tin=02508201610067®Number=0000000000146243&sum=15900 [15:11:42]line 0 [15:11:42]written 0, free lines is 4095 [15:11:42]Connected sock=10 [15:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 AA 01 00 00 D2 C2 A2 01 8F 4C 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 BB D0 B8 D0 BC D0 BE 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 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 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AE 33 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7A 56 00 00 35 04 06 00 B1 D0 8D FD 33 19 76 7A C0 05 FE 30 7C 4D [15:11:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 38 56 47 00 BD 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 39 35 39 33 35 38 10 04 04 00 7A 56 00 00 F4 03 04 00 D9 DD EF 66 B6 04 01 00 00 F2 DE 49 5C 5B 30 16 20 [15:11:42]CommunicateWithHost err = 0 [15:11:42]CheckOFDResponse [15:11:42]1017 (14) - 77093643461234 [15:11:42]1041 (16) - 0000000000959358 [15:11:42]1040 (4) - 22138 [15:11:42]1012 (4) - 22.09.2024 09:05 [15:11:42]1206 (1) - 0 [15:11:42]OFD Sender: Remove packet 22138 [15:11:42]ProducePacketName [15:11:42]name=ofd_packets/00022138 [15:11:42]NVStorageDeleteData [15:11:42]Write to MH i2c: 01 00 00 7A 0A 84 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 B8 0C 4F [15:11:42]RasterBufferAndPrint [15:11:42]line [15:11:42]line [15:11:42]line [15:11:42]line [15:11:42]line [15:11:42]written 0, free lines is 3264 [15:11:42]MH_Cut [15:11:42]Write to MH i2c: D1 01 00 81 0A 01 5D [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: D1 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: D1 01 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: D1 01 00 81 0A 00 5C [15:11:42]Write to MH i2c: 01 00 00 82 0A 8C [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:43]OFD Sender: No OFD packet to send [15:11:43]*** Cut start [15:11:43]*** Partial cut [15:11:43]*** CUTSNS_PIN = 1 [15:11:43]*** CUTSNS_PIN = 0 [15:11:43]*** Brake cut motor [15:11:43]Read from MH i2c: 01 [15:11:43]MH_I2C_Read... [15:11:43]*** Stop cut motor [15:11:43]*** Cut end [15:11:43]Read from MH i2c: 01 07 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 82 0A 00 00 00 00 00 FF 0F A1 [15:11:43]process_action close_receipt done [15:11:43]requested_data is exist [15:11:43]produce_requested_data [15:11:43]requested_item fm.sn is exist - process it [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 11 00 00 [15:11:43]Write to MH i2c: E2 08 00 83 0A 80 11 00 00 00 00 00 00 07 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:43]Read from MH i2c: E2 17 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 17 00 83 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 61 [15:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:11:43]wFMCommunicate OK [15:11:43]requested_item fd.num is exist - process it [15:11:43]SAM_PROTO_GetFieldsCounters [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 13 00 00 [15:11:43]Write to MH i2c: E2 08 00 84 0A 80 13 00 00 00 00 00 00 0A [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 62 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 62 00 84 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:44]wFMCommunicate OK [15:11:44]SAM_PROTO_GetFieldsCounters done [15:11:44]requested_item shift.num is exist - process it [15:11:44]requested_item shift.opened is exist - process it [15:11:44]req_shift_opened [15:11:44]FM_GetShiftState [15:11:44]SAM_PROTO_GetShiftState [15:11:44]wFMCommunicate request_size=4 [15:11:44]MH_SAM_APDU [15:11:44]CAPDU: 80 13 01 00 [15:11:44]Write to MH i2c: E2 08 00 85 0A 80 13 01 00 00 00 00 00 0C [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:44]Read from MH i2c: E2 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 0E 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 0E 00 85 0A 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 87 [15:11:44]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:11:44]wFMCommunicate OK [15:11:44]SAM_PROTO_GetShiftState done [15:11:44]FM_GetShiftState done [15:11:44]req_shift_opened done [15:11:44]requested_item shift.open_date is exist - process it [15:11:44]req_shift_open_date [15:11:44]req_shift_open_date done [15:11:44]produce_requested_data done [15:11:44]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22138,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:11:44]process_action_free close_receipt [15:11:44]json_value_free [15:11:44]json_value_free done [15:11:44]process_json_proto returns [15:11:44]Send response to host [15:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22138,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:11:44]free response buf [15:11:44]execute_script done [15:11:44]execute_script returns [15:11:44]free content buf [15:11:44]Sock 9.Close socket [15:11:44]Sock 9.Thread stoped [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:44]accept exits with 7 [15:14:44]New connection [15:14:44]New thread 3067039076 created [15:14:44]Thread 3067182436 joined [15:14:44]Waiting for new connection... [15:14:44] Sock 7.Parse request [15:14:44]Sock 7.Check first char [15:14:44]Sock 7.First char is OK [15:14:44]request: POST /json_proto HTTP/1.0 [15:14:44]Method: POST [15:14:44]URL: /json_proto [15:14:44]Method is POST - this is cgi request [15:14:44]url: /json_proto [15:14:44]query_string will be loaded in cgi processing [15:14:44]execute_cgi json_proto POST (null) [15:14:44]execute_cgi path=json_proto method=POST [15:14:44]POST find Content-Length [15:14:44]Host: 172.17.43.4:8080 [15:14:44]Content-Length: 625 [15:14:44]Content-Type: application/json [15:14:44] [15:14:44]POST finish read [15:14:44]Found Content-Length = 625 [15:14:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51408", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:44]execute_script... [15:14: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)51408", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:44]POST & json_proto [15:14:44]process_json_proto [15:14:44]json parsed OK: [15:14:44]protocol is kg_v1.0 [15:14:44]action value=close_receipt [15:14:44]process_action close_receipt [15:14:44]cmd_close_receipt [15:14:44]MH_GetDate [15:14:44]Write to MH i2c: F0 00 00 86 0A 7F [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: F0 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: F0 09 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: F0 09 00 86 0A 00 66 34 F0 66 02 BF CF 66 6E [15:14:44]GetLastDocTimeStamp 1727017902 [15:14:44]current date 1727018086 [15:14:44]FM_GetShiftState [15:14:44]SAM_PROTO_GetShiftState [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 13 01 00 [15:14:44]Write to MH i2c: E2 08 00 87 0A 80 13 01 00 00 00 00 00 0E [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 0E 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 0E 00 87 0A 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 89 [15:14:44]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:14:44]wFMCommunicate OK [15:14:44]SAM_PROTO_GetShiftState done [15:14:44]FM_GetShiftState done [15:14:44]opened in 1726964408 [15:14:44]opened+sec_in_day 1727050808 [15:14:44]quantity*price = 13900 [15:14:44]sum+1 = 13901 [15:14:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 54 22.09.2024 15:14 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22139 ФПД: 15363298548930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151446&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22139&fm=15363298548930&tin=02508201610067®Number=0000000000146243&sum=13900 0 [15:14:45]StoreToDocumentArchive [15:14:45]shift 228 fd 22139 [15:14:45]save to /storage/0228/doc_00022139 [15:14:45]save last doc name /storage/0228/doc_00022139 to /storage/kkm_last_doc_name [15:14:45]save OK [15:14:45]Clear old archive folders... [15:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=278 [15:14:45]tlvbuf is 0022C780 [15:14:45]SAM_PROTO_ClearQueue [15:14:45]wFMCommunicate request_size=4 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 09 00 00 [15:14:45]Write to MH i2c: E2 08 00 94 0A 80 09 00 00 00 00 00 00 10 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 03 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [15:14:45]RAPDU: 90 00 [15:14:45]wFMCommunicate OK [15:14:45]SAM_PROTO_ClearQueue done [15:14:45]KKMCreateOFDPacket [15:14:45]OFDProtocolAddRootSTLVToBuf [15:14:45]FM_MakeSignedData [15:14:45]FM_MakeSignedData [15:14:45]SAM_PROTO_SignData [15:14:45]wFMCommunicate request_size=4 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 0D 01 02 [15:14:45]Write to MH i2c: E2 08 00 95 0A 80 0D 01 02 00 00 00 00 18 [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 03 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [15:14:45]RAPDU: 90 00 [15:14:45]wFMCommunicate OK [15:14:45]wFMCommunicate request_size=255 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 66 34 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 [15:14:45]Write to MH i2c: E2 02 01 96 0A 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 66 34 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 00 00 5D [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [15:14:46]RAPDU: 90 00 [15:14:46]wFMCommunicate OK [15:14:46]wFMCommunicate request_size=37 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7B 56 00 00 35 04 06 00 0D F9 0B F3 DC C2 [15:14:46]Write to MH i2c: E2 28 00 97 0A 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7B 56 00 00 35 04 06 00 0D F9 0B F3 DC C2 00 00 EC [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [15:14:46]RAPDU: 90 00 [15:14:46]wFMCommunicate OK [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 0D 03 02 [15:14:46]Write to MH i2c: E2 08 00 98 0A 80 0D 03 02 00 00 00 00 1D [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 0B 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 0B 00 98 0A 00 DF 75 7B 4A 00 BC 08 B1 90 00 AC [15:14:46]RAPDU: DF 75 7B 4A 00 BC 08 B1 90 00 [15:14:46]wFMCommunicate OK [15:14:46]SAM_PROTO_SignData done [15:14:46]FM_MakeSignedData done [15:14:46]CreateOFDProtocolMessage [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 11 00 00 [15:14:46]Write to MH i2c: E2 08 00 99 0A 80 11 00 00 00 00 00 00 1D [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 17 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 17 00 99 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 77 [15:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:14:46]wFMCommunicate OK [15:14:46]CreateOFDProtocolMessage done [15:14:46]OFDSenderStorePacket 22139 [15:14:46]StoreOFDPacket docnum=22139 [15:14:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 92 20 22 01 AD 8D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 66 34 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7B 56 00 00 35 04 06 00 0D F9 0B F3 DC C2 DF 75 7B 4A 00 BC 08 B1 [15:14:46]CheckFolder [15:14:46]dirname=/storage/ofd_packets [15:14:46]CheckFolder done [15:14:46]ProducePacketName [15:14:46]name=ofd_packets/00022139 [15:14:46]NVStorageSaveData ofd_packets/00022139 [15:14:46]File name is /storage/ofd_packets/00022139 [15:14:46]Write 328 bytes [15:14:46]NVStorageSaveData done [15:14:46]OFDSenderStorePacket done [15:14:46]KKMCreateOFDPacket done [15:14:46]NVStorageSaveData kkm_last_timestamp [15:14:46]File name is /storage/kkm_last_timestamp [15:14:46]Write 4 bytes [15:14:46]NVStorageSaveData done [15:14:46]ExternCall_PrintAddStr [15:14:46]wPrintStart [15:14:46]Write to MH i2c: 01 00 00 9A 0A A4 [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: 01 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: 01 07 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: 01 07 00 9A 0A 00 00 00 00 00 FF 0F B9 [15:14:46]RasterBufferAndPrint [15:14:46]line Счет N : (3)51408 [15:14:46]line ИНН: 02508201610067 [15:14:46]line Контрольно-Кассовый Чек [15:14:46]line ПРОДАЖА [15:14:46]line Товар: 48741224 [15:14:46]line Сигареты Winston Super Slims Blue [15:14:46]line 1.000 * 139.00 [15:14:46]line = 139.00 [15:14:46]line НДС 12% НСП 1% [15:14:46]line > о реализуемом товаре [15:14:46]line ИТОГО: 139.00 [15:14:46]line НСП 1% : 1.23 [15:14:46]line НДС 12% : 14.76 [15:14:46]line Наличными: 139.00 [15:14:46]line Безнал.: 0.00 [15:14:46]line Место: АЗС № 88 "Партнер Нефть" [15:14:46]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:14:46]line СНО: Общий режим [15:14:46]line Чек 54 22.09.2024 15:14 [15:14:46]line Смена: 228 ФФД: 1.0 [15:14:46]line ЗНМ: 0300000061 [15:14:46]line РНМ: 0000000000146243 [15:14:46]line Версия ККМ: v1.0 [15:14:46]line ФМ: 0000000000959358 [15:14:46]line ФД: 22139 [15:14:46]line ФПД: 15363298548930 [15:14:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T151446&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22139&fm=15363298548930&tin=02508201610067®Number=0000000000146243&sum=13900 [15:14:46]line 0 [15:14:46]OFD Sender: Processing packet 22139 [packets to send 23, broken 22] [15:14:46]ProducePacketName [15:14:46]name=ofd_packets/00022139 [15:14:46]OFD Sender: To server: pG, [15:14:46]CommunicateWithHost lk.salyk.kg:30040 [15:14:46]ConnectInit lk.salyk.kg [15:14:46]written 0, free lines is 4095 [15:14:46]Connected sock=10 [15:14:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 92 20 22 01 AD 8D 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 66 34 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7B 56 00 00 35 04 06 00 0D F9 0B F3 DC C2 DF 75 7B 4A 00 BC 08 B1 [15:14:47]Write to MH i2c: 01 00 00 C3 0A CD [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: 01 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: 01 07 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 FD 0C DD [15:14:47]RasterBufferAndPrint [15:14:47]line [15:14:47]line [15:14:47]line [15:14:47]line [15:14:47]line [15:14:47]written 0, free lines is 3331 [15:14:47]MH_Cut [15:14:47]Write to MH i2c: D1 01 00 CA 0A 01 A6 [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: D1 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: D1 01 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: D1 01 00 CA 0A 00 A5 [15:14:47]Write to MH i2c: 01 00 00 CB 0A D5 [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 6B C0 47 00 35 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 39 35 39 33 35 38 10 04 04 00 7B 56 00 00 F4 03 04 00 91 DE EF 66 B6 04 01 00 00 0C 51 02 AB FC 75 EE 72 [15:14:47]CommunicateWithHost err = 0 [15:14:47]CheckOFDResponse [15:14:47]1017 (14) - 77093643461234 [15:14:47]1041 (16) - 0000000000959358 [15:14:47]1040 (4) - 22139 [15:14:47]1012 (4) - 22.09.2024 09:08 [15:14:47]1206 (1) - 0 [15:14:47]OFD Sender: Remove packet 22139 [15:14:47]ProducePacketName [15:14:47]name=ofd_packets/00022139 [15:14:47]NVStorageDeleteData [15:14:47]OFD Sender: No OFD packet to send [15:14:47]*** Cut start [15:14:47]*** Partial cut [15:14:47]*** CUTSNS_PIN = 1 [15:14:47]*** CUTSNS_PIN = 0 [15:14:47]*** Brake cut motor [15:14:48]Read from MH i2c: 01 [15:14:48]MH_I2C_Read... [15:14:48]*** Stop cut motor [15:14:48]*** Cut end [15:14:48]Read from MH i2c: 01 07 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 FF 0F EA [15:14:48]process_action close_receipt done [15:14:48]requested_data is exist [15:14:48]produce_requested_data [15:14:48]requested_item fm.sn is exist - process it [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 11 00 00 [15:14:48]Write to MH i2c: E2 08 00 CC 0A 80 11 00 00 00 00 00 00 50 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 17 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 17 00 CC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 AA [15:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:14:48]wFMCommunicate OK [15:14:48]requested_item fd.num is exist - process it [15:14:48]SAM_PROTO_GetFieldsCounters [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 13 00 00 [15:14:48]Write to MH i2c: E2 08 00 CD 0A 80 13 00 00 00 00 00 00 53 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 62 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 62 00 CD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [15:14:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_GetFieldsCounters done [15:14:48]requested_item shift.num is exist - process it [15:14:48]requested_item shift.opened is exist - process it [15:14:48]req_shift_opened [15:14:48]FM_GetShiftState [15:14:48]SAM_PROTO_GetShiftState [15:14:48]wFMCommunicate request_size=4 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 13 01 00 [15:14:48]Write to MH i2c: E2 08 00 CE 0A 80 13 01 00 00 00 00 00 55 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0E 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 0E 00 CE 0A 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D0 [15:14:48]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:14:48]wFMCommunicate OK [15:14:48]SAM_PROTO_GetShiftState done [15:14:48]FM_GetShiftState done [15:14:48]req_shift_opened done [15:14:48]requested_item shift.open_date is exist - process it [15:14:48]req_shift_open_date [15:14:48]req_shift_open_date done [15:14:48]produce_requested_data done [15:14:48]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22139,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:14:48]process_action_free close_receipt [15:14:48]json_value_free [15:14:48]json_value_free done [15:14:48]process_json_proto returns [15:14:48]Send response to host [15:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22139,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:14:48]free response buf [15:14:48]execute_script done [15:14:48]execute_script returns [15:14:48]free content buf [15:14:48]Sock 7.Close socket [15:14:48]Sock 7.Thread stoped [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]accept exits with 9 [15:28:23]New connection [15:28:23]New thread 3067182436 created [15:28:23]Thread 3067039076 joined [15:28:23]Waiting for new connection... [15:28:23] Sock 9.Parse request [15:28:23]Sock 9.Check first char [15:28:23]Sock 9.First char is OK [15:28:23]request: POST /json_proto HTTP/1.0 [15:28:23]Method: POST [15:28:23]URL: /json_proto [15:28:23]Method is POST - this is cgi request [15:28:23]url: /json_proto [15:28:23]query_string will be loaded in cgi processing [15:28:23]execute_cgi json_proto POST (null) [15:28:23]execute_cgi path=json_proto method=POST [15:28:23]POST find Content-Length [15:28:23]Host: 172.17.43.4:8080 [15:28:23]Content-Length: 1498 [15:28:23]Content-Type: application/json [15:28:23] [15:28:23]POST finish read [15:28:23]Found Content-Length = 1498 [15:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51409", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:23]execute_script... [15:28: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)51409", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 314.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:23]POST & json_proto [15:28:23]process_json_proto [15:28:23]json parsed OK: [15:28:23]protocol is kg_v1.0 [15:28:23]action value=close_receipt [15:28:23]process_action close_receipt [15:28:23]cmd_close_receipt [15:28:23]MH_GetDate [15:28:23]Write to MH i2c: F0 00 00 CF 0A C8 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: F0 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: F0 09 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: F0 09 00 CF 0A 00 99 37 F0 66 02 BF CF 66 ED [15:28:23]GetLastDocTimeStamp 1727018086 [15:28:23]current date 1727018905 [15:28:23]FM_GetShiftState [15:28:23]SAM_PROTO_GetShiftState [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 13 01 00 [15:28:23]Write to MH i2c: E2 08 00 D0 0A 80 13 01 00 00 00 00 00 57 [15:28:23]OFD Sender: No OFD packet to send [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0E 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0E 00 D0 0A 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D2 [15:28:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_GetShiftState done [15:28:23]FM_GetShiftState done [15:28:23]opened in 1726964408 [15:28:23]opened+sec_in_day 1727050808 [15:28:23]quantity*price = 18000 [15:28:23]sum+1 = 18001 [15:28:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160013 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 314.00 НСП 1% : 2.77 НДС 12% : 33.34 Наличными: 314.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 55 22.09.2024 15:28 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22140 ФПД: 61618856268289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152825&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22140&fm=61618856268289&tin=02508201610067®Number=0000000000146243&sum=31400 0 [15:28:24]StoreToDocumentArchive [15:28:24]shift 228 fd 22140 [15:28:24]save to /storage/0228/doc_00022140 [15:28:24]save last doc name /storage/0228/doc_00022140 to /storage/kkm_last_doc_name [15:28:24]save OK [15:28:24]Clear old archive folders... [15:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=624 [15:28:24]tlvbuf is 00217A60 [15:28:24]SAM_PROTO_ClearQueue [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 09 00 00 [15:28:24]Write to MH i2c: E2 08 00 DD 0A 80 09 00 00 00 00 00 00 59 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 03 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [15:28:24]RAPDU: 90 00 [15:28:24]wFMCommunicate OK [15:28:24]SAM_PROTO_ClearQueue done [15:28:24]KKMCreateOFDPacket [15:28:24]OFDProtocolAddRootSTLVToBuf [15:28:24]FM_MakeSignedData [15:28:24]FM_MakeSignedData [15:28:24]SAM_PROTO_SignData [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 0D 01 02 [15:28:24]Write to MH i2c: E2 08 00 DE 0A 80 0D 01 02 00 00 00 00 61 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 03 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [15:28:24]RAPDU: 90 00 [15:28:24]wFMCommunicate OK [15:28:24]wFMCommunicate request_size=255 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 0D 02 02 FA 03 00 70 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 [15:28:24]Write to MH i2c: E2 02 01 DF 0A 80 0D 02 02 FA 00 03 00 70 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 00 00 20 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [15:28:25]RAPDU: 90 00 [15:28:25]wFMCommunicate OK [15:28:25]wFMCommunicate request_size=255 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 0D 02 02 FA 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 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 [15:28:25]Write to MH i2c: E2 02 01 E0 0A 80 0D 02 02 FA 00 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 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 00 00 67 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [15:28:25]RAPDU: 90 00 [15:28:25]wFMCommunicate OK [15:28:25]wFMCommunicate request_size=133 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 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 99 37 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7C 56 00 00 35 04 06 00 38 0A C2 0A 12 01 [15:28:25]Write to MH i2c: E2 88 00 E1 0A 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 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 99 37 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7C 56 00 00 35 04 06 00 38 0A C2 0A 12 01 00 00 FD [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [15:28:25]RAPDU: 90 00 [15:28:25]wFMCommunicate OK [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 0D 03 02 [15:28:25]Write to MH i2c: E2 08 00 E2 0A 80 0D 03 02 00 00 00 00 67 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 0B 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 0B 00 E2 0A 00 62 0C 0D E9 9E 8A C8 BE 90 00 7A [15:28:25]RAPDU: 62 0C 0D E9 9E 8A C8 BE 90 00 [15:28:25]wFMCommunicate OK [15:28:25]SAM_PROTO_SignData done [15:28:25]FM_MakeSignedData done [15:28:25]CreateOFDProtocolMessage [15:28:25]wFMCommunicate request_size=4 [15:28:25]MH_SAM_APDU [15:28:25]CAPDU: 80 11 00 00 [15:28:25]Write to MH i2c: E2 08 00 E3 0A 80 11 00 00 00 00 00 00 67 [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:25]Read from MH i2c: E2 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 17 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: E2 17 00 E3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C1 [15:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:28:25]wFMCommunicate OK [15:28:25]CreateOFDProtocolMessage done [15:28:25]OFDSenderStorePacket 22140 [15:28:25]StoreOFDPacket docnum=22140 [15:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 84 02 00 00 8D 6D 7C 02 66 33 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 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 99 37 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7C 56 00 00 35 04 06 00 38 0A C2 0A 12 01 62 0C 0D E9 9E 8A C8 BE [15:28:25]CheckFolder [15:28:25]dirname=/storage/ofd_packets [15:28:25]CheckFolder done [15:28:25]ProducePacketName [15:28:25]name=ofd_packets/00022140 [15:28:25]NVStorageSaveData ofd_packets/00022140 [15:28:25]File name is /storage/ofd_packets/00022140 [15:28:25]Write 674 bytes [15:28:25]NVStorageSaveData done [15:28:25]OFDSenderStorePacket done [15:28:25]KKMCreateOFDPacket done [15:28:25]NVStorageSaveData kkm_last_timestamp [15:28:25]File name is /storage/kkm_last_timestamp [15:28:25]Write 4 bytes [15:28:25]NVStorageSaveData done [15:28:25]ExternCall_PrintAddStr [15:28:25]wPrintStart [15:28:25]Write to MH i2c: 01 00 00 E4 0A EE [15:28:25]Write i2c OK [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: 01 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: 01 07 00 [15:28:25]MH_I2C_Read... [15:28:25]Read from MH i2c: 01 07 00 E4 0A 00 00 00 00 00 FF 0F 03 [15:28:25]RasterBufferAndPrint [15:28:25]line Счет N : (3)51409 [15:28:25]line ИНН: 02508201610067 [15:28:25]line Контрольно-Кассовый Чек [15:28:25]line ПРОДАЖА [15:28:25]line Товар: 54492509 [15:28:25]line Напиток Кока-Кола 0,25л [15:28:25]line 2.000 * 90.00 [15:28:25]line = 180.00 [15:28:25]line НДС 12% НСП 1% [15:28:25]line > о реализуемом товаре [15:28:25]line Товар: 4700000160013 [15:28:25]line Снек Курут индивидуальный [15:28:25]line 1.000 * 15.00 [15:28:25]line = 15.00 [15:28:25]line НДС 12% НСП 1% [15:28:25]line > о реализуемом товаре [15:28:25]line Товар: 5449000005489 [15:28:25]line Вода Бонаква 1л б/г [15:28:25]line 1.000 * 42.00 [15:28:25]line = 42.00 [15:28:25]line НДС 12% НСП 1% [15:28:25]line > о реализуемом товаре [15:28:25]line Товар: 4700000480050 [15:28:25]line Напиток Nitro Energy эн green ж/б 0,45л [15:28:25]line 1.000 * 77.00 [15:28:25]line = 77.00 [15:28:25]line НДС 12% НСП 1% [15:28:25]line > о реализуемом товаре [15:28:25]line ИТОГО: 314.00 [15:28:25]line НСП 1% : 2.77 [15:28:25]line НДС 12% : 33.34 [15:28:25]line Наличными: 314.00 [15:28:25]line Безнал.: 0.00 [15:28:25]line Место: АЗС № 88 "Партнер Нефть" [15:28:25]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:28:25]line СНО: Общий режим [15:28:25]line Чек 55 22.09.2024 15:28 [15:28:25]line Смена: 228 ФФД: 1.0 [15:28:25]line ЗНМ: 0300000061 [15:28:25]line РНМ: 0000000000146243 [15:28:25]line Версия ККМ: v1.0 [15:28:25]line ФМ: 0000000000959358 [15:28:25]line ФД: 22140 [15:28:25]line ФПД: 61618856268289 [15:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T152825&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22140&fm=61618856268289&tin=02508201610067®Number=0000000000146243&sum=31400 [15:28:25]OFD Sender: Processing packet 22140 [packets to send 23, broken 22] [15:28:25]ProducePacketName [15:28:25]name=ofd_packets/00022140 [15:28:25]OFD Sender: To server: pG, [15:28:25]CommunicateWithHost lk.salyk.kg:30040 [15:28:25]ConnectInit lk.salyk.kg [15:28:25]line 0 [15:28:25]written 0, free lines is 4095 [15:28:26]Write to MH i2c: 01 00 00 1F 0B 2A [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 29 0C 66 [15:28:26]RasterBufferAndPrint [15:28:26]line [15:28:26]line [15:28:26]line [15:28:26]line [15:28:26]line [15:28:26]written 0, free lines is 3119 [15:28:26]MH_Cut [15:28:26]Write to MH i2c: D1 01 00 26 0B 01 03 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: D1 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: D1 01 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: D1 01 00 26 0B 00 02 [15:28:26]Write to MH i2c: 01 00 00 27 0B 32 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:27]*** Cut start [15:28:27]*** Partial cut [15:28:27]*** CUTSNS_PIN = 1 [15:28:27]*** CUTSNS_PIN = 0 [15:28:27]*** Brake cut motor [15:28:27]Read from MH i2c: 01 [15:28:27]MH_I2C_Read... [15:28:27]*** Stop cut motor [15:28:27]*** Cut end [15:28:27]Read from MH i2c: 01 07 00 [15:28:27]MH_I2C_Read... [15:28:27]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 FF 0F 47 [15:28:27]process_action close_receipt done [15:28:27]requested_data is exist [15:28:27]produce_requested_data [15:28:27]requested_item fm.sn is exist - process it [15:28:27]wFMCommunicate request_size=4 [15:28:27]MH_SAM_APDU [15:28:27]CAPDU: 80 11 00 00 [15:28:27]Write to MH i2c: E2 08 00 28 0B 80 11 00 00 00 00 00 00 AD [15:28:27]Write i2c OK [15:28:27]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:28]Read from MH i2c: E2 17 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 17 00 28 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 07 [15:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:28:28]wFMCommunicate OK [15:28:28]requested_item fd.num is exist - process it [15:28:28]SAM_PROTO_GetFieldsCounters [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 13 00 00 [15:28:28]Write to MH i2c: E2 08 00 29 0B 80 13 00 00 00 00 00 00 B0 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 62 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 62 00 29 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [15:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:28]wFMCommunicate OK [15:28:28]SAM_PROTO_GetFieldsCounters done [15:28:28]requested_item shift.num is exist - process it [15:28:28]requested_item shift.opened is exist - process it [15:28:28]req_shift_opened [15:28:28]FM_GetShiftState [15:28:28]SAM_PROTO_GetShiftState [15:28:28]wFMCommunicate request_size=4 [15:28:28]MH_SAM_APDU [15:28:28]CAPDU: 80 13 01 00 [15:28:28]Write to MH i2c: E2 08 00 2A 0B 80 13 01 00 00 00 00 00 B2 [15:28:28]Write i2c OK [15:28:28]MH_I2C_Read... [15:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:28]Read from MH i2c: E2 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 0E 00 [15:28:28]MH_I2C_Read... [15:28:28]Read from MH i2c: E2 0E 00 2A 0B 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2D [15:28:28]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:28:28]wFMCommunicate OK [15:28:28]SAM_PROTO_GetShiftState done [15:28:28]FM_GetShiftState done [15:28:28]req_shift_opened done [15:28:28]requested_item shift.open_date is exist - process it [15:28:28]req_shift_open_date [15:28:28]req_shift_open_date done [15:28:28]produce_requested_data done [15:28:28]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22140,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:28:28]process_action_free close_receipt [15:28:28]json_value_free [15:28:28]json_value_free done [15:28:28]process_json_proto returns [15:28:28]Send response to host [15:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22140,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:28:28]free response buf [15:28:28]execute_script done [15:28:28]execute_script returns [15:28:28]free content buf [15:28:28]Sock 9.Close socket [15:28:28]Sock 9.Thread stoped [15:30:40]ConnectInit Can't connect to host [15:30:40]CommunicateWithHost connect error [15:30:40]CommunicateWithHost err = -1 [15:30:40]OFD Sender: Server communicate error [15:30:45]OFD Sender: Processing packet 22140 [packets to send 23, broken 22] [15:30:45]ProducePacketName [15:30:45]name=ofd_packets/00022140 [15:30:45]OFD Sender: To server: pG, [15:30:45]CommunicateWithHost lk.salyk.kg:30040 [15:30:45]ConnectInit lk.salyk.kg [15:30:45]Connected sock=9 [15:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 84 02 00 00 8D 6D 7C 02 66 33 5A 03 01 00 03 00 70 02 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 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 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 0D 00 00 00 00 07 04 06 00 A8 7A 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 99 37 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7C 56 00 00 35 04 06 00 38 0A C2 0A 12 01 62 0C 0D E9 9E 8A C8 BE [15:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 BA 4E 47 00 65 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7C 56 00 00 F4 03 04 00 50 E2 EF 66 B6 04 01 00 00 BF 2B 14 E6 03 7A 18 C6 [15:30:45]CommunicateWithHost err = 0 [15:30:45]CheckOFDResponse [15:30:45]1017 (14) - 77093643461234 [15:30:45]1041 (16) - 0000000000959358 [15:30:45]1040 (4) - 22140 [15:30:45]1012 (4) - 22.09.2024 09:24 [15:30:45]1206 (1) - 0 [15:30:45]OFD Sender: Remove packet 22140 [15:30:45]ProducePacketName [15:30:45]name=ofd_packets/00022140 [15:30:45]NVStorageDeleteData [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:19]accept exits with 7 [15:58:19]New connection [15:58:19]New thread 3067039076 created [15:58:19]Thread 3067182436 joined [15:58:19]Waiting for new connection... [15:58:19] Sock 7.Parse request [15:58:19]Sock 7.Check first char [15:58:19]Sock 7.First char is OK [15:58:19]request: POST /json_proto HTTP/1.0 [15:58:19]Method: POST [15:58:19]URL: /json_proto [15:58:19]Method is POST - this is cgi request [15:58:19]url: /json_proto [15:58:19]query_string will be loaded in cgi processing [15:58:19]execute_cgi json_proto POST (null) [15:58:19]execute_cgi path=json_proto method=POST [15:58:19]POST find Content-Length [15:58:19]Host: 172.17.43.4:8080 [15:58:19]Content-Length: 893 [15:58:19]Content-Type: application/json [15:58:19] [15:58:19]POST finish read [15:58:19]Found Content-Length = 893 [15:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51410", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 241.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:19]execute_script... [15:58: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)51410", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 241.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:19]POST & json_proto [15:58:19]process_json_proto [15:58:19]json parsed OK: [15:58:19]protocol is kg_v1.0 [15:58:19]action value=close_receipt [15:58:19]process_action close_receipt [15:58:19]cmd_close_receipt [15:58:19]MH_GetDate [15:58:19]Write to MH i2c: F0 00 00 2B 0B 25 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: F0 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: F0 09 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: F0 09 00 2B 0B 00 9E 3E F0 66 02 BF CF 66 56 [15:58:19]GetLastDocTimeStamp 1727018905 [15:58:19]current date 1727020702 [15:58:19]FM_GetShiftState [15:58:19]SAM_PROTO_GetShiftState [15:58:19]wFMCommunicate request_size=4 [15:58:19]MH_SAM_APDU [15:58:19]CAPDU: 80 13 01 00 [15:58:19]Write to MH i2c: E2 08 00 2C 0B 80 13 01 00 00 00 00 00 B4 [15:58:19]Write i2c OK [15:58:19]MH_I2C_Read... [15:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:19]Read from MH i2c: E2 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 0E 00 [15:58:19]MH_I2C_Read... [15:58:19]Read from MH i2c: E2 0E 00 2C 0B 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2F [15:58:19]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:58:19]wFMCommunicate OK [15:58:19]SAM_PROTO_GetShiftState done [15:58:19]FM_GetShiftState done [15:58:19]opened in 1726964408 [15:58:19]opened+sec_in_day 1727050808 [15:58:19]quantity*price = 15600 [15:58:19]sum+1 = 15601 [15:58:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 241.00 НСП 1% : 2.13 НДС 12% : 25.60 Наличными: 241.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 56 22.09.2024 15:58 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22141 ФПД: 222626293218525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T155822&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22141&fm=222626293218525&tin=02508201610067®Number=0000000000146243&sum=24100 0 [15:58:20]StoreToDocumentArchive [15:58:20]shift 228 fd 22141 [15:58:20]save to /storage/0228/doc_00022141 [15:58:20]save last doc name /storage/0228/doc_00022141 to /storage/kkm_last_doc_name [15:58:20]save OK [15:58:20]Clear old archive folders... [15:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=398 [15:58:20]tlvbuf is 0025E8D0 [15:58:20]SAM_PROTO_ClearQueue [15:58:20]wFMCommunicate request_size=4 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 09 00 00 [15:58:20]Write to MH i2c: E2 08 00 39 0B 80 09 00 00 00 00 00 00 B6 [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:20]Read from MH i2c: E2 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 [15:58:20]MH_I2C_Read... [15:58:20]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [15:58:20]RAPDU: 90 00 [15:58:20]wFMCommunicate OK [15:58:20]SAM_PROTO_ClearQueue done [15:58:20]KKMCreateOFDPacket [15:58:20]OFDProtocolAddRootSTLVToBuf [15:58:20]FM_MakeSignedData [15:58:20]FM_MakeSignedData [15:58:20]SAM_PROTO_SignData [15:58:20]wFMCommunicate request_size=4 [15:58:20]MH_SAM_APDU [15:58:20]CAPDU: 80 0D 01 02 [15:58:20]Write to MH i2c: E2 08 00 3A 0B 80 0D 01 02 00 00 00 00 BE [15:58:20]Write i2c OK [15:58:20]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 03 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [15:58:21]RAPDU: 90 00 [15:58:21]wFMCommunicate OK [15:58:21]wFMCommunicate request_size=255 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 0D 02 02 FA 03 00 8E 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 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 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 24 5E 00 00 00 00 EB 03 26 [15:58:21]Write to MH i2c: E2 02 01 3B 0B 80 0D 02 02 FA 00 03 00 8E 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 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 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 24 5E 00 00 00 00 EB 03 26 00 00 D7 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 03 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [15:58:21]RAPDU: 90 00 [15:58:21]wFMCommunicate OK [15:58:21]wFMCommunicate request_size=157 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0A 00 00 00 00 07 04 06 00 24 5E 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 9E 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7D 56 00 00 35 04 06 00 CA 7A 39 1F FC DD [15:58:21]Write to MH i2c: E2 A0 00 3C 0B 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0A 00 00 00 00 07 04 06 00 24 5E 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 9E 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7D 56 00 00 35 04 06 00 CA 7A 39 1F FC DD 00 00 13 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 03 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [15:58:21]RAPDU: 90 00 [15:58:21]wFMCommunicate OK [15:58:21]wFMCommunicate request_size=4 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 0D 03 02 [15:58:21]Write to MH i2c: E2 08 00 3D 0B 80 0D 03 02 00 00 00 00 C3 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 0B 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 0B 00 3D 0B 00 3A 2D 0E 5E 95 29 4B FB 90 00 9B [15:58:21]RAPDU: 3A 2D 0E 5E 95 29 4B FB 90 00 [15:58:21]wFMCommunicate OK [15:58:21]SAM_PROTO_SignData done [15:58:21]FM_MakeSignedData done [15:58:21]CreateOFDProtocolMessage [15:58:21]wFMCommunicate request_size=4 [15:58:21]MH_SAM_APDU [15:58:21]CAPDU: 80 11 00 00 [15:58:21]Write to MH i2c: E2 08 00 3E 0B 80 11 00 00 00 00 00 00 C3 [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:21]Read from MH i2c: E2 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 17 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: E2 17 00 3E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1D [15:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:58:21]wFMCommunicate OK [15:58:21]CreateOFDProtocolMessage done [15:58:21]OFDSenderStorePacket 22141 [15:58:21]StoreOFDPacket docnum=22141 [15:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A2 01 00 00 C5 96 9A 01 8E A0 5A 03 01 00 03 00 8E 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 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 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 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0A 00 00 00 00 07 04 06 00 24 5E 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 9E 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7D 56 00 00 35 04 06 00 CA 7A 39 1F FC DD 3A 2D 0E 5E 95 29 4B FB [15:58:21]CheckFolder [15:58:21]dirname=/storage/ofd_packets [15:58:21]CheckFolder done [15:58:21]ProducePacketName [15:58:21]name=ofd_packets/00022141 [15:58:21]NVStorageSaveData ofd_packets/00022141 [15:58:21]File name is /storage/ofd_packets/00022141 [15:58:21]Write 448 bytes [15:58:21]NVStorageSaveData done [15:58:21]OFDSenderStorePacket done [15:58:21]KKMCreateOFDPacket done [15:58:21]NVStorageSaveData kkm_last_timestamp [15:58:21]File name is /storage/kkm_last_timestamp [15:58:21]Write 4 bytes [15:58:21]NVStorageSaveData done [15:58:21]ExternCall_PrintAddStr [15:58:21]wPrintStart [15:58:21]Write to MH i2c: 01 00 00 3F 0B 4A [15:58:21]Write i2c OK [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 07 00 [15:58:21]MH_I2C_Read... [15:58:21]Read from MH i2c: 01 07 00 3F 0B 00 00 00 00 00 FF 0F 5F [15:58:21]RasterBufferAndPrint [15:58:21]line Счет N : (3)51410 [15:58:21]line ИНН: 02508201610067 [15:58:21]line Контрольно-Кассовый Чек [15:58:21]line ПРОДАЖА [15:58:21]line Товар: 48741958 [15:58:21]line Сигареты Parliament Aqua Blue [15:58:21]line 1.000 * 156.00 [15:58:21]line = 156.00 [15:58:21]line НДС 12% НСП 1% [15:58:21]line > о реализуемом товаре [15:58:21]line Товар: 4600682557456 [15:58:21]line Напиток FLash up energy эн ж/б 0,5/0,45л [15:58:21]line 1.000 * 85.00 [15:58:21]line = 85.00 [15:58:21]line НДС 12% НСП 1% [15:58:21]line > о реализуемом товаре [15:58:21]line ИТОГО: 241.00 [15:58:21]line НСП 1% : 2.13 [15:58:21]line НДС 12% : 25.60 [15:58:21]line Наличными: 241.00 [15:58:21]line Безнал.: 0.00 [15:58:21]line Место: АЗС № 88 "Партнер Нефть" [15:58:21]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:58:21]line СНО: Общий режим [15:58:21]line Чек 56 22.09.2024 15:58 [15:58:21]line Смена: 228 ФФД: 1.0 [15:58:21]line ЗНМ: 0300000061 [15:58:21]line РНМ: 0000000000146243 [15:58:21]line Версия ККМ: v1.0 [15:58:21]line ФМ: 0000000000959358 [15:58:21]line ФД: 22141 [15:58:21]line ФПД: 222626293218525 [15:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T155822&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22141&fm=222626293218525&tin=02508201610067®Number=0000000000146243&sum=24100 [15:58:21]line 0 [15:58:21]OFD Sender: Processing packet 22141 [packets to send 23, broken 22] [15:58:21]ProducePacketName [15:58:21]name=ofd_packets/00022141 [15:58:21]OFD Sender: To server: pG, [15:58:21]CommunicateWithHost lk.salyk.kg:30040 [15:58:21]ConnectInit lk.salyk.kg [15:58:21]written 0, free lines is 4095 [15:58:22]Connected sock=11 [15:58:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A2 01 00 00 C5 96 9A 01 8E A0 5A 03 01 00 03 00 8E 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 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 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 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0A 00 00 00 00 07 04 06 00 24 5E 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 9E 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7D 56 00 00 35 04 06 00 CA 7A 39 1F FC DD 3A 2D 0E 5E 95 29 4B FB [15:58:22]Write to MH i2c: 01 00 00 6F 0B 7A [15:58:22]Write i2c OK [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: 01 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: 01 07 00 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 C1 0C 4E [15:58:22]RasterBufferAndPrint [15:58:22]line [15:58:22]line [15:58:22]line [15:58:22]line [15:58:22]line [15:58:22]written 0, free lines is 3271 [15:58:22]MH_Cut [15:58:22]Write to MH i2c: D1 01 00 76 0B 01 53 [15:58:22]Write i2c OK [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: D1 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: D1 01 00 [15:58:22]MH_I2C_Read... [15:58:22]Read from MH i2c: D1 01 00 76 0B 00 52 [15:58:22]Write to MH i2c: 01 00 00 77 0B 82 [15:58:22]Write i2c OK [15:58:22]MH_I2C_Read... [15:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 B5 96 47 00 90 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 39 35 39 33 35 38 10 04 04 00 7D 56 00 00 F4 03 04 00 C9 E8 EF 66 B6 04 01 00 00 7E DC A9 BE EC 4B 26 5C [15:58:22]CommunicateWithHost err = 0 [15:58:22]CheckOFDResponse [15:58:22]1017 (14) - 77093643461234 [15:58:22]1041 (16) - 0000000000959358 [15:58:22]1040 (4) - 22141 [15:58:22]1012 (4) - 22.09.2024 09:52 [15:58:22]1206 (1) - 0 [15:58:22]OFD Sender: Remove packet 22141 [15:58:22]ProducePacketName [15:58:22]name=ofd_packets/00022141 [15:58:22]NVStorageDeleteData [15:58:23]OFD Sender: No OFD packet to send [15:58:23]*** Cut start [15:58:23]*** Partial cut [15:58:23]*** CUTSNS_PIN = 1 [15:58:23]*** CUTSNS_PIN = 0 [15:58:23]*** Brake cut motor [15:58:23]Read from MH i2c: 01 [15:58:23]MH_I2C_Read... [15:58:23]*** Stop cut motor [15:58:23]*** Cut end [15:58:23]Read from MH i2c: 01 07 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 FF 0F 97 [15:58:23]process_action close_receipt done [15:58:23]requested_data is exist [15:58:23]produce_requested_data [15:58:23]requested_item fm.sn is exist - process it [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 11 00 00 [15:58:23]Write to MH i2c: E2 08 00 78 0B 80 11 00 00 00 00 00 00 FD [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 17 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 17 00 78 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 57 [15:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:58:23]wFMCommunicate OK [15:58:23]requested_item fd.num is exist - process it [15:58:23]SAM_PROTO_GetFieldsCounters [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 13 00 00 [15:58:23]Write to MH i2c: E2 08 00 79 0B 80 13 00 00 00 00 00 00 00 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:23]Read from MH i2c: E2 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 62 00 [15:58:23]MH_I2C_Read... [15:58:23]Read from MH i2c: E2 62 00 79 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [15:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:23]wFMCommunicate OK [15:58:23]SAM_PROTO_GetFieldsCounters done [15:58:23]requested_item shift.num is exist - process it [15:58:23]requested_item shift.opened is exist - process it [15:58:23]req_shift_opened [15:58:23]FM_GetShiftState [15:58:23]SAM_PROTO_GetShiftState [15:58:23]wFMCommunicate request_size=4 [15:58:23]MH_SAM_APDU [15:58:23]CAPDU: 80 13 01 00 [15:58:23]Write to MH i2c: E2 08 00 7A 0B 80 13 01 00 00 00 00 00 02 [15:58:23]Write i2c OK [15:58:23]MH_I2C_Read... [15:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:24]Read from MH i2c: E2 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: E2 0E 00 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: E2 0E 00 7A 0B 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 7D [15:58:24]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:58:24]wFMCommunicate OK [15:58:24]SAM_PROTO_GetShiftState done [15:58:24]FM_GetShiftState done [15:58:24]req_shift_opened done [15:58:24]requested_item shift.open_date is exist - process it [15:58:24]req_shift_open_date [15:58:24]req_shift_open_date done [15:58:24]produce_requested_data done [15:58:24]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22141,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:58:24]process_action_free close_receipt [15:58:24]json_value_free [15:58:24]json_value_free done [15:58:24]process_json_proto returns [15:58:24]Send response to host [15:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22141,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:58:24]free response buf [15:58:24]execute_script done [15:58:24]execute_script returns [15:58:24]free content buf [15:58:24]Sock 7.Close socket [15:58:24]Sock 7.Thread stoped [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:06]accept exits with 9 [15:59:06]New connection [15:59:06]New thread 3067182436 created [15:59:06]Thread 3067039076 joined [15:59:06]Waiting for new connection... [15:59:06] Sock 9.Parse request [15:59:06]Sock 9.Check first char [15:59:06]Sock 9.First char is OK [15:59:06]request: POST /json_proto HTTP/1.0 [15:59:06]Method: POST [15:59:06]URL: /json_proto [15:59:06]Method is POST - this is cgi request [15:59:06]url: /json_proto [15:59:06]query_string will be loaded in cgi processing [15:59:06]execute_cgi json_proto POST (null) [15:59:06]execute_cgi path=json_proto method=POST [15:59:06]POST find Content-Length [15:59:06]Host: 172.17.43.4:8080 [15:59:06]Content-Length: 678 [15:59:06]Content-Type: application/json [15:59:06] [15:59:06]POST finish read [15:59:06]Found Content-Length = 678 [15:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:06]execute_script... [15:59:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:06]POST & json_proto [15:59:06]process_json_proto [15:59:06]json parsed OK: [15:59:06]protocol is kg_v1.0 [15:59:06]action value=close_receipt [15:59:06]process_action close_receipt [15:59:06]cmd_close_receipt [15:59:06]MH_GetDate [15:59:06]Write to MH i2c: F0 00 00 7B 0B 75 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: F0 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: F0 09 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: F0 09 00 7B 0B 00 CC 3E F0 66 02 BF CF 66 D4 [15:59:06]GetLastDocTimeStamp 1727020702 [15:59:06]current date 1727020748 [15:59:06]FM_GetShiftState [15:59:06]SAM_PROTO_GetShiftState [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 13 01 00 [15:59:06]Write to MH i2c: E2 08 00 7C 0B 80 13 01 00 00 00 00 00 04 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0E 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0E 00 7C 0B 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 7F [15:59:06]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_GetShiftState done [15:59:06]FM_GetShiftState done [15:59:06]opened in 1726964408 [15:59:06]opened+sec_in_day 1727050808 [15:59:06]quantity*price = 50010 [15:59:06]sum+1 = 50012 [15:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 57 22.09.2024 15:59 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22142 ФПД: 93852539403280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T155908&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22142&fm=93852539403280&tin=02508201610067®Number=0000000000146243&sum=50000 [15:59:07]StoreToDocumentArchive [15:59:07]shift 228 fd 22142 [15:59:07]save to /storage/0228/doc_00022142 [15:59:07]save last doc name /storage/0228/doc_00022142 to /storage/kkm_last_doc_name [15:59:07]save OK [15:59:07]Clear old archive folders... [15:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:07]tlvbuf is 002111A0 [15:59:07]SAM_PROTO_ClearQueue [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 09 00 00 [15:59:07]Write to MH i2c: E2 08 00 89 0B 80 09 00 00 00 00 00 00 06 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 89 0B 00 90 00 08 [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_ClearQueue done [15:59:07]KKMCreateOFDPacket [15:59:07]OFDProtocolAddRootSTLVToBuf [15:59:07]FM_MakeSignedData [15:59:07]FM_MakeSignedData [15:59:07]SAM_PROTO_SignData [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 01 02 [15:59:07]Write to MH i2c: E2 08 00 8A 0B 80 0D 01 02 00 00 00 00 0E [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 8A 0B 00 90 00 09 [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]wFMCommunicate request_size=255 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CC 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7E 56 00 00 35 04 06 00 55 [15:59:07]Write to MH i2c: E2 02 01 8B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CC 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7E 56 00 00 35 04 06 00 55 00 00 1D [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 8B 0B 00 90 00 0A [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]wFMCommunicate request_size=10 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 02 02 05 5B BF 45 BC 10 [15:59:07]Write to MH i2c: E2 0D 00 8C 0B 80 0D 02 02 05 00 5B BF 45 BC 10 00 00 46 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 03 02 [15:59:07]Write to MH i2c: E2 08 00 8D 0B 80 0D 03 02 00 00 00 00 13 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0B 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0B 00 8D 0B 00 6B 7E B8 B0 CF 48 7C 5B 90 00 53 [15:59:07]RAPDU: 6B 7E B8 B0 CF 48 7C 5B 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_SignData done [15:59:07]FM_MakeSignedData done [15:59:07]CreateOFDProtocolMessage [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 11 00 00 [15:59:07]Write to MH i2c: E2 08 00 8E 0B 80 11 00 00 00 00 00 00 13 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 17 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 17 00 8E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6D [15:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:59:07]wFMCommunicate OK [15:59:07]CreateOFDProtocolMessage done [15:59:07]OFDSenderStorePacket 22142 [15:59:07]StoreOFDPacket docnum=22142 [15:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 97 9A 07 01 45 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CC 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7E 56 00 00 35 04 06 00 55 5B BF 45 BC 10 6B 7E B8 B0 CF 48 7C 5B [15:59:07]CheckFolder [15:59:07]dirname=/storage/ofd_packets [15:59:07]CheckFolder done [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00022142 [15:59:07]NVStorageSaveData ofd_packets/00022142 [15:59:07]File name is /storage/ofd_packets/00022142 [15:59:07]Write 301 bytes [15:59:07]NVStorageSaveData done [15:59:07]OFDSenderStorePacket done [15:59:07]KKMCreateOFDPacket done [15:59:07]NVStorageSaveData kkm_last_timestamp [15:59:07]File name is /storage/kkm_last_timestamp [15:59:07]Write 4 bytes [15:59:07]NVStorageSaveData done [15:59:07]ExternCall_PrintAddStr [15:59:07]wPrintStart [15:59:07]Write to MH i2c: 01 00 00 8F 0B 9A [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 8F 0B 00 00 00 00 00 FF 0F AF [15:59:07]RasterBufferAndPrint [15:59:07]line Счет N : (1)2162406 [15:59:07]line ИНН: 02508201610067 [15:59:07]line Контрольно-Кассовый Чек [15:59:07]line ПРОДАЖА [15:59:07]line ТРК (МРК, ГНК) : 13 [15:59:07]line Товар: 2710124500 [15:59:07]line Аи-95-К-5 [15:59:07]line 6.740 * 74.20 [15:59:07]line = 500.11 [15:59:07]line НДС 12% НСП 1% [15:59:07]line > о реализуемом товаре [15:59:07]line ОКРУГЛЕНИЕ: -0.11 [15:59:07]line ИТОГО: 500.00 [15:59:07]line Внесено: 500.00 [15:59:07]line СДАЧА: 0.00 [15:59:07]line НСП 1% : 4.43 [15:59:07]line НДС 12% : 53.11 [15:59:07]line Наличными: 500.00 [15:59:07]line Безнал.: 0.00 [15:59:07]line Место: АЗС № 88 "Партнер Нефть" [15:59:07]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [15:59:07]line СНО: Общий режим [15:59:07]line Чек 57 22.09.2024 15:59 [15:59:07]line Смена: 228 ФФД: 1.0 [15:59:07]line ЗНМ: 0300000061 [15:59:07]line РНМ: 0000000000146243 [15:59:07]line Версия ККМ: v1.0 [15:59:07]line ФМ: 0000000000959358 [15:59:07]line ФД: 22142 [15:59:07]line ФПД: 93852539403280 [15:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T155908&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22142&fm=93852539403280&tin=02508201610067®Number=0000000000146243&sum=50000 [15:59:08]OFD Sender: Processing packet 22142 [packets to send 23, broken 22] [15:59:08]ProducePacketName [15:59:08]name=ofd_packets/00022142 [15:59:08]OFD Sender: To server: pG, [15:59:08]CommunicateWithHost lk.salyk.kg:30040 [15:59:08]ConnectInit lk.salyk.kg [15:59:08]written 0, free lines is 4095 [15:59:08]Connected sock=7 [15:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 97 9A 07 01 45 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 CC 3E F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7E 56 00 00 35 04 06 00 55 5B BF 45 BC 10 6B 7E B8 B0 CF 48 7C 5B [15:59:08]Write to MH i2c: 01 00 00 BA 0B C5 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 BA 0B 00 00 00 00 00 F4 0C CC [15:59:08]RasterBufferAndPrint [15:59:08]line [15:59:08]line [15:59:08]line [15:59:08]line [15:59:08]line [15:59:08]written 0, free lines is 3322 [15:59:08]MH_Cut [15:59:08]Write to MH i2c: D1 01 00 C1 0B 01 9E [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: D1 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: D1 01 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: D1 01 00 C1 0B 00 9D [15:59:08]Write to MH i2c: 01 00 00 C2 0B CD [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 18 15 47 00 15 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7E 56 00 00 F4 03 04 00 F7 E8 EF 66 B6 04 01 00 00 5A A1 E3 B9 56 F3 A3 5B [15:59:08]CommunicateWithHost err = 0 [15:59:08]CheckOFDResponse [15:59:08]1017 (14) - 77093643461234 [15:59:08]1041 (16) - 0000000000959358 [15:59:08]1040 (4) - 22142 [15:59:08]1012 (4) - 22.09.2024 09:52 [15:59:08]1206 (1) - 0 [15:59:08]OFD Sender: Remove packet 22142 [15:59:08]ProducePacketName [15:59:08]name=ofd_packets/00022142 [15:59:08]NVStorageDeleteData [15:59:09]OFD Sender: No OFD packet to send [15:59:09]*** Cut start [15:59:09]*** Partial cut [15:59:09]*** CUTSNS_PIN = 1 [15:59:09]*** CUTSNS_PIN = 0 [15:59:09]*** Brake cut motor [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]*** Stop cut motor [15:59:09]*** Cut end [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 C2 0B 00 00 00 00 00 FF 0F E2 [15:59:09]process_action close_receipt done [15:59:09]requested_data is exist [15:59:09]produce_requested_data [15:59:09]requested_item fm.sn is exist - process it [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 11 00 00 [15:59:09]Write to MH i2c: E2 08 00 C3 0B 80 11 00 00 00 00 00 00 48 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 C3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A2 [15:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [15:59:09]wFMCommunicate OK [15:59:09]requested_item fd.num is exist - process it [15:59:09]SAM_PROTO_GetFieldsCounters [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 00 00 [15:59:09]Write to MH i2c: E2 08 00 C4 0B 80 13 00 00 00 00 00 00 4B [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 62 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 62 00 C4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [15:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_GetFieldsCounters done [15:59:09]requested_item shift.num is exist - process it [15:59:09]requested_item shift.opened is exist - process it [15:59:09]req_shift_opened [15:59:09]FM_GetShiftState [15:59:09]SAM_PROTO_GetShiftState [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 01 00 [15:59:09]Write to MH i2c: E2 08 00 C5 0B 80 13 01 00 00 00 00 00 4D [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:10]Read from MH i2c: E2 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 0E 00 [15:59:10]MH_I2C_Read... [15:59:10]Read from MH i2c: E2 0E 00 C5 0B 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C8 [15:59:10]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [15:59:10]wFMCommunicate OK [15:59:10]SAM_PROTO_GetShiftState done [15:59:10]FM_GetShiftState done [15:59:10]req_shift_opened done [15:59:10]requested_item shift.open_date is exist - process it [15:59:10]req_shift_open_date [15:59:10]req_shift_open_date done [15:59:10]produce_requested_data done [15:59:10]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22142,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [15:59:10]process_action_free close_receipt [15:59:10]json_value_free [15:59:10]json_value_free done [15:59:10]process_json_proto returns [15:59:10]Send response to host [15:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22142,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [15:59:10]free response buf [15:59:10]execute_script done [15:59:10]execute_script returns [15:59:10]free content buf [15:59:10]Sock 9.Close socket [15:59:10]Sock 9.Thread stoped [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:53]accept exits with 10 [16:22:53]New connection [16:22:53]New thread 3067039076 created [16:22:53]Thread 3067182436 joined [16:22:53]Waiting for new connection... [16:22:53] Sock 10.Parse request [16:22:53]Sock 10.Check first char [16:22:53]Sock 10.First char is OK [16:22:53]request: POST /json_proto HTTP/1.0 [16:22:53]Method: POST [16:22:53]URL: /json_proto [16:22:53]Method is POST - this is cgi request [16:22:53]url: /json_proto [16:22:53]query_string will be loaded in cgi processing [16:22:53]execute_cgi json_proto POST (null) [16:22:53]execute_cgi path=json_proto method=POST [16:22:53]POST find Content-Length [16:22:53]Host: 172.17.43.4:8080 [16:22:53]Content-Length: 678 [16:22:53]Content-Type: application/json [16:22:53] [16:22:53]POST finish read [16:22:53]Found Content-Length = 678 [16:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51411", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:53]execute_script... [16:22: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)51411", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:53]POST & json_proto [16:22:53]process_json_proto [16:22:53]json parsed OK: [16:22:53]protocol is kg_v1.0 [16:22:53]action value=close_receipt [16:22:53]process_action close_receipt [16:22:53]cmd_close_receipt [16:22:53]MH_GetDate [16:22:53]Write to MH i2c: F0 00 00 C6 0B C0 [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: F0 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: F0 09 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: F0 09 00 C6 0B 00 5F 44 F0 66 02 BF CF 66 B8 [16:22:53]GetLastDocTimeStamp 1727020748 [16:22:53]current date 1727022175 [16:22:53]FM_GetShiftState [16:22:53]SAM_PROTO_GetShiftState [16:22:53]wFMCommunicate request_size=4 [16:22:53]MH_SAM_APDU [16:22:53]CAPDU: 80 13 01 00 [16:22:53]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [16:22:53]Write i2c OK [16:22:53]MH_I2C_Read... [16:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:53]Read from MH i2c: E2 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: E2 0E 00 [16:22:53]MH_I2C_Read... [16:22:53]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 CA [16:22:53]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:22:53]wFMCommunicate OK [16:22:53]SAM_PROTO_GetShiftState done [16:22:53]FM_GetShiftState done [16:22:53]opened in 1726964408 [16:22:53]opened+sec_in_day 1727050808 [16:22:53]quantity*price = 8000 [16:22:53]sum+1 = 8001 [16:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 58 22.09.2024 16:22 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22143 ФПД: 147631206715405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162256&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22143&fm=147631206715405&tin=02508201610067®Number=0000000000146243&sum=8000 0 [16:22:54]StoreToDocumentArchive [16:22:54]shift 228 fd 22143 [16:22:54]save to /storage/0228/doc_00022143 [16:22:54]save last doc name /storage/0228/doc_00022143 to /storage/kkm_last_doc_name [16:22:54]save OK [16:22:54]Clear old archive folders... [16:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:22:54]tlvbuf is 0020C6D0 [16:22:54]SAM_PROTO_ClearQueue [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 09 00 00 [16:22:54]Write to MH i2c: E2 08 00 D4 0B 80 09 00 00 00 00 00 00 51 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 D4 0B 00 90 00 53 [16:22:54]RAPDU: 90 00 [16:22:54]wFMCommunicate OK [16:22:54]SAM_PROTO_ClearQueue done [16:22:54]KKMCreateOFDPacket [16:22:54]OFDProtocolAddRootSTLVToBuf [16:22:54]FM_MakeSignedData [16:22:54]FM_MakeSignedData [16:22:54]SAM_PROTO_SignData [16:22:54]wFMCommunicate request_size=4 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 0D 01 02 [16:22:54]Write to MH i2c: E2 08 00 D5 0B 80 0D 01 02 00 00 00 00 59 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:54]Read from MH i2c: E2 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 [16:22:54]MH_I2C_Read... [16:22:54]Read from MH i2c: E2 03 00 D5 0B 00 90 00 54 [16:22:54]RAPDU: 90 00 [16:22:54]wFMCommunicate OK [16:22:54]wFMCommunicate request_size=255 [16:22:54]MH_SAM_APDU [16:22:54]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 40 1F 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 60 44 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:22:54]Write to MH i2c: E2 02 01 D6 0B 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 40 1F 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 60 44 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 73 [16:22:54]Write i2c OK [16:22:54]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 03 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 03 00 D6 0B 00 90 00 55 [16:22:55]RAPDU: 90 00 [16:22:55]wFMCommunicate OK [16:22:55]wFMCommunicate request_size=53 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 0D 02 02 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7F 56 00 00 35 04 06 00 86 45 11 A2 50 0D [16:22:55]Write to MH i2c: E2 38 00 D7 0B 80 0D 02 02 30 00 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7F 56 00 00 35 04 06 00 86 45 11 A2 50 0D 00 00 03 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 03 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [16:22:55]RAPDU: 90 00 [16:22:55]wFMCommunicate OK [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 0D 03 02 [16:22:55]Write to MH i2c: E2 08 00 D8 0B 80 0D 03 02 00 00 00 00 5E [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 0B 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 0B 00 D8 0B 00 7C 66 B4 F0 52 5D A4 D3 90 00 0B [16:22:55]RAPDU: 7C 66 B4 F0 52 5D A4 D3 90 00 [16:22:55]wFMCommunicate OK [16:22:55]SAM_PROTO_SignData done [16:22:55]FM_MakeSignedData done [16:22:55]CreateOFDProtocolMessage [16:22:55]wFMCommunicate request_size=4 [16:22:55]MH_SAM_APDU [16:22:55]CAPDU: 80 11 00 00 [16:22:55]Write to MH i2c: E2 08 00 D9 0B 80 11 00 00 00 00 00 00 5E [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:55]Read from MH i2c: E2 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 17 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: E2 17 00 D9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B8 [16:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:22:55]wFMCommunicate OK [16:22:55]CreateOFDProtocolMessage done [16:22:55]OFDSenderStorePacket 22143 [16:22:55]StoreOFDPacket docnum=22143 [16:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3A 01 00 00 FA 79 32 01 17 2A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 40 1F 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 60 44 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7F 56 00 00 35 04 06 00 86 45 11 A2 50 0D 7C 66 B4 F0 52 5D A4 D3 [16:22:55]CheckFolder [16:22:55]dirname=/storage/ofd_packets [16:22:55]CheckFolder done [16:22:55]ProducePacketName [16:22:55]name=ofd_packets/00022143 [16:22:55]NVStorageSaveData ofd_packets/00022143 [16:22:55]File name is /storage/ofd_packets/00022143 [16:22:55]Write 344 bytes [16:22:55]NVStorageSaveData done [16:22:55]OFDSenderStorePacket done [16:22:55]KKMCreateOFDPacket done [16:22:55]NVStorageSaveData kkm_last_timestamp [16:22:55]File name is /storage/kkm_last_timestamp [16:22:55]Write 4 bytes [16:22:55]NVStorageSaveData done [16:22:55]ExternCall_PrintAddStr [16:22:55]wPrintStart [16:22:55]Write to MH i2c: 01 00 00 DA 0B E5 [16:22:55]Write i2c OK [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: 01 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: 01 07 00 [16:22:55]MH_I2C_Read... [16:22:55]Read from MH i2c: 01 07 00 DA 0B 00 00 00 00 00 FF 0F FA [16:22:55]RasterBufferAndPrint [16:22:55]line Счет N : (3)51411 [16:22:55]line ИНН: 02508201610067 [16:22:55]line Контрольно-Кассовый Чек [16:22:55]line ПРОДАЖА [16:22:55]line Товар: 4700003010353 [16:22:55]line Напиток Let`s Go! с/с груша ПЭТ 1л [16:22:55]line 1.000 * 80.00 [16:22:55]line = 80.00 [16:22:55]line НДС 12% НСП 1% [16:22:55]line > о реализуемом товаре [16:22:55]line ИТОГО: 80.00 [16:22:55]line НСП 1% : 0.71 [16:22:55]line НДС 12% : 8.50 [16:22:55]line Наличными: 80.00 [16:22:55]line Безнал.: 0.00 [16:22:55]line Место: АЗС № 88 "Партнер Нефть" [16:22:55]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [16:22:55]line СНО: Общий режим [16:22:55]line Чек 58 22.09.2024 16:22 [16:22:55]line Смена: 228 ФФД: 1.0 [16:22:55]line ЗНМ: 0300000061 [16:22:55]line РНМ: 0000000000146243 [16:22:55]line Версия ККМ: v1.0 [16:22:55]line ФМ: 0000000000959358 [16:22:55]line ФД: 22143 [16:22:55]line ФПД: 147631206715405 [16:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T162256&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22143&fm=147631206715405&tin=02508201610067®Number=0000000000146243&sum=8000 [16:22:55]line 0 [16:22:55]OFD Sender: Processing packet 22143 [packets to send 23, broken 22] [16:22:55]ProducePacketName [16:22:55]name=ofd_packets/00022143 [16:22:55]OFD Sender: To server: pG, [16:22:55]CommunicateWithHost lk.salyk.kg:30040 [16:22:55]ConnectInit lk.salyk.kg [16:22:55]written 0, free lines is 4095 [16:22:55]Connected sock=7 [16:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3A 01 00 00 FA 79 32 01 17 2A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 40 1F 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 60 44 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 7F 56 00 00 35 04 06 00 86 45 11 A2 50 0D 7C 66 B4 F0 52 5D A4 D3 [16:22:56]Write to MH i2c: 01 00 00 03 0C 0F [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: 01 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: 01 07 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 05 0D 28 [16:22:56]RasterBufferAndPrint [16:22:56]line [16:22:56]line [16:22:56]line [16:22:56]line [16:22:56]line [16:22:56]written 0, free lines is 3339 [16:22:56]MH_Cut [16:22:56]Write to MH i2c: D1 01 00 0A 0C 01 E8 [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: D1 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: D1 01 00 [16:22:56]MH_I2C_Read... [16:22:56]Read from MH i2c: D1 01 00 0A 0C 00 E7 [16:22:56]Write to MH i2c: 01 00 00 0B 0C 17 [16:22:56]Write i2c OK [16:22:56]MH_I2C_Read... [16:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 81 97 47 00 54 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 39 35 39 33 35 38 10 04 04 00 7F 56 00 00 F4 03 04 00 8A EE EF 66 B6 04 01 00 00 FB 7C 53 B7 63 11 22 CF [16:22:56]CommunicateWithHost err = 0 [16:22:56]CheckOFDResponse [16:22:56]1017 (14) - 77093643461234 [16:22:56]1041 (16) - 0000000000959358 [16:22:56]1040 (4) - 22143 [16:22:56]1012 (4) - 22.09.2024 10:16 [16:22:56]1206 (1) - 0 [16:22:56]OFD Sender: Remove packet 22143 [16:22:56]ProducePacketName [16:22:56]name=ofd_packets/00022143 [16:22:56]NVStorageDeleteData [16:22:56]OFD Sender: No OFD packet to send [16:22:56]*** Cut start [16:22:56]*** Partial cut [16:22:56]*** CUTSNS_PIN = 1 [16:22:56]*** CUTSNS_PIN = 0 [16:22:56]*** Brake cut motor [16:22:57]Read from MH i2c: 01 [16:22:57]MH_I2C_Read... [16:22:57]*** Stop cut motor [16:22:57]*** Cut end [16:22:57]Read from MH i2c: 01 07 00 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [16:22:57]process_action close_receipt done [16:22:57]requested_data is exist [16:22:57]produce_requested_data [16:22:57]requested_item fm.sn is exist - process it [16:22:57]wFMCommunicate request_size=4 [16:22:57]MH_SAM_APDU [16:22:57]CAPDU: 80 11 00 00 [16:22:57]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [16:22:57]Write i2c OK [16:22:57]MH_I2C_Read... [16:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:57]Read from MH i2c: E2 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: E2 17 00 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: E2 17 00 0C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EC [16:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:22:57]wFMCommunicate OK [16:22:57]requested_item fd.num is exist - process it [16:22:57]SAM_PROTO_GetFieldsCounters [16:22:57]wFMCommunicate request_size=4 [16:22:57]MH_SAM_APDU [16:22:57]CAPDU: 80 13 00 00 [16:22:57]Write to MH i2c: E2 08 00 0D 0C 80 13 00 00 00 00 00 00 95 [16:22:57]Write i2c OK [16:22:57]MH_I2C_Read... [16:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:57]Read from MH i2c: E2 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: E2 62 00 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: E2 62 00 0D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [16:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 7F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:57]wFMCommunicate OK [16:22:57]SAM_PROTO_GetFieldsCounters done [16:22:57]requested_item shift.num is exist - process it [16:22:57]requested_item shift.opened is exist - process it [16:22:57]req_shift_opened [16:22:57]FM_GetShiftState [16:22:57]SAM_PROTO_GetShiftState [16:22:57]wFMCommunicate request_size=4 [16:22:57]MH_SAM_APDU [16:22:57]CAPDU: 80 13 01 00 [16:22:57]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [16:22:57]Write i2c OK [16:22:57]MH_I2C_Read... [16:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:57]Read from MH i2c: E2 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: E2 0E 00 [16:22:57]MH_I2C_Read... [16:22:57]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 12 [16:22:57]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:22:57]wFMCommunicate OK [16:22:57]SAM_PROTO_GetShiftState done [16:22:57]FM_GetShiftState done [16:22:57]req_shift_opened done [16:22:57]requested_item shift.open_date is exist - process it [16:22:57]req_shift_open_date [16:22:57]req_shift_open_date done [16:22:57]produce_requested_data done [16:22:57]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22143,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [16:22:57]process_action_free close_receipt [16:22:57]json_value_free [16:22:57]json_value_free done [16:22:57]process_json_proto returns [16:22:57]Send response to host [16:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22143,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [16:22:57]free response buf [16:22:57]execute_script done [16:22:57]execute_script returns [16:22:57]free content buf [16:22:57]Sock 10.Close socket [16:22:57]Sock 10.Thread stoped [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:23]accept exits with 9 [16:30:23]New connection [16:30:23]New thread 3067182436 created [16:30:23]Thread 3067039076 joined [16:30:23]Waiting for new connection... [16:30:23] Sock 9.Parse request [16:30:23]Sock 9.Check first char [16:30:23]Sock 9.First char is OK [16:30:23]request: POST /json_proto HTTP/1.0 [16:30:23]Method: POST [16:30:23]URL: /json_proto [16:30:23]Method is POST - this is cgi request [16:30:23]url: /json_proto [16:30:23]query_string will be loaded in cgi processing [16:30:23]execute_cgi json_proto POST (null) [16:30:23]execute_cgi path=json_proto method=POST [16:30:23]POST find Content-Length [16:30:23]Host: 172.17.43.4:8080 [16:30:23]Content-Length: 1353 [16:30:23]Content-Type: application/json [16:30:23] [16:30:23]POST finish read [16:30:23]Found Content-Length = 1353 [16:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51412", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:23]execute_script... [16:30: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)51412", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 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" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:23]POST & json_proto [16:30:23]process_json_proto [16:30:23]json parsed OK: [16:30:23]protocol is kg_v1.0 [16:30:23]action value=close_receipt [16:30:23]process_action close_receipt [16:30:23]cmd_close_receipt [16:30:23]MH_GetDate [16:30:23]Write to MH i2c: F0 00 00 0F 0C 0A [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: F0 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: F0 09 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: F0 09 00 0F 0C 00 22 46 F0 66 02 BF CF 66 C7 [16:30:23]GetLastDocTimeStamp 1727022176 [16:30:23]current date 1727022626 [16:30:23]FM_GetShiftState [16:30:23]SAM_PROTO_GetShiftState [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 13 01 00 [16:30:23]Write to MH i2c: E2 08 00 10 0C 80 13 01 00 00 00 00 00 99 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:24]Read from MH i2c: E2 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 0E 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: E2 0E 00 10 0C 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 14 [16:30:24]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:30:24]wFMCommunicate OK [16:30:24]SAM_PROTO_GetShiftState done [16:30:24]FM_GetShiftState done [16:30:24]opened in 1726964408 [16:30:24]opened+sec_in_day 1727050808 [16:30:24]quantity*price = 7500 [16:30:24]sum+1 = 7501 [16:30:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607018771791 Минеральная вода Ессентуки 17 0,45л ст 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 59 22.09.2024 16:30 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22144 ФПД: 45639985718010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163026&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22144&fm=45639985718010&tin=02508201610067®Number=0000000000146243&sum=25500 0 [16:30:25]StoreToDocumentArchive [16:30:25]shift 228 fd 22144 [16:30:25]save to /storage/0228/doc_00022144 [16:30:25]save last doc name /storage/0228/doc_00022144 to /storage/kkm_last_doc_name [16:30:25]save OK [16:30:25]Clear old archive folders... [16:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=562 [16:30:25]tlvbuf is 0021C3A0 [16:30:25]SAM_PROTO_ClearQueue [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 09 00 00 [16:30:25]Write to MH i2c: E2 08 00 1D 0C 80 09 00 00 00 00 00 00 9B [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]SAM_PROTO_ClearQueue done [16:30:25]KKMCreateOFDPacket [16:30:25]OFDProtocolAddRootSTLVToBuf [16:30:25]FM_MakeSignedData [16:30:25]FM_MakeSignedData [16:30:25]SAM_PROTO_SignData [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 01 02 [16:30:25]Write to MH i2c: E2 08 00 1E 0C 80 0D 01 02 00 00 00 00 A3 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]wFMCommunicate request_size=255 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 02 02 FA 03 00 32 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 [16:30:25]Write to MH i2c: E2 02 01 1F 0C 80 0D 02 02 FA 00 03 00 32 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 00 00 14 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [16:30:25]RAPDU: 90 00 [16:30:25]wFMCommunicate OK [16:30:25]wFMCommunicate request_size=255 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 0D 02 02 FA 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 46 F0 66 0E 04 04 00 E4 [16:30:25]Write to MH i2c: E2 02 01 20 0C 80 0D 02 02 FA 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 46 F0 66 0E 04 04 00 E4 00 00 E2 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 03 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [16:30:26]RAPDU: 90 00 [16:30:26]wFMCommunicate OK [16:30:26]wFMCommunicate request_size=71 [16:30:26]MH_SAM_APDU [16:30:26]CAPDU: 80 0D 02 02 42 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 80 56 00 00 35 04 06 00 29 82 63 22 E2 FA [16:30:26]Write to MH i2c: E2 4A 00 21 0C 80 0D 02 02 42 00 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 80 56 00 00 35 04 06 00 29 82 63 22 E2 FA 00 00 A4 [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 03 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [16:30:26]RAPDU: 90 00 [16:30:26]wFMCommunicate OK [16:30:26]wFMCommunicate request_size=4 [16:30:26]MH_SAM_APDU [16:30:26]CAPDU: 80 0D 03 02 [16:30:26]Write to MH i2c: E2 08 00 22 0C 80 0D 03 02 00 00 00 00 A9 [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 0B 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 0B 00 22 0C 00 03 ED 25 34 E7 6C 49 71 90 00 00 [16:30:26]RAPDU: 03 ED 25 34 E7 6C 49 71 90 00 [16:30:26]wFMCommunicate OK [16:30:26]SAM_PROTO_SignData done [16:30:26]FM_MakeSignedData done [16:30:26]CreateOFDProtocolMessage [16:30:26]wFMCommunicate request_size=4 [16:30:26]MH_SAM_APDU [16:30:26]CAPDU: 80 11 00 00 [16:30:26]Write to MH i2c: E2 08 00 23 0C 80 11 00 00 00 00 00 00 A9 [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:26]Read from MH i2c: E2 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 17 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: E2 17 00 23 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 03 [16:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:30:26]wFMCommunicate OK [16:30:26]CreateOFDProtocolMessage done [16:30:26]OFDSenderStorePacket 22144 [16:30:26]StoreOFDPacket docnum=22144 [16:30:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 46 02 00 00 83 EA 3E 02 8D 40 5A 03 01 00 03 00 32 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 46 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 80 56 00 00 35 04 06 00 29 82 63 22 E2 FA 03 ED 25 34 E7 6C 49 71 [16:30:26]CheckFolder [16:30:26]dirname=/storage/ofd_packets [16:30:26]CheckFolder done [16:30:26]ProducePacketName [16:30:26]name=ofd_packets/00022144 [16:30:26]NVStorageSaveData ofd_packets/00022144 [16:30:26]File name is /storage/ofd_packets/00022144 [16:30:26]Write 612 bytes [16:30:26]NVStorageSaveData done [16:30:26]OFDSenderStorePacket done [16:30:26]KKMCreateOFDPacket done [16:30:26]NVStorageSaveData kkm_last_timestamp [16:30:26]File name is /storage/kkm_last_timestamp [16:30:26]Write 4 bytes [16:30:26]NVStorageSaveData done [16:30:26]ExternCall_PrintAddStr [16:30:26]wPrintStart [16:30:26]Write to MH i2c: 01 00 00 24 0C 30 [16:30:26]Write i2c OK [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: 01 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: 01 07 00 [16:30:26]MH_I2C_Read... [16:30:26]Read from MH i2c: 01 07 00 24 0C 00 00 00 00 00 FF 0F 45 [16:30:26]RasterBufferAndPrint [16:30:26]line Счет N : (3)51412 [16:30:26]line ИНН: 02508201610067 [16:30:26]line Контрольно-Кассовый Чек [16:30:26]line ПРОДАЖА [16:30:26]line Товар: 5449000027450 [16:30:26]line Напиток FuzeTea чай манго,ром 0,5л [16:30:26]line 1.000 * 75.00 [16:30:26]line = 75.00 [16:30:26]line НДС 12% НСП 1% [16:30:26]line > о реализуемом товаре [16:30:26]line Товар: 4607018771791 [16:30:26]line Минеральная вода Ессентуки 17 0,45л ст [16:30:26]line 1.000 * 105.00 [16:30:26]line = 105.00 [16:30:26]line НДС 12% НСП 1% [16:30:26]line > о реализуемом товаре [16:30:26]line Товар: 5449000189349 [16:30:26]line Холодный чай Fuse манго ананас 0,5л [16:30:26]line 1.000 * 75.00 [16:30:26]line = 75.00 [16:30:26]line НДС 12% НСП 1% [16:30:26]line > о реализуемом товаре [16:30:26]line ИТОГО: 255.00 [16:30:26]line НСП 1% : 2.25 [16:30:26]line НДС 12% : 27.07 [16:30:26]line Наличными: 255.00 [16:30:26]line Безнал.: 0.00 [16:30:26]line Место: АЗС № 88 "Партнер Нефть" [16:30:26]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [16:30:26]line СНО: Общий режим [16:30:26]line Чек 59 22.09.2024 16:30 [16:30:26]line Смена: 228 ФФД: 1.0 [16:30:26]line ЗНМ: 0300000061 [16:30:26]line РНМ: 0000000000146243 [16:30:26]line Версия ККМ: v1.0 [16:30:26]line ФМ: 0000000000959358 [16:30:26]line ФД: 22144 [16:30:26]line ФПД: 45639985718010 [16:30:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163026&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22144&fm=45639985718010&tin=02508201610067®Number=0000000000146243&sum=25500 [16:30:26]line 0 [16:30:26]OFD Sender: Processing packet 22144 [packets to send 23, broken 22] [16:30:26]ProducePacketName [16:30:26]name=ofd_packets/00022144 [16:30:26]OFD Sender: To server: pG, [16:30:26]CommunicateWithHost lk.salyk.kg:30040 [16:30:26]ConnectInit lk.salyk.kg [16:30:26]written 0, free lines is 4095 [16:30:26]Connected sock=10 [16:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 46 02 00 00 83 EA 3E 02 8D 40 5A 03 01 00 03 00 32 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 22 46 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 80 56 00 00 35 04 06 00 29 82 63 22 E2 FA 03 ED 25 34 E7 6C 49 71 [16:30:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 4C 88 47 00 73 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 39 35 39 33 35 38 10 04 04 00 80 56 00 00 F4 03 04 00 4E F0 EF 66 B6 04 01 00 00 4C 56 AD DC 6C 0E 51 FF [16:30:27]CommunicateWithHost err = 0 [16:30:27]CheckOFDResponse [16:30:27]1017 (14) - 77093643461234 [16:30:27]1041 (16) - 0000000000959358 [16:30:27]1040 (4) - 22144 [16:30:27]1012 (4) - 22.09.2024 10:24 [16:30:27]1206 (1) - 0 [16:30:27]OFD Sender: Remove packet 22144 [16:30:27]ProducePacketName [16:30:27]name=ofd_packets/00022144 [16:30:27]NVStorageDeleteData [16:30:27]Write to MH i2c: 01 00 00 5B 0C 67 [16:30:27]Write i2c OK [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: 01 [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: 01 07 00 [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 44 0C BE [16:30:27]RasterBufferAndPrint [16:30:27]line [16:30:27]line [16:30:27]line [16:30:27]line [16:30:27]line [16:30:27]written 0, free lines is 3149 [16:30:27]MH_Cut [16:30:27]Write to MH i2c: D1 01 00 62 0C 01 40 [16:30:27]Write i2c OK [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: D1 [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: D1 01 00 [16:30:27]MH_I2C_Read... [16:30:27]Read from MH i2c: D1 01 00 62 0C 00 3F [16:30:27]Write to MH i2c: 01 00 00 63 0C 6F [16:30:27]Write i2c OK [16:30:27]MH_I2C_Read... [16:30:27]OFD Sender: No OFD packet to send [16:30:28]*** Cut start [16:30:28]*** Partial cut [16:30:28]*** CUTSNS_PIN = 1 [16:30:28]*** CUTSNS_PIN = 0 [16:30:28]*** Brake cut motor [16:30:28]Read from MH i2c: 01 [16:30:28]MH_I2C_Read... [16:30:28]*** Stop cut motor [16:30:28]*** Cut end [16:30:28]Read from MH i2c: 01 07 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [16:30:28]process_action close_receipt done [16:30:28]requested_data is exist [16:30:28]produce_requested_data [16:30:28]requested_item fm.sn is exist - process it [16:30:28]wFMCommunicate request_size=4 [16:30:28]MH_SAM_APDU [16:30:28]CAPDU: 80 11 00 00 [16:30:28]Write to MH i2c: E2 08 00 64 0C 80 11 00 00 00 00 00 00 EA [16:30:28]Write i2c OK [16:30:28]MH_I2C_Read... [16:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:28]Read from MH i2c: E2 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 17 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 17 00 64 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 44 [16:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:30:28]wFMCommunicate OK [16:30:28]requested_item fd.num is exist - process it [16:30:28]SAM_PROTO_GetFieldsCounters [16:30:28]wFMCommunicate request_size=4 [16:30:28]MH_SAM_APDU [16:30:28]CAPDU: 80 13 00 00 [16:30:28]Write to MH i2c: E2 08 00 65 0C 80 13 00 00 00 00 00 00 ED [16:30:28]Write i2c OK [16:30:28]MH_I2C_Read... [16:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:28]Read from MH i2c: E2 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 62 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 62 00 65 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 80 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 80 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:28]wFMCommunicate OK [16:30:28]SAM_PROTO_GetFieldsCounters done [16:30:28]requested_item shift.num is exist - process it [16:30:28]requested_item shift.opened is exist - process it [16:30:28]req_shift_opened [16:30:28]FM_GetShiftState [16:30:28]SAM_PROTO_GetShiftState [16:30:28]wFMCommunicate request_size=4 [16:30:28]MH_SAM_APDU [16:30:28]CAPDU: 80 13 01 00 [16:30:28]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [16:30:28]Write i2c OK [16:30:28]MH_I2C_Read... [16:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:28]Read from MH i2c: E2 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 0E 00 [16:30:28]MH_I2C_Read... [16:30:28]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 6A [16:30:28]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:30:28]wFMCommunicate OK [16:30:28]SAM_PROTO_GetShiftState done [16:30:28]FM_GetShiftState done [16:30:28]req_shift_opened done [16:30:28]requested_item shift.open_date is exist - process it [16:30:28]req_shift_open_date [16:30:28]req_shift_open_date done [16:30:28]produce_requested_data done [16:30:28]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22144,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [16:30:28]process_action_free close_receipt [16:30:28]json_value_free [16:30:28]json_value_free done [16:30:28]process_json_proto returns [16:30:28]Send response to host [16:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22144,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [16:30:28]free response buf [16:30:28]execute_script done [16:30:28]execute_script returns [16:30:28]free content buf [16:30:28]Sock 9.Close socket [16:30:28]Sock 9.Thread stoped [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:30]accept exits with 7 [16:35:30]New connection [16:35:30]New thread 3067039076 created [16:35:30]Thread 3067182436 joined [16:35:30]Waiting for new connection... [16:35:30] Sock 7.Parse request [16:35:30]Sock 7.Check first char [16:35:30]Sock 7.First char is OK [16:35:30]request: POST /json_proto HTTP/1.0 [16:35:30]Method: POST [16:35:30]URL: /json_proto [16:35:30]Method is POST - this is cgi request [16:35:30]url: /json_proto [16:35:30]query_string will be loaded in cgi processing [16:35:30]execute_cgi json_proto POST (null) [16:35:30]execute_cgi path=json_proto method=POST [16:35:30]POST find Content-Length [16:35:30]Host: 172.17.43.4:8080 [16:35:30]Content-Length: 935 [16:35:30]Content-Type: application/json [16:35:30] [16:35:30]POST finish read [16:35:30]Found Content-Length = 935 [16:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51413", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:30]execute_script... [16:35: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)51413", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:30]POST & json_proto [16:35:30]process_json_proto [16:35:30]json parsed OK: [16:35:30]protocol is kg_v1.0 [16:35:30]action value=close_receipt [16:35:30]process_action close_receipt [16:35:30]cmd_close_receipt [16:35:30]MH_GetDate [16:35:30]Write to MH i2c: F0 00 00 67 0C 62 [16:35:30]Write i2c OK [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: F0 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: F0 09 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: F0 09 00 67 0C 00 55 47 F0 66 02 BF CF 66 53 [16:35:30]GetLastDocTimeStamp 1727022626 [16:35:30]current date 1727022933 [16:35:30]FM_GetShiftState [16:35:30]SAM_PROTO_GetShiftState [16:35:30]wFMCommunicate request_size=4 [16:35:30]MH_SAM_APDU [16:35:30]CAPDU: 80 13 01 00 [16:35:30]Write to MH i2c: E2 08 00 68 0C 80 13 01 00 00 00 00 00 F1 [16:35:30]Write i2c OK [16:35:30]MH_I2C_Read... [16:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:30]Read from MH i2c: E2 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 0E 00 [16:35:30]MH_I2C_Read... [16:35:30]Read from MH i2c: E2 0E 00 68 0C 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 6C [16:35:30]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:35:30]wFMCommunicate OK [16:35:30]SAM_PROTO_GetShiftState done [16:35:30]FM_GetShiftState done [16:35:30]opened in 1726964408 [16:35:30]opened+sec_in_day 1727050808 [16:35:30]quantity*price = 3500 [16:35:30]sum+1 = 3501 [16:35:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.21 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 60 22.09.2024 16:35 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22145 ФПД: 78750098763829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163533&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22145&fm=78750098763829&tin=02508201610067®Number=0000000000146243&sum=4900 0 [16:35:31]StoreToDocumentArchive [16:35:31]shift 228 fd 22145 [16:35:31]save to /storage/0228/doc_00022145 [16:35:31]save last doc name /storage/0228/doc_00022145 to /storage/kkm_last_doc_name [16:35:31]save OK [16:35:31]Clear old archive folders... [16:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=392 [16:35:31]tlvbuf is 0021D8A0 [16:35:31]SAM_PROTO_ClearQueue [16:35:31]wFMCommunicate request_size=4 [16:35:31]MH_SAM_APDU [16:35:31]CAPDU: 80 09 00 00 [16:35:31]Write to MH i2c: E2 08 00 75 0C 80 09 00 00 00 00 00 00 F3 [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:31]Read from MH i2c: E2 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: E2 03 00 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [16:35:31]RAPDU: 90 00 [16:35:31]wFMCommunicate OK [16:35:31]SAM_PROTO_ClearQueue done [16:35:31]KKMCreateOFDPacket [16:35:31]OFDProtocolAddRootSTLVToBuf [16:35:31]FM_MakeSignedData [16:35:31]FM_MakeSignedData [16:35:31]SAM_PROTO_SignData [16:35:31]wFMCommunicate request_size=4 [16:35:31]MH_SAM_APDU [16:35:31]CAPDU: 80 0D 01 02 [16:35:31]Write to MH i2c: E2 08 00 76 0C 80 0D 01 02 00 00 00 00 FB [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:31]Read from MH i2c: E2 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: E2 03 00 [16:35:31]MH_I2C_Read... [16:35:31]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [16:35:31]RAPDU: 90 00 [16:35:31]wFMCommunicate OK [16:35:31]wFMCommunicate request_size=255 [16:35:31]MH_SAM_APDU [16:35:31]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 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 [16:35:31]Write to MH i2c: E2 02 01 77 0C 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 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 00 00 B3 [16:35:31]Write i2c OK [16:35:31]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [16:35:32]RAPDU: 90 00 [16:35:32]wFMCommunicate OK [16:35:32]wFMCommunicate request_size=151 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 0D 02 02 92 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 09 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 55 47 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 81 56 00 00 35 04 06 00 47 9F 6F A9 B0 35 [16:35:32]Write to MH i2c: E2 9A 00 78 0C 80 0D 02 02 92 00 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 09 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 55 47 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 81 56 00 00 35 04 06 00 47 9F 6F A9 B0 35 00 00 8F [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [16:35:32]RAPDU: 90 00 [16:35:32]wFMCommunicate OK [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 0D 03 02 [16:35:32]Write to MH i2c: E2 08 00 79 0C 80 0D 03 02 00 00 00 00 00 [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 0B 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 0B 00 79 0C 00 34 15 70 E9 40 1A 99 C8 90 00 5E [16:35:32]RAPDU: 34 15 70 E9 40 1A 99 C8 90 00 [16:35:32]wFMCommunicate OK [16:35:32]SAM_PROTO_SignData done [16:35:32]FM_MakeSignedData done [16:35:32]CreateOFDProtocolMessage [16:35:32]wFMCommunicate request_size=4 [16:35:32]MH_SAM_APDU [16:35:32]CAPDU: 80 11 00 00 [16:35:32]Write to MH i2c: E2 08 00 7A 0C 80 11 00 00 00 00 00 00 00 [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:32]Read from MH i2c: E2 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 17 00 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: E2 17 00 7A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 5A [16:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:35:32]wFMCommunicate OK [16:35:32]CreateOFDProtocolMessage done [16:35:32]OFDSenderStorePacket 22145 [16:35:32]StoreOFDPacket docnum=22145 [16:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9C 01 00 00 53 2A 94 01 E6 2C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 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 09 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 55 47 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 81 56 00 00 35 04 06 00 47 9F 6F A9 B0 35 34 15 70 E9 40 1A 99 C8 [16:35:32]CheckFolder [16:35:32]dirname=/storage/ofd_packets [16:35:32]CheckFolder done [16:35:32]ProducePacketName [16:35:32]name=ofd_packets/00022145 [16:35:32]NVStorageSaveData ofd_packets/00022145 [16:35:32]File name is /storage/ofd_packets/00022145 [16:35:32]Write 442 bytes [16:35:32]NVStorageSaveData done [16:35:32]OFDSenderStorePacket done [16:35:32]KKMCreateOFDPacket done [16:35:32]NVStorageSaveData kkm_last_timestamp [16:35:32]File name is /storage/kkm_last_timestamp [16:35:32]Write 4 bytes [16:35:32]NVStorageSaveData done [16:35:32]ExternCall_PrintAddStr [16:35:32]wPrintStart [16:35:32]Write to MH i2c: 01 00 00 7B 0C 87 [16:35:32]Write i2c OK [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: 01 [16:35:32]MH_I2C_Read... [16:35:32]Read from MH i2c: 01 07 00 [16:35:32]MH_I2C_Read... [16:35:32]OFD Sender: Processing packet 22145 [packets to send 23, broken 22] [16:35:32]ProducePacketName [16:35:32]name=ofd_packets/00022145 [16:35:32]OFD Sender: To server: pG, [16:35:32]CommunicateWithHost lk.salyk.kg:30040 [16:35:32]ConnectInit lk.salyk.kg [16:35:32]Read from MH i2c: 01 07 00 7B 0C 00 00 00 00 00 FF 0F 9C [16:35:32]RasterBufferAndPrint [16:35:32]line Счет N : (3)51413 [16:35:32]line ИНН: 02508201610067 [16:35:32]line Контрольно-Кассовый Чек [16:35:32]line ПРОДАЖА [16:35:32]line Товар: 4700000310326 [16:35:32]line Вода Адыгене 1л б/г [16:35:32]line 1.000 * 35.00 [16:35:32]line = 35.00 [16:35:32]line НДС 12% НСП 1% [16:35:32]line > о реализуемом товаре [16:35:32]line Товар: 2000053020015 [16:35:32]line Бумажные стаканы 250мл 1шт [16:35:32]line 2.000 * 7.00 [16:35:32]line = 14.00 [16:35:32]line НДС 12% НСП 1% [16:35:32]line > о реализуемом товаре [16:35:32]line ИТОГО: 49.00 [16:35:32]line НСП 1% : 0.43 [16:35:32]line НДС 12% : 5.21 [16:35:32]line Наличными: 49.00 [16:35:32]line Безнал.: 0.00 [16:35:32]line Место: АЗС № 88 "Партнер Нефть" [16:35:32]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [16:35:32]line СНО: Общий режим [16:35:32]line Чек 60 22.09.2024 16:35 [16:35:32]line Смена: 228 ФФД: 1.0 [16:35:32]line ЗНМ: 0300000061 [16:35:32]line РНМ: 0000000000146243 [16:35:32]line Версия ККМ: v1.0 [16:35:32]line ФМ: 0000000000959358 [16:35:32]line ФД: 22145 [16:35:32]line ФПД: 78750098763829 [16:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T163533&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22145&fm=78750098763829&tin=02508201610067®Number=0000000000146243&sum=4900 [16:35:32]line 0 [16:35:32]written 0, free lines is 4095 [16:35:32]Connected sock=10 [16:35:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9C 01 00 00 53 2A 94 01 E6 2C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 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 09 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 55 47 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 81 56 00 00 35 04 06 00 47 9F 6F A9 B0 35 34 15 70 E9 40 1A 99 C8 [16:35:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 4A 28 47 00 53 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 81 56 00 00 F4 03 04 00 80 F1 EF 66 B6 04 01 00 00 AE BF B4 16 FF 9E 2D 5B [16:35:33]CommunicateWithHost err = 0 [16:35:33]CheckOFDResponse [16:35:33]1017 (14) - 77093643461234 [16:35:33]1041 (16) - 0000000000959358 [16:35:33]1040 (4) - 22145 [16:35:33]1012 (4) - 22.09.2024 10:29 [16:35:33]1206 (1) - 0 [16:35:33]OFD Sender: Remove packet 22145 [16:35:33]ProducePacketName [16:35:33]name=ofd_packets/00022145 [16:35:33]NVStorageDeleteData [16:35:33]Write to MH i2c: 01 00 00 AA 0C B6 [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 07 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 B2 0C 7B [16:35:33]RasterBufferAndPrint [16:35:33]line [16:35:33]line [16:35:33]line [16:35:33]line [16:35:33]line [16:35:33]written 0, free lines is 3258 [16:35:33]MH_Cut [16:35:33]Write to MH i2c: D1 01 00 B1 0C 01 8F [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: D1 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: D1 01 00 [16:35:33]MH_I2C_Read... [16:35:33]Read from MH i2c: D1 01 00 B1 0C 00 8E [16:35:33]Write to MH i2c: 01 00 00 B2 0C BE [16:35:33]Write i2c OK [16:35:33]MH_I2C_Read... [16:35:33]OFD Sender: No OFD packet to send [16:35:34]*** Cut start [16:35:34]*** Partial cut [16:35:34]*** CUTSNS_PIN = 1 [16:35:34]*** CUTSNS_PIN = 0 [16:35:34]*** Brake cut motor [16:35:34]Read from MH i2c: 01 [16:35:34]MH_I2C_Read... [16:35:34]*** Stop cut motor [16:35:34]*** Cut end [16:35:34]Read from MH i2c: 01 07 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [16:35:34]process_action close_receipt done [16:35:34]requested_data is exist [16:35:34]produce_requested_data [16:35:34]requested_item fm.sn is exist - process it [16:35:34]wFMCommunicate request_size=4 [16:35:34]MH_SAM_APDU [16:35:34]CAPDU: 80 11 00 00 [16:35:34]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 17 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 93 [16:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:35:34]wFMCommunicate OK [16:35:34]requested_item fd.num is exist - process it [16:35:34]SAM_PROTO_GetFieldsCounters [16:35:34]wFMCommunicate request_size=4 [16:35:34]MH_SAM_APDU [16:35:34]CAPDU: 80 13 00 00 [16:35:34]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 62 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 62 00 B4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 81 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 81 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:34]wFMCommunicate OK [16:35:34]SAM_PROTO_GetFieldsCounters done [16:35:34]requested_item shift.num is exist - process it [16:35:34]requested_item shift.opened is exist - process it [16:35:34]req_shift_opened [16:35:34]FM_GetShiftState [16:35:34]SAM_PROTO_GetShiftState [16:35:34]wFMCommunicate request_size=4 [16:35:34]MH_SAM_APDU [16:35:34]CAPDU: 80 13 01 00 [16:35:34]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [16:35:34]Write i2c OK [16:35:34]MH_I2C_Read... [16:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:34]Read from MH i2c: E2 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 0E 00 [16:35:34]MH_I2C_Read... [16:35:34]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B9 [16:35:34]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:35:34]wFMCommunicate OK [16:35:34]SAM_PROTO_GetShiftState done [16:35:34]FM_GetShiftState done [16:35:34]req_shift_opened done [16:35:34]requested_item shift.open_date is exist - process it [16:35:34]req_shift_open_date [16:35:34]req_shift_open_date done [16:35:34]produce_requested_data done [16:35:34]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22145,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [16:35:34]process_action_free close_receipt [16:35:34]json_value_free [16:35:34]json_value_free done [16:35:34]process_json_proto returns [16:35:34]Send response to host [16:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22145,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [16:35:34]free response buf [16:35:34]execute_script done [16:35:34]execute_script returns [16:35:34]free content buf [16:35:34]Sock 7.Close socket [16:35:34]Sock 7.Thread stoped [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:00]accept exits with 9 [16:55:00]New connection [16:55:00]New thread 3067182436 created [16:55:00]Thread 3067039076 joined [16:55:00]Waiting for new connection... [16:55:00] Sock 9.Parse request [16:55:00]Sock 9.Check first char [16:55:00]Sock 9.First char is OK [16:55:00]request: POST /json_proto HTTP/1.0 [16:55:00]Method: POST [16:55:00]URL: /json_proto [16:55:00]Method is POST - this is cgi request [16:55:00]url: /json_proto [16:55:00]query_string will be loaded in cgi processing [16:55:00]execute_cgi json_proto POST (null) [16:55:00]execute_cgi path=json_proto method=POST [16:55:00]POST find Content-Length [16:55:00]Host: 172.17.43.4:8080 [16:55:00]Content-Length: 1197 [16:55:00]Content-Type: application/json [16:55:00] [16:55:00]POST finish read [16:55:00]Found Content-Length = 1197 [16:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51414", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 324.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:00]execute_script... [16:55: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)51414", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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" : 324.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:00]POST & json_proto [16:55:00]process_json_proto [16:55:00]json parsed OK: [16:55:00]protocol is kg_v1.0 [16:55:00]action value=close_receipt [16:55:00]process_action close_receipt [16:55:00]cmd_close_receipt [16:55:00]MH_GetDate [16:55:00]Write to MH i2c: F0 00 00 B6 0C B1 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: F0 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: F0 09 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: F0 09 00 B6 0C 00 E7 4B F0 66 02 BF CF 66 38 [16:55:00]GetLastDocTimeStamp 1727022933 [16:55:00]current date 1727024103 [16:55:00]FM_GetShiftState [16:55:00]SAM_PROTO_GetShiftState [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 13 01 00 [16:55:00]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 0E 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 BB [16:55:00]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:55:00]wFMCommunicate OK [16:55:00]SAM_PROTO_GetShiftState done [16:55:00]FM_GetShiftState done [16:55:00]opened in 1726964408 [16:55:00]opened+sec_in_day 1727050808 [16:55:00]quantity*price = 9500 [16:55:00]sum+1 = 9501 [16:55:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 324.00 НСП 1% : 2.86 НДС 12% : 34.41 Наличными: 324.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 61 22.09.2024 16:55 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22146 ФПД: 193660312074255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165503&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22146&fm=193660312074255&tin=02508201610067®Number=0000000000146243&sum=32400 0 [16:55:02]StoreToDocumentArchive [16:55:02]shift 228 fd 22146 [16:55:02]save to /storage/0228/doc_00022146 [16:55:02]save last doc name /storage/0228/doc_00022146 to /storage/kkm_last_doc_name [16:55:02]save OK [16:55:02]Clear old archive folders... [16:55:02]ProcessDocumentItem done err = 0, tmpTLVsize=526 [16:55:02]tlvbuf is 00229400 [16:55:02]SAM_PROTO_ClearQueue [16:55:02]wFMCommunicate request_size=4 [16:55:02]MH_SAM_APDU [16:55:02]CAPDU: 80 09 00 00 [16:55:02]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [16:55:02]Write i2c OK [16:55:02]MH_I2C_Read... [16:55:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:02]Read from MH i2c: E2 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 03 00 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [16:55:02]RAPDU: 90 00 [16:55:02]wFMCommunicate OK [16:55:02]SAM_PROTO_ClearQueue done [16:55:02]KKMCreateOFDPacket [16:55:02]OFDProtocolAddRootSTLVToBuf [16:55:02]FM_MakeSignedData [16:55:02]FM_MakeSignedData [16:55:02]SAM_PROTO_SignData [16:55:02]wFMCommunicate request_size=4 [16:55:02]MH_SAM_APDU [16:55:02]CAPDU: 80 0D 01 02 [16:55:02]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [16:55:02]Write i2c OK [16:55:02]MH_I2C_Read... [16:55:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:02]Read from MH i2c: E2 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 03 00 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [16:55:02]RAPDU: 90 00 [16:55:02]wFMCommunicate OK [16:55:02]wFMCommunicate request_size=255 [16:55:02]MH_SAM_APDU [16:55:02]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 [16:55:02]Write to MH i2c: E2 02 01 C6 0C 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 00 00 6E [16:55:02]Write i2c OK [16:55:02]MH_I2C_Read... [16:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:02]Read from MH i2c: E2 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 03 00 [16:55:02]MH_I2C_Read... [16:55:02]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [16:55:02]RAPDU: 90 00 [16:55:02]wFMCommunicate OK [16:55:02]wFMCommunicate request_size=255 [16:55:02]MH_SAM_APDU [16:55:02]CAPDU: 80 0D 02 02 FA 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0D 00 00 00 00 07 04 06 00 90 7E 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 E7 4B F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 [16:55:02]Write to MH i2c: E2 02 01 C7 0C 80 0D 02 02 FA 00 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0D 00 00 00 00 07 04 06 00 90 7E 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 E7 4B F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 00 00 2F [16:55:02]Write i2c OK [16:55:02]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 03 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [16:55:03]RAPDU: 90 00 [16:55:03]wFMCommunicate OK [16:55:03]wFMCommunicate request_size=35 [16:55:03]MH_SAM_APDU [16:55:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 82 56 00 00 35 04 06 00 B0 22 0E 1B B8 0F [16:55:03]Write to MH i2c: E2 26 00 C8 0C 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 82 56 00 00 35 04 06 00 B0 22 0E 1B B8 0F 00 00 E2 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 03 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [16:55:03]RAPDU: 90 00 [16:55:03]wFMCommunicate OK [16:55:03]wFMCommunicate request_size=4 [16:55:03]MH_SAM_APDU [16:55:03]CAPDU: 80 0D 03 02 [16:55:03]Write to MH i2c: E2 08 00 C9 0C 80 0D 03 02 00 00 00 00 50 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 0B 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 0B 00 C9 0C 00 45 CB C9 12 6F 24 E2 76 90 00 27 [16:55:03]RAPDU: 45 CB C9 12 6F 24 E2 76 90 00 [16:55:03]wFMCommunicate OK [16:55:03]SAM_PROTO_SignData done [16:55:03]FM_MakeSignedData done [16:55:03]CreateOFDProtocolMessage [16:55:03]wFMCommunicate request_size=4 [16:55:03]MH_SAM_APDU [16:55:03]CAPDU: 80 11 00 00 [16:55:03]Write to MH i2c: E2 08 00 CA 0C 80 11 00 00 00 00 00 00 50 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 17 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 17 00 CA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 AA [16:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:55:03]wFMCommunicate OK [16:55:03]CreateOFDProtocolMessage done [16:55:03]OFDSenderStorePacket 22146 [16:55:03]StoreOFDPacket docnum=22146 [16:55:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 22 02 00 00 4E 4F 1A 02 75 60 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0D 00 00 00 00 07 04 06 00 90 7E 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 E7 4B F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 82 56 00 00 35 04 06 00 B0 22 0E 1B B8 0F 45 CB C9 12 6F 24 E2 76 [16:55:03]CheckFolder [16:55:03]dirname=/storage/ofd_packets [16:55:03]CheckFolder done [16:55:03]ProducePacketName [16:55:03]name=ofd_packets/00022146 [16:55:03]NVStorageSaveData ofd_packets/00022146 [16:55:03]File name is /storage/ofd_packets/00022146 [16:55:03]Write 576 bytes [16:55:03]NVStorageSaveData done [16:55:03]OFDSenderStorePacket done [16:55:03]KKMCreateOFDPacket done [16:55:03]NVStorageSaveData kkm_last_timestamp [16:55:03]File name is /storage/kkm_last_timestamp [16:55:03]Write 4 bytes [16:55:03]NVStorageSaveData done [16:55:03]ExternCall_PrintAddStr [16:55:03]wPrintStart [16:55:03]Write to MH i2c: 01 00 00 CB 0C D7 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 07 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [16:55:03]RasterBufferAndPrint [16:55:03]line Счет N : (3)51414 [16:55:03]line ИНН: 02508201610067 [16:55:03]line Контрольно-Кассовый Чек [16:55:03]line ПРОДАЖА [16:55:03]line Товар: 4700003010070 [16:55:03]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [16:55:03]line 1.000 * 95.00 [16:55:03]line = 95.00 [16:55:03]line НДС 12% НСП 1% [16:55:03]line > о реализуемом товаре [16:55:03]line Товар: 48743570 [16:55:03]line Сигареты Winston XStyle Blue [16:55:03]line 1.000 * 144.00 [16:55:03]line = 144.00 [16:55:03]line НДС 12% НСП 1% [16:55:03]line > о реализуемом товаре [16:55:03]line Товар: 4600682557456 [16:55:03]line Напиток FLash up energy эн ж/б 0,5/0,45л [16:55:03]line 1.000 * 85.00 [16:55:03]line = 85.00 [16:55:03]line НДС 12% НСП 1% [16:55:03]line > о реализуемом товаре [16:55:03]line ИТОГО: 324.00 [16:55:03]line НСП 1% : 2.86 [16:55:03]line НДС 12% : 34.41 [16:55:03]line Наличными: 324.00 [16:55:03]line Безнал.: 0.00 [16:55:03]line Место: АЗС № 88 "Партнер Нефть" [16:55:03]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [16:55:03]line СНО: Общий режим [16:55:03]line Чек 61 22.09.2024 16:55 [16:55:03]line Смена: 228 ФФД: 1.0 [16:55:03]line ЗНМ: 0300000061 [16:55:03]line РНМ: 0000000000146243 [16:55:03]line Версия ККМ: v1.0 [16:55:03]line ФМ: 0000000000959358 [16:55:03]line ФД: 22146 [16:55:03]line ФПД: 193660312074255 [16:55:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T165503&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22146&fm=193660312074255&tin=02508201610067®Number=0000000000146243&sum=32400 [16:55:03]line 0 [16:55:03]written 0, free lines is 4095 [16:55:03]OFD Sender: Processing packet 22146 [packets to send 23, broken 22] [16:55:03]ProducePacketName [16:55:03]name=ofd_packets/00022146 [16:55:03]OFD Sender: To server: pG, [16:55:03]CommunicateWithHost lk.salyk.kg:30040 [16:55:03]ConnectInit lk.salyk.kg [16:55:03]Connected sock=10 [16:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 22 02 00 00 4E 4F 1A 02 75 60 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0D 00 00 00 00 07 04 06 00 90 7E 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 E7 4B F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 82 56 00 00 35 04 06 00 B0 22 0E 1B B8 0F 45 CB C9 12 6F 24 E2 76 [16:55:03]Write to MH i2c: 01 00 00 01 0D 0E [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 07 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 7C 0C 9D [16:55:03]RasterBufferAndPrint [16:55:03]line [16:55:03]line [16:55:03]line [16:55:03]line [16:55:03]line [16:55:03]written 0, free lines is 3205 [16:55:03]MH_Cut [16:55:03]Write to MH i2c: D1 01 00 08 0D 01 E7 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: D1 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: D1 01 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: D1 01 00 08 0D 00 E6 [16:55:03]Write to MH i2c: 01 00 00 09 0D 16 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 C8 F6 47 00 95 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 82 56 00 00 F4 03 04 00 13 F6 EF 66 B6 04 01 00 00 A3 4A C6 04 1A 96 AC 6B [16:55:04]CommunicateWithHost err = 0 [16:55:04]CheckOFDResponse [16:55:04]1017 (14) - 77093643461234 [16:55:04]1041 (16) - 0000000000959358 [16:55:04]1040 (4) - 22146 [16:55:04]1012 (4) - 22.09.2024 10:48 [16:55:04]1206 (1) - 0 [16:55:04]OFD Sender: Remove packet 22146 [16:55:04]ProducePacketName [16:55:04]name=ofd_packets/00022146 [16:55:04]NVStorageDeleteData [16:55:04]OFD Sender: No OFD packet to send [16:55:04]*** Cut start [16:55:04]*** Partial cut [16:55:04]*** CUTSNS_PIN = 1 [16:55:04]*** CUTSNS_PIN = 0 [16:55:04]*** Brake cut motor [16:55:05]Read from MH i2c: 01 [16:55:05]MH_I2C_Read... [16:55:05]*** Stop cut motor [16:55:05]*** Cut end [16:55:05]Read from MH i2c: 01 07 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: 01 07 00 09 0D 00 00 00 00 00 FF 0F 2B [16:55:05]process_action close_receipt done [16:55:05]requested_data is exist [16:55:05]produce_requested_data [16:55:05]requested_item fm.sn is exist - process it [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 11 00 00 [16:55:05]Write to MH i2c: E2 08 00 0A 0D 80 11 00 00 00 00 00 00 91 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 17 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 17 00 0A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EB [16:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [16:55:05]wFMCommunicate OK [16:55:05]requested_item fd.num is exist - process it [16:55:05]SAM_PROTO_GetFieldsCounters [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 13 00 00 [16:55:05]Write to MH i2c: E2 08 00 0B 0D 80 13 00 00 00 00 00 00 94 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 62 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 62 00 0B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 82 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [16:55:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 82 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:05]wFMCommunicate OK [16:55:05]SAM_PROTO_GetFieldsCounters done [16:55:05]requested_item shift.num is exist - process it [16:55:05]requested_item shift.opened is exist - process it [16:55:05]req_shift_opened [16:55:05]FM_GetShiftState [16:55:05]SAM_PROTO_GetShiftState [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 13 01 00 [16:55:05]Write to MH i2c: E2 08 00 0C 0D 80 13 01 00 00 00 00 00 96 [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 0E 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 0E 00 0C 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 11 [16:55:05]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [16:55:05]wFMCommunicate OK [16:55:05]SAM_PROTO_GetShiftState done [16:55:05]FM_GetShiftState done [16:55:05]req_shift_opened done [16:55:05]requested_item shift.open_date is exist - process it [16:55:05]req_shift_open_date [16:55:05]req_shift_open_date done [16:55:05]produce_requested_data done [16:55:05]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22146,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [16:55:05]process_action_free close_receipt [16:55:05]json_value_free [16:55:05]json_value_free done [16:55:05]process_json_proto returns [16:55:05]Send response to host [16:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22146,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [16:55:05]free response buf [16:55:05]execute_script done [16:55:05]execute_script returns [16:55:05]free content buf [16:55:05]Sock 9.Close socket [16:55:05]Sock 9.Thread stoped [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02: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:46]accept exits with 7 [17:08:46]New connection [17:08:46]New thread 3067039076 created [17:08:46]Thread 3067182436 joined [17:08:46]Waiting for new connection... [17:08:46] Sock 7.Parse request [17:08:46]Sock 7.Check first char [17:08:46]Sock 7.First char is OK [17:08:46]request: POST /json_proto HTTP/1.0 [17:08:46]Method: POST [17:08:46]URL: /json_proto [17:08:46]Method is POST - this is cgi request [17:08:46]url: /json_proto [17:08:46]query_string will be loaded in cgi processing [17:08:46]execute_cgi json_proto POST (null) [17:08:46]execute_cgi path=json_proto method=POST [17:08:46]POST find Content-Length [17:08:46]Host: 172.17.43.4:8080 [17:08:46]Content-Length: 1170 [17:08:46]Content-Type: application/json [17:08:46] [17:08:46]POST finish read [17:08:46]Found Content-Length = 1170 [17:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51415", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:46]execute_script... [17:08: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)51415", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:46]POST & json_proto [17:08:46]process_json_proto [17:08:46]json parsed OK: [17:08:46]protocol is kg_v1.0 [17:08:46]action value=close_receipt [17:08:46]process_action close_receipt [17:08:46]cmd_close_receipt [17:08:46]MH_GetDate [17:08:46]Write to MH i2c: F0 00 00 0D 0D 09 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: F0 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: F0 09 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: F0 09 00 0D 0D 00 21 4F F0 66 02 BF CF 66 CE [17:08:46]GetLastDocTimeStamp 1727024103 [17:08:46]current date 1727024929 [17:08:46]FM_GetShiftState [17:08:46]SAM_PROTO_GetShiftState [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 13 01 00 [17:08:46]Write to MH i2c: E2 08 00 0E 0D 80 13 01 00 00 00 00 00 98 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0E 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0E 00 0E 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 13 [17:08:46]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:08:46]wFMCommunicate OK [17:08:46]SAM_PROTO_GetShiftState done [17:08:46]FM_GetShiftState done [17:08:46]opened in 1726964408 [17:08:46]opened+sec_in_day 1727050808 [17:08:46]quantity*price = 15000 [17:08:46]sum+1 = 15001 [17:08:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010056 Чай хол Let`s Go! зел лим ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.59 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 62 22.09.2024 17:08 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22147 ФПД: 198697930971003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170849&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22147&fm=198697930971003&tin=02508201610067®Number=0000000000146243&sum=40500 0 [17:08:47]StoreToDocumentArchive [17:08:47]shift 228 fd 22147 [17:08:47]save to /storage/0228/doc_00022147 [17:08:47]save last doc name /storage/0228/doc_00022147 to /storage/kkm_last_doc_name [17:08:47]save OK [17:08:47]Clear old archive folders... [17:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=501 [17:08:47]tlvbuf is 0021C390 [17:08:47]SAM_PROTO_ClearQueue [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 09 00 00 [17:08:47]Write to MH i2c: E2 08 00 1B 0D 80 09 00 00 00 00 00 00 9A [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:47]Read from MH i2c: E2 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 03 00 [17:08:47]MH_I2C_Read... [17:08:47]Read from MH i2c: E2 03 00 1B 0D 00 90 00 9C [17:08:47]RAPDU: 90 00 [17:08:47]wFMCommunicate OK [17:08:47]SAM_PROTO_ClearQueue done [17:08:47]KKMCreateOFDPacket [17:08:47]OFDProtocolAddRootSTLVToBuf [17:08:47]FM_MakeSignedData [17:08:47]FM_MakeSignedData [17:08:47]SAM_PROTO_SignData [17:08:47]wFMCommunicate request_size=4 [17:08:47]MH_SAM_APDU [17:08:47]CAPDU: 80 0D 01 02 [17:08:47]Write to MH i2c: E2 08 00 1C 0D 80 0D 01 02 00 00 00 00 A2 [17:08:47]Write i2c OK [17:08:47]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 1C 0D 00 90 00 9D [17:08:48]RAPDU: 90 00 [17:08:48]wFMCommunicate OK [17:08:48]wFMCommunicate request_size=255 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 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 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 [17:08:48]Write to MH i2c: E2 02 01 1D 0D 80 0D 02 02 FA 00 03 00 F5 01 1E 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 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 00 00 BE [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 1D 0D 00 90 00 9E [17:08:48]RAPDU: 90 00 [17:08:48]wFMCommunicate OK [17:08:48]wFMCommunicate request_size=255 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 0D 02 02 FA 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 21 4F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 83 56 00 00 35 04 06 00 B4 [17:08:48]Write to MH i2c: E2 02 01 1E 0D 80 0D 02 02 FA 00 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 21 4F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 83 56 00 00 35 04 06 00 B4 00 00 D8 [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 1E 0D 00 90 00 9F [17:08:48]RAPDU: 90 00 [17:08:48]wFMCommunicate OK [17:08:48]wFMCommunicate request_size=10 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 0D 02 02 05 B6 F7 97 D7 7B [17:08:48]Write to MH i2c: E2 0D 00 1F 0D 80 0D 02 02 05 00 B6 F7 97 D7 7B 00 00 46 [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 03 00 1F 0D 00 90 00 A0 [17:08:48]RAPDU: 90 00 [17:08:48]wFMCommunicate OK [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 0D 03 02 [17:08:48]Write to MH i2c: E2 08 00 20 0D 80 0D 03 02 00 00 00 00 A8 [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:48]Read from MH i2c: E2 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 0B 00 [17:08:48]MH_I2C_Read... [17:08:48]Read from MH i2c: E2 0B 00 20 0D 00 E8 2C 63 CD 0B 29 F4 60 90 00 75 [17:08:48]RAPDU: E8 2C 63 CD 0B 29 F4 60 90 00 [17:08:48]wFMCommunicate OK [17:08:48]SAM_PROTO_SignData done [17:08:48]FM_MakeSignedData done [17:08:48]CreateOFDProtocolMessage [17:08:48]wFMCommunicate request_size=4 [17:08:48]MH_SAM_APDU [17:08:48]CAPDU: 80 11 00 00 [17:08:48]Write to MH i2c: E2 08 00 21 0D 80 11 00 00 00 00 00 00 A8 [17:08:48]Write i2c OK [17:08:48]MH_I2C_Read... [17:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:49]Read from MH i2c: E2 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: E2 17 00 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: E2 17 00 21 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 02 [17:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:08:49]wFMCommunicate OK [17:08:49]CreateOFDProtocolMessage done [17:08:49]OFDSenderStorePacket 22147 [17:08:49]StoreOFDPacket docnum=22147 [17:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 09 02 00 00 67 FF 01 02 5F E2 5A 03 01 00 03 00 F5 01 1E 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 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 21 4F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 83 56 00 00 35 04 06 00 B4 B6 F7 97 D7 7B E8 2C 63 CD 0B 29 F4 60 [17:08:49]CheckFolder [17:08:49]dirname=/storage/ofd_packets [17:08:49]CheckFolder done [17:08:49]ProducePacketName [17:08:49]name=ofd_packets/00022147 [17:08:49]NVStorageSaveData ofd_packets/00022147 [17:08:49]File name is /storage/ofd_packets/00022147 [17:08:49]Write 551 bytes [17:08:49]NVStorageSaveData done [17:08:49]OFDSenderStorePacket done [17:08:49]KKMCreateOFDPacket done [17:08:49]NVStorageSaveData kkm_last_timestamp [17:08:49]File name is /storage/kkm_last_timestamp [17:08:49]Write 4 bytes [17:08:49]NVStorageSaveData done [17:08:49]ExternCall_PrintAddStr [17:08:49]wPrintStart [17:08:49]Write to MH i2c: 01 00 00 22 0D 2F [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 07 00 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 07 00 22 0D 00 00 00 00 00 FF 0F 44 [17:08:49]RasterBufferAndPrint [17:08:49]line Счет N : (3)51415 [17:08:49]line ИНН: 02508201610067 [17:08:49]line Контрольно-Кассовый Чек [17:08:49]line ПРОДАЖА [17:08:49]line Товар: 4640030091607 [17:08:49]line Сигареты ESSE Exchange [17:08:49]line 1.000 * 150.00 [17:08:49]line = 150.00 [17:08:49]line НДС 12% НСП 1% [17:08:49]line > о реализуемом товаре [17:08:49]line Товар: 4860019001346 [17:08:49]line Вода Боржоми 0,5л ст [17:08:49]line 1.000 * 160.00 [17:08:49]line = 160.00 [17:08:49]line НДС 12% НСП 1% [17:08:49]line > о реализуемом товаре [17:08:49]line Товар: 4700003010056 [17:08:49]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [17:08:49]line 1.000 * 95.00 [17:08:49]line = 95.00 [17:08:49]line НДС 12% НСП 1% [17:08:49]line > о реализуемом товаре [17:08:49]line ИТОГО: 405.00 [17:08:49]line НСП 1% : 3.59 [17:08:49]line НДС 12% : 43.01 [17:08:49]line Наличными: 405.00 [17:08:49]line Безнал.: 0.00 [17:08:49]line Место: АЗС № 88 "Партнер Нефть" [17:08:49]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [17:08:49]line СНО: Общий режим [17:08:49]line Чек 62 22.09.2024 17:08 [17:08:49]line Смена: 228 ФФД: 1.0 [17:08:49]line ЗНМ: 0300000061 [17:08:49]line РНМ: 0000000000146243 [17:08:49]line Версия ККМ: v1.0 [17:08:49]line ФМ: 0000000000959358 [17:08:49]line ФД: 22147 [17:08:49]line ФПД: 198697930971003 [17:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T170849&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22147&fm=198697930971003&tin=02508201610067®Number=0000000000146243&sum=40500 [17:08:49]line 0 [17:08:49]OFD Sender: Processing packet 22147 [packets to send 23, broken 22] [17:08:49]ProducePacketName [17:08:49]name=ofd_packets/00022147 [17:08:49]OFD Sender: To server: pG, [17:08:49]CommunicateWithHost lk.salyk.kg:30040 [17:08:49]ConnectInit lk.salyk.kg [17:08:49]written 0, free lines is 4095 [17:08:49]Connected sock=10 [17:08:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 09 02 00 00 67 FF 01 02 5F E2 5A 03 01 00 03 00 F5 01 1E 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 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 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 21 4F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 83 56 00 00 35 04 06 00 B4 B6 F7 97 D7 7B E8 2C 63 CD 0B 29 F4 60 [17:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 3D C6 47 00 30 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 83 56 00 00 F4 03 04 00 4C F9 EF 66 B6 04 01 00 00 31 5B DD D8 E8 EE 69 F9 [17:08:49]CommunicateWithHost err = 0 [17:08:49]CheckOFDResponse [17:08:49]1017 (14) - 77093643461234 [17:08:49]1041 (16) - 0000000000959358 [17:08:49]1040 (4) - 22147 [17:08:49]1012 (4) - 22.09.2024 11:02 [17:08:49]1206 (1) - 0 [17:08:49]OFD Sender: Remove packet 22147 [17:08:49]ProducePacketName [17:08:49]name=ofd_packets/00022147 [17:08:49]NVStorageDeleteData [17:08:49]Write to MH i2c: 01 00 00 57 0D 64 [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 07 00 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: 01 07 00 57 0D 00 00 00 00 00 78 0C EF [17:08:49]RasterBufferAndPrint [17:08:49]line [17:08:49]line [17:08:49]line [17:08:49]line [17:08:49]line [17:08:49]written 0, free lines is 3202 [17:08:49]MH_Cut [17:08:49]Write to MH i2c: D1 01 00 5E 0D 01 3D [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: D1 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: D1 01 00 [17:08:49]MH_I2C_Read... [17:08:49]Read from MH i2c: D1 01 00 5E 0D 00 3C [17:08:49]Write to MH i2c: 01 00 00 5F 0D 6C [17:08:49]Write i2c OK [17:08:49]MH_I2C_Read... [17:08:50]OFD Sender: No OFD packet to send [17:08:50]*** Cut start [17:08:50]*** Partial cut [17:08:50]*** CUTSNS_PIN = 1 [17:08:50]*** CUTSNS_PIN = 0 [17:08:50]*** Brake cut motor [17:08:51]Read from MH i2c: 01 [17:08:51]MH_I2C_Read... [17:08:51]*** Stop cut motor [17:08:51]*** Cut end [17:08:51]Read from MH i2c: 01 07 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [17:08:51]process_action close_receipt done [17:08:51]requested_data is exist [17:08:51]produce_requested_data [17:08:51]requested_item fm.sn is exist - process it [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 11 00 00 [17:08:51]Write to MH i2c: E2 08 00 60 0D 80 11 00 00 00 00 00 00 E7 [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 17 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 17 00 60 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 41 [17:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:08:51]wFMCommunicate OK [17:08:51]requested_item fd.num is exist - process it [17:08:51]SAM_PROTO_GetFieldsCounters [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 13 00 00 [17:08:51]Write to MH i2c: E2 08 00 61 0D 80 13 00 00 00 00 00 00 EA [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 62 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 62 00 61 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 83 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:08:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 83 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:51]wFMCommunicate OK [17:08:51]SAM_PROTO_GetFieldsCounters done [17:08:51]requested_item shift.num is exist - process it [17:08:51]requested_item shift.opened is exist - process it [17:08:51]req_shift_opened [17:08:51]FM_GetShiftState [17:08:51]SAM_PROTO_GetShiftState [17:08:51]wFMCommunicate request_size=4 [17:08:51]MH_SAM_APDU [17:08:51]CAPDU: 80 13 01 00 [17:08:51]Write to MH i2c: E2 08 00 62 0D 80 13 01 00 00 00 00 00 EC [17:08:51]Write i2c OK [17:08:51]MH_I2C_Read... [17:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:51]Read from MH i2c: E2 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 0E 00 [17:08:51]MH_I2C_Read... [17:08:51]Read from MH i2c: E2 0E 00 62 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 67 [17:08:51]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:08:51]wFMCommunicate OK [17:08:51]SAM_PROTO_GetShiftState done [17:08:51]FM_GetShiftState done [17:08:51]req_shift_opened done [17:08:51]requested_item shift.open_date is exist - process it [17:08:51]req_shift_open_date [17:08:51]req_shift_open_date done [17:08:51]produce_requested_data done [17:08:51]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22147,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [17:08:51]process_action_free close_receipt [17:08:51]json_value_free [17:08:51]json_value_free done [17:08:51]process_json_proto returns [17:08:51]Send response to host [17:08:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22147,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [17:08:51]free response buf [17:08:51]execute_script done [17:08:51]execute_script returns [17:08:51]free content buf [17:08:51]Sock 7.Close socket [17:08:51]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:19]accept exits with 9 [17:25:19]New connection [17:25:19]New thread 3067182436 created [17:25:19]Thread 3067039076 joined [17:25:19]Waiting for new connection... [17:25:19] Sock 9.Parse request [17:25:19]Sock 9.Check first char [17:25:19]Sock 9.First char is OK [17:25:19]request: POST /json_proto HTTP/1.0 [17:25:19]Method: POST [17:25:19]URL: /json_proto [17:25:19]Method is POST - this is cgi request [17:25:19]url: /json_proto [17:25:19]query_string will be loaded in cgi processing [17:25:19]execute_cgi json_proto POST (null) [17:25:19]execute_cgi path=json_proto method=POST [17:25:19]POST find Content-Length [17:25:19]Host: 172.17.43.4:8080 [17:25:19]Content-Length: 1008 [17:25:19]Content-Type: application/json [17:25:19] [17:25:19]POST finish read [17:25:19]Found Content-Length = 1008 [17:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51416", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:19]execute_script... [17:25: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)51416", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:19]POST & json_proto [17:25:19]process_json_proto [17:25:19]json parsed OK: [17:25:19]protocol is kg_v1.0 [17:25:19]action value=close_receipt [17:25:19]process_action close_receipt [17:25:19]cmd_close_receipt [17:25:19]MH_GetDate [17:25:19]Write to MH i2c: F0 00 00 63 0D 5F [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: F0 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: F0 09 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: F0 09 00 63 0D 00 02 53 F0 66 02 BF CF 66 09 [17:25:19]GetLastDocTimeStamp 1727024929 [17:25:19]current date 1727025922 [17:25:19]FM_GetShiftState [17:25:19]SAM_PROTO_GetShiftState [17:25:19]wFMCommunicate request_size=4 [17:25:19]MH_SAM_APDU [17:25:19]CAPDU: 80 13 01 00 [17:25:19]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:19]Read from MH i2c: E2 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 0E 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 69 [17:25:19]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:25:19]wFMCommunicate OK [17:25:19]SAM_PROTO_GetShiftState done [17:25:19]FM_GetShiftState done [17:25:19]opened in 1726964408 [17:25:19]opened+sec_in_day 1727050808 [17:25:19]quantity*price = 10000 [17:25:19]sum+1 = 10001 [17:25:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571535 Вода ASU пит н.газ персик ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.45 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 63 22.09.2024 17:25 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22148 ФПД: 161585385298833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172522&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22148&fm=161585385298833&tin=02508201610067®Number=0000000000146243&sum=16500 0 [17:25:20]StoreToDocumentArchive [17:25:20]shift 228 fd 22148 [17:25:20]save to /storage/0228/doc_00022148 [17:25:20]save last doc name /storage/0228/doc_00022148 to /storage/kkm_last_doc_name [17:25:20]save OK [17:25:20]Clear old archive folders... [17:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=425 [17:25:20]tlvbuf is 0025DCB0 [17:25:20]SAM_PROTO_ClearQueue [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 09 00 00 [17:25:20]Write to MH i2c: E2 08 00 71 0D 80 09 00 00 00 00 00 00 F0 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 71 0D 00 90 00 F2 [17:25:20]RAPDU: 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_ClearQueue done [17:25:20]KKMCreateOFDPacket [17:25:20]OFDProtocolAddRootSTLVToBuf [17:25:20]FM_MakeSignedData [17:25:20]FM_MakeSignedData [17:25:20]SAM_PROTO_SignData [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 0D 01 02 [17:25:20]Write to MH i2c: E2 08 00 72 0D 80 0D 01 02 00 00 00 00 F8 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 72 0D 00 90 00 F3 [17:25:20]RAPDU: 90 00 [17:25:20]wFMCommunicate OK [17:25:20]wFMCommunicate request_size=255 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 [17:25:20]Write to MH i2c: E2 02 01 73 0D 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 00 00 F0 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [17:25:21]RAPDU: 90 00 [17:25:21]wFMCommunicate OK [17:25:21]wFMCommunicate request_size=184 [17:25:21]MH_SAM_APDU [17:25:21]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 02 53 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 84 56 00 00 35 04 06 00 92 F6 07 7D DB 91 [17:25:21]Write to MH i2c: E2 BB 00 74 0D 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 02 53 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 84 56 00 00 35 04 06 00 92 F6 07 7D DB 91 00 00 5E [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]OFD Sender: No OFD packet to send [17:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [17:25:21]RAPDU: 90 00 [17:25:21]wFMCommunicate OK [17:25:21]wFMCommunicate request_size=4 [17:25:21]MH_SAM_APDU [17:25:21]CAPDU: 80 0D 03 02 [17:25:21]Write to MH i2c: E2 08 00 75 0D 80 0D 03 02 00 00 00 00 FD [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 0B 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 0B 00 75 0D 00 78 C6 8D 9F 4C DA 12 9F 90 00 3F [17:25:21]RAPDU: 78 C6 8D 9F 4C DA 12 9F 90 00 [17:25:21]wFMCommunicate OK [17:25:21]SAM_PROTO_SignData done [17:25:21]FM_MakeSignedData done [17:25:21]CreateOFDProtocolMessage [17:25:21]wFMCommunicate request_size=4 [17:25:21]MH_SAM_APDU [17:25:21]CAPDU: 80 11 00 00 [17:25:21]Write to MH i2c: E2 08 00 76 0D 80 11 00 00 00 00 00 00 FD [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 17 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 17 00 76 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 57 [17:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:25:21]wFMCommunicate OK [17:25:21]CreateOFDProtocolMessage done [17:25:21]OFDSenderStorePacket 22148 [17:25:21]StoreOFDPacket docnum=22148 [17:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 BD 01 00 00 E3 C3 B5 01 FB 7E 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 02 53 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 84 56 00 00 35 04 06 00 92 F6 07 7D DB 91 78 C6 8D 9F 4C DA 12 9F [17:25:21]CheckFolder [17:25:21]dirname=/storage/ofd_packets [17:25:21]CheckFolder done [17:25:21]ProducePacketName [17:25:21]name=ofd_packets/00022148 [17:25:21]NVStorageSaveData ofd_packets/00022148 [17:25:21]File name is /storage/ofd_packets/00022148 [17:25:21]Write 475 bytes [17:25:21]NVStorageSaveData done [17:25:21]OFDSenderStorePacket done [17:25:21]KKMCreateOFDPacket done [17:25:21]NVStorageSaveData kkm_last_timestamp [17:25:21]File name is /storage/kkm_last_timestamp [17:25:21]Write 4 bytes [17:25:21]NVStorageSaveData done [17:25:21]ExternCall_PrintAddStr [17:25:21]wPrintStart [17:25:21]Write to MH i2c: 01 00 00 77 0D 84 [17:25:21]OFD Sender: Processing packet 22148 [packets to send 23, broken 22] [17:25:21]ProducePacketName [17:25:21]name=ofd_packets/00022148 [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 [17:25:21]MH_I2C_Read... [17:25:21]OFD Sender: To server: pG, [17:25:21]CommunicateWithHost lk.salyk.kg:30040 [17:25:21]ConnectInit lk.salyk.kg [17:25:21]Read from MH i2c: 01 07 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 FF 0F 99 [17:25:21]RasterBufferAndPrint [17:25:21]line Счет N : (3)51416 [17:25:21]line ИНН: 02508201610067 [17:25:21]line Контрольно-Кассовый Чек [17:25:21]line ПРОДАЖА [17:25:21]line Товар: 4870001571528 [17:25:21]line Вода ASU пит н.газ персик ПЭТ 1,0 л [17:25:21]line 1.000 * 100.00 [17:25:21]line = 100.00 [17:25:21]line НДС 12% НСП 1% [17:25:21]line > о реализуемом товаре [17:25:21]line Товар: 4870001571535 [17:25:21]line Вода ASU пит н.газ персик ПЭТ 0,5л [17:25:21]line 1.000 * 65.00 [17:25:21]line = 65.00 [17:25:21]line НДС 12% НСП 1% [17:25:21]line > о реализуемом товаре [17:25:21]line ИТОГО: 165.00 [17:25:21]line НСП 1% : 1.45 [17:25:21]line НДС 12% : 17.52 [17:25:21]line Наличными: 165.00 [17:25:21]line Безнал.: 0.00 [17:25:21]line Место: АЗС № 88 "Партнер Нефть" [17:25:21]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [17:25:21]line СНО: Общий режим [17:25:21]line Чек 63 22.09.2024 17:25 [17:25:21]line Смена: 228 ФФД: 1.0 [17:25:21]line ЗНМ: 0300000061 [17:25:21]line РНМ: 0000000000146243 [17:25:21]line Версия ККМ: v1.0 [17:25:21]line ФМ: 0000000000959358 [17:25:21]line ФД: 22148 [17:25:21]line ФПД: 161585385298833 [17:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T172522&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22148&fm=161585385298833&tin=02508201610067®Number=0000000000146243&sum=16500 [17:25:21]line 0 [17:25:21]written 0, free lines is 4095 [17:25:21]Connected sock=10 [17:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 BD 01 00 00 E3 C3 B5 01 FB 7E 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 02 53 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 84 56 00 00 35 04 06 00 92 F6 07 7D DB 91 78 C6 8D 9F 4C DA 12 9F [17:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 20 BB 47 00 81 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 84 56 00 00 F4 03 04 00 2D FD EF 66 B6 04 01 00 00 AB 3A 40 9A 93 73 74 69 [17:25:22]CommunicateWithHost err = 0 [17:25:22]CheckOFDResponse [17:25:22]1017 (14) - 77093643461234 [17:25:22]1041 (16) - 0000000000959358 [17:25:22]1040 (4) - 22148 [17:25:22]1012 (4) - 22.09.2024 11:19 [17:25:22]1206 (1) - 0 [17:25:22]OFD Sender: Remove packet 22148 [17:25:22]ProducePacketName [17:25:22]name=ofd_packets/00022148 [17:25:22]NVStorageDeleteData [17:25:22]Write to MH i2c: 01 00 00 A7 0D B4 [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 07 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 B8 0C 7F [17:25:22]RasterBufferAndPrint [17:25:22]line [17:25:22]line [17:25:22]line [17:25:22]line [17:25:22]line [17:25:22]written 0, free lines is 3264 [17:25:22]MH_Cut [17:25:22]Write to MH i2c: D1 01 00 AE 0D 01 8D [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: D1 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: D1 01 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: D1 01 00 AE 0D 00 8C [17:25:22]Write to MH i2c: 01 00 00 AF 0D BC [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]OFD Sender: No OFD packet to send [17:25:23]*** Cut start [17:25:23]*** Partial cut [17:25:23]*** CUTSNS_PIN = 1 [17:25:23]*** CUTSNS_PIN = 0 [17:25:23]*** Brake cut motor [17:25:23]Read from MH i2c: 01 [17:25:23]MH_I2C_Read... [17:25:23]*** Stop cut motor [17:25:23]*** Cut end [17:25:23]Read from MH i2c: 01 07 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: 01 07 00 AF 0D 00 00 00 00 00 FF 0F D1 [17:25:23]process_action close_receipt done [17:25:23]requested_data is exist [17:25:23]produce_requested_data [17:25:23]requested_item fm.sn is exist - process it [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 11 00 00 [17:25:23]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 17 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 91 [17:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:25:23]wFMCommunicate OK [17:25:23]requested_item fd.num is exist - process it [17:25:23]SAM_PROTO_GetFieldsCounters [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 13 00 00 [17:25:23]Write to MH i2c: E2 08 00 B1 0D 80 13 00 00 00 00 00 00 3A [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 62 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 62 00 B1 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 84 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 84 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:23]wFMCommunicate OK [17:25:23]SAM_PROTO_GetFieldsCounters done [17:25:23]requested_item shift.num is exist - process it [17:25:23]requested_item shift.opened is exist - process it [17:25:23]req_shift_opened [17:25:23]FM_GetShiftState [17:25:23]SAM_PROTO_GetShiftState [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 13 01 00 [17:25:23]Write to MH i2c: E2 08 00 B2 0D 80 13 01 00 00 00 00 00 3C [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:23]Read from MH i2c: E2 0E 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 0E 00 B2 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B7 [17:25:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:25:23]wFMCommunicate OK [17:25:23]SAM_PROTO_GetShiftState done [17:25:23]FM_GetShiftState done [17:25:23]req_shift_opened done [17:25:23]requested_item shift.open_date is exist - process it [17:25:23]req_shift_open_date [17:25:23]req_shift_open_date done [17:25:23]produce_requested_data done [17:25:23]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22148,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [17:25:23]process_action_free close_receipt [17:25:23]json_value_free [17:25:23]json_value_free done [17:25:23]process_json_proto returns [17:25:23]Send response to host [17:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22148,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [17:25:23]free response buf [17:25:23]execute_script done [17:25:23]execute_script returns [17:25:23]free content buf [17:25:23]Sock 9.Close socket [17:25:23]Sock 9.Thread stoped [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:06]accept exits with 7 [17:45:06]New connection [17:45:06]New thread 3067039076 created [17:45:06]Thread 3067182436 joined [17:45:06]Waiting for new connection... [17:45:06] Sock 7.Parse request [17:45:06]Sock 7.Check first char [17:45:06]Sock 7.First char is OK [17:45:06]request: POST /json_proto HTTP/1.0 [17:45:06]Method: POST [17:45:06]URL: /json_proto [17:45:06]Method is POST - this is cgi request [17:45:06]url: /json_proto [17:45:06]query_string will be loaded in cgi processing [17:45:06]execute_cgi json_proto POST (null) [17:45:06]execute_cgi path=json_proto method=POST [17:45:06]POST find Content-Length [17:45:06]Host: 172.17.43.4:8080 [17:45:06]Content-Length: 654 [17:45:06]Content-Type: application/json [17:45:06] [17:45:06]POST finish read [17:45:06]Found Content-Length = 654 [17:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51417", "tax_sys" : 0, "items" : [ { "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:06]execute_script... [17:45: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)51417", "tax_sys" : 0, "items" : [ { "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:06]POST & json_proto [17:45:06]process_json_proto [17:45:06]json parsed OK: [17:45:06]protocol is kg_v1.0 [17:45:06]action value=close_receipt [17:45:06]process_action close_receipt [17:45:06]cmd_close_receipt [17:45:06]MH_GetDate [17:45:06]Write to MH i2c: F0 00 00 B3 0D AF [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: F0 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: F0 09 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: F0 09 00 B3 0D 00 A5 57 F0 66 02 BF CF 66 00 [17:45:06]GetLastDocTimeStamp 1727025922 [17:45:06]current date 1727027109 [17:45:06]FM_GetShiftState [17:45:06]SAM_PROTO_GetShiftState [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 13 01 00 [17:45:06]Write to MH i2c: E2 08 00 B4 0D 80 13 01 00 00 00 00 00 3E [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:06]Read from MH i2c: E2 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 0E 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: E2 0E 00 B4 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B9 [17:45:06]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:45:06]wFMCommunicate OK [17:45:06]SAM_PROTO_GetShiftState done [17:45:06]FM_GetShiftState done [17:45:06]opened in 1726964408 [17:45:06]opened+sec_in_day 1727050808 [17:45:06]quantity*price = 26000 [17:45:06]sum+1 = 26001 [17:45:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 64 22.09.2024 17:45 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22149 ФПД: 106769977018590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174509&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22149&fm=106769977018590&tin=02508201610067®Number=0000000000146243&sum=26000 0 [17:45:07]StoreToDocumentArchive [17:45:07]shift 228 fd 22149 [17:45:07]save to /storage/0228/doc_00022149 [17:45:07]save last doc name /storage/0228/doc_00022149 to /storage/kkm_last_doc_name [17:45:07]save OK [17:45:07]Clear old archive folders... [17:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:45:07]tlvbuf is 0023D150 [17:45:07]SAM_PROTO_ClearQueue [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 09 00 00 [17:45:07]Write to MH i2c: E2 08 00 C1 0D 80 09 00 00 00 00 00 00 40 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [17:45:07]RAPDU: 90 00 [17:45:07]wFMCommunicate OK [17:45:07]SAM_PROTO_ClearQueue done [17:45:07]KKMCreateOFDPacket [17:45:07]OFDProtocolAddRootSTLVToBuf [17:45:07]FM_MakeSignedData [17:45:07]FM_MakeSignedData [17:45:07]SAM_PROTO_SignData [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 0D 01 02 [17:45:07]Write to MH i2c: E2 08 00 C2 0D 80 0D 01 02 00 00 00 00 48 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 C2 0D 00 90 00 43 [17:45:07]RAPDU: 90 00 [17:45:07]wFMCommunicate OK [17:45:07]wFMCommunicate request_size=255 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 A5 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 [17:45:07]Write to MH i2c: E2 02 01 C3 0D 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 A5 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 00 00 B3 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 03 00 C3 0D 00 90 00 44 [17:45:07]RAPDU: 90 00 [17:45:07]wFMCommunicate OK [17:45:07]wFMCommunicate request_size=38 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 85 56 00 00 35 04 06 00 61 1B 52 8D 88 DE [17:45:07]Write to MH i2c: E2 29 00 C4 0D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 85 56 00 00 35 04 06 00 61 1B 52 8D 88 DE 00 00 77 [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:08]Read from MH i2c: E2 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: E2 03 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: E2 03 00 C4 0D 00 90 00 45 [17:45:08]RAPDU: 90 00 [17:45:08]wFMCommunicate OK [17:45:08]wFMCommunicate request_size=4 [17:45:08]MH_SAM_APDU [17:45:08]CAPDU: 80 0D 03 02 [17:45:08]Write to MH i2c: E2 08 00 C5 0D 80 0D 03 02 00 00 00 00 4D [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:08]Read from MH i2c: E2 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: E2 0B 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: E2 0B 00 C5 0D 00 A5 6F FE 44 3D A3 8C 22 90 00 32 [17:45:08]RAPDU: A5 6F FE 44 3D A3 8C 22 90 00 [17:45:08]wFMCommunicate OK [17:45:08]SAM_PROTO_SignData done [17:45:08]FM_MakeSignedData done [17:45:08]CreateOFDProtocolMessage [17:45:08]wFMCommunicate request_size=4 [17:45:08]MH_SAM_APDU [17:45:08]CAPDU: 80 11 00 00 [17:45:08]Write to MH i2c: E2 08 00 C6 0D 80 11 00 00 00 00 00 00 4D [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:08]Read from MH i2c: E2 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: E2 17 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: E2 17 00 C6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A7 [17:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:45:08]wFMCommunicate OK [17:45:08]CreateOFDProtocolMessage done [17:45:08]OFDSenderStorePacket 22149 [17:45:08]StoreOFDPacket docnum=22149 [17:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2B 01 00 00 7E 7C 23 01 C0 6E 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 A5 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 85 56 00 00 35 04 06 00 61 1B 52 8D 88 DE A5 6F FE 44 3D A3 8C 22 [17:45:08]CheckFolder [17:45:08]dirname=/storage/ofd_packets [17:45:08]CheckFolder done [17:45:08]ProducePacketName [17:45:08]name=ofd_packets/00022149 [17:45:08]NVStorageSaveData ofd_packets/00022149 [17:45:08]File name is /storage/ofd_packets/00022149 [17:45:08]Write 329 bytes [17:45:08]NVStorageSaveData done [17:45:08]OFDSenderStorePacket done [17:45:08]KKMCreateOFDPacket done [17:45:08]NVStorageSaveData kkm_last_timestamp [17:45:08]File name is /storage/kkm_last_timestamp [17:45:08]Write 4 bytes [17:45:08]NVStorageSaveData done [17:45:08]ExternCall_PrintAddStr [17:45:08]wPrintStart [17:45:08]Write to MH i2c: 01 00 00 C7 0D D4 [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 07 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [17:45:08]RasterBufferAndPrint [17:45:08]line Счет N : (3)51417 [17:45:08]line ИНН: 02508201610067 [17:45:08]line Контрольно-Кассовый Чек [17:45:08]line ПРОДАЖА [17:45:08]line Товар: 4700002086380 [17:45:08]line Водка Сары челек 0,35л [17:45:08]line 1.000 * 260.00 [17:45:08]line = 260.00 [17:45:08]line НДС 12% НСП 1% [17:45:08]line > о реализуемом товаре [17:45:08]line ИТОГО: 260.00 [17:45:08]line НСП 1% : 2.30 [17:45:08]line НДС 12% : 27.61 [17:45:08]line Наличными: 260.00 [17:45:08]line Безнал.: 0.00 [17:45:08]line Место: АЗС № 88 "Партнер Нефть" [17:45:08]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [17:45:08]line СНО: Общий режим [17:45:08]line Чек 64 22.09.2024 17:45 [17:45:08]line Смена: 228 ФФД: 1.0 [17:45:08]line ЗНМ: 0300000061 [17:45:08]line РНМ: 0000000000146243 [17:45:08]line Версия ККМ: v1.0 [17:45:08]line ФМ: 0000000000959358 [17:45:08]line ФД: 22149 [17:45:08]line ФПД: 106769977018590 [17:45:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174509&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22149&fm=106769977018590&tin=02508201610067®Number=0000000000146243&sum=26000 [17:45:08]line 0 [17:45:08]OFD Sender: Processing packet 22149 [packets to send 23, broken 22] [17:45:08]ProducePacketName [17:45:08]name=ofd_packets/00022149 [17:45:08]OFD Sender: To server: pG, [17:45:08]CommunicateWithHost lk.salyk.kg:30040 [17:45:08]ConnectInit lk.salyk.kg [17:45:08]written 0, free lines is 4095 [17:45:08]Write to MH i2c: 01 00 00 EF 0D FC [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 07 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 22 0D 32 [17:45:08]RasterBufferAndPrint [17:45:08]line [17:45:08]line [17:45:08]line [17:45:08]line [17:45:08]line [17:45:08]written 0, free lines is 3368 [17:45:08]MH_Cut [17:45:08]Write to MH i2c: D1 01 00 F6 0D 01 D5 [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: D1 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: D1 01 00 [17:45:08]MH_I2C_Read... [17:45:08]Read from MH i2c: D1 01 00 F6 0D 00 D4 [17:45:08]Write to MH i2c: 01 00 00 F7 0D 04 [17:45:08]Write i2c OK [17:45:08]MH_I2C_Read... [17:45:09]*** Cut start [17:45:09]*** Partial cut [17:45:09]*** CUTSNS_PIN = 1 [17:45:09]*** CUTSNS_PIN = 0 [17:45:09]*** Brake cut motor [17:45:10]Read from MH i2c: 01 [17:45:10]MH_I2C_Read... [17:45:10]*** Stop cut motor [17:45:10]*** Cut end [17:45:10]Read from MH i2c: 01 07 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [17:45:10]process_action close_receipt done [17:45:10]requested_data is exist [17:45:10]produce_requested_data [17:45:10]requested_item fm.sn is exist - process it [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 11 00 00 [17:45:10]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 17 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D9 [17:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:45:10]wFMCommunicate OK [17:45:10]requested_item fd.num is exist - process it [17:45:10]SAM_PROTO_GetFieldsCounters [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 13 00 00 [17:45:10]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 62 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 62 00 F9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 85 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [17:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 85 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:10]wFMCommunicate OK [17:45:10]SAM_PROTO_GetFieldsCounters done [17:45:10]requested_item shift.num is exist - process it [17:45:10]requested_item shift.opened is exist - process it [17:45:10]req_shift_opened [17:45:10]FM_GetShiftState [17:45:10]SAM_PROTO_GetShiftState [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 13 01 00 [17:45:10]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 0E 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FF [17:45:10]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:45:10]wFMCommunicate OK [17:45:10]SAM_PROTO_GetShiftState done [17:45:10]FM_GetShiftState done [17:45:10]req_shift_opened done [17:45:10]requested_item shift.open_date is exist - process it [17:45:10]req_shift_open_date [17:45:10]req_shift_open_date done [17:45:10]produce_requested_data done [17:45:10]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22149,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [17:45:10]process_action_free close_receipt [17:45:10]json_value_free [17:45:10]json_value_free done [17:45:10]process_json_proto returns [17:45:10]Send response to host [17:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22149,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [17:45:10]free response buf [17:45:10]execute_script done [17:45:10]execute_script returns [17:45:10]free content buf [17:45:10]Sock 7.Close socket [17:45:10]Sock 7.Thread stoped [17:45:13]ConnectInit Can't take IP for lk.salyk.kg [17:45:13]CommunicateWithHost connect error [17:45:13]CommunicateWithHost err = -1 [17:45:13]OFD Sender: Server communicate error [17:45:18]OFD Sender: Processing packet 22149 [packets to send 23, broken 22] [17:45:18]ProducePacketName [17:45:18]name=ofd_packets/00022149 [17:45:18]OFD Sender: To server: pG, [17:45:18]CommunicateWithHost lk.salyk.kg:30040 [17:45:18]ConnectInit lk.salyk.kg [17:45:23]ConnectInit Can't take IP for lk.salyk.kg [17:45:23]CommunicateWithHost connect error [17:45:23]CommunicateWithHost err = -1 [17:45:23]OFD Sender: Server communicate error [17:45:28]OFD Sender: Processing packet 22149 [packets to send 23, broken 22] [17:45:28]ProducePacketName [17:45:28]name=ofd_packets/00022149 [17:45:28]OFD Sender: To server: pG, [17:45:28]CommunicateWithHost lk.salyk.kg:30040 [17:45:28]ConnectInit lk.salyk.kg [17:45:33]ConnectInit Can't take IP for lk.salyk.kg [17:45:33]CommunicateWithHost connect error [17:45:33]CommunicateWithHost err = -1 [17:45:33]OFD Sender: Server communicate error [17:45:38]OFD Sender: Processing packet 22149 [packets to send 23, broken 22] [17:45:38]ProducePacketName [17:45:38]name=ofd_packets/00022149 [17:45:38]OFD Sender: To server: pG, [17:45:38]CommunicateWithHost lk.salyk.kg:30040 [17:45:38]ConnectInit lk.salyk.kg [17:45:43]ConnectInit Can't take IP for lk.salyk.kg [17:45:43]CommunicateWithHost connect error [17:45:43]CommunicateWithHost err = -1 [17:45:43]OFD Sender: Server communicate error [17:45:45]accept exits with 10 [17:45:45]New connection [17:45:45]New thread 3067182436 created [17:45:45]Thread 3067039076 joined [17:45:45]Waiting for new connection... [17:45:45] Sock 10.Parse request [17:45:45]Sock 10.Check first char [17:45:45]Sock 10.First char is OK [17:45:45]request: POST /json_proto HTTP/1.0 [17:45:45]Method: POST [17:45:45]URL: /json_proto [17:45:45]Method is POST - this is cgi request [17:45:45]url: /json_proto [17:45:45]query_string will be loaded in cgi processing [17:45:45]execute_cgi json_proto POST (null) [17:45:45]execute_cgi path=json_proto method=POST [17:45:45]POST find Content-Length [17:45:45]Host: 172.17.43.4:8080 [17:45:45]Content-Length: 646 [17:45:45]Content-Type: application/json [17:45:45] [17:45:45]POST finish read [17:45:45]Found Content-Length = 646 [17:45:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51418", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:45]execute_script... [17:45: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)51418", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:45]POST & json_proto [17:45:45]process_json_proto [17:45:45]json parsed OK: [17:45:45]protocol is kg_v1.0 [17:45:45]action value=close_receipt [17:45:45]process_action close_receipt [17:45:45]cmd_close_receipt [17:45:45]MH_GetDate [17:45:45]Write to MH i2c: F0 00 00 FB 0D F7 [17:45:45]Write i2c OK [17:45:45]MH_I2C_Read... [17:45:45]Read from MH i2c: F0 [17:45:45]MH_I2C_Read... [17:45:45]Read from MH i2c: F0 09 00 [17:45:45]MH_I2C_Read... [17:45:45]Read from MH i2c: F0 09 00 FB 0D 00 CC 57 F0 66 02 BF CF 66 6F [17:45:45]GetLastDocTimeStamp 1727027109 [17:45:45]current date 1727027148 [17:45:45]FM_GetShiftState [17:45:45]SAM_PROTO_GetShiftState [17:45:45]wFMCommunicate request_size=4 [17:45:45]MH_SAM_APDU [17:45:45]CAPDU: 80 13 01 00 [17:45:45]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [17:45:45]Write i2c OK [17:45:45]MH_I2C_Read... [17:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:45]Read from MH i2c: E2 [17:45:45]MH_I2C_Read... [17:45:45]Read from MH i2c: E2 0E 00 [17:45:45]MH_I2C_Read... [17:45:45]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 01 [17:45:45]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:45:45]wFMCommunicate OK [17:45:45]SAM_PROTO_GetShiftState done [17:45:45]FM_GetShiftState done [17:45:45]opened in 1726964408 [17:45:45]opened+sec_in_day 1727050808 [17:45:45]quantity*price = 25000 [17:45:45]sum+1 = 25001 [17:45:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 65 22.09.2024 17:45 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22150 ФПД: 152732083874110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174548&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22150&fm=152732083874110&tin=02508201610067®Number=0000000000146243&sum=25000 0 [17:45:46]StoreToDocumentArchive [17:45:46]shift 228 fd 22150 [17:45:46]save to /storage/0228/doc_00022150 [17:45:46]save last doc name /storage/0228/doc_00022150 to /storage/kkm_last_doc_name [17:45:46]save OK [17:45:46]Clear old archive folders... [17:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:45:46]tlvbuf is 00276640 [17:45:46]SAM_PROTO_ClearQueue [17:45:46]wFMCommunicate request_size=4 [17:45:46]MH_SAM_APDU [17:45:46]CAPDU: 80 09 00 00 [17:45:46]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:46]Read from MH i2c: E2 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 03 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [17:45:46]RAPDU: 90 00 [17:45:46]wFMCommunicate OK [17:45:46]SAM_PROTO_ClearQueue done [17:45:46]KKMCreateOFDPacket [17:45:46]OFDProtocolAddRootSTLVToBuf [17:45:46]FM_MakeSignedData [17:45:46]FM_MakeSignedData [17:45:46]SAM_PROTO_SignData [17:45:46]wFMCommunicate request_size=4 [17:45:46]MH_SAM_APDU [17:45:46]CAPDU: 80 0D 01 02 [17:45:46]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:46]Read from MH i2c: E2 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 03 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [17:45:46]RAPDU: 90 00 [17:45:46]wFMCommunicate OK [17:45:46]wFMCommunicate request_size=255 [17:45:46]MH_SAM_APDU [17:45:46]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [17:45:46]Write to MH i2c: E2 02 01 0B 0E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 F2 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:46]Read from MH i2c: E2 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 03 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [17:45:46]RAPDU: 90 00 [17:45:46]wFMCommunicate OK [17:45:46]wFMCommunicate request_size=34 [17:45:46]MH_SAM_APDU [17:45:46]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 86 56 00 00 35 04 06 00 8A E8 B5 9A E9 3E [17:45:46]Write to MH i2c: E2 25 00 0C 0E 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 86 56 00 00 35 04 06 00 8A E8 B5 9A E9 3E 00 00 20 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:47]Read from MH i2c: E2 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 03 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [17:45:47]RAPDU: 90 00 [17:45:47]wFMCommunicate OK [17:45:47]wFMCommunicate request_size=4 [17:45:47]MH_SAM_APDU [17:45:47]CAPDU: 80 0D 03 02 [17:45:47]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:47]Read from MH i2c: E2 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 0B 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 0B 00 0D 0E 00 73 BF E3 AC 2C 68 96 DD 90 00 5F [17:45:47]RAPDU: 73 BF E3 AC 2C 68 96 DD 90 00 [17:45:47]wFMCommunicate OK [17:45:47]SAM_PROTO_SignData done [17:45:47]FM_MakeSignedData done [17:45:47]CreateOFDProtocolMessage [17:45:47]wFMCommunicate request_size=4 [17:45:47]MH_SAM_APDU [17:45:47]CAPDU: 80 11 00 00 [17:45:47]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:47]Read from MH i2c: E2 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 17 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 F0 [17:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:45:47]wFMCommunicate OK [17:45:47]CreateOFDProtocolMessage done [17:45:47]OFDSenderStorePacket 22150 [17:45:47]StoreOFDPacket docnum=22150 [17:45:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 1F 77 1F 01 CB FA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 86 56 00 00 35 04 06 00 8A E8 B5 9A E9 3E 73 BF E3 AC 2C 68 96 DD [17:45:47]CheckFolder [17:45:47]dirname=/storage/ofd_packets [17:45:47]CheckFolder done [17:45:47]ProducePacketName [17:45:47]name=ofd_packets/00022150 [17:45:47]NVStorageSaveData ofd_packets/00022150 [17:45:47]File name is /storage/ofd_packets/00022150 [17:45:47]Write 325 bytes [17:45:47]NVStorageSaveData done [17:45:47]OFDSenderStorePacket done [17:45:47]KKMCreateOFDPacket done [17:45:47]NVStorageSaveData kkm_last_timestamp [17:45:47]File name is /storage/kkm_last_timestamp [17:45:47]Write 4 bytes [17:45:47]NVStorageSaveData done [17:45:47]ExternCall_PrintAddStr [17:45:47]wPrintStart [17:45:47]Write to MH i2c: 01 00 00 0F 0E 1D [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: 01 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: 01 07 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [17:45:47]RasterBufferAndPrint [17:45:47]line Счет N : (3)51418 [17:45:47]line ИНН: 02508201610067 [17:45:47]line Контрольно-Кассовый Чек [17:45:47]line ПРОДАЖА [17:45:47]line Товар: 4700001061104 [17:45:47]line Коньяк Семетей 0,2л [17:45:47]line 1.000 * 250.00 [17:45:47]line = 250.00 [17:45:47]line НДС 12% НСП 1% [17:45:47]line > о реализуемом товаре [17:45:47]line ИТОГО: 250.00 [17:45:47]line НСП 1% : 2.21 [17:45:47]line НДС 12% : 26.55 [17:45:47]line Наличными: 250.00 [17:45:47]line Безнал.: 0.00 [17:45:47]line Место: АЗС № 88 "Партнер Нефть" [17:45:47]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [17:45:47]line СНО: Общий режим [17:45:47]line Чек 65 22.09.2024 17:45 [17:45:47]line Смена: 228 ФФД: 1.0 [17:45:47]line ЗНМ: 0300000061 [17:45:47]line РНМ: 0000000000146243 [17:45:47]line Версия ККМ: v1.0 [17:45:47]line ФМ: 0000000000959358 [17:45:47]line ФД: 22150 [17:45:47]line ФПД: 152732083874110 [17:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174548&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22150&fm=152732083874110&tin=02508201610067®Number=0000000000146243&sum=25000 [17:45:47]line 0 [17:45:47]written 0, free lines is 4095 [17:45:47]OFD Sender: Processing packet 22149 [packets to send 24, broken 22] [17:45:47]ProducePacketName [17:45:47]name=ofd_packets/00022149 [17:45:47]OFD Sender: To server: pG, [17:45:47]CommunicateWithHost lk.salyk.kg:30040 [17:45:47]ConnectInit lk.salyk.kg [17:45:47]Write to MH i2c: 01 00 00 37 0E 45 [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: 01 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: 01 07 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 1A 0D 73 [17:45:47]RasterBufferAndPrint [17:45:47]line [17:45:47]line [17:45:47]line [17:45:47]line [17:45:47]line [17:45:47]written 0, free lines is 3369 [17:45:47]MH_Cut [17:45:47]Write to MH i2c: D1 01 00 3E 0E 01 1E [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: D1 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: D1 01 00 [17:45:47]MH_I2C_Read... [17:45:47]Read from MH i2c: D1 01 00 3E 0E 00 1D [17:45:47]Write to MH i2c: 01 00 00 3F 0E 4D [17:45:47]Write i2c OK [17:45:47]MH_I2C_Read... [17:45:48]*** Cut start [17:45:48]*** Partial cut [17:45:48]*** CUTSNS_PIN = 1 [17:45:48]*** CUTSNS_PIN = 0 [17:45:48]*** Brake cut motor [17:45:48]Read from MH i2c: 01 [17:45:48]MH_I2C_Read... [17:45:48]*** Stop cut motor [17:45:48]*** Cut end [17:45:48]Read from MH i2c: 01 07 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 07 00 3F 0E 00 00 00 00 00 FF 0F 62 [17:45:48]process_action close_receipt done [17:45:48]requested_data is exist [17:45:48]produce_requested_data [17:45:48]requested_item fm.sn is exist - process it [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 11 00 00 [17:45:48]Write to MH i2c: E2 08 00 40 0E 80 11 00 00 00 00 00 00 C8 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 17 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 17 00 40 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 22 [17:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:45:48]wFMCommunicate OK [17:45:48]requested_item fd.num is exist - process it [17:45:48]SAM_PROTO_GetFieldsCounters [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 13 00 00 [17:45:48]Write to MH i2c: E2 08 00 41 0E 80 13 00 00 00 00 00 00 CB [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:49]Read from MH i2c: E2 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: E2 62 00 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: E2 62 00 41 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 86 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:45:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 86 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:49]wFMCommunicate OK [17:45:49]SAM_PROTO_GetFieldsCounters done [17:45:49]requested_item shift.num is exist - process it [17:45:49]requested_item shift.opened is exist - process it [17:45:49]req_shift_opened [17:45:49]FM_GetShiftState [17:45:49]SAM_PROTO_GetShiftState [17:45:49]wFMCommunicate request_size=4 [17:45:49]MH_SAM_APDU [17:45:49]CAPDU: 80 13 01 00 [17:45:49]Write to MH i2c: E2 08 00 42 0E 80 13 01 00 00 00 00 00 CD [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:49]Read from MH i2c: E2 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: E2 0E 00 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: E2 0E 00 42 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 48 [17:45:49]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:45:49]wFMCommunicate OK [17:45:49]SAM_PROTO_GetShiftState done [17:45:49]FM_GetShiftState done [17:45:49]req_shift_opened done [17:45:49]requested_item shift.open_date is exist - process it [17:45:49]req_shift_open_date [17:45:49]req_shift_open_date done [17:45:49]produce_requested_data done [17:45:49]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22150,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [17:45:49]process_action_free close_receipt [17:45:49]json_value_free [17:45:49]json_value_free done [17:45:49]process_json_proto returns [17:45:49]Send response to host [17:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22150,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [17:45:49]free response buf [17:45:49]execute_script done [17:45:49]execute_script returns [17:45:49]free content buf [17:45:49]Sock 10.Close socket [17:45:49]Sock 10.Thread stoped [17:45:52]ConnectInit Can't take IP for lk.salyk.kg [17:45:52]CommunicateWithHost connect error [17:45:52]CommunicateWithHost err = -1 [17:45:52]OFD Sender: Server communicate error [17:45:57]OFD Sender: Processing packet 22149 [packets to send 24, broken 22] [17:45:57]ProducePacketName [17:45:57]name=ofd_packets/00022149 [17:45:57]OFD Sender: To server: pG, [17:45:57]CommunicateWithHost lk.salyk.kg:30040 [17:45:57]ConnectInit lk.salyk.kg [17:46:02]ConnectInit Can't take IP for lk.salyk.kg [17:46:02]CommunicateWithHost connect error [17:46:02]CommunicateWithHost err = -1 [17:46:02]OFD Sender: Server communicate error [17:46:07]OFD Sender: Processing packet 22149 [packets to send 24, broken 22] [17:46:07]ProducePacketName [17:46:07]name=ofd_packets/00022149 [17:46:07]OFD Sender: To server: pG, [17:46:07]CommunicateWithHost lk.salyk.kg:30040 [17:46:07]ConnectInit lk.salyk.kg [17:46:12]ConnectInit Can't take IP for lk.salyk.kg [17:46:12]CommunicateWithHost connect error [17:46:12]CommunicateWithHost err = -1 [17:46:12]OFD Sender: Server communicate error [17:46:15]ConnectInit Can't connect to host [17:46:17]OFD Sender: Processing packet 22149 [packets to send 24, broken 22] [17:46:17]ProducePacketName [17:46:17]name=ofd_packets/00022149 [17:46:17]OFD Sender: To server: pG, [17:46:17]CommunicateWithHost lk.salyk.kg:30040 [17:46:17]ConnectInit lk.salyk.kg [17:46:17]Connected sock=9 [17:46:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2B 01 00 00 7E 7C 23 01 C0 6E 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 A5 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 85 56 00 00 35 04 06 00 61 1B 52 8D 88 DE A5 6F FE 44 3D A3 8C 22 [17:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 46 93 47 00 68 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 39 35 39 33 35 38 10 04 04 00 85 56 00 00 F4 03 04 00 14 02 F0 66 B6 04 01 00 00 D5 7F 88 E9 D6 AD 11 63 [17:46:17]CommunicateWithHost err = 0 [17:46:17]CheckOFDResponse [17:46:17]1017 (14) - 77093643461234 [17:46:17]1041 (16) - 0000000000959358 [17:46:17]1040 (4) - 22149 [17:46:17]1012 (4) - 22.09.2024 11:40 [17:46:17]1206 (1) - 0 [17:46:17]OFD Sender: Remove packet 22149 [17:46:17]ProducePacketName [17:46:17]name=ofd_packets/00022149 [17:46:17]NVStorageDeleteData [17:46:18]OFD Sender: Processing packet 22150 [packets to send 23, broken 22] [17:46:18]ProducePacketName [17:46:18]name=ofd_packets/00022150 [17:46:18]OFD Sender: To server: pG, [17:46:18]CommunicateWithHost lk.salyk.kg:30040 [17:46:18]ConnectInit lk.salyk.kg [17:46:18]Connected sock=9 [17:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 1F 77 1F 01 CB FA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CC 57 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 86 56 00 00 35 04 06 00 8A E8 B5 9A E9 3E 73 BF E3 AC 2C 68 96 DD [17:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 60 7C 47 00 FB FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 86 56 00 00 F4 03 04 00 15 02 F0 66 B6 04 01 00 00 E1 E1 C6 A3 8A 87 B8 86 [17:46:18]CommunicateWithHost err = 0 [17:46:18]CheckOFDResponse [17:46:18]1017 (14) - 77093643461234 [17:46:18]1041 (16) - 0000000000959358 [17:46:18]1040 (4) - 22150 [17:46:18]1012 (4) - 22.09.2024 11:40 [17:46:18]1206 (1) - 0 [17:46:18]OFD Sender: Remove packet 22150 [17:46:18]ProducePacketName [17:46:18]name=ofd_packets/00022150 [17:46:18]NVStorageDeleteData [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:43]accept exits with 7 [17:48:43]New connection [17:48:43]New thread 3067039076 created [17:48:43]Thread 3067182436 joined [17:48:43]Waiting for new connection... [17:48:43] Sock 7.Parse request [17:48:43]Sock 7.Check first char [17:48:43]Sock 7.First char is OK [17:48:43]request: POST /json_proto HTTP/1.0 [17:48:43]Method: POST [17:48:43]URL: /json_proto [17:48:43]Method is POST - this is cgi request [17:48:43]url: /json_proto [17:48:43]query_string will be loaded in cgi processing [17:48:43]execute_cgi json_proto POST (null) [17:48:43]execute_cgi path=json_proto method=POST [17:48:43]POST find Content-Length [17:48:43]Host: 172.17.43.4:8080 [17:48:43]Content-Length: 644 [17:48:43]Content-Type: application/json [17:48:43] [17:48:43]POST finish read [17:48:43]Found Content-Length = 644 [17:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51419", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:43]execute_script... [17:48: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)51419", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:43]POST & json_proto [17:48:43]process_json_proto [17:48:43]json parsed OK: [17:48:43]protocol is kg_v1.0 [17:48:43]action value=close_receipt [17:48:43]process_action close_receipt [17:48:43]cmd_close_receipt [17:48:43]MH_GetDate [17:48:43]Write to MH i2c: F0 00 00 43 0E 40 [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: F0 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: F0 09 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: F0 09 00 43 0E 00 7E 58 F0 66 02 BF CF 66 6B [17:48:43]GetLastDocTimeStamp 1727027148 [17:48:43]current date 1727027326 [17:48:43]FM_GetShiftState [17:48:43]SAM_PROTO_GetShiftState [17:48:43]wFMCommunicate request_size=4 [17:48:43]MH_SAM_APDU [17:48:43]CAPDU: 80 13 01 00 [17:48:43]Write to MH i2c: E2 08 00 44 0E 80 13 01 00 00 00 00 00 CF [17:48:43]Write i2c OK [17:48:43]MH_I2C_Read... [17:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:43]Read from MH i2c: E2 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 0E 00 [17:48:43]MH_I2C_Read... [17:48:43]Read from MH i2c: E2 0E 00 44 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 4A [17:48:43]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:48:43]wFMCommunicate OK [17:48:43]SAM_PROTO_GetShiftState done [17:48:43]FM_GetShiftState done [17:48:43]opened in 1726964408 [17:48:43]opened+sec_in_day 1727050808 [17:48:43]quantity*price = 6000 [17:48:43]sum+1 = 6001 [17:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 66 22.09.2024 17:48 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22151 ФПД: 191777548941073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174846&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22151&fm=191777548941073&tin=02508201610067®Number=0000000000146243&sum=6000 0 [17:48:44]StoreToDocumentArchive [17:48:44]shift 228 fd 22151 [17:48:44]save to /storage/0228/doc_00022151 [17:48:44]save last doc name /storage/0228/doc_00022151 to /storage/kkm_last_doc_name [17:48:44]save OK [17:48:44]Clear old archive folders... [17:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:48:44]tlvbuf is 00229BE0 [17:48:44]SAM_PROTO_ClearQueue [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 09 00 00 [17:48:44]Write to MH i2c: E2 08 00 51 0E 80 09 00 00 00 00 00 00 D1 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]SAM_PROTO_ClearQueue done [17:48:44]KKMCreateOFDPacket [17:48:44]OFDProtocolAddRootSTLVToBuf [17:48:44]FM_MakeSignedData [17:48:44]FM_MakeSignedData [17:48:44]SAM_PROTO_SignData [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 01 02 [17:48:44]Write to MH i2c: E2 08 00 52 0E 80 0D 01 02 00 00 00 00 D9 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]wFMCommunicate request_size=255 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7E 58 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 [17:48:44]Write to MH i2c: E2 02 01 53 0E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7E 58 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 00 00 61 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [17:48:44]RAPDU: 90 00 [17:48:44]wFMCommunicate OK [17:48:44]wFMCommunicate request_size=35 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 87 56 00 00 35 04 06 00 AE 6B B0 AE 37 11 [17:48:44]Write to MH i2c: E2 26 00 54 0E 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 87 56 00 00 35 04 06 00 AE 6B B0 AE 37 11 00 00 72 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [17:48:45]RAPDU: 90 00 [17:48:45]wFMCommunicate OK [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 0D 03 02 [17:48:45]Write to MH i2c: E2 08 00 55 0E 80 0D 03 02 00 00 00 00 DE [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 0B 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 0B 00 55 0E 00 DB 69 C4 DF D5 92 FA F0 90 00 17 [17:48:45]RAPDU: DB 69 C4 DF D5 92 FA F0 90 00 [17:48:45]wFMCommunicate OK [17:48:45]SAM_PROTO_SignData done [17:48:45]FM_MakeSignedData done [17:48:45]CreateOFDProtocolMessage [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 11 00 00 [17:48:45]Write to MH i2c: E2 08 00 56 0E 80 11 00 00 00 00 00 00 DE [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 17 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 17 00 56 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 38 [17:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:48:45]wFMCommunicate OK [17:48:45]CreateOFDProtocolMessage done [17:48:45]OFDSenderStorePacket 22151 [17:48:45]StoreOFDPacket docnum=22151 [17:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 28 01 00 00 91 4B 20 01 EF C9 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7E 58 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 87 56 00 00 35 04 06 00 AE 6B B0 AE 37 11 DB 69 C4 DF D5 92 FA F0 [17:48:45]CheckFolder [17:48:45]dirname=/storage/ofd_packets [17:48:45]CheckFolder done [17:48:45]ProducePacketName [17:48:45]name=ofd_packets/00022151 [17:48:45]NVStorageSaveData ofd_packets/00022151 [17:48:45]File name is /storage/ofd_packets/00022151 [17:48:45]Write 326 bytes [17:48:45]NVStorageSaveData done [17:48:45]OFDSenderStorePacket done [17:48:45]KKMCreateOFDPacket done [17:48:45]NVStorageSaveData kkm_last_timestamp [17:48:45]File name is /storage/kkm_last_timestamp [17:48:45]Write 4 bytes [17:48:45]NVStorageSaveData done [17:48:45]ExternCall_PrintAddStr [17:48:45]wPrintStart [17:48:45]Write to MH i2c: 01 00 00 57 0E 65 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 07 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [17:48:45]RasterBufferAndPrint [17:48:45]line Счет N : (3)51419 [17:48:45]line ИНН: 02508201610067 [17:48:45]line Контрольно-Кассовый Чек [17:48:45]line ПРОДАЖА [17:48:45]line Товар: 4700000310043 [17:48:45]line Вода Жалалабат 27 1л [17:48:45]line 1.000 * 60.00 [17:48:45]line = 60.00 [17:48:45]line НДС 12% НСП 1% [17:48:45]line > о реализуемом товаре [17:48:45]line ИТОГО: 60.00 [17:48:45]line НСП 1% : 0.53 [17:48:45]line НДС 12% : 6.37 [17:48:45]line Наличными: 60.00 [17:48:45]line Безнал.: 0.00 [17:48:45]line Место: АЗС № 88 "Партнер Нефть" [17:48:45]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [17:48:45]line СНО: Общий режим [17:48:45]line Чек 66 22.09.2024 17:48 [17:48:45]line Смена: 228 ФФД: 1.0 [17:48:45]line ЗНМ: 0300000061 [17:48:45]line РНМ: 0000000000146243 [17:48:45]line Версия ККМ: v1.0 [17:48:45]line ФМ: 0000000000959358 [17:48:45]line ФД: 22151 [17:48:45]line ФПД: 191777548941073 [17:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T174846&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22151&fm=191777548941073&tin=02508201610067®Number=0000000000146243&sum=6000 [17:48:45]line 0 [17:48:45]OFD Sender: Processing packet 22151 [packets to send 23, broken 22] [17:48:45]ProducePacketName [17:48:45]name=ofd_packets/00022151 [17:48:45]OFD Sender: To server: pG, [17:48:45]CommunicateWithHost lk.salyk.kg:30040 [17:48:45]ConnectInit lk.salyk.kg [17:48:45]written 0, free lines is 4095 [17:48:45]Connected sock=10 [17:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 28 01 00 00 91 4B 20 01 EF C9 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 7E 58 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 87 56 00 00 35 04 06 00 AE 6B B0 AE 37 11 DB 69 C4 DF D5 92 FA F0 [17:48:45]Write to MH i2c: 01 00 00 7F 0E 8D [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 07 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 1F 0D C0 [17:48:45]RasterBufferAndPrint [17:48:45]line [17:48:45]line [17:48:45]line [17:48:45]line [17:48:45]line [17:48:45]written 0, free lines is 3367 [17:48:45]MH_Cut [17:48:45]Write to MH i2c: D1 01 00 86 0E 01 66 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: D1 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: D1 01 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: D1 01 00 86 0E 00 65 [17:48:45]Write to MH i2c: 01 00 00 87 0E 95 [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 95 68 47 00 1F 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 39 35 39 33 35 38 10 04 04 00 87 56 00 00 F4 03 04 00 A8 02 F0 66 B6 04 01 00 00 58 38 54 55 6D 8A D0 D6 [17:48:45]CommunicateWithHost err = 0 [17:48:45]CheckOFDResponse [17:48:45]1017 (14) - 77093643461234 [17:48:45]1041 (16) - 0000000000959358 [17:48:45]1040 (4) - 22151 [17:48:45]1012 (4) - 22.09.2024 11:42 [17:48:45]1206 (1) - 0 [17:48:45]OFD Sender: Remove packet 22151 [17:48:45]ProducePacketName [17:48:45]name=ofd_packets/00022151 [17:48:45]NVStorageDeleteData [17:48:46]OFD Sender: No OFD packet to send [17:48:46]*** Cut start [17:48:46]*** Partial cut [17:48:46]*** CUTSNS_PIN = 1 [17:48:46]*** CUTSNS_PIN = 0 [17:48:46]*** Brake cut motor [17:48:47]Read from MH i2c: 01 [17:48:47]MH_I2C_Read... [17:48:47]*** Stop cut motor [17:48:47]*** Cut end [17:48:47]Read from MH i2c: 01 07 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 FF 0F AA [17:48:47]process_action close_receipt done [17:48:47]requested_data is exist [17:48:47]produce_requested_data [17:48:47]requested_item fm.sn is exist - process it [17:48:47]wFMCommunicate request_size=4 [17:48:47]MH_SAM_APDU [17:48:47]CAPDU: 80 11 00 00 [17:48:47]Write to MH i2c: E2 08 00 88 0E 80 11 00 00 00 00 00 00 10 [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:47]Read from MH i2c: E2 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 17 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 17 00 88 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6A [17:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:48:47]wFMCommunicate OK [17:48:47]requested_item fd.num is exist - process it [17:48:47]SAM_PROTO_GetFieldsCounters [17:48:47]wFMCommunicate request_size=4 [17:48:47]MH_SAM_APDU [17:48:47]CAPDU: 80 13 00 00 [17:48:47]Write to MH i2c: E2 08 00 89 0E 80 13 00 00 00 00 00 00 13 [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:47]Read from MH i2c: E2 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 62 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 62 00 89 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 87 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 87 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:47]wFMCommunicate OK [17:48:47]SAM_PROTO_GetFieldsCounters done [17:48:47]requested_item shift.num is exist - process it [17:48:47]requested_item shift.opened is exist - process it [17:48:47]req_shift_opened [17:48:47]FM_GetShiftState [17:48:47]SAM_PROTO_GetShiftState [17:48:47]wFMCommunicate request_size=4 [17:48:47]MH_SAM_APDU [17:48:47]CAPDU: 80 13 01 00 [17:48:47]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:47]Read from MH i2c: E2 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 0E 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 90 [17:48:47]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:48:47]wFMCommunicate OK [17:48:47]SAM_PROTO_GetShiftState done [17:48:47]FM_GetShiftState done [17:48:47]req_shift_opened done [17:48:47]requested_item shift.open_date is exist - process it [17:48:47]req_shift_open_date [17:48:47]req_shift_open_date done [17:48:47]produce_requested_data done [17:48:47]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22151,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [17:48:47]process_action_free close_receipt [17:48:47]json_value_free [17:48:47]json_value_free done [17:48:47]process_json_proto returns [17:48:47]Send response to host [17:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22151,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [17:48:47]free response buf [17:48:47]execute_script done [17:48:47]execute_script returns [17:48:47]free content buf [17:48:47]Sock 7.Close socket [17:48:47]Sock 7.Thread stoped [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [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:28]accept exits with 9 [17:52:28]New connection [17:52:28]New thread 3067182436 created [17:52:28]Thread 3067039076 joined [17:52:28]Waiting for new connection... [17:52:28] Sock 9.Parse request [17:52:28]Sock 9.Check first char [17:52:28]Sock 9.First char is OK [17:52:28]request: POST /json_proto HTTP/1.0 [17:52:28]Method: POST [17:52:28]URL: /json_proto [17:52:28]Method is POST - this is cgi request [17:52:28]url: /json_proto [17:52:28]query_string will be loaded in cgi processing [17:52:28]execute_cgi json_proto POST (null) [17:52:28]execute_cgi path=json_proto method=POST [17:52:28]POST find Content-Length [17:52:28]Host: 172.17.43.4:8080 [17:52:28]Content-Length: 625 [17:52:28]Content-Type: application/json [17:52:28] [17:52:28]POST finish read [17:52:28]Found Content-Length = 625 [17:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51420", "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" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:28]execute_script... [17:52: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)51420", "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" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:28]POST & json_proto [17:52:28]process_json_proto [17:52:28]json parsed OK: [17:52:28]protocol is kg_v1.0 [17:52:28]action value=close_receipt [17:52:28]process_action close_receipt [17:52:28]cmd_close_receipt [17:52:28]MH_GetDate [17:52:28]Write to MH i2c: F0 00 00 8B 0E 88 [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: F0 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: F0 09 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: F0 09 00 8B 0E 00 5F 59 F0 66 02 BF CF 66 95 [17:52:28]GetLastDocTimeStamp 1727027326 [17:52:28]current date 1727027551 [17:52:28]FM_GetShiftState [17:52:28]SAM_PROTO_GetShiftState [17:52:28]wFMCommunicate request_size=4 [17:52:28]MH_SAM_APDU [17:52:28]CAPDU: 80 13 01 00 [17:52:28]Write to MH i2c: E2 08 00 8C 0E 80 13 01 00 00 00 00 00 17 [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:28]Read from MH i2c: E2 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 0E 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 0E 00 8C 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 92 [17:52:28]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:52:28]wFMCommunicate OK [17:52:28]SAM_PROTO_GetShiftState done [17:52:28]FM_GetShiftState done [17:52:28]opened in 1726964408 [17:52:28]opened+sec_in_day 1727050808 [17:52:28]quantity*price = 2000 [17:52:28]sum+1 = 2001 [17:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 67 22.09.2024 17:52 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22152 ФПД: 108400005375813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T175231&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22152&fm=108400005375813&tin=02508201610067®Number=0000000000146243&sum=2000 0 [17:52:29]StoreToDocumentArchive [17:52:29]shift 228 fd 22152 [17:52:29]save to /storage/0228/doc_00022152 [17:52:29]save last doc name /storage/0228/doc_00022152 to /storage/kkm_last_doc_name [17:52:29]save OK [17:52:29]Clear old archive folders... [17:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:52:29]tlvbuf is 0028F230 [17:52:29]SAM_PROTO_ClearQueue [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 09 00 00 [17:52:29]Write to MH i2c: E2 08 00 99 0E 80 09 00 00 00 00 00 00 19 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_ClearQueue done [17:52:29]KKMCreateOFDPacket [17:52:29]OFDProtocolAddRootSTLVToBuf [17:52:29]FM_MakeSignedData [17:52:29]FM_MakeSignedData [17:52:29]SAM_PROTO_SignData [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 01 02 [17:52:29]Write to MH i2c: E2 08 00 9A 0E 80 0D 01 02 00 00 00 00 21 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=255 [17:52:29]MH_SAM_APDU [17:52:29]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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 5F 59 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [17:52:29]Write to MH i2c: E2 02 01 9B 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 5F 59 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 B3 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=32 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 88 56 00 00 35 04 06 00 62 96 D7 D0 67 45 [17:52:29]Write to MH i2c: E2 23 00 9C 0E 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 88 56 00 00 35 04 06 00 62 96 D7 D0 67 45 00 00 B1 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 03 02 [17:52:29]Write to MH i2c: E2 08 00 9D 0E 80 0D 03 02 00 00 00 00 26 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0B 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0B 00 9D 0E 00 06 A2 63 3A BE BF CD 92 90 00 48 [17:52:29]RAPDU: 06 A2 63 3A BE BF CD 92 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_SignData done [17:52:29]FM_MakeSignedData done [17:52:29]CreateOFDProtocolMessage [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 11 00 00 [17:52:29]Write to MH i2c: E2 08 00 9E 0E 80 11 00 00 00 00 00 00 26 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 17 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 17 00 9E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 80 [17:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:52:30]wFMCommunicate OK [17:52:30]CreateOFDProtocolMessage done [17:52:30]OFDSenderStorePacket 22152 [17:52:30]StoreOFDPacket docnum=22152 [17:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 1C 5B 1D 01 8C 91 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 5F 59 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 88 56 00 00 35 04 06 00 62 96 D7 D0 67 45 06 A2 63 3A BE BF CD 92 [17:52:30]CheckFolder [17:52:30]dirname=/storage/ofd_packets [17:52:30]CheckFolder done [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00022152 [17:52:30]NVStorageSaveData ofd_packets/00022152 [17:52:30]File name is /storage/ofd_packets/00022152 [17:52:30]Write 323 bytes [17:52:30]NVStorageSaveData done [17:52:30]OFDSenderStorePacket done [17:52:30]KKMCreateOFDPacket done [17:52:30]NVStorageSaveData kkm_last_timestamp [17:52:30]File name is /storage/kkm_last_timestamp [17:52:30]Write 4 bytes [17:52:30]NVStorageSaveData done [17:52:30]ExternCall_PrintAddStr [17:52:30]wPrintStart [17:52:30]Write to MH i2c: 01 00 00 9F 0E AD [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 FF 0F C2 [17:52:30]RasterBufferAndPrint [17:52:30]line Счет N : (3)51420 [17:52:30]line ИНН: 02508201610067 [17:52:30]line Контрольно-Кассовый Чек [17:52:30]line ПРОДАЖА [17:52:30]line Товар: 46226624 [17:52:30]line Mentos ПВ Клубника 6*100*2 [17:52:30]line 2.000 * 10.00 [17:52:30]line = 20.00 [17:52:30]line НДС 12% НСП 1% [17:52:30]line > о реализуемом товаре [17:52:30]line ИТОГО: 20.00 [17:52:30]line НСП 1% : 0.18 [17:52:30]line НДС 12% : 2.12 [17:52:30]line Наличными: 20.00 [17:52:30]line Безнал.: 0.00 [17:52:30]line Место: АЗС № 88 "Партнер Нефть" [17:52:30]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [17:52:30]line СНО: Общий режим [17:52:30]line Чек 67 22.09.2024 17:52 [17:52:30]line Смена: 228 ФФД: 1.0 [17:52:30]line ЗНМ: 0300000061 [17:52:30]line РНМ: 0000000000146243 [17:52:30]line Версия ККМ: v1.0 [17:52:30]line ФМ: 0000000000959358 [17:52:30]line ФД: 22152 [17:52:30]line ФПД: 108400005375813 [17:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T175231&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22152&fm=108400005375813&tin=02508201610067®Number=0000000000146243&sum=2000 [17:52:30]line 0 [17:52:30]OFD Sender: Processing packet 22152 [packets to send 23, broken 22] [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00022152 [17:52:30]OFD Sender: To server: pG, [17:52:30]CommunicateWithHost lk.salyk.kg:30040 [17:52:30]ConnectInit lk.salyk.kg [17:52:30]written 0, free lines is 4095 [17:52:30]Connected sock=11 [17:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 1C 5B 1D 01 8C 91 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 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 5F 59 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 88 56 00 00 35 04 06 00 62 96 D7 D0 67 45 06 A2 63 3A BE BF CD 92 [17:52:30]Write to MH i2c: 01 00 00 C7 0E D5 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 19 0D 02 [17:52:30]RasterBufferAndPrint [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]written 0, free lines is 3360 [17:52:30]MH_Cut [17:52:30]Write to MH i2c: D1 01 00 CE 0E 01 AE [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 01 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 01 00 CE 0E 00 AD [17:52:30]Write to MH i2c: 01 00 00 CF 0E DD [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 08 3C 47 00 AD 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 88 56 00 00 F4 03 04 00 8A 03 F0 66 B6 04 01 00 00 A2 05 3F B2 F8 FB EE 4C [17:52:31]CommunicateWithHost err = 0 [17:52:31]CheckOFDResponse [17:52:31]1017 (14) - 77093643461234 [17:52:31]1041 (16) - 0000000000959358 [17:52:31]1040 (4) - 22152 [17:52:31]1012 (4) - 22.09.2024 11:46 [17:52:31]1206 (1) - 0 [17:52:31]OFD Sender: Remove packet 22152 [17:52:31]ProducePacketName [17:52:31]name=ofd_packets/00022152 [17:52:31]NVStorageDeleteData [17:52:31]*** Cut start [17:52:31]*** Partial cut [17:52:31]*** CUTSNS_PIN = 1 [17:52:31]*** CUTSNS_PIN = 0 [17:52:31]OFD Sender: No OFD packet to send [17:52:31]*** Brake cut motor [17:52:32]Read from MH i2c: 01 [17:52:32]MH_I2C_Read... [17:52:32]*** Stop cut motor [17:52:32]*** Cut end [17:52:32]Read from MH i2c: 01 07 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 FF 0F F2 [17:52:32]process_action close_receipt done [17:52:32]requested_data is exist [17:52:32]produce_requested_data [17:52:32]requested_item fm.sn is exist - process it [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 11 00 00 [17:52:32]Write to MH i2c: E2 08 00 D0 0E 80 11 00 00 00 00 00 00 58 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 17 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 17 00 D0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B2 [17:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [17:52:32]wFMCommunicate OK [17:52:32]requested_item fd.num is exist - process it [17:52:32]SAM_PROTO_GetFieldsCounters [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 00 00 [17:52:32]Write to MH i2c: E2 08 00 D1 0E 80 13 00 00 00 00 00 00 5B [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 62 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 62 00 D1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 88 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [17:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 88 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetFieldsCounters done [17:52:32]requested_item shift.num is exist - process it [17:52:32]requested_item shift.opened is exist - process it [17:52:32]req_shift_opened [17:52:32]FM_GetShiftState [17:52:32]SAM_PROTO_GetShiftState [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 01 00 [17:52:32]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D8 [17:52:32]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetShiftState done [17:52:32]FM_GetShiftState done [17:52:32]req_shift_opened done [17:52:32]requested_item shift.open_date is exist - process it [17:52:32]req_shift_open_date [17:52:32]req_shift_open_date done [17:52:32]produce_requested_data done [17:52:32]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22152,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [17:52:32]process_action_free close_receipt [17:52:32]json_value_free [17:52:32]json_value_free done [17:52:32]process_json_proto returns [17:52:32]Send response to host [17:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22152,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [17:52:32]free response buf [17:52:32]execute_script done [17:52:32]execute_script returns [17:52:32]free content buf [17:52:32]Sock 9.Close socket [17:52:32]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01: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:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]accept exits with 7 [18:21:17]New connection [18:21:17]New thread 3067039076 created [18:21:17]Thread 3067182436 joined [18:21:17]Waiting for new connection... [18:21:17] Sock 7.Parse request [18:21:17]Sock 7.Check first char [18:21:17]Sock 7.First char is OK [18:21:17]request: POST /json_proto HTTP/1.0 [18:21:17]Method: POST [18:21:17]URL: /json_proto [18:21:17]Method is POST - this is cgi request [18:21:17]url: /json_proto [18:21:17]query_string will be loaded in cgi processing [18:21:17]execute_cgi json_proto POST (null) [18:21:17]execute_cgi path=json_proto method=POST [18:21:17]POST find Content-Length [18:21:17]Host: 172.17.43.4:8080 [18:21:17]Content-Length: 637 [18:21:17]Content-Type: application/json [18:21:17] [18:21:17]POST finish read [18:21:17]Found Content-Length = 637 [18:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51421", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:17]execute_script... [18:21: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)51421", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:17]POST & json_proto [18:21:17]process_json_proto [18:21:17]json parsed OK: [18:21:17]protocol is kg_v1.0 [18:21:17]action value=close_receipt [18:21:17]process_action close_receipt [18:21:17]cmd_close_receipt [18:21:17]MH_GetDate [18:21:17]Write to MH i2c: F0 00 00 D3 0E D0 [18:21:17]Write i2c OK [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: F0 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: F0 09 00 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: F0 09 00 D3 0E 00 20 60 F0 66 02 BF CF 66 A5 [18:21:17]GetLastDocTimeStamp 1727027551 [18:21:17]current date 1727029280 [18:21:17]FM_GetShiftState [18:21:17]SAM_PROTO_GetShiftState [18:21:17]wFMCommunicate request_size=4 [18:21:17]MH_SAM_APDU [18:21:17]CAPDU: 80 13 01 00 [18:21:17]Write to MH i2c: E2 08 00 D4 0E 80 13 01 00 00 00 00 00 5F [18:21:17]Write i2c OK [18:21:17]MH_I2C_Read... [18:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:17]Read from MH i2c: E2 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 0E 00 [18:21:17]MH_I2C_Read... [18:21:17]Read from MH i2c: E2 0E 00 D4 0E 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 DA [18:21:17]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [18:21:17]wFMCommunicate OK [18:21:17]SAM_PROTO_GetShiftState done [18:21:17]FM_GetShiftState done [18:21:17]opened in 1726964408 [18:21:17]opened+sec_in_day 1727050808 [18:21:17]quantity*price = 7000 [18:21:17]sum+1 = 7001 [18:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 68 22.09.2024 18:21 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22153 ФПД: 140994607344219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182120&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22153&fm=140994607344219&tin=02508201610067®Number=0000000000146243&sum=7000 0 [18:21:18]StoreToDocumentArchive [18:21:18]shift 228 fd 22153 [18:21:18]save to /storage/0228/doc_00022153 [18:21:18]save last doc name /storage/0228/doc_00022153 to /storage/kkm_last_doc_name [18:21:18]save OK [18:21:18]Clear old archive folders... [18:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:21:18]tlvbuf is 0023DC70 [18:21:18]SAM_PROTO_ClearQueue [18:21:18]wFMCommunicate request_size=4 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 09 00 00 [18:21:18]Write to MH i2c: E2 08 00 E1 0E 80 09 00 00 00 00 00 00 61 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [18:21:18]RAPDU: 90 00 [18:21:18]wFMCommunicate OK [18:21:18]SAM_PROTO_ClearQueue done [18:21:18]KKMCreateOFDPacket [18:21:18]OFDProtocolAddRootSTLVToBuf [18:21:18]FM_MakeSignedData [18:21:18]FM_MakeSignedData [18:21:18]SAM_PROTO_SignData [18:21:18]wFMCommunicate request_size=4 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 0D 01 02 [18:21:18]Write to MH i2c: E2 08 00 E2 0E 80 0D 01 02 00 00 00 00 69 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [18:21:18]RAPDU: 90 00 [18:21:18]wFMCommunicate OK [18:21:18]wFMCommunicate request_size=255 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 60 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [18:21:18]Write to MH i2c: E2 02 01 E3 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 60 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 7D [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [18:21:18]RAPDU: 90 00 [18:21:18]wFMCommunicate OK [18:21:18]wFMCommunicate request_size=32 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 89 56 00 00 35 04 06 00 80 3B DD 7C 6A 5B [18:21:18]Write to MH i2c: E2 23 00 E4 0E 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 89 56 00 00 35 04 06 00 80 3B DD 7C 6A 5B 00 00 88 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [18:21:18]RAPDU: 90 00 [18:21:18]wFMCommunicate OK [18:21:18]wFMCommunicate request_size=4 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 0D 03 02 [18:21:18]Write to MH i2c: E2 08 00 E5 0E 80 0D 03 02 00 00 00 00 6E [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 0B 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 0B 00 E5 0E 00 0E 42 CE 32 D1 2E 0E 4D 90 00 19 [18:21:18]RAPDU: 0E 42 CE 32 D1 2E 0E 4D 90 00 [18:21:18]wFMCommunicate OK [18:21:18]SAM_PROTO_SignData done [18:21:18]FM_MakeSignedData done [18:21:18]CreateOFDProtocolMessage [18:21:18]wFMCommunicate request_size=4 [18:21:18]MH_SAM_APDU [18:21:18]CAPDU: 80 11 00 00 [18:21:18]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:18]Read from MH i2c: E2 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 17 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C8 [18:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [18:21:18]wFMCommunicate OK [18:21:18]CreateOFDProtocolMessage done [18:21:18]OFDSenderStorePacket 22153 [18:21:18]StoreOFDPacket docnum=22153 [18:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 DB BE 1D 01 FA 7F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 60 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 89 56 00 00 35 04 06 00 80 3B DD 7C 6A 5B 0E 42 CE 32 D1 2E 0E 4D [18:21:18]CheckFolder [18:21:18]dirname=/storage/ofd_packets [18:21:18]CheckFolder done [18:21:18]ProducePacketName [18:21:18]name=ofd_packets/00022153 [18:21:18]NVStorageSaveData ofd_packets/00022153 [18:21:18]File name is /storage/ofd_packets/00022153 [18:21:18]Write 323 bytes [18:21:18]NVStorageSaveData done [18:21:18]OFDSenderStorePacket done [18:21:18]KKMCreateOFDPacket done [18:21:18]NVStorageSaveData kkm_last_timestamp [18:21:18]File name is /storage/kkm_last_timestamp [18:21:18]Write 4 bytes [18:21:18]NVStorageSaveData done [18:21:18]ExternCall_PrintAddStr [18:21:18]wPrintStart [18:21:18]Write to MH i2c: 01 00 00 E7 0E F5 [18:21:18]Write i2c OK [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 07 00 [18:21:18]MH_I2C_Read... [18:21:18]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 FF 0F 0A [18:21:18]RasterBufferAndPrint [18:21:18]line Счет N : (3)51421 [18:21:18]line ИНН: 02508201610067 [18:21:18]line Контрольно-Кассовый Чек [18:21:18]line ПРОДАЖА [18:21:18]line Товар: 4700002082931 [18:21:18]line Водка Хорошая 0,1л [18:21:18]line 1.000 * 70.00 [18:21:18]line = 70.00 [18:21:18]line НДС 12% НСП 1% [18:21:18]line > о реализуемом товаре [18:21:18]line ИТОГО: 70.00 [18:21:18]line НСП 1% : 0.62 [18:21:18]line НДС 12% : 7.43 [18:21:18]line Наличными: 70.00 [18:21:18]line Безнал.: 0.00 [18:21:18]line Место: АЗС № 88 "Партнер Нефть" [18:21:18]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [18:21:18]line СНО: Общий режим [18:21:18]line Чек 68 22.09.2024 18:21 [18:21:18]line Смена: 228 ФФД: 1.0 [18:21:18]line ЗНМ: 0300000061 [18:21:18]line РНМ: 0000000000146243 [18:21:18]line Версия ККМ: v1.0 [18:21:18]line ФМ: 0000000000959358 [18:21:18]line ФД: 22153 [18:21:18]line ФПД: 140994607344219 [18:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T182120&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22153&fm=140994607344219&tin=02508201610067®Number=0000000000146243&sum=7000 [18:21:19]line 0 [18:21:19]OFD Sender: Processing packet 22153 [packets to send 23, broken 22] [18:21:19]ProducePacketName [18:21:19]name=ofd_packets/00022153 [18:21:19]OFD Sender: To server: pG, [18:21:19]CommunicateWithHost lk.salyk.kg:30040 [18:21:19]ConnectInit lk.salyk.kg [18:21:19]written 0, free lines is 4095 [18:21:19]Connected sock=10 [18:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 DB BE 1D 01 FA 7F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 60 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 89 56 00 00 35 04 06 00 80 3B DD 7C 6A 5B 0E 42 CE 32 D1 2E 0E 4D [18:21:19]Write to MH i2c: 01 00 00 0F 0F 1E [18:21:19]Write i2c OK [18:21:19]MH_I2C_Read... [18:21:19]Read from MH i2c: 01 [18:21:19]MH_I2C_Read... [18:21:19]Read from MH i2c: 01 07 00 [18:21:19]MH_I2C_Read... [18:21:19]Read from MH i2c: 01 07 00 0F 0F 00 00 00 00 00 1D 0D 4F [18:21:19]RasterBufferAndPrint [18:21:19]line [18:21:19]line [18:21:19]line [18:21:19]line [18:21:19]line [18:21:19]written 0, free lines is 3363 [18:21:19]MH_Cut [18:21:19]Write to MH i2c: D1 01 00 16 0F 01 F7 [18:21:19]Write i2c OK [18:21:19]MH_I2C_Read... [18:21:19]Read from MH i2c: D1 [18:21:19]MH_I2C_Read... [18:21:19]Read from MH i2c: D1 01 00 [18:21:19]MH_I2C_Read... [18:21:19]Read from MH i2c: D1 01 00 16 0F 00 F6 [18:21:19]Write to MH i2c: 01 00 00 17 0F 26 [18:21:19]Write i2c OK [18:21:19]MH_I2C_Read... [18:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 F6 97 47 00 16 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 89 56 00 00 F4 03 04 00 4A 0A F0 66 B6 04 01 00 00 9F 22 65 05 76 D2 58 46 [18:21:19]CommunicateWithHost err = 0 [18:21:19]CheckOFDResponse [18:21:19]1017 (14) - 77093643461234 [18:21:19]1041 (16) - 0000000000959358 [18:21:19]1040 (4) - 22153 [18:21:19]1012 (4) - 22.09.2024 12:15 [18:21:19]1206 (1) - 0 [18:21:19]OFD Sender: Remove packet 22153 [18:21:19]ProducePacketName [18:21:19]name=ofd_packets/00022153 [18:21:19]NVStorageDeleteData [18:21:20]OFD Sender: No OFD packet to send [18:21:20]*** Cut start [18:21:20]*** Partial cut [18:21:20]*** CUTSNS_PIN = 1 [18:21:20]*** CUTSNS_PIN = 0 [18:21:20]*** Brake cut motor [18:21:20]Read from MH i2c: 01 [18:21:20]MH_I2C_Read... [18:21:20]*** Stop cut motor [18:21:20]*** Cut end [18:21:20]Read from MH i2c: 01 07 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: 01 07 00 17 0F 00 00 00 00 00 FF 0F 3B [18:21:20]process_action close_receipt done [18:21:20]requested_data is exist [18:21:20]produce_requested_data [18:21:20]requested_item fm.sn is exist - process it [18:21:20]wFMCommunicate request_size=4 [18:21:20]MH_SAM_APDU [18:21:20]CAPDU: 80 11 00 00 [18:21:20]Write to MH i2c: E2 08 00 18 0F 80 11 00 00 00 00 00 00 A1 [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 [18:21:20]MH_I2C_Read... [18:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:20]Read from MH i2c: E2 17 00 [18:21:20]MH_I2C_Read... [18:21:20]Read from MH i2c: E2 17 00 18 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 FB [18:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [18:21:20]wFMCommunicate OK [18:21:20]requested_item fd.num is exist - process it [18:21:20]SAM_PROTO_GetFieldsCounters [18:21:20]wFMCommunicate request_size=4 [18:21:20]MH_SAM_APDU [18:21:20]CAPDU: 80 13 00 00 [18:21:20]Write to MH i2c: E2 08 00 19 0F 80 13 00 00 00 00 00 00 A4 [18:21:20]Write i2c OK [18:21:20]MH_I2C_Read... [18:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:21]Read from MH i2c: E2 [18:21:21]MH_I2C_Read... [18:21:21]Read from MH i2c: E2 62 00 [18:21:21]MH_I2C_Read... [18:21:21]Read from MH i2c: E2 62 00 19 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 89 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [18:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 89 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:21]wFMCommunicate OK [18:21:21]SAM_PROTO_GetFieldsCounters done [18:21:21]requested_item shift.num is exist - process it [18:21:21]requested_item shift.opened is exist - process it [18:21:21]req_shift_opened [18:21:21]FM_GetShiftState [18:21:21]SAM_PROTO_GetShiftState [18:21:21]wFMCommunicate request_size=4 [18:21:21]MH_SAM_APDU [18:21:21]CAPDU: 80 13 01 00 [18:21:21]Write to MH i2c: E2 08 00 1A 0F 80 13 01 00 00 00 00 00 A6 [18:21:21]Write i2c OK [18:21:21]MH_I2C_Read... [18:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:21]Read from MH i2c: E2 [18:21:21]MH_I2C_Read... [18:21:21]Read from MH i2c: E2 0E 00 [18:21:21]MH_I2C_Read... [18:21:21]Read from MH i2c: E2 0E 00 1A 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 21 [18:21:21]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [18:21:21]wFMCommunicate OK [18:21:21]SAM_PROTO_GetShiftState done [18:21:21]FM_GetShiftState done [18:21:21]req_shift_opened done [18:21:21]requested_item shift.open_date is exist - process it [18:21:21]req_shift_open_date [18:21:21]req_shift_open_date done [18:21:21]produce_requested_data done [18:21:21]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22153,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [18:21:21]process_action_free close_receipt [18:21:21]json_value_free [18:21:21]json_value_free done [18:21:21]process_json_proto returns [18:21:21]Send response to host [18:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22153,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [18:21:21]free response buf [18:21:21]execute_script done [18:21:21]execute_script returns [18:21:21]free content buf [18:21:21]Sock 7.Close socket [18:21:21]Sock 7.Thread stoped [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:39]accept exits with 9 [18:31:39]New connection [18:31:39]New thread 3067182436 created [18:31:39]Thread 3067039076 joined [18:31:39]Waiting for new connection... [18:31:39] Sock 9.Parse request [18:31:39]Sock 9.Check first char [18:31:39]Sock 9.First char is OK [18:31:39]request: POST /json_proto HTTP/1.0 [18:31:39]Method: POST [18:31:39]URL: /json_proto [18:31:39]Method is POST - this is cgi request [18:31:39]url: /json_proto [18:31:39]query_string will be loaded in cgi processing [18:31:39]execute_cgi json_proto POST (null) [18:31:39]execute_cgi path=json_proto method=POST [18:31:39]POST find Content-Length [18:31:39]Host: 172.17.43.4:8080 [18:31:39]Content-Length: 613 [18:31:39]Content-Type: application/json [18:31:39] [18:31:39]POST finish read [18:31:39]Found Content-Length = 613 [18:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51422", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:39]execute_script... [18:31: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)51422", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:39]POST & json_proto [18:31:39]process_json_proto [18:31:39]json parsed OK: [18:31:39]protocol is kg_v1.0 [18:31:39]action value=close_receipt [18:31:39]process_action close_receipt [18:31:39]cmd_close_receipt [18:31:39]MH_GetDate [18:31:39]Write to MH i2c: F0 00 00 1B 0F 19 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: F0 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: F0 09 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: F0 09 00 1B 0F 00 8E 62 F0 66 02 BF CF 66 5E [18:31:39]GetLastDocTimeStamp 1727029280 [18:31:39]current date 1727029902 [18:31:39]FM_GetShiftState [18:31:39]SAM_PROTO_GetShiftState [18:31:39]wFMCommunicate request_size=4 [18:31:39]MH_SAM_APDU [18:31:39]CAPDU: 80 13 01 00 [18:31:39]Write to MH i2c: E2 08 00 1C 0F 80 13 01 00 00 00 00 00 A8 [18:31:39]Write i2c OK [18:31:39]MH_I2C_Read... [18:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:39]Read from MH i2c: E2 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 0E 00 [18:31:39]MH_I2C_Read... [18:31:39]Read from MH i2c: E2 0E 00 1C 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 23 [18:31:39]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [18:31:39]wFMCommunicate OK [18:31:39]SAM_PROTO_GetShiftState done [18:31:39]FM_GetShiftState done [18:31:39]opened in 1726964408 [18:31:39]opened+sec_in_day 1727050808 [18:31:39]quantity*price = 11000 [18:31:39]sum+1 = 11001 [18:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 69 22.09.2024 18:31 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22154 ФПД: 133116143465175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183142&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22154&fm=133116143465175&tin=02508201610067®Number=0000000000146243&sum=11000 0 [18:31:40]StoreToDocumentArchive [18:31:40]shift 228 fd 22154 [18:31:40]save to /storage/0228/doc_00022154 [18:31:40]save last doc name /storage/0228/doc_00022154 to /storage/kkm_last_doc_name [18:31:40]save OK [18:31:40]Clear old archive folders... [18:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:31:40]tlvbuf is 00211670 [18:31:40]SAM_PROTO_ClearQueue [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 09 00 00 [18:31:40]Write to MH i2c: E2 08 00 29 0F 80 09 00 00 00 00 00 00 AA [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]SAM_PROTO_ClearQueue done [18:31:40]KKMCreateOFDPacket [18:31:40]OFDProtocolAddRootSTLVToBuf [18:31:40]FM_MakeSignedData [18:31:40]FM_MakeSignedData [18:31:40]SAM_PROTO_SignData [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 01 02 [18:31:40]Write to MH i2c: E2 08 00 2A 0F 80 0D 01 02 00 00 00 00 B2 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]wFMCommunicate request_size=255 [18:31:40]MH_SAM_APDU [18:31:40]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8E 62 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 [18:31:40]Write to MH i2c: E2 02 01 2B 0F 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8E 62 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 00 00 95 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]wFMCommunicate request_size=25 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 02 02 14 35 38 10 04 04 00 8A 56 00 00 35 04 06 00 79 11 84 71 F2 D7 [18:31:40]Write to MH i2c: E2 1C 00 2C 0F 80 0D 02 02 14 00 35 38 10 04 04 00 8A 56 00 00 35 04 06 00 79 11 84 71 F2 D7 00 00 C9 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]OFD Sender: No OFD packet to send [18:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [18:31:40]RAPDU: 90 00 [18:31:40]wFMCommunicate OK [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 0D 03 02 [18:31:40]Write to MH i2c: E2 08 00 2D 0F 80 0D 03 02 00 00 00 00 B7 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 0B 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 0B 00 2D 0F 00 A2 88 FB 8A 17 01 38 78 90 00 2F [18:31:40]RAPDU: A2 88 FB 8A 17 01 38 78 90 00 [18:31:40]wFMCommunicate OK [18:31:40]SAM_PROTO_SignData done [18:31:40]FM_MakeSignedData done [18:31:40]CreateOFDProtocolMessage [18:31:40]wFMCommunicate request_size=4 [18:31:40]MH_SAM_APDU [18:31:40]CAPDU: 80 11 00 00 [18:31:40]Write to MH i2c: E2 08 00 2E 0F 80 11 00 00 00 00 00 00 B7 [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:40]Read from MH i2c: E2 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 17 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: E2 17 00 2E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 11 [18:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [18:31:40]wFMCommunicate OK [18:31:40]CreateOFDProtocolMessage done [18:31:40]OFDSenderStorePacket 22154 [18:31:40]StoreOFDPacket docnum=22154 [18:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1E 01 00 00 04 3F 16 01 51 20 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8E 62 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8A 56 00 00 35 04 06 00 79 11 84 71 F2 D7 A2 88 FB 8A 17 01 38 78 [18:31:40]CheckFolder [18:31:40]dirname=/storage/ofd_packets [18:31:40]CheckFolder done [18:31:40]ProducePacketName [18:31:40]name=ofd_packets/00022154 [18:31:40]NVStorageSaveData ofd_packets/00022154 [18:31:40]File name is /storage/ofd_packets/00022154 [18:31:40]Write 316 bytes [18:31:40]NVStorageSaveData done [18:31:40]OFDSenderStorePacket done [18:31:40]KKMCreateOFDPacket done [18:31:40]NVStorageSaveData kkm_last_timestamp [18:31:40]File name is /storage/kkm_last_timestamp [18:31:40]Write 4 bytes [18:31:40]NVStorageSaveData done [18:31:40]ExternCall_PrintAddStr [18:31:40]wPrintStart [18:31:40]Write to MH i2c: 01 00 00 2F 0F 3E [18:31:40]Write i2c OK [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: 01 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: 01 07 00 [18:31:40]MH_I2C_Read... [18:31:40]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [18:31:40]RasterBufferAndPrint [18:31:40]line Счет N : (3)51422 [18:31:40]line ИНН: 02508201610067 [18:31:40]line Контрольно-Кассовый Чек [18:31:40]line ПРОДАЖА [18:31:40]line Товар: 4870001570071 [18:31:40]line Напиток Pepsi 1л [18:31:40]line 1.000 * 110.00 [18:31:40]line = 110.00 [18:31:40]line НДС 12% НСП 1% [18:31:40]line > о реализуемом товаре [18:31:40]line ИТОГО: 110.00 [18:31:40]line НСП 1% : 0.97 [18:31:40]line НДС 12% : 11.68 [18:31:40]line Наличными: 110.00 [18:31:40]line Безнал.: 0.00 [18:31:40]line Место: АЗС № 88 "Партнер Нефть" [18:31:40]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [18:31:40]line СНО: Общий режим [18:31:40]line Чек 69 22.09.2024 18:31 [18:31:40]line Смена: 228 ФФД: 1.0 [18:31:40]line ЗНМ: 0300000061 [18:31:40]line РНМ: 0000000000146243 [18:31:40]line Версия ККМ: v1.0 [18:31:40]line ФМ: 0000000000959358 [18:31:40]line ФД: 22154 [18:31:40]line ФПД: 133116143465175 [18:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T183142&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22154&fm=133116143465175&tin=02508201610067®Number=0000000000146243&sum=11000 [18:31:41]line 0 [18:31:41]OFD Sender: Processing packet 22154 [packets to send 23, broken 22] [18:31:41]ProducePacketName [18:31:41]name=ofd_packets/00022154 [18:31:41]OFD Sender: To server: pG, [18:31:41]CommunicateWithHost lk.salyk.kg:30040 [18:31:41]ConnectInit lk.salyk.kg [18:31:41]written 0, free lines is 4095 [18:31:41]Connected sock=10 [18:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1E 01 00 00 04 3F 16 01 51 20 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8E 62 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8A 56 00 00 35 04 06 00 79 11 84 71 F2 D7 A2 88 FB 8A 17 01 38 78 [18:31:41]Write to MH i2c: 01 00 00 57 0F 66 [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 10 0D 8A [18:31:41]RasterBufferAndPrint [18:31:41]line [18:31:41]line [18:31:41]line [18:31:41]line [18:31:41]line [18:31:41]written 0, free lines is 3350 [18:31:41]MH_Cut [18:31:41]Write to MH i2c: D1 01 00 5E 0F 01 3F [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: D1 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: D1 01 00 [18:31:41]MH_I2C_Read... [18:31:41]Read from MH i2c: D1 01 00 5E 0F 00 3E [18:31:41]Write to MH i2c: 01 00 00 5F 0F 6E [18:31:41]Write i2c OK [18:31:41]MH_I2C_Read... [18:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 6A F1 47 00 69 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8A 56 00 00 F4 03 04 00 B8 0C F0 66 B6 04 01 00 00 EB 62 75 DD 36 42 BE 60 [18:31:41]CommunicateWithHost err = 0 [18:31:41]CheckOFDResponse [18:31:41]1017 (14) - 77093643461234 [18:31:41]1041 (16) - 0000000000959358 [18:31:41]1040 (4) - 22154 [18:31:41]1012 (4) - 22.09.2024 12:25 [18:31:41]1206 (1) - 0 [18:31:41]OFD Sender: Remove packet 22154 [18:31:41]ProducePacketName [18:31:41]name=ofd_packets/00022154 [18:31:41]NVStorageDeleteData [18:31:42]OFD Sender: No OFD packet to send [18:31:42]*** Cut start [18:31:42]*** Partial cut [18:31:42]*** CUTSNS_PIN = 1 [18:31:42]*** CUTSNS_PIN = 0 [18:31:42]*** Brake cut motor [18:31:42]Read from MH i2c: 01 [18:31:42]MH_I2C_Read... [18:31:42]Read from MH i2c: 01 07 00 [18:31:42]MH_I2C_Read... [18:31:42]*** Stop cut motor [18:31:42]*** Cut end [18:31:42]Read from MH i2c: 01 07 00 5F 0F 00 00 00 00 00 FF 0F 83 [18:31:42]process_action close_receipt done [18:31:42]requested_data is exist [18:31:42]produce_requested_data [18:31:42]requested_item fm.sn is exist - process it [18:31:42]wFMCommunicate request_size=4 [18:31:42]MH_SAM_APDU [18:31:42]CAPDU: 80 11 00 00 [18:31:42]Write to MH i2c: E2 08 00 60 0F 80 11 00 00 00 00 00 00 E9 [18:31:42]Write i2c OK [18:31:42]MH_I2C_Read... [18:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:42]Read from MH i2c: E2 [18:31:42]MH_I2C_Read... [18:31:42]Read from MH i2c: E2 17 00 [18:31:42]MH_I2C_Read... [18:31:42]Read from MH i2c: E2 17 00 60 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 43 [18:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [18:31:42]wFMCommunicate OK [18:31:42]requested_item fd.num is exist - process it [18:31:42]SAM_PROTO_GetFieldsCounters [18:31:42]wFMCommunicate request_size=4 [18:31:42]MH_SAM_APDU [18:31:42]CAPDU: 80 13 00 00 [18:31:42]Write to MH i2c: E2 08 00 61 0F 80 13 00 00 00 00 00 00 EC [18:31:42]Write i2c OK [18:31:42]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 62 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 62 00 61 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [18:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:43]wFMCommunicate OK [18:31:43]SAM_PROTO_GetFieldsCounters done [18:31:43]requested_item shift.num is exist - process it [18:31:43]requested_item shift.opened is exist - process it [18:31:43]req_shift_opened [18:31:43]FM_GetShiftState [18:31:43]SAM_PROTO_GetShiftState [18:31:43]wFMCommunicate request_size=4 [18:31:43]MH_SAM_APDU [18:31:43]CAPDU: 80 13 01 00 [18:31:43]Write to MH i2c: E2 08 00 62 0F 80 13 01 00 00 00 00 00 EE [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 62 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 69 [18:31:43]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [18:31:43]wFMCommunicate OK [18:31:43]SAM_PROTO_GetShiftState done [18:31:43]FM_GetShiftState done [18:31:43]req_shift_opened done [18:31:43]requested_item shift.open_date is exist - process it [18:31:43]req_shift_open_date [18:31:43]req_shift_open_date done [18:31:43]produce_requested_data done [18:31:43]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22154,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [18:31:43]process_action_free close_receipt [18:31:43]json_value_free [18:31:43]json_value_free done [18:31:43]process_json_proto returns [18:31:43]Send response to host [18:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22154,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [18:31:43]free response buf [18:31:43]execute_script done [18:31:43]execute_script returns [18:31:43]free content buf [18:31:43]Sock 9.Close socket [18:31:43]Sock 9.Thread stoped [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]accept exits with 7 [19:00:38]New connection [19:00:38]New thread 3067039076 created [19:00:38]Thread 3067182436 joined [19:00:38]Waiting for new connection... [19:00:38] Sock 7.Parse request [19:00:38]Sock 7.Check first char [19:00:38]Sock 7.First char is OK [19:00:38]request: POST /json_proto HTTP/1.0 [19:00:38]Method: POST [19:00:38]URL: /json_proto [19:00:38]Method is POST - this is cgi request [19:00:38]url: /json_proto [19:00:38]query_string will be loaded in cgi processing [19:00:38]execute_cgi json_proto POST (null) [19:00:38]execute_cgi path=json_proto method=POST [19:00:38]POST find Content-Length [19:00:38]Host: 172.17.43.4:8080 [19:00:38]Content-Length: 1001 [19:00:38]Content-Type: application/json [19:00:38] [19:00:38]POST finish read [19:00:38]Found Content-Length = 1001 [19:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51423", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:38]execute_script... [19:00:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51423", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:38]POST & json_proto [19:00:38]process_json_proto [19:00:38]json parsed OK: [19:00:38]protocol is kg_v1.0 [19:00:38]action value=close_receipt [19:00:38]process_action close_receipt [19:00:38]cmd_close_receipt [19:00:38]MH_GetDate [19:00:38]Write to MH i2c: F0 00 00 63 0F 61 [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: F0 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: F0 09 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: F0 09 00 63 0F 00 59 69 F0 66 02 BF CF 66 78 [19:00:38]GetLastDocTimeStamp 1727029902 [19:00:38]current date 1727031641 [19:00:38]FM_GetShiftState [19:00:38]SAM_PROTO_GetShiftState [19:00:38]wFMCommunicate request_size=4 [19:00:38]MH_SAM_APDU [19:00:38]CAPDU: 80 13 01 00 [19:00:38]Write to MH i2c: E2 08 00 64 0F 80 13 01 00 00 00 00 00 F0 [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:38]Read from MH i2c: E2 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 0E 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 0E 00 64 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 6B [19:00:38]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:00:38]wFMCommunicate OK [19:00:38]SAM_PROTO_GetShiftState done [19:00:38]FM_GetShiftState done [19:00:38]opened in 1726964408 [19:00:38]opened+sec_in_day 1727050808 [19:00:38]quantity*price = 9500 [19:00:38]sum+1 = 9501 [19:00:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010070 Чай хол Let`s Go! чер персик ПЭТ 1,25л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 70 22.09.2024 19:00 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22155 ФПД: 123354496933853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190041&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22155&fm=123354496933853&tin=02508201610067®Number=0000000000146243&sum=19000 0 [19:00:39]StoreToDocumentArchive [19:00:39]shift 228 fd 22155 [19:00:39]save to /storage/0228/doc_00022155 [19:00:39]save last doc name /storage/0228/doc_00022155 to /storage/kkm_last_doc_name [19:00:39]save OK [19:00:39]Clear old archive folders... [19:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=428 [19:00:39]tlvbuf is 00261520 [19:00:39]SAM_PROTO_ClearQueue [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 09 00 00 [19:00:39]Write to MH i2c: E2 08 00 71 0F 80 09 00 00 00 00 00 00 F2 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 71 0F 00 90 00 F4 [19:00:39]RAPDU: 90 00 [19:00:39]wFMCommunicate OK [19:00:39]SAM_PROTO_ClearQueue done [19:00:39]KKMCreateOFDPacket [19:00:39]OFDProtocolAddRootSTLVToBuf [19:00:39]FM_MakeSignedData [19:00:39]FM_MakeSignedData [19:00:39]SAM_PROTO_SignData [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 0D 01 02 [19:00:39]Write to MH i2c: E2 08 00 72 0F 80 0D 01 02 00 00 00 00 FA [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [19:00:39]RAPDU: 90 00 [19:00:39]wFMCommunicate OK [19:00:39]wFMCommunicate request_size=255 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 0D 02 02 FA 03 00 AC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 [19:00:39]Write to MH i2c: E2 02 01 73 0F 80 0D 02 02 FA 00 03 00 AC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 47 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 03 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [19:00:40]RAPDU: 90 00 [19:00:40]wFMCommunicate OK [19:00:40]wFMCommunicate request_size=187 [19:00:40]MH_SAM_APDU [19:00:40]CAPDU: 80 0D 02 02 B6 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8B 56 00 00 35 04 06 00 70 30 B4 F8 9F DD [19:00:40]Write to MH i2c: E2 BE 00 74 0F 80 0D 02 02 B6 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8B 56 00 00 35 04 06 00 70 30 B4 F8 9F DD 00 00 E1 [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 03 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [19:00:40]RAPDU: 90 00 [19:00:40]wFMCommunicate OK [19:00:40]wFMCommunicate request_size=4 [19:00:40]MH_SAM_APDU [19:00:40]CAPDU: 80 0D 03 02 [19:00:40]Write to MH i2c: E2 08 00 75 0F 80 0D 03 02 00 00 00 00 FF [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 0B 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 0B 00 75 0F 00 C5 47 D1 92 17 1F 5C CC 90 00 CD [19:00:40]RAPDU: C5 47 D1 92 17 1F 5C CC 90 00 [19:00:40]wFMCommunicate OK [19:00:40]SAM_PROTO_SignData done [19:00:40]FM_MakeSignedData done [19:00:40]CreateOFDProtocolMessage [19:00:40]wFMCommunicate request_size=4 [19:00:40]MH_SAM_APDU [19:00:40]CAPDU: 80 11 00 00 [19:00:40]Write to MH i2c: E2 08 00 76 0F 80 11 00 00 00 00 00 00 FF [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 17 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 17 00 76 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 59 [19:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:00:40]wFMCommunicate OK [19:00:40]CreateOFDProtocolMessage done [19:00:40]OFDSenderStorePacket 22155 [19:00:40]StoreOFDPacket docnum=22155 [19:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 C0 01 00 00 D3 F5 B8 01 6C 13 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8B 56 00 00 35 04 06 00 70 30 B4 F8 9F DD C5 47 D1 92 17 1F 5C CC [19:00:40]CheckFolder [19:00:40]dirname=/storage/ofd_packets [19:00:40]CheckFolder done [19:00:40]ProducePacketName [19:00:40]name=ofd_packets/00022155 [19:00:40]NVStorageSaveData ofd_packets/00022155 [19:00:40]File name is /storage/ofd_packets/00022155 [19:00:40]Write 478 bytes [19:00:40]NVStorageSaveData done [19:00:40]OFDSenderStorePacket done [19:00:40]KKMCreateOFDPacket done [19:00:40]NVStorageSaveData kkm_last_timestamp [19:00:40]File name is /storage/kkm_last_timestamp [19:00:40]Write 4 bytes [19:00:40]NVStorageSaveData done [19:00:40]ExternCall_PrintAddStr [19:00:40]wPrintStart [19:00:40]Write to MH i2c: 01 00 00 77 0F 86 [19:00:40]OFD Sender: Processing packet 22155 [packets to send 23, broken 22] [19:00:40]ProducePacketName [19:00:40]name=ofd_packets/00022155 [19:00:40]OFD Sender: To server: pG, [19:00:40]CommunicateWithHost lk.salyk.kg:30040 [19:00:40]ConnectInit lk.salyk.kg [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: 01 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: 01 07 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 FF 0F 9B [19:00:40]RasterBufferAndPrint [19:00:40]line Счет N : (3)51423 [19:00:40]line ИНН: 02508201610067 [19:00:40]line Контрольно-Кассовый Чек [19:00:40]line ПРОДАЖА [19:00:40]line Товар: 4700000480364 [19:00:40]line Напиток энерг Nitro экзотик 0.45 ж/б [19:00:40]line 1.000 * 95.00 [19:00:40]line = 95.00 [19:00:40]line НДС 12% НСП 1% [19:00:40]line > о реализуемом товаре [19:00:40]line Товар: 4700003010070 [19:00:40]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [19:00:40]line 1.000 * 95.00 [19:00:40]line = 95.00 [19:00:40]line НДС 12% НСП 1% [19:00:40]line > о реализуемом товаре [19:00:40]line ИТОГО: 190.00 [19:00:40]line НСП 1% : 1.68 [19:00:40]line НДС 12% : 20.18 [19:00:40]line Наличными: 190.00 [19:00:40]line Безнал.: 0.00 [19:00:40]line Место: АЗС № 88 "Партнер Нефть" [19:00:40]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:00:40]line СНО: Общий режим [19:00:40]line Чек 70 22.09.2024 19:00 [19:00:40]line Смена: 228 ФФД: 1.0 [19:00:40]line ЗНМ: 0300000061 [19:00:40]line РНМ: 0000000000146243 [19:00:40]line Версия ККМ: v1.0 [19:00:40]line ФМ: 0000000000959358 [19:00:40]line ФД: 22155 [19:00:40]line ФПД: 123354496933853 [19:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190041&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22155&fm=123354496933853&tin=02508201610067®Number=0000000000146243&sum=19000 [19:00:40]line 0 [19:00:40]written 0, free lines is 4095 [19:00:40]Connected sock=10 [19:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 C0 01 00 00 D3 F5 B8 01 6C 13 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 59 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8B 56 00 00 35 04 06 00 70 30 B4 F8 9F DD C5 47 D1 92 17 1F 5C CC [19:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 7F 4B 47 00 EE 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 39 35 39 33 35 38 10 04 04 00 8B 56 00 00 F4 03 04 00 84 13 F0 66 B6 04 01 00 00 E4 1B 11 F2 3B 54 D7 31 [19:00:41]CommunicateWithHost err = 0 [19:00:41]CheckOFDResponse [19:00:41]1017 (14) - 77093643461234 [19:00:41]1041 (16) - 0000000000959358 [19:00:41]1040 (4) - 22155 [19:00:41]1012 (4) - 22.09.2024 12:54 [19:00:41]1206 (1) - 0 [19:00:41]OFD Sender: Remove packet 22155 [19:00:41]ProducePacketName [19:00:41]name=ofd_packets/00022155 [19:00:41]NVStorageDeleteData [19:00:41]Write to MH i2c: 01 00 00 A7 0F B6 [19:00:41]Write i2c OK [19:00:41]MH_I2C_Read... [19:00:41]Read from MH i2c: 01 [19:00:41]MH_I2C_Read... [19:00:41]Read from MH i2c: 01 07 00 [19:00:41]MH_I2C_Read... [19:00:41]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 B8 0C 81 [19:00:41]RasterBufferAndPrint [19:00:41]line [19:00:41]line [19:00:41]line [19:00:41]line [19:00:41]line [19:00:41]written 0, free lines is 3264 [19:00:41]MH_Cut [19:00:41]Write to MH i2c: D1 01 00 AE 0F 01 8F [19:00:41]Write i2c OK [19:00:41]MH_I2C_Read... [19:00:41]Read from MH i2c: D1 [19:00:41]MH_I2C_Read... [19:00:41]Read from MH i2c: D1 01 00 [19:00:41]MH_I2C_Read... [19:00:41]Read from MH i2c: D1 01 00 AE 0F 00 8E [19:00:41]Write to MH i2c: 01 00 00 AF 0F BE [19:00:41]Write i2c OK [19:00:41]MH_I2C_Read... [19:00:41]OFD Sender: No OFD packet to send [19:00:41]*** Cut start [19:00:41]*** Partial cut [19:00:41]*** CUTSNS_PIN = 1 [19:00:41]*** CUTSNS_PIN = 0 [19:00:42]*** Brake cut motor [19:00:42]Read from MH i2c: 01 [19:00:42]MH_I2C_Read... [19:00:42]*** Stop cut motor [19:00:42]*** Cut end [19:00:42]Read from MH i2c: 01 07 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 FF 0F D3 [19:00:42]process_action close_receipt done [19:00:42]requested_data is exist [19:00:42]produce_requested_data [19:00:42]requested_item fm.sn is exist - process it [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 11 00 00 [19:00:42]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 17 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 93 [19:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:00:42]wFMCommunicate OK [19:00:42]requested_item fd.num is exist - process it [19:00:42]SAM_PROTO_GetFieldsCounters [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 13 00 00 [19:00:42]Write to MH i2c: E2 08 00 B1 0F 80 13 00 00 00 00 00 00 3C [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 62 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 62 00 B1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [19:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:42]wFMCommunicate OK [19:00:42]SAM_PROTO_GetFieldsCounters done [19:00:42]requested_item shift.num is exist - process it [19:00:42]requested_item shift.opened is exist - process it [19:00:42]req_shift_opened [19:00:42]FM_GetShiftState [19:00:42]SAM_PROTO_GetShiftState [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 13 01 00 [19:00:42]Write to MH i2c: E2 08 00 B2 0F 80 13 01 00 00 00 00 00 3E [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 0E 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 0E 00 B2 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B9 [19:00:42]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:00:42]wFMCommunicate OK [19:00:42]SAM_PROTO_GetShiftState done [19:00:42]FM_GetShiftState done [19:00:42]req_shift_opened done [19:00:42]requested_item shift.open_date is exist - process it [19:00:42]req_shift_open_date [19:00:42]req_shift_open_date done [19:00:42]produce_requested_data done [19:00:42]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22155,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:00:42]process_action_free close_receipt [19:00:42]json_value_free [19:00:42]json_value_free done [19:00:42]process_json_proto returns [19:00:42]Send response to host [19:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22155,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:00:42]free response buf [19:00:42]execute_script done [19:00:42]execute_script returns [19:00:42]free content buf [19:00:42]Sock 7.Close socket [19:00:42]Sock 7.Thread stoped [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:04]accept exits with 9 [19:02:04]New connection [19:02:04]New thread 3067182436 created [19:02:04]Thread 3067039076 joined [19:02:04]Waiting for new connection... [19:02:04] Sock 9.Parse request [19:02:04]Sock 9.Check first char [19:02:04]Sock 9.First char is OK [19:02:04]request: POST /json_proto HTTP/1.0 [19:02:04]Method: POST [19:02:04]URL: /json_proto [19:02:04]Method is POST - this is cgi request [19:02:04]url: /json_proto [19:02:04]query_string will be loaded in cgi processing [19:02:04]execute_cgi json_proto POST (null) [19:02:04]execute_cgi path=json_proto method=POST [19:02:04]POST find Content-Length [19:02:04]Host: 172.17.43.4:8080 [19:02:04]Content-Length: 781 [19:02:04]Content-Type: application/json [19:02:04] [19:02:04]POST finish read [19:02:04]Found Content-Length = 781 [19:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51424", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:04]execute_script... [19:02:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51424", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:04]POST & json_proto [19:02:04]process_json_proto [19:02:04]json parsed OK: [19:02:04]protocol is kg_v1.0 [19:02:04]action value=close_receipt [19:02:04]process_action close_receipt [19:02:04]cmd_close_receipt [19:02:04]MH_GetDate [19:02:04]Write to MH i2c: F0 00 00 B3 0F B1 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 09 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: F0 09 00 B3 0F 00 AF 69 F0 66 02 BF CF 66 1E [19:02:04]GetLastDocTimeStamp 1727031641 [19:02:04]current date 1727031727 [19:02:04]FM_GetShiftState [19:02:04]SAM_PROTO_GetShiftState [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 13 01 00 [19:02:04]Write to MH i2c: E2 08 00 B4 0F 80 13 01 00 00 00 00 00 40 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0E 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0E 00 B4 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 BB [19:02:04]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:02:04]wFMCommunicate OK [19:02:04]SAM_PROTO_GetShiftState done [19:02:04]FM_GetShiftState done [19:02:04]opened in 1726964408 [19:02:04]opened+sec_in_day 1727050808 [19:02:04]quantity*price = 0 [19:02:04]sum+1 = 1 [19:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 71 22.09.2024 19:02 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22156 ФПД: 4770122945687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190207&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22156&fm=4770122945687&tin=02508201610067®Number=0000000000146243&sum=0 0 [19:02:05]StoreToDocumentArchive [19:02:05]shift 228 fd 22156 [19:02:05]save to /storage/0228/doc_00022156 [19:02:05]save last doc name /storage/0228/doc_00022156 to /storage/kkm_last_doc_name [19:02:05]save OK [19:02:05]Clear old archive folders... [19:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=281 [19:02:05]tlvbuf is B6F8D760 [19:02:05]SAM_PROTO_ClearQueue [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 09 00 00 [19:02:05]Write to MH i2c: E2 08 00 C1 0F 80 09 00 00 00 00 00 00 42 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]SAM_PROTO_ClearQueue done [19:02:05]KKMCreateOFDPacket [19:02:05]OFDProtocolAddRootSTLVToBuf [19:02:05]FM_MakeSignedData [19:02:05]FM_MakeSignedData [19:02:05]SAM_PROTO_SignData [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 01 02 [19:02:05]Write to MH i2c: E2 08 00 C2 0F 80 0D 01 02 00 00 00 00 4A [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 C2 0F 00 90 00 45 [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=255 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AF 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 [19:02:05]Write to MH i2c: E2 02 01 C3 0F 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AF 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 00 15 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 C3 0F 00 90 00 46 [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=40 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8C 56 00 00 35 04 06 00 04 56 A1 7B D4 97 [19:02:05]Write to MH i2c: E2 2B 00 C4 0F 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8C 56 00 00 35 04 06 00 04 56 A1 7B D4 97 00 00 D4 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 03 00 C4 0F 00 90 00 47 [19:02:05]RAPDU: 90 00 [19:02:05]wFMCommunicate OK [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 0D 03 02 [19:02:05]Write to MH i2c: E2 08 00 C5 0F 80 0D 03 02 00 00 00 00 4F [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 0B 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 0B 00 C5 0F 00 AC 16 37 5B 0D 5D D6 99 90 00 7D [19:02:05]RAPDU: AC 16 37 5B 0D 5D D6 99 90 00 [19:02:05]wFMCommunicate OK [19:02:05]SAM_PROTO_SignData done [19:02:05]FM_MakeSignedData done [19:02:05]CreateOFDProtocolMessage [19:02:05]wFMCommunicate request_size=4 [19:02:05]MH_SAM_APDU [19:02:05]CAPDU: 80 11 00 00 [19:02:05]Write to MH i2c: E2 08 00 C6 0F 80 11 00 00 00 00 00 00 4F [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:05]Read from MH i2c: E2 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 17 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: E2 17 00 C6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A9 [19:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:02:05]wFMCommunicate OK [19:02:05]CreateOFDProtocolMessage done [19:02:05]OFDSenderStorePacket 22156 [19:02:05]StoreOFDPacket docnum=22156 [19:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2D 01 00 00 E7 DA 25 01 78 EE 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AF 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8C 56 00 00 35 04 06 00 04 56 A1 7B D4 97 AC 16 37 5B 0D 5D D6 99 [19:02:05]CheckFolder [19:02:05]dirname=/storage/ofd_packets [19:02:05]CheckFolder done [19:02:05]ProducePacketName [19:02:05]name=ofd_packets/00022156 [19:02:05]NVStorageSaveData ofd_packets/00022156 [19:02:05]File name is /storage/ofd_packets/00022156 [19:02:05]Write 331 bytes [19:02:05]NVStorageSaveData done [19:02:05]OFDSenderStorePacket done [19:02:05]KKMCreateOFDPacket done [19:02:05]NVStorageSaveData kkm_last_timestamp [19:02:05]File name is /storage/kkm_last_timestamp [19:02:05]Write 4 bytes [19:02:05]NVStorageSaveData done [19:02:05]ExternCall_PrintAddStr [19:02:05]wPrintStart [19:02:05]Write to MH i2c: 01 00 00 C7 0F D6 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [19:02:05]RasterBufferAndPrint [19:02:05]line Счет N : (3)51424 [19:02:05]line ИНН: 02508201610067 [19:02:05]line Контрольно-Кассовый Чек [19:02:05]line ПРОДАЖА [19:02:05]line Товар: 5449000000996 [19:02:05]line Напиток Кока-Кола 0,33л [19:02:05]line 1.000 * 0.00 [19:02:05]line = 0.00 [19:02:05]line НДС 12% НСП 1% [19:02:05]line > о реализуемом товаре [19:02:05]line ИТОГО: 0.00 [19:02:05]line НСП 1% : 0.00 [19:02:05]line НДС 12% : 0.00 [19:02:05]line Наличными: 0.00 [19:02:05]line Безнал.: 0.00 [19:02:05]line Место: АЗС № 88 "Партнер Нефть" [19:02:05]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:02:05]line СНО: Общий режим [19:02:05]line Чек 71 22.09.2024 19:02 [19:02:05]line Смена: 228 ФФД: 1.0 [19:02:05]line ЗНМ: 0300000061 [19:02:05]line РНМ: 0000000000146243 [19:02:05]line Версия ККМ: v1.0 [19:02:05]line Платежная система: Mbank [19:02:05]line ФМ: 0000000000959358 [19:02:05]line ФД: 22156 [19:02:05]line ФПД: 4770122945687 [19:02:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190207&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22156&fm=4770122945687&tin=02508201610067®Number=0000000000146243&sum=0 [19:02:06]line 0 [19:02:06]OFD Sender: Processing packet 22156 [packets to send 23, broken 22] [19:02:06]ProducePacketName [19:02:06]name=ofd_packets/00022156 [19:02:06]OFD Sender: To server: pG, [19:02:06]CommunicateWithHost lk.salyk.kg:30040 [19:02:06]ConnectInit lk.salyk.kg [19:02:06]written 0, free lines is 4095 [19:02:06]Connected sock=10 [19:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2D 01 00 00 E7 DA 25 01 78 EE 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 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 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AF 69 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8C 56 00 00 35 04 06 00 04 56 A1 7B D4 97 AC 16 37 5B 0D 5D D6 99 [19:02:06]Write to MH i2c: 01 00 00 F0 0F FF [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 F0 0F 00 00 00 00 00 1A 0D 2D [19:02:06]RasterBufferAndPrint [19:02:06]line [19:02:06]line [19:02:06]line [19:02:06]line [19:02:06]line [19:02:06]written 0, free lines is 3360 [19:02:06]MH_Cut [19:02:06]Write to MH i2c: D1 01 00 F7 0F 01 D8 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: D1 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: D1 01 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: D1 01 00 F7 0F 00 D7 [19:02:06]Write to MH i2c: 01 00 00 F8 0F 07 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 3B 93 47 00 96 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 39 35 39 33 35 38 10 04 04 00 8C 56 00 00 F4 03 04 00 D9 13 F0 66 B6 04 01 00 00 31 DF 29 EE E1 58 66 D7 [19:02:06]CommunicateWithHost err = 0 [19:02:06]CheckOFDResponse [19:02:06]1017 (14) - 77093643461234 [19:02:06]1041 (16) - 0000000000959358 [19:02:06]1040 (4) - 22156 [19:02:06]1012 (4) - 22.09.2024 12:55 [19:02:06]1206 (1) - 0 [19:02:06]OFD Sender: Remove packet 22156 [19:02:06]ProducePacketName [19:02:06]name=ofd_packets/00022156 [19:02:06]NVStorageDeleteData [19:02:07]OFD Sender: No OFD packet to send [19:02:07]*** Cut start [19:02:07]*** Partial cut [19:02:07]*** CUTSNS_PIN = 1 [19:02:07]*** CUTSNS_PIN = 0 [19:02:07]*** Brake cut motor [19:02:07]Read from MH i2c: 01 [19:02:07]MH_I2C_Read... [19:02:07]*** Stop cut motor [19:02:07]*** Cut end [19:02:07]Read from MH i2c: 01 07 00 [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: 01 07 00 F8 0F 00 00 00 00 00 FF 0F 1C [19:02:07]process_action close_receipt done [19:02:07]requested_data is exist [19:02:07]produce_requested_data [19:02:07]requested_item fm.sn is exist - process it [19:02:07]wFMCommunicate request_size=4 [19:02:07]MH_SAM_APDU [19:02:07]CAPDU: 80 11 00 00 [19:02:07]Write to MH i2c: E2 08 00 F9 0F 80 11 00 00 00 00 00 00 82 [19:02:07]Write i2c OK [19:02:07]MH_I2C_Read... [19:02:07]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:08]Read from MH i2c: E2 17 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 17 00 F9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 DC [19:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:02:08]wFMCommunicate OK [19:02:08]requested_item fd.num is exist - process it [19:02:08]SAM_PROTO_GetFieldsCounters [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 00 00 [19:02:08]Write to MH i2c: E2 08 00 FA 0F 80 13 00 00 00 00 00 00 85 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 62 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 62 00 FA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:02:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:08]wFMCommunicate OK [19:02:08]SAM_PROTO_GetFieldsCounters done [19:02:08]requested_item shift.num is exist - process it [19:02:08]requested_item shift.opened is exist - process it [19:02:08]req_shift_opened [19:02:08]FM_GetShiftState [19:02:08]SAM_PROTO_GetShiftState [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 01 00 [19:02:08]Write to MH i2c: E2 08 00 FB 0F 80 13 01 00 00 00 00 00 87 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 0E 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 0E 00 FB 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 02 [19:02:08]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:02:08]wFMCommunicate OK [19:02:08]SAM_PROTO_GetShiftState done [19:02:08]FM_GetShiftState done [19:02:08]req_shift_opened done [19:02:08]requested_item shift.open_date is exist - process it [19:02:08]req_shift_open_date [19:02:08]req_shift_open_date done [19:02:08]produce_requested_data done [19:02:08]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22156,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:02:08]process_action_free close_receipt [19:02:08]json_value_free [19:02:08]json_value_free done [19:02:08]process_json_proto returns [19:02:08]Send response to host [19:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22156,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:02:08]free response buf [19:02:08]execute_script done [19:02:08]execute_script returns [19:02:08]free content buf [19:02:08]Sock 9.Close socket [19:02:08]Sock 9.Thread stoped [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:28]accept exits with 7 [19:04:28]New connection [19:04:28]New thread 3067039076 created [19:04:28]Thread 3067182436 joined [19:04:28]Waiting for new connection... [19:04:28] Sock 7.Parse request [19:04:28]Sock 7.Check first char [19:04:28]Sock 7.First char is OK [19:04:28]request: POST /json_proto HTTP/1.0 [19:04:28]Method: POST [19:04:28]URL: /json_proto [19:04:28]Method is POST - this is cgi request [19:04:28]url: /json_proto [19:04:28]query_string will be loaded in cgi processing [19:04:28]execute_cgi json_proto POST (null) [19:04:28]execute_cgi path=json_proto method=POST [19:04:28]POST find Content-Length [19:04:28]Host: 172.17.43.4:8080 [19:04:28]Content-Length: 803 [19:04:28]Content-Type: application/json [19:04:28] [19:04:28]POST finish read [19:04:28]Found Content-Length = 803 [19:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51425", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:28]execute_script... [19:04: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)51425", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:28]POST & json_proto [19:04:28]process_json_proto [19:04:28]json parsed OK: [19:04:28]protocol is kg_v1.0 [19:04:28]action value=close_receipt [19:04:28]process_action close_receipt [19:04:28]cmd_close_receipt [19:04:28]MH_GetDate [19:04:28]Write to MH i2c: F0 00 00 FC 0F FA [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: F0 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: F0 09 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: F0 09 00 FC 0F 00 3F 6A F0 66 02 BF CF 66 F8 [19:04:28]GetLastDocTimeStamp 1727031727 [19:04:28]current date 1727031871 [19:04:28]FM_GetShiftState [19:04:28]SAM_PROTO_GetShiftState [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 13 01 00 [19:04:28]Write to MH i2c: E2 08 00 FD 0F 80 13 01 00 00 00 00 00 89 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0E 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0E 00 FD 0F 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 04 [19:04:28]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_GetShiftState done [19:04:28]FM_GetShiftState done [19:04:28]opened in 1726964408 [19:04:28]opened+sec_in_day 1727050808 [19:04:28]quantity*price = 0 [19:04:28]sum+1 = 1 [19:04:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 72 22.09.2024 19:04 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22157 ФПД: 77823391126486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190431&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22157&fm=77823391126486&tin=02508201610067®Number=0000000000146243&sum=0 0 [19:04:29]StoreToDocumentArchive [19:04:29]shift 228 fd 22157 [19:04:29]save to /storage/0228/doc_00022157 [19:04:29]save last doc name /storage/0228/doc_00022157 to /storage/kkm_last_doc_name [19:04:29]save OK [19:04:29]Clear old archive folders... [19:04:29]ProcessDocumentItem done err = 0, tmpTLVsize=291 [19:04:29]tlvbuf is 002116D0 [19:04:29]SAM_PROTO_ClearQueue [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 09 00 00 [19:04:29]Write to MH i2c: E2 08 00 0A 10 80 09 00 00 00 00 00 00 8C [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_ClearQueue done [19:04:29]KKMCreateOFDPacket [19:04:29]OFDProtocolAddRootSTLVToBuf [19:04:29]FM_MakeSignedData [19:04:29]FM_MakeSignedData [19:04:29]SAM_PROTO_SignData [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 01 02 [19:04:29]Write to MH i2c: E2 08 00 0B 10 80 0D 01 02 00 00 00 00 94 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 0B 10 00 90 00 8F [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=255 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3F 6A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [19:04:29]Write to MH i2c: E2 02 01 0C 10 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3F 6A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B5 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=50 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 02 02 2D 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8D 56 00 00 35 04 06 00 46 C7 AB 95 53 D6 [19:04:29]Write to MH i2c: E2 35 00 0D 10 80 0D 02 02 2D 00 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8D 56 00 00 35 04 06 00 46 C7 AB 95 53 D6 00 00 51 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 03 00 0D 10 00 90 00 91 [19:04:29]RAPDU: 90 00 [19:04:29]wFMCommunicate OK [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 0D 03 02 [19:04:29]Write to MH i2c: E2 08 00 0E 10 80 0D 03 02 00 00 00 00 99 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0B 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0B 00 0E 10 00 63 6F 19 47 0E A8 A9 AC 90 00 D7 [19:04:29]RAPDU: 63 6F 19 47 0E A8 A9 AC 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_SignData done [19:04:29]FM_MakeSignedData done [19:04:29]CreateOFDProtocolMessage [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 11 00 00 [19:04:29]Write to MH i2c: E2 08 00 0F 10 80 11 00 00 00 00 00 00 99 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:30]Read from MH i2c: E2 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 17 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 17 00 0F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 F3 [19:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:04:30]wFMCommunicate OK [19:04:30]CreateOFDProtocolMessage done [19:04:30]OFDSenderStorePacket 22157 [19:04:30]StoreOFDPacket docnum=22157 [19:04:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 37 01 00 00 35 44 2F 01 32 10 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3F 6A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8D 56 00 00 35 04 06 00 46 C7 AB 95 53 D6 63 6F 19 47 0E A8 A9 AC [19:04:30]CheckFolder [19:04:30]dirname=/storage/ofd_packets [19:04:30]CheckFolder done [19:04:30]ProducePacketName [19:04:30]name=ofd_packets/00022157 [19:04:30]NVStorageSaveData ofd_packets/00022157 [19:04:30]File name is /storage/ofd_packets/00022157 [19:04:30]Write 341 bytes [19:04:30]NVStorageSaveData done [19:04:30]OFDSenderStorePacket done [19:04:30]KKMCreateOFDPacket done [19:04:30]NVStorageSaveData kkm_last_timestamp [19:04:30]File name is /storage/kkm_last_timestamp [19:04:30]Write 4 bytes [19:04:30]NVStorageSaveData done [19:04:30]ExternCall_PrintAddStr [19:04:30]wPrintStart [19:04:30]Write to MH i2c: 01 00 00 10 10 20 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 10 10 00 00 00 00 00 FF 0F 35 [19:04:30]RasterBufferAndPrint [19:04:30]line Счет N : (3)51425 [19:04:30]line ИНН: 02508201610067 [19:04:30]line Контрольно-Кассовый Чек [19:04:30]line ПРОДАЖА [19:04:30]line Товар: 4870202522015 [19:04:30]line Напиток Maxi Чай Грушевый 1,2л [19:04:30]line 1.000 * 0.00 [19:04:30]line = 0.00 [19:04:30]line НДС 12% НСП 1% [19:04:30]line > о реализуемом товаре [19:04:30]line ИТОГО: 0.00 [19:04:30]line НСП 1% : 0.00 [19:04:30]line НДС 12% : 0.00 [19:04:30]line Наличными: 0.00 [19:04:30]line Безнал.: 0.00 [19:04:30]line Место: АЗС № 88 "Партнер Нефть" [19:04:30]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:04:30]line СНО: Общий режим [19:04:30]line Чек 72 22.09.2024 19:04 [19:04:30]line Смена: 228 ФФД: 1.0 [19:04:30]line ЗНМ: 0300000061 [19:04:30]line РНМ: 0000000000146243 [19:04:30]line Версия ККМ: v1.0 [19:04:30]line Платежная система: Mbank [19:04:30]line ФМ: 0000000000959358 [19:04:30]line ФД: 22157 [19:04:30]line ФПД: 77823391126486 [19:04:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T190431&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22157&fm=77823391126486&tin=02508201610067®Number=0000000000146243&sum=0 [19:04:30]line 0 [19:04:30]OFD Sender: Processing packet 22157 [packets to send 23, broken 22] [19:04:30]ProducePacketName [19:04:30]name=ofd_packets/00022157 [19:04:30]OFD Sender: To server: pG, [19:04:30]CommunicateWithHost lk.salyk.kg:30040 [19:04:30]ConnectInit lk.salyk.kg [19:04:30]written 0, free lines is 4095 [19:04:30]Connected sock=10 [19:04:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 37 01 00 00 35 44 2F 01 32 10 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 3F 6A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8D 56 00 00 35 04 06 00 46 C7 AB 95 53 D6 63 6F 19 47 0E A8 A9 AC [19:04:30]Write to MH i2c: 01 00 00 3A 10 4A [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 02 0D 60 [19:04:30]RasterBufferAndPrint [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]line [19:04:30]written 0, free lines is 3336 [19:04:30]MH_Cut [19:04:30]Write to MH i2c: D1 01 00 41 10 01 23 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 01 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: D1 01 00 41 10 00 22 [19:04:30]Write to MH i2c: 01 00 00 42 10 52 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 38 EB 47 00 B9 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8D 56 00 00 F4 03 04 00 69 14 F0 66 B6 04 01 00 00 DF 6A 51 4D E4 14 7F EA [19:04:30]CommunicateWithHost err = 0 [19:04:30]CheckOFDResponse [19:04:30]1017 (14) - 77093643461234 [19:04:30]1041 (16) - 0000000000959358 [19:04:30]1040 (4) - 22157 [19:04:30]1012 (4) - 22.09.2024 12:58 [19:04:30]1206 (1) - 0 [19:04:30]OFD Sender: Remove packet 22157 [19:04:30]ProducePacketName [19:04:30]name=ofd_packets/00022157 [19:04:30]NVStorageDeleteData [19:04:31]OFD Sender: No OFD packet to send [19:04:31]*** Cut start [19:04:31]*** Partial cut [19:04:31]*** CUTSNS_PIN = 1 [19:04:31]*** CUTSNS_PIN = 0 [19:04:31]*** Brake cut motor [19:04:32]Read from MH i2c: 01 [19:04:32]MH_I2C_Read... [19:04:32]*** Stop cut motor [19:04:32]*** Cut end [19:04:32]Read from MH i2c: 01 07 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: 01 07 00 42 10 00 00 00 00 00 FF 0F 67 [19:04:32]process_action close_receipt done [19:04:32]requested_data is exist [19:04:32]produce_requested_data [19:04:32]requested_item fm.sn is exist - process it [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 11 00 00 [19:04:32]Write to MH i2c: E2 08 00 43 10 80 11 00 00 00 00 00 00 CD [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 17 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 17 00 43 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 27 [19:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:04:32]wFMCommunicate OK [19:04:32]requested_item fd.num is exist - process it [19:04:32]SAM_PROTO_GetFieldsCounters [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 13 00 00 [19:04:32]Write to MH i2c: E2 08 00 44 10 80 13 00 00 00 00 00 00 D0 [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 62 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 62 00 44 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [19:04:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:32]wFMCommunicate OK [19:04:32]SAM_PROTO_GetFieldsCounters done [19:04:32]requested_item shift.num is exist - process it [19:04:32]requested_item shift.opened is exist - process it [19:04:32]req_shift_opened [19:04:32]FM_GetShiftState [19:04:32]SAM_PROTO_GetShiftState [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 13 01 00 [19:04:32]Write to MH i2c: E2 08 00 45 10 80 13 01 00 00 00 00 00 D2 [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 0E 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 0E 00 45 10 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 4D [19:04:32]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:04:32]wFMCommunicate OK [19:04:32]SAM_PROTO_GetShiftState done [19:04:32]FM_GetShiftState done [19:04:32]req_shift_opened done [19:04:32]requested_item shift.open_date is exist - process it [19:04:32]req_shift_open_date [19:04:32]req_shift_open_date done [19:04:32]produce_requested_data done [19:04:32]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22157,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:04:32]process_action_free close_receipt [19:04:32]json_value_free [19:04:32]json_value_free done [19:04:32]process_json_proto returns [19:04:32]Send response to host [19:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22157,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:04:32]free response buf [19:04:32]execute_script done [19:04:32]execute_script returns [19:04:32]free content buf [19:04:32]Sock 7.Close socket [19:04:32]Sock 7.Thread stoped [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:38]accept exits with 9 [19:18:38]New connection [19:18:38]New thread 3067182436 created [19:18:38]Thread 3067039076 joined [19:18:38]Waiting for new connection... [19:18:38] Sock 9.Parse request [19:18:38]Sock 9.Check first char [19:18:38]Sock 9.First char is OK [19:18:38]request: POST /json_proto HTTP/1.0 [19:18:38]Method: POST [19:18:38]URL: /json_proto [19:18:38]Method is POST - this is cgi request [19:18:38]url: /json_proto [19:18:38]query_string will be loaded in cgi processing [19:18:38]execute_cgi json_proto POST (null) [19:18:38]execute_cgi path=json_proto method=POST [19:18:38]POST find Content-Length [19:18:38]Host: 172.17.43.4:8080 [19:18:38]Content-Length: 903 [19:18:38]Content-Type: application/json [19:18:38] [19:18:38]POST finish read [19:18:38]Found Content-Length = 903 [19:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51426", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:38]execute_script... [19:18: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)51426", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:38]POST & json_proto [19:18:38]process_json_proto [19:18:38]json parsed OK: [19:18:38]protocol is kg_v1.0 [19:18:38]action value=close_receipt [19:18:38]process_action close_receipt [19:18:38]cmd_close_receipt [19:18:38]MH_GetDate [19:18:38]Write to MH i2c: F0 00 00 46 10 45 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: F0 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: F0 09 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: F0 09 00 46 10 00 91 6D F0 66 02 BF CF 66 98 [19:18:38]GetLastDocTimeStamp 1727031871 [19:18:38]current date 1727032721 [19:18:38]FM_GetShiftState [19:18:38]SAM_PROTO_GetShiftState [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 13 01 00 [19:18:38]Write to MH i2c: E2 08 00 47 10 80 13 01 00 00 00 00 00 D4 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 0E 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 0E 00 47 10 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 4F [19:18:38]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:18:38]wFMCommunicate OK [19:18:38]SAM_PROTO_GetShiftState done [19:18:38]FM_GetShiftState done [19:18:38]opened in 1726964408 [19:18:38]opened+sec_in_day 1727050808 [19:18:38]quantity*price = 1000 [19:18:38]sum+1 = 1001 [19:18:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 73 22.09.2024 19:18 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22158 ФПД: 233732092274931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T191841&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22158&fm=233732092274931&tin=02508201610067®Number=0000000000146243&sum=17500 0 [19:18:39]StoreToDocumentArchive [19:18:39]shift 228 fd 22158 [19:18:39]save to /storage/0228/doc_00022158 [19:18:39]save last doc name /storage/0228/doc_00022158 to /storage/kkm_last_doc_name [19:18:39]save OK [19:18:39]Clear old archive folders... [19:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=384 [19:18:39]tlvbuf is 0028EB30 [19:18:39]SAM_PROTO_ClearQueue [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 09 00 00 [19:18:39]Write to MH i2c: E2 08 00 54 10 80 09 00 00 00 00 00 00 D6 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]SAM_PROTO_ClearQueue done [19:18:39]KKMCreateOFDPacket [19:18:39]OFDProtocolAddRootSTLVToBuf [19:18:39]FM_MakeSignedData [19:18:39]FM_MakeSignedData [19:18:39]SAM_PROTO_SignData [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 0D 01 02 [19:18:39]Write to MH i2c: E2 08 00 55 10 80 0D 01 02 00 00 00 00 DE [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 55 10 00 90 00 D9 [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]wFMCommunicate request_size=255 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 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 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [19:18:39]Write to MH i2c: E2 02 01 56 10 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 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 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 31 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 56 10 00 90 00 DA [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]wFMCommunicate request_size=143 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 0D 02 02 8A 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 91 6D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8E 56 00 00 35 04 06 00 D4 93 FE 55 28 F3 [19:18:39]Write to MH i2c: E2 92 00 57 10 80 0D 02 02 8A 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 91 6D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8E 56 00 00 35 04 06 00 D4 93 FE 55 28 F3 00 00 E2 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [19:18:40]RAPDU: 90 00 [19:18:40]wFMCommunicate OK [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 0D 03 02 [19:18:40]Write to MH i2c: E2 08 00 58 10 80 0D 03 02 00 00 00 00 E3 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 0B 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 0B 00 58 10 00 29 CF 02 CF 95 24 F4 B1 90 00 0B [19:18:40]RAPDU: 29 CF 02 CF 95 24 F4 B1 90 00 [19:18:40]wFMCommunicate OK [19:18:40]SAM_PROTO_SignData done [19:18:40]FM_MakeSignedData done [19:18:40]CreateOFDProtocolMessage [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 11 00 00 [19:18:40]Write to MH i2c: E2 08 00 59 10 80 11 00 00 00 00 00 00 E3 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 17 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 17 00 59 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 3D [19:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:18:40]wFMCommunicate OK [19:18:40]CreateOFDProtocolMessage done [19:18:40]OFDSenderStorePacket 22158 [19:18:40]StoreOFDPacket docnum=22158 [19:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 94 01 00 00 14 59 8C 01 F9 F4 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 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 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 91 6D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8E 56 00 00 35 04 06 00 D4 93 FE 55 28 F3 29 CF 02 CF 95 24 F4 B1 [19:18:40]CheckFolder [19:18:40]dirname=/storage/ofd_packets [19:18:40]CheckFolder done [19:18:40]ProducePacketName [19:18:40]name=ofd_packets/00022158 [19:18:40]NVStorageSaveData ofd_packets/00022158 [19:18:40]File name is /storage/ofd_packets/00022158 [19:18:40]Write 434 bytes [19:18:40]NVStorageSaveData done [19:18:40]OFDSenderStorePacket done [19:18:40]KKMCreateOFDPacket done [19:18:40]NVStorageSaveData kkm_last_timestamp [19:18:40]File name is /storage/kkm_last_timestamp [19:18:40]Write 4 bytes [19:18:40]NVStorageSaveData done [19:18:40]ExternCall_PrintAddStr [19:18:40]wPrintStart [19:18:40]Write to MH i2c: 01 00 00 5A 10 6A [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 5A 10 00 00 00 00 00 FF 0F 7F [19:18:40]RasterBufferAndPrint [19:18:40]line Счет N : (3)51426 [19:18:40]line ИНН: 02508201610067 [19:18:40]line Контрольно-Кассовый Чек [19:18:40]line ПРОДАЖА [19:18:40]line Товар: 46231512 [19:18:40]line Mentos ПФ Виноград 6*100*2г [19:18:40]line 1.000 * 10.00 [19:18:40]line = 10.00 [19:18:40]line НДС 12% НСП 1% [19:18:40]line > о реализуемом товаре [19:18:40]line Товар: 4860019001414 [19:18:40]line Вода Боржоми 0,75л ПЭТ [19:18:40]line 1.000 * 165.00 [19:18:40]line = 165.00 [19:18:40]line НДС 12% НСП 1% [19:18:40]line > о реализуемом товаре [19:18:40]line ИТОГО: 175.00 [19:18:40]line НСП 1% : 1.55 [19:18:40]line НДС 12% : 18.58 [19:18:40]line Наличными: 175.00 [19:18:40]line Безнал.: 0.00 [19:18:40]line Место: АЗС № 88 "Партнер Нефть" [19:18:40]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:18:40]line СНО: Общий режим [19:18:40]line Чек 73 22.09.2024 19:18 [19:18:40]line Смена: 228 ФФД: 1.0 [19:18:40]line ЗНМ: 0300000061 [19:18:40]line РНМ: 0000000000146243 [19:18:40]line Версия ККМ: v1.0 [19:18:40]line ФМ: 0000000000959358 [19:18:40]line ФД: 22158 [19:18:40]line ФПД: 233732092274931 [19:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T191841&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22158&fm=233732092274931&tin=02508201610067®Number=0000000000146243&sum=17500 [19:18:40]line 0 [19:18:40]OFD Sender: Processing packet 22158 [packets to send 23, broken 22] [19:18:40]ProducePacketName [19:18:40]name=ofd_packets/00022158 [19:18:40]OFD Sender: To server: pG, [19:18:40]CommunicateWithHost lk.salyk.kg:30040 [19:18:40]ConnectInit lk.salyk.kg [19:18:40]written 0, free lines is 4095 [19:18:40]Connected sock=10 [19:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 94 01 00 00 14 59 8C 01 F9 F4 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 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 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 91 6D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8E 56 00 00 35 04 06 00 D4 93 FE 55 28 F3 29 CF 02 CF 95 24 F4 B1 [19:18:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 11 02 47 00 92 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 39 35 39 33 35 38 10 04 04 00 8E 56 00 00 F4 03 04 00 BC 17 F0 66 B6 04 01 00 00 D9 35 57 00 9B EE 89 99 [19:18:41]CommunicateWithHost err = 0 [19:18:41]CheckOFDResponse [19:18:41]1017 (14) - 77093643461234 [19:18:41]1041 (16) - 0000000000959358 [19:18:41]1040 (4) - 22158 [19:18:41]1012 (4) - 22.09.2024 13:12 [19:18:41]1206 (1) - 0 [19:18:41]OFD Sender: Remove packet 22158 [19:18:41]ProducePacketName [19:18:41]name=ofd_packets/00022158 [19:18:41]NVStorageDeleteData [19:18:41]Write to MH i2c: 01 00 00 88 10 98 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: 01 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: 01 07 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 E5 0C 90 [19:18:41]RasterBufferAndPrint [19:18:41]line [19:18:41]line [19:18:41]line [19:18:41]line [19:18:41]line [19:18:41]written 0, free lines is 3307 [19:18:41]MH_Cut [19:18:41]Write to MH i2c: D1 01 00 8F 10 01 71 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: D1 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: D1 01 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: D1 01 00 8F 10 00 70 [19:18:41]Write to MH i2c: 01 00 00 90 10 A0 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]OFD Sender: No OFD packet to send [19:18:41]*** Cut start [19:18:41]*** Partial cut [19:18:41]*** CUTSNS_PIN = 1 [19:18:41]*** CUTSNS_PIN = 0 [19:18:42]*** Brake cut motor [19:18:42]Read from MH i2c: 01 [19:18:42]MH_I2C_Read... [19:18:42]*** Stop cut motor [19:18:42]*** Cut end [19:18:42]Read from MH i2c: 01 07 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: 01 07 00 90 10 00 00 00 00 00 FF 0F B5 [19:18:42]process_action close_receipt done [19:18:42]requested_data is exist [19:18:42]produce_requested_data [19:18:42]requested_item fm.sn is exist - process it [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 11 00 00 [19:18:42]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:42]Read from MH i2c: E2 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 17 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 17 00 91 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 75 [19:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:18:42]wFMCommunicate OK [19:18:42]requested_item fd.num is exist - process it [19:18:42]SAM_PROTO_GetFieldsCounters [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 13 00 00 [19:18:42]Write to MH i2c: E2 08 00 92 10 80 13 00 00 00 00 00 00 1E [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:42]Read from MH i2c: E2 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 62 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 62 00 92 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [19:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:42]wFMCommunicate OK [19:18:42]SAM_PROTO_GetFieldsCounters done [19:18:42]requested_item shift.num is exist - process it [19:18:42]requested_item shift.opened is exist - process it [19:18:42]req_shift_opened [19:18:42]FM_GetShiftState [19:18:42]SAM_PROTO_GetShiftState [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 13 01 00 [19:18:42]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:42]Read from MH i2c: E2 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 0E 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 9B [19:18:42]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:18:42]wFMCommunicate OK [19:18:42]SAM_PROTO_GetShiftState done [19:18:42]FM_GetShiftState done [19:18:42]req_shift_opened done [19:18:42]requested_item shift.open_date is exist - process it [19:18:42]req_shift_open_date [19:18:42]req_shift_open_date done [19:18:42]produce_requested_data done [19:18:42]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22158,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:18:42]process_action_free close_receipt [19:18:42]json_value_free [19:18:42]json_value_free done [19:18:42]process_json_proto returns [19:18:42]Send response to host [19:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22158,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:18:42]free response buf [19:18:42]execute_script done [19:18:42]execute_script returns [19:18:42]free content buf [19:18:42]Sock 9.Close socket [19:18:42]Sock 9.Thread stoped [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:00]accept exits with 7 [19:25:00]New connection [19:25:00]New thread 3067039076 created [19:25:00]Thread 3067182436 joined [19:25:00]Waiting for new connection... [19:25:00] Sock 7.Parse request [19:25:00]Sock 7.Check first char [19:25:00]Sock 7.First char is OK [19:25:00]request: POST /json_proto HTTP/1.0 [19:25:00]Method: POST [19:25:00]URL: /json_proto [19:25:00]Method is POST - this is cgi request [19:25:00]url: /json_proto [19:25:00]query_string will be loaded in cgi processing [19:25:00]execute_cgi json_proto POST (null) [19:25:00]execute_cgi path=json_proto method=POST [19:25:00]POST find Content-Length [19:25:00]Host: 172.17.43.4:8080 [19:25:00]Content-Length: 628 [19:25:00]Content-Type: application/json [19:25:00] [19:25:00]POST finish read [19:25:00]Found Content-Length = 628 [19:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51427", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:00]execute_script... [19:25: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)51427", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:00]POST & json_proto [19:25:00]process_json_proto [19:25:00]json parsed OK: [19:25:00]protocol is kg_v1.0 [19:25:00]action value=close_receipt [19:25:00]process_action close_receipt [19:25:00]cmd_close_receipt [19:25:00]MH_GetDate [19:25:00]Write to MH i2c: F0 00 00 94 10 93 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: F0 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: F0 09 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: F0 09 00 94 10 00 0F 6F F0 66 02 BF CF 66 66 [19:25:00]GetLastDocTimeStamp 1727032721 [19:25:00]current date 1727033103 [19:25:00]FM_GetShiftState [19:25:00]SAM_PROTO_GetShiftState [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 13 01 00 [19:25:00]Write to MH i2c: E2 08 00 95 10 80 13 01 00 00 00 00 00 22 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0E 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0E 00 95 10 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 9D [19:25:00]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_GetShiftState done [19:25:00]FM_GetShiftState done [19:25:00]opened in 1726964408 [19:25:00]opened+sec_in_day 1727050808 [19:25:00]quantity*price = 13000 [19:25:00]sum+1 = 13001 [19:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 74 22.09.2024 19:25 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22159 ФПД: 170480180757741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T192503&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22159&fm=170480180757741&tin=02508201610067®Number=0000000000146243&sum=13000 0 [19:25:01]StoreToDocumentArchive [19:25:01]shift 228 fd 22159 [19:25:01]save to /storage/0228/doc_00022159 [19:25:01]save last doc name /storage/0228/doc_00022159 to /storage/kkm_last_doc_name [19:25:01]save OK [19:25:01]Clear old archive folders... [19:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:25:01]tlvbuf is B6F8DB90 [19:25:01]SAM_PROTO_ClearQueue [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 09 00 00 [19:25:01]Write to MH i2c: E2 08 00 A2 10 80 09 00 00 00 00 00 00 24 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [19:25:01]RAPDU: 90 00 [19:25:01]wFMCommunicate OK [19:25:01]SAM_PROTO_ClearQueue done [19:25:01]KKMCreateOFDPacket [19:25:01]OFDProtocolAddRootSTLVToBuf [19:25:01]FM_MakeSignedData [19:25:01]FM_MakeSignedData [19:25:01]SAM_PROTO_SignData [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 0D 01 02 [19:25:01]Write to MH i2c: E2 08 00 A3 10 80 0D 01 02 00 00 00 00 2C [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [19:25:01]RAPDU: 90 00 [19:25:01]wFMCommunicate OK [19:25:01]wFMCommunicate request_size=255 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F 6F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [19:25:01]Write to MH i2c: E2 02 01 A4 10 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F 6F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 52 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [19:25:01]RAPDU: 90 00 [19:25:01]wFMCommunicate OK [19:25:01]wFMCommunicate request_size=28 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 0D 02 02 17 35 39 33 35 38 10 04 04 00 8F 56 00 00 35 04 06 00 9B 0D 02 9D 84 ED [19:25:01]Write to MH i2c: E2 1F 00 A5 10 80 0D 02 02 17 00 35 39 33 35 38 10 04 04 00 8F 56 00 00 35 04 06 00 9B 0D 02 9D 84 ED 00 00 5F [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [19:25:01]RAPDU: 90 00 [19:25:01]wFMCommunicate OK [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 0D 03 02 [19:25:01]Write to MH i2c: E2 08 00 A6 10 80 0D 03 02 00 00 00 00 31 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 0B 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 0B 00 A6 10 00 18 F7 1E 91 78 C5 4F 00 90 00 7C [19:25:01]RAPDU: 18 F7 1E 91 78 C5 4F 00 90 00 [19:25:01]wFMCommunicate OK [19:25:01]SAM_PROTO_SignData done [19:25:01]FM_MakeSignedData done [19:25:01]CreateOFDProtocolMessage [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 11 00 00 [19:25:01]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 17 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 8B [19:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:25:01]wFMCommunicate OK [19:25:01]CreateOFDProtocolMessage done [19:25:01]OFDSenderStorePacket 22159 [19:25:01]StoreOFDPacket docnum=22159 [19:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 21 01 00 00 99 89 19 01 FB 63 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F 6F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8F 56 00 00 35 04 06 00 9B 0D 02 9D 84 ED 18 F7 1E 91 78 C5 4F 00 [19:25:01]CheckFolder [19:25:01]dirname=/storage/ofd_packets [19:25:01]CheckFolder done [19:25:01]ProducePacketName [19:25:01]name=ofd_packets/00022159 [19:25:01]NVStorageSaveData ofd_packets/00022159 [19:25:01]File name is /storage/ofd_packets/00022159 [19:25:01]Write 319 bytes [19:25:01]NVStorageSaveData done [19:25:01]OFDSenderStorePacket done [19:25:01]KKMCreateOFDPacket done [19:25:01]NVStorageSaveData kkm_last_timestamp [19:25:01]File name is /storage/kkm_last_timestamp [19:25:01]Write 4 bytes [19:25:01]NVStorageSaveData done [19:25:01]ExternCall_PrintAddStr [19:25:01]wPrintStart [19:25:01]Write to MH i2c: 01 00 00 A8 10 B8 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [19:25:01]RasterBufferAndPrint [19:25:01]line Счет N : (3)51427 [19:25:01]line ИНН: 02508201610067 [19:25:01]line Контрольно-Кассовый Чек [19:25:01]line ПРОДАЖА [19:25:01]line Товар: 4620006996716 [19:25:01]line Водка Талка 0,1л [19:25:01]line 1.000 * 130.00 [19:25:01]line = 130.00 [19:25:01]line НДС 12% НСП 1% [19:25:01]line > о реализуемом товаре [19:25:01]line ИТОГО: 130.00 [19:25:01]line НСП 1% : 1.15 [19:25:01]line НДС 12% : 13.80 [19:25:01]line Наличными: 130.00 [19:25:01]line Безнал.: 0.00 [19:25:01]line Место: АЗС № 88 "Партнер Нефть" [19:25:01]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:25:01]line СНО: Общий режим [19:25:01]line Чек 74 22.09.2024 19:25 [19:25:01]line Смена: 228 ФФД: 1.0 [19:25:01]line ЗНМ: 0300000061 [19:25:01]line РНМ: 0000000000146243 [19:25:01]line Версия ККМ: v1.0 [19:25:01]line ФМ: 0000000000959358 [19:25:01]line ФД: 22159 [19:25:01]line ФПД: 170480180757741 [19:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T192503&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22159&fm=170480180757741&tin=02508201610067®Number=0000000000146243&sum=13000 [19:25:02]line 0 [19:25:02]OFD Sender: Processing packet 22159 [packets to send 23, broken 22] [19:25:02]ProducePacketName [19:25:02]name=ofd_packets/00022159 [19:25:02]OFD Sender: To server: pG, [19:25:02]CommunicateWithHost lk.salyk.kg:30040 [19:25:02]ConnectInit lk.salyk.kg [19:25:02]written 0, free lines is 4095 [19:25:02]Connected sock=10 [19:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 21 01 00 00 99 89 19 01 FB 63 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F 6F F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 8F 56 00 00 35 04 06 00 9B 0D 02 9D 84 ED 18 F7 1E 91 78 C5 4F 00 [19:25:02]Write to MH i2c: 01 00 00 D0 10 E0 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: 01 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: 01 07 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 20 0D 14 [19:25:02]RasterBufferAndPrint [19:25:02]line [19:25:02]line [19:25:02]line [19:25:02]line [19:25:02]line [19:25:02]written 0, free lines is 3366 [19:25:02]MH_Cut [19:25:02]Write to MH i2c: D1 01 00 D7 10 01 B9 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: D1 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: D1 01 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: D1 01 00 D7 10 00 B8 [19:25:02]Write to MH i2c: 01 00 00 D8 10 E8 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 6F 31 47 00 73 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 39 35 39 33 35 38 10 04 04 00 8F 56 00 00 F4 03 04 00 39 19 F0 66 B6 04 01 00 00 FF EA B3 A5 27 9E 1B D8 [19:25:02]CommunicateWithHost err = 0 [19:25:02]CheckOFDResponse [19:25:02]1017 (14) - 77093643461234 [19:25:02]1041 (16) - 0000000000959358 [19:25:02]1040 (4) - 22159 [19:25:02]1012 (4) - 22.09.2024 13:18 [19:25:02]1206 (1) - 0 [19:25:02]OFD Sender: Remove packet 22159 [19:25:02]ProducePacketName [19:25:02]name=ofd_packets/00022159 [19:25:02]NVStorageDeleteData [19:25:03]OFD Sender: No OFD packet to send [19:25:03]*** Cut start [19:25:03]*** Partial cut [19:25:03]*** CUTSNS_PIN = 1 [19:25:03]*** CUTSNS_PIN = 0 [19:25:03]*** Brake cut motor [19:25:03]Read from MH i2c: 01 [19:25:03]MH_I2C_Read... [19:25:03]*** Stop cut motor [19:25:03]*** Cut end [19:25:03]Read from MH i2c: 01 07 00 [19:25:03]MH_I2C_Read... [19:25:03]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [19:25:03]process_action close_receipt done [19:25:03]requested_data is exist [19:25:03]produce_requested_data [19:25:03]requested_item fm.sn is exist - process it [19:25:03]wFMCommunicate request_size=4 [19:25:03]MH_SAM_APDU [19:25:03]CAPDU: 80 11 00 00 [19:25:03]Write to MH i2c: E2 08 00 D9 10 80 11 00 00 00 00 00 00 63 [19:25:03]Write i2c OK [19:25:03]MH_I2C_Read... [19:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:04]Read from MH i2c: E2 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 17 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 17 00 D9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 BD [19:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:25:04]wFMCommunicate OK [19:25:04]requested_item fd.num is exist - process it [19:25:04]SAM_PROTO_GetFieldsCounters [19:25:04]wFMCommunicate request_size=4 [19:25:04]MH_SAM_APDU [19:25:04]CAPDU: 80 13 00 00 [19:25:04]Write to MH i2c: E2 08 00 DA 10 80 13 00 00 00 00 00 00 66 [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:04]Read from MH i2c: E2 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 62 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 62 00 DA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [19:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 8F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:04]wFMCommunicate OK [19:25:04]SAM_PROTO_GetFieldsCounters done [19:25:04]requested_item shift.num is exist - process it [19:25:04]requested_item shift.opened is exist - process it [19:25:04]req_shift_opened [19:25:04]FM_GetShiftState [19:25:04]SAM_PROTO_GetShiftState [19:25:04]wFMCommunicate request_size=4 [19:25:04]MH_SAM_APDU [19:25:04]CAPDU: 80 13 01 00 [19:25:04]Write to MH i2c: E2 08 00 DB 10 80 13 01 00 00 00 00 00 68 [19:25:04]Write i2c OK [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 [19:25:04]MH_I2C_Read... [19:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:04]Read from MH i2c: E2 0E 00 [19:25:04]MH_I2C_Read... [19:25:04]Read from MH i2c: E2 0E 00 DB 10 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 E3 [19:25:04]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:25:04]wFMCommunicate OK [19:25:04]SAM_PROTO_GetShiftState done [19:25:04]FM_GetShiftState done [19:25:04]req_shift_opened done [19:25:04]requested_item shift.open_date is exist - process it [19:25:04]req_shift_open_date [19:25:04]req_shift_open_date done [19:25:04]produce_requested_data done [19:25:04]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22159,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:25:04]process_action_free close_receipt [19:25:04]json_value_free [19:25:04]json_value_free done [19:25:04]process_json_proto returns [19:25:04]Send response to host [19:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22159,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:25:04]free response buf [19:25:04]execute_script done [19:25:04]execute_script returns [19:25:04]free content buf [19:25:04]Sock 7.Close socket [19:25:04]Sock 7.Thread stoped [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:55]accept exits with 9 [19:33:55]New connection [19:33:55]New thread 3067182436 created [19:33:55]Thread 3067039076 joined [19:33:55]Waiting for new connection... [19:33:55] Sock 9.Parse request [19:33:55]Sock 9.Check first char [19:33:55]Sock 9.First char is OK [19:33:55]request: POST /json_proto HTTP/1.0 [19:33:55]Method: POST [19:33:55]URL: /json_proto [19:33:55]Method is POST - this is cgi request [19:33:55]url: /json_proto [19:33:55]query_string will be loaded in cgi processing [19:33:55]execute_cgi json_proto POST (null) [19:33:55]execute_cgi path=json_proto method=POST [19:33:55]POST find Content-Length [19:33:55]Host: 172.17.43.4:8080 [19:33:55]Content-Length: 637 [19:33:55]Content-Type: application/json [19:33:55] [19:33:55]POST finish read [19:33:55]Found Content-Length = 637 [19:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51428", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:55]execute_script... [19:33: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)51428", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:55]POST & json_proto [19:33:55]process_json_proto [19:33:55]json parsed OK: [19:33:55]protocol is kg_v1.0 [19:33:55]action value=close_receipt [19:33:55]process_action close_receipt [19:33:55]cmd_close_receipt [19:33:55]MH_GetDate [19:33:55]Write to MH i2c: F0 00 00 DC 10 DB [19:33:55]Write i2c OK [19:33:55]MH_I2C_Read... [19:33:55]Read from MH i2c: F0 [19:33:55]MH_I2C_Read... [19:33:55]Read from MH i2c: F0 09 00 [19:33:55]MH_I2C_Read... [19:33:55]Read from MH i2c: F0 09 00 DC 10 00 26 71 F0 66 02 BF CF 66 C7 [19:33:55]GetLastDocTimeStamp 1727033103 [19:33:55]current date 1727033638 [19:33:55]FM_GetShiftState [19:33:55]SAM_PROTO_GetShiftState [19:33:55]wFMCommunicate request_size=4 [19:33:55]MH_SAM_APDU [19:33:55]CAPDU: 80 13 01 00 [19:33:55]Write to MH i2c: E2 08 00 DD 10 80 13 01 00 00 00 00 00 6A [19:33:55]Write i2c OK [19:33:55]MH_I2C_Read... [19:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:55]Read from MH i2c: E2 [19:33:55]MH_I2C_Read... [19:33:55]Read from MH i2c: E2 0E 00 [19:33:55]MH_I2C_Read... [19:33:55]Read from MH i2c: E2 0E 00 DD 10 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 E5 [19:33:55]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:33:55]wFMCommunicate OK [19:33:55]SAM_PROTO_GetShiftState done [19:33:55]FM_GetShiftState done [19:33:55]opened in 1726964408 [19:33:55]opened+sec_in_day 1727050808 [19:33:55]quantity*price = 7000 [19:33:55]sum+1 = 7001 [19:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 75 22.09.2024 19:33 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22160 ФПД: 5726581251184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193358&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22160&fm=5726581251184&tin=02508201610067®Number=0000000000146243&sum=7000 0 [19:33:56]StoreToDocumentArchive [19:33:56]shift 228 fd 22160 [19:33:56]save to /storage/0228/doc_00022160 [19:33:56]save last doc name /storage/0228/doc_00022160 to /storage/kkm_last_doc_name [19:33:56]save OK [19:33:56]Clear old archive folders... [19:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:33:56]tlvbuf is 00225580 [19:33:56]SAM_PROTO_ClearQueue [19:33:56]wFMCommunicate request_size=4 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 09 00 00 [19:33:56]Write to MH i2c: E2 08 00 EA 10 80 09 00 00 00 00 00 00 6C [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [19:33:56]RAPDU: 90 00 [19:33:56]wFMCommunicate OK [19:33:56]SAM_PROTO_ClearQueue done [19:33:56]KKMCreateOFDPacket [19:33:56]OFDProtocolAddRootSTLVToBuf [19:33:56]FM_MakeSignedData [19:33:56]FM_MakeSignedData [19:33:56]SAM_PROTO_SignData [19:33:56]wFMCommunicate request_size=4 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 0D 01 02 [19:33:56]Write to MH i2c: E2 08 00 EB 10 80 0D 01 02 00 00 00 00 74 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [19:33:56]RAPDU: 90 00 [19:33:56]wFMCommunicate OK [19:33:56]wFMCommunicate request_size=255 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 26 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [19:33:56]Write to MH i2c: E2 02 01 EC 10 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 26 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 A6 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [19:33:56]RAPDU: 90 00 [19:33:56]wFMCommunicate OK [19:33:56]wFMCommunicate request_size=32 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 90 56 00 00 35 04 06 00 05 35 52 D7 5C 70 [19:33:56]Write to MH i2c: E2 23 00 ED 10 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 90 56 00 00 35 04 06 00 05 35 52 D7 5C 70 00 00 F0 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [19:33:56]RAPDU: 90 00 [19:33:56]wFMCommunicate OK [19:33:56]wFMCommunicate request_size=4 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 0D 03 02 [19:33:56]Write to MH i2c: E2 08 00 EE 10 80 0D 03 02 00 00 00 00 79 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 0B 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 0B 00 EE 10 00 62 B9 FC A2 E9 F1 A7 6A 90 00 1E [19:33:56]RAPDU: 62 B9 FC A2 E9 F1 A7 6A 90 00 [19:33:56]wFMCommunicate OK [19:33:56]SAM_PROTO_SignData done [19:33:56]FM_MakeSignedData done [19:33:56]CreateOFDProtocolMessage [19:33:56]wFMCommunicate request_size=4 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 11 00 00 [19:33:56]Write to MH i2c: E2 08 00 EF 10 80 11 00 00 00 00 00 00 79 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 17 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 17 00 EF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D3 [19:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:33:56]wFMCommunicate OK [19:33:56]CreateOFDProtocolMessage done [19:33:56]OFDSenderStorePacket 22160 [19:33:56]StoreOFDPacket docnum=22160 [19:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 F5 96 1D 01 80 A2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 26 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 90 56 00 00 35 04 06 00 05 35 52 D7 5C 70 62 B9 FC A2 E9 F1 A7 6A [19:33:56]CheckFolder [19:33:56]dirname=/storage/ofd_packets [19:33:56]CheckFolder done [19:33:56]ProducePacketName [19:33:56]name=ofd_packets/00022160 [19:33:56]NVStorageSaveData ofd_packets/00022160 [19:33:56]File name is /storage/ofd_packets/00022160 [19:33:56]Write 323 bytes [19:33:56]NVStorageSaveData done [19:33:56]OFDSenderStorePacket done [19:33:56]KKMCreateOFDPacket done [19:33:56]NVStorageSaveData kkm_last_timestamp [19:33:56]File name is /storage/kkm_last_timestamp [19:33:56]Write 4 bytes [19:33:56]NVStorageSaveData done [19:33:56]ExternCall_PrintAddStr [19:33:56]wPrintStart [19:33:56]Write to MH i2c: 01 00 00 F0 10 00 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: 01 07 00 F0 10 00 00 00 00 00 FF 0F 15 [19:33:56]RasterBufferAndPrint [19:33:56]line Счет N : (3)51428 [19:33:56]line ИНН: 02508201610067 [19:33:56]line Контрольно-Кассовый Чек [19:33:56]line ПРОДАЖА [19:33:56]line Товар: 4700002082931 [19:33:56]line Водка Хорошая 0,1л [19:33:56]line 1.000 * 70.00 [19:33:56]line = 70.00 [19:33:56]line НДС 12% НСП 1% [19:33:56]line > о реализуемом товаре [19:33:56]line ИТОГО: 70.00 [19:33:56]line НСП 1% : 0.62 [19:33:56]line НДС 12% : 7.43 [19:33:56]line Наличными: 70.00 [19:33:56]line Безнал.: 0.00 [19:33:56]line Место: АЗС № 88 "Партнер Нефть" [19:33:56]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:33:56]line СНО: Общий режим [19:33:56]line Чек 75 22.09.2024 19:33 [19:33:56]line Смена: 228 ФФД: 1.0 [19:33:56]line ЗНМ: 0300000061 [19:33:56]line РНМ: 0000000000146243 [19:33:56]line Версия ККМ: v1.0 [19:33:56]line ФМ: 0000000000959358 [19:33:56]line ФД: 22160 [19:33:56]line ФПД: 5726581251184 [19:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193358&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22160&fm=5726581251184&tin=02508201610067®Number=0000000000146243&sum=7000 [19:33:57]line 0 [19:33:57]OFD Sender: Processing packet 22160 [packets to send 23, broken 22] [19:33:57]ProducePacketName [19:33:57]name=ofd_packets/00022160 [19:33:57]OFD Sender: To server: pG, [19:33:57]CommunicateWithHost lk.salyk.kg:30040 [19:33:57]ConnectInit lk.salyk.kg [19:33:57]written 0, free lines is 4095 [19:33:57]Connected sock=10 [19:33:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 F5 96 1D 01 80 A2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB 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 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 26 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 90 56 00 00 35 04 06 00 05 35 52 D7 5C 70 62 B9 FC A2 E9 F1 A7 6A [19:33:57]Write to MH i2c: 01 00 00 18 11 29 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 18 11 00 00 00 00 00 22 0D 5F [19:33:57]RasterBufferAndPrint [19:33:57]line [19:33:57]line [19:33:57]line [19:33:57]line [19:33:57]line [19:33:57]written 0, free lines is 3369 [19:33:57]MH_Cut [19:33:57]Write to MH i2c: D1 01 00 1F 11 01 02 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: D1 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: D1 01 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: D1 01 00 1F 11 00 01 [19:33:57]Write to MH i2c: 01 00 00 20 11 31 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 B3 CF 47 00 48 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 39 35 39 33 35 38 10 04 04 00 90 56 00 00 F4 03 04 00 50 1B F0 66 B6 04 01 00 00 5D 01 7D BA BA 6B 7A A1 [19:33:57]CommunicateWithHost err = 0 [19:33:57]CheckOFDResponse [19:33:57]1017 (14) - 77093643461234 [19:33:57]1041 (16) - 0000000000959358 [19:33:57]1040 (4) - 22160 [19:33:57]1012 (4) - 22.09.2024 13:27 [19:33:57]1206 (1) - 0 [19:33:57]OFD Sender: Remove packet 22160 [19:33:57]ProducePacketName [19:33:57]name=ofd_packets/00022160 [19:33:57]NVStorageDeleteData [19:33:58]OFD Sender: No OFD packet to send [19:33:58]*** Cut start [19:33:58]*** Partial cut [19:33:58]*** CUTSNS_PIN = 1 [19:33:58]*** CUTSNS_PIN = 0 [19:33:58]*** Brake cut motor [19:33:58]Read from MH i2c: 01 [19:33:58]MH_I2C_Read... [19:33:58]*** Stop cut motor [19:33:58]*** Cut end [19:33:58]Read from MH i2c: 01 07 00 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: 01 07 00 20 11 00 00 00 00 00 FF 0F 46 [19:33:58]process_action close_receipt done [19:33:58]requested_data is exist [19:33:58]produce_requested_data [19:33:58]requested_item fm.sn is exist - process it [19:33:58]wFMCommunicate request_size=4 [19:33:58]MH_SAM_APDU [19:33:58]CAPDU: 80 11 00 00 [19:33:58]Write to MH i2c: E2 08 00 21 11 80 11 00 00 00 00 00 00 AC [19:33:58]Write i2c OK [19:33:58]MH_I2C_Read... [19:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 17 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 17 00 21 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 06 [19:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:33:59]wFMCommunicate OK [19:33:59]requested_item fd.num is exist - process it [19:33:59]SAM_PROTO_GetFieldsCounters [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 13 00 00 [19:33:59]Write to MH i2c: E2 08 00 22 11 80 13 00 00 00 00 00 00 AF [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 62 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 62 00 22 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 90 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [19:33:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 90 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:59]wFMCommunicate OK [19:33:59]SAM_PROTO_GetFieldsCounters done [19:33:59]requested_item shift.num is exist - process it [19:33:59]requested_item shift.opened is exist - process it [19:33:59]req_shift_opened [19:33:59]FM_GetShiftState [19:33:59]SAM_PROTO_GetShiftState [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 13 01 00 [19:33:59]Write to MH i2c: E2 08 00 23 11 80 13 01 00 00 00 00 00 B1 [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 0E 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 0E 00 23 11 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2C [19:33:59]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:33:59]wFMCommunicate OK [19:33:59]SAM_PROTO_GetShiftState done [19:33:59]FM_GetShiftState done [19:33:59]req_shift_opened done [19:33:59]requested_item shift.open_date is exist - process it [19:33:59]req_shift_open_date [19:33:59]req_shift_open_date done [19:33:59]produce_requested_data done [19:33:59]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22160,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:33:59]process_action_free close_receipt [19:33:59]json_value_free [19:33:59]json_value_free done [19:33:59]process_json_proto returns [19:33:59]Send response to host [19:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22160,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:33:59]free response buf [19:33:59]execute_script done [19:33:59]execute_script returns [19:33:59]free content buf [19:33:59]Sock 9.Close socket [19:33:59]Sock 9.Thread stoped [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:11]accept exits with 7 [19:37:11]New connection [19:37:11]New thread 3067039076 created [19:37:11]Thread 3067182436 joined [19:37:11]Waiting for new connection... [19:37:11] Sock 7.Parse request [19:37:11]Sock 7.Check first char [19:37:11]Sock 7.First char is OK [19:37:11]request: POST /json_proto HTTP/1.0 [19:37:11]Method: POST [19:37:11]URL: /json_proto [19:37:11]Method is POST - this is cgi request [19:37:11]url: /json_proto [19:37:11]query_string will be loaded in cgi processing [19:37:11]execute_cgi json_proto POST (null) [19:37:11]execute_cgi path=json_proto method=POST [19:37:11]POST find Content-Length [19:37:11]Host: 172.17.43.4:8080 [19:37:11]Content-Length: 678 [19:37:11]Content-Type: application/json [19:37:11] [19:37:11]POST finish read [19:37:11]Found Content-Length = 678 [19:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:11]execute_script... [19:37:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:11]POST & json_proto [19:37:11]process_json_proto [19:37:11]json parsed OK: [19:37:11]protocol is kg_v1.0 [19:37:11]action value=close_receipt [19:37:11]process_action close_receipt [19:37:11]cmd_close_receipt [19:37:11]MH_GetDate [19:37:11]Write to MH i2c: F0 00 00 24 11 24 [19:37:11]Write i2c OK [19:37:11]MH_I2C_Read... [19:37:11]Read from MH i2c: F0 [19:37:11]MH_I2C_Read... [19:37:11]Read from MH i2c: F0 09 00 [19:37:11]MH_I2C_Read... [19:37:11]Read from MH i2c: F0 09 00 24 11 00 EA 71 F0 66 02 BF CF 66 D4 [19:37:11]GetLastDocTimeStamp 1727033638 [19:37:11]current date 1727033834 [19:37:11]FM_GetShiftState [19:37:11]SAM_PROTO_GetShiftState [19:37:11]wFMCommunicate request_size=4 [19:37:11]MH_SAM_APDU [19:37:11]CAPDU: 80 13 01 00 [19:37:11]Write to MH i2c: E2 08 00 25 11 80 13 01 00 00 00 00 00 B3 [19:37:11]Write i2c OK [19:37:11]MH_I2C_Read... [19:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:11]Read from MH i2c: E2 [19:37:11]MH_I2C_Read... [19:37:11]Read from MH i2c: E2 0E 00 [19:37:11]MH_I2C_Read... [19:37:11]Read from MH i2c: E2 0E 00 25 11 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2E [19:37:11]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:37:11]wFMCommunicate OK [19:37:11]SAM_PROTO_GetShiftState done [19:37:11]FM_GetShiftState done [19:37:11]opened in 1726964408 [19:37:11]opened+sec_in_day 1727050808 [19:37:11]quantity*price = 40068 [19:37:11]sum+1 = 40069 [19:37:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 76 22.09.2024 19:37 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22161 ФПД: 39407774185602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193714&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22161&fm=39407774185602&tin=02508201610067®Number=0000000000146243&sum=40000 [19:37:12]StoreToDocumentArchive [19:37:12]shift 228 fd 22161 [19:37:12]save to /storage/0228/doc_00022161 [19:37:12]save last doc name /storage/0228/doc_00022161 to /storage/kkm_last_doc_name [19:37:12]save OK [19:37:12]Clear old archive folders... [19:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:12]tlvbuf is 00247690 [19:37:12]SAM_PROTO_ClearQueue [19:37:12]wFMCommunicate request_size=4 [19:37:12]MH_SAM_APDU [19:37:12]CAPDU: 80 09 00 00 [19:37:12]Write to MH i2c: E2 08 00 32 11 80 09 00 00 00 00 00 00 B5 [19:37:12]Write i2c OK [19:37:12]MH_I2C_Read... [19:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:12]Read from MH i2c: E2 [19:37:12]MH_I2C_Read... [19:37:12]Read from MH i2c: E2 03 00 [19:37:12]MH_I2C_Read... [19:37:12]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [19:37:12]RAPDU: 90 00 [19:37:12]wFMCommunicate OK [19:37:12]SAM_PROTO_ClearQueue done [19:37:12]KKMCreateOFDPacket [19:37:12]OFDProtocolAddRootSTLVToBuf [19:37:12]FM_MakeSignedData [19:37:12]FM_MakeSignedData [19:37:12]SAM_PROTO_SignData [19:37:12]wFMCommunicate request_size=4 [19:37:12]MH_SAM_APDU [19:37:12]CAPDU: 80 0D 01 02 [19:37:12]Write to MH i2c: E2 08 00 33 11 80 0D 01 02 00 00 00 00 BD [19:37:12]Write i2c OK [19:37:12]MH_I2C_Read... [19:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:12]Read from MH i2c: E2 [19:37:12]MH_I2C_Read... [19:37:12]Read from MH i2c: E2 03 00 [19:37:12]MH_I2C_Read... [19:37:12]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [19:37:12]RAPDU: 90 00 [19:37:12]wFMCommunicate OK [19:37:12]wFMCommunicate request_size=255 [19:37:12]MH_SAM_APDU [19:37:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EA 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 91 56 00 00 35 04 06 00 23 [19:37:12]Write to MH i2c: E2 02 01 34 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EA 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 91 56 00 00 35 04 06 00 23 00 00 E8 [19:37:12]Write i2c OK [19:37:12]MH_I2C_Read... [19:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:12]Read from MH i2c: E2 [19:37:12]MH_I2C_Read... [19:37:12]Read from MH i2c: E2 03 00 [19:37:12]MH_I2C_Read... [19:37:12]Read from MH i2c: E2 03 00 34 11 00 90 00 B9 [19:37:12]RAPDU: 90 00 [19:37:12]wFMCommunicate OK [19:37:12]wFMCommunicate request_size=10 [19:37:12]MH_SAM_APDU [19:37:12]CAPDU: 80 0D 02 02 05 D7 56 61 B8 82 [19:37:12]Write to MH i2c: E2 0D 00 35 11 80 0D 02 02 05 00 D7 56 61 B8 82 00 00 92 [19:37:12]Write i2c OK [19:37:12]MH_I2C_Read... [19:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:13]Read from MH i2c: E2 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 03 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 03 00 35 11 00 90 00 BA [19:37:13]RAPDU: 90 00 [19:37:13]wFMCommunicate OK [19:37:13]wFMCommunicate request_size=4 [19:37:13]MH_SAM_APDU [19:37:13]CAPDU: 80 0D 03 02 [19:37:13]Write to MH i2c: E2 08 00 36 11 80 0D 03 02 00 00 00 00 C2 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:13]Read from MH i2c: E2 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 0B 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 0B 00 36 11 00 99 AC 74 15 4D 6A 03 86 90 00 D1 [19:37:13]RAPDU: 99 AC 74 15 4D 6A 03 86 90 00 [19:37:13]wFMCommunicate OK [19:37:13]SAM_PROTO_SignData done [19:37:13]FM_MakeSignedData done [19:37:13]CreateOFDProtocolMessage [19:37:13]wFMCommunicate request_size=4 [19:37:13]MH_SAM_APDU [19:37:13]CAPDU: 80 11 00 00 [19:37:13]Write to MH i2c: E2 08 00 37 11 80 11 00 00 00 00 00 00 C2 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:13]Read from MH i2c: E2 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 17 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 17 00 37 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1C [19:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:37:13]wFMCommunicate OK [19:37:13]CreateOFDProtocolMessage done [19:37:13]OFDSenderStorePacket 22161 [19:37:13]StoreOFDPacket docnum=22161 [19:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 C6 FE 07 01 FD D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EA 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 91 56 00 00 35 04 06 00 23 D7 56 61 B8 82 99 AC 74 15 4D 6A 03 86 [19:37:13]CheckFolder [19:37:13]dirname=/storage/ofd_packets [19:37:13]CheckFolder done [19:37:13]ProducePacketName [19:37:13]name=ofd_packets/00022161 [19:37:13]NVStorageSaveData ofd_packets/00022161 [19:37:13]File name is /storage/ofd_packets/00022161 [19:37:13]Write 301 bytes [19:37:13]NVStorageSaveData done [19:37:13]OFDSenderStorePacket done [19:37:13]KKMCreateOFDPacket done [19:37:13]NVStorageSaveData kkm_last_timestamp [19:37:13]File name is /storage/kkm_last_timestamp [19:37:13]Write 4 bytes [19:37:13]NVStorageSaveData done [19:37:13]ExternCall_PrintAddStr [19:37:13]wPrintStart [19:37:13]Write to MH i2c: 01 00 00 38 11 49 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: 01 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: 01 07 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: 01 07 00 38 11 00 00 00 00 00 FF 0F 5E [19:37:13]RasterBufferAndPrint [19:37:13]line Счет N : (1)2162601 [19:37:13]line ИНН: 02508201610067 [19:37:13]line Контрольно-Кассовый Чек [19:37:13]line ПРОДАЖА [19:37:13]line ТРК (МРК, ГНК) : 13 [19:37:13]line Товар: 2710124500 [19:37:13]line Аи-95-К-5 [19:37:13]line 5.400 * 74.20 [19:37:13]line = 400.68 [19:37:13]line НДС 12% НСП 1% [19:37:13]line > о реализуемом товаре [19:37:13]line ОКРУГЛЕНИЕ: -0.68 [19:37:13]line ИТОГО: 400.00 [19:37:13]line Внесено: 400.00 [19:37:13]line СДАЧА: 0.00 [19:37:13]line НСП 1% : 3.55 [19:37:13]line НДС 12% : 42.55 [19:37:13]line Наличными: 400.00 [19:37:13]line Безнал.: 0.00 [19:37:13]line Место: АЗС № 88 "Партнер Нефть" [19:37:13]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:37:13]line СНО: Общий режим [19:37:13]line Чек 76 22.09.2024 19:37 [19:37:13]line Смена: 228 ФФД: 1.0 [19:37:13]line ЗНМ: 0300000061 [19:37:13]line РНМ: 0000000000146243 [19:37:13]line Версия ККМ: v1.0 [19:37:13]line ФМ: 0000000000959358 [19:37:13]line ФД: 22161 [19:37:13]line ФПД: 39407774185602 [19:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193714&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22161&fm=39407774185602&tin=02508201610067®Number=0000000000146243&sum=40000 [19:37:13]OFD Sender: Processing packet 22161 [packets to send 23, broken 22] [19:37:13]ProducePacketName [19:37:13]name=ofd_packets/00022161 [19:37:13]OFD Sender: To server: pG, [19:37:13]CommunicateWithHost lk.salyk.kg:30040 [19:37:13]ConnectInit lk.salyk.kg [19:37:13]written 0, free lines is 4095 [19:37:13]Connected sock=11 [19:37:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 C6 FE 07 01 FD D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 EA 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 91 56 00 00 35 04 06 00 23 D7 56 61 B8 82 99 AC 74 15 4D 6A 03 86 [19:37:13]Write to MH i2c: 01 00 00 63 11 74 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: 01 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: 01 07 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 F7 0C 7E [19:37:13]RasterBufferAndPrint [19:37:13]line [19:37:13]line [19:37:13]line [19:37:13]line [19:37:13]line [19:37:13]written 0, free lines is 3326 [19:37:13]MH_Cut [19:37:13]Write to MH i2c: D1 01 00 6A 11 01 4D [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: D1 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: D1 01 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: D1 01 00 6A 11 00 4C [19:37:13]Write to MH i2c: 01 00 00 6B 11 7C [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 B9 F3 47 00 E6 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 91 56 00 00 F4 03 04 00 15 1C F0 66 B6 04 01 00 00 3B 97 8B BC 20 3D 1E 91 [19:37:13]CommunicateWithHost err = 0 [19:37:13]CheckOFDResponse [19:37:13]1017 (14) - 77093643461234 [19:37:13]1041 (16) - 0000000000959358 [19:37:13]1040 (4) - 22161 [19:37:13]1012 (4) - 22.09.2024 13:31 [19:37:13]1206 (1) - 0 [19:37:13]OFD Sender: Remove packet 22161 [19:37:13]ProducePacketName [19:37:13]name=ofd_packets/00022161 [19:37:13]NVStorageDeleteData [19:37:14]OFD Sender: No OFD packet to send [19:37:14]*** Cut start [19:37:14]*** Partial cut [19:37:14]*** CUTSNS_PIN = 1 [19:37:14]*** CUTSNS_PIN = 0 [19:37:14]*** Brake cut motor [19:37:15]Read from MH i2c: 01 [19:37:15]MH_I2C_Read... [19:37:15]*** Stop cut motor [19:37:15]*** Cut end [19:37:15]Read from MH i2c: 01 07 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 6B 11 00 00 00 00 00 FF 0F 91 [19:37:15]process_action close_receipt done [19:37:15]requested_data is exist [19:37:15]produce_requested_data [19:37:15]requested_item fm.sn is exist - process it [19:37:15]wFMCommunicate request_size=4 [19:37:15]MH_SAM_APDU [19:37:15]CAPDU: 80 11 00 00 [19:37:15]Write to MH i2c: E2 08 00 6C 11 80 11 00 00 00 00 00 00 F7 [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:15]Read from MH i2c: E2 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 17 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 17 00 6C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 51 [19:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:37:15]wFMCommunicate OK [19:37:15]requested_item fd.num is exist - process it [19:37:15]SAM_PROTO_GetFieldsCounters [19:37:15]wFMCommunicate request_size=4 [19:37:15]MH_SAM_APDU [19:37:15]CAPDU: 80 13 00 00 [19:37:15]Write to MH i2c: E2 08 00 6D 11 80 13 00 00 00 00 00 00 FA [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:15]Read from MH i2c: E2 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 62 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 62 00 6D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 91 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [19:37:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 91 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:15]wFMCommunicate OK [19:37:15]SAM_PROTO_GetFieldsCounters done [19:37:15]requested_item shift.num is exist - process it [19:37:15]requested_item shift.opened is exist - process it [19:37:15]req_shift_opened [19:37:15]FM_GetShiftState [19:37:15]SAM_PROTO_GetShiftState [19:37:15]wFMCommunicate request_size=4 [19:37:15]MH_SAM_APDU [19:37:15]CAPDU: 80 13 01 00 [19:37:15]Write to MH i2c: E2 08 00 6E 11 80 13 01 00 00 00 00 00 FC [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:15]Read from MH i2c: E2 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 0E 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 0E 00 6E 11 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 77 [19:37:15]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:37:15]wFMCommunicate OK [19:37:15]SAM_PROTO_GetShiftState done [19:37:15]FM_GetShiftState done [19:37:15]req_shift_opened done [19:37:15]requested_item shift.open_date is exist - process it [19:37:15]req_shift_open_date [19:37:15]req_shift_open_date done [19:37:15]produce_requested_data done [19:37:15]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22161,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:37:15]process_action_free close_receipt [19:37:15]json_value_free [19:37:15]json_value_free done [19:37:15]process_json_proto returns [19:37:15]Send response to host [19:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22161,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:37:15]free response buf [19:37:15]execute_script done [19:37:15]execute_script returns [19:37:15]free content buf [19:37:15]Sock 7.Close socket [19:37:15]Sock 7.Thread stoped [19:37:19]OFD Sender: No OFD packet to send [19:37:23]accept exits with 9 [19:37:23]New connection [19:37:23]New thread 3067182436 created [19:37:23]Thread 3067039076 joined [19:37:23]Waiting for new connection... [19:37:23] Sock 9.Parse request [19:37:23]Sock 9.Check first char [19:37:23]Sock 9.First char is OK [19:37:23]request: POST /json_proto HTTP/1.0 [19:37:23]Method: POST [19:37:23]URL: /json_proto [19:37:23]Method is POST - this is cgi request [19:37:23]url: /json_proto [19:37:23]query_string will be loaded in cgi processing [19:37:23]execute_cgi json_proto POST (null) [19:37:23]execute_cgi path=json_proto method=POST [19:37:23]POST find Content-Length [19:37:23]Host: 172.17.43.4:8080 [19:37:23]Content-Length: 678 [19:37:23]Content-Type: application/json [19:37:23] [19:37:23]POST finish read [19:37:23]Found Content-Length = 678 [19:37:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:23]execute_script... [19:37:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)2162602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:23]POST & json_proto [19:37:23]process_json_proto [19:37:23]json parsed OK: [19:37:23]protocol is kg_v1.0 [19:37:23]action value=close_receipt [19:37:23]process_action close_receipt [19:37:23]cmd_close_receipt [19:37:23]MH_GetDate [19:37:23]Write to MH i2c: F0 00 00 6F 11 6F [19:37:23]Write i2c OK [19:37:23]MH_I2C_Read... [19:37:23]Read from MH i2c: F0 [19:37:23]MH_I2C_Read... [19:37:23]Read from MH i2c: F0 09 00 [19:37:23]MH_I2C_Read... [19:37:23]Read from MH i2c: F0 09 00 6F 11 00 F6 71 F0 66 02 BF CF 66 2B [19:37:23]GetLastDocTimeStamp 1727033834 [19:37:23]current date 1727033846 [19:37:23]FM_GetShiftState [19:37:23]SAM_PROTO_GetShiftState [19:37:23]wFMCommunicate request_size=4 [19:37:23]MH_SAM_APDU [19:37:23]CAPDU: 80 13 01 00 [19:37:23]Write to MH i2c: E2 08 00 70 11 80 13 01 00 00 00 00 00 FE [19:37:23]Write i2c OK [19:37:23]MH_I2C_Read... [19:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:23]Read from MH i2c: E2 [19:37:23]MH_I2C_Read... [19:37:23]Read from MH i2c: E2 0E 00 [19:37:23]MH_I2C_Read... [19:37:23]Read from MH i2c: E2 0E 00 70 11 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 79 [19:37:23]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:37:23]wFMCommunicate OK [19:37:23]SAM_PROTO_GetShiftState done [19:37:23]FM_GetShiftState done [19:37:23]opened in 1726964408 [19:37:23]opened+sec_in_day 1727050808 [19:37:23]quantity*price = 55053 [19:37:23]sum+1 = 55055 [19:37:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 77 22.09.2024 19:37 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22162 ФПД: 230513619130779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193727&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22162&fm=230513619130779&tin=02508201610067®Number=0000000000146243&sum=55000 [19:37:24]StoreToDocumentArchive [19:37:24]shift 228 fd 22162 [19:37:24]save to /storage/0228/doc_00022162 [19:37:24]save last doc name /storage/0228/doc_00022162 to /storage/kkm_last_doc_name [19:37:24]save OK [19:37:24]Clear old archive folders... [19:37:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:24]tlvbuf is B6F12A70 [19:37:24]SAM_PROTO_ClearQueue [19:37:24]wFMCommunicate request_size=4 [19:37:24]MH_SAM_APDU [19:37:24]CAPDU: 80 09 00 00 [19:37:24]Write to MH i2c: E2 08 00 7D 11 80 09 00 00 00 00 00 00 00 [19:37:24]Write i2c OK [19:37:24]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [19:37:25]RAPDU: 90 00 [19:37:25]wFMCommunicate OK [19:37:25]SAM_PROTO_ClearQueue done [19:37:25]KKMCreateOFDPacket [19:37:25]OFDProtocolAddRootSTLVToBuf [19:37:25]FM_MakeSignedData [19:37:25]FM_MakeSignedData [19:37:25]SAM_PROTO_SignData [19:37:25]wFMCommunicate request_size=4 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 0D 01 02 [19:37:25]Write to MH i2c: E2 08 00 7E 11 80 0D 01 02 00 00 00 00 08 [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [19:37:25]RAPDU: 90 00 [19:37:25]wFMCommunicate OK [19:37:25]wFMCommunicate request_size=255 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F7 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 92 56 00 00 35 04 06 00 D1 [19:37:25]Write to MH i2c: E2 02 01 7F 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F7 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 92 56 00 00 35 04 06 00 D1 00 00 3E [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [19:37:25]RAPDU: 90 00 [19:37:25]wFMCommunicate OK [19:37:25]wFMCommunicate request_size=10 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 0D 02 02 05 A6 A2 62 59 9B [19:37:25]Write to MH i2c: E2 0D 00 80 11 80 0D 02 02 05 00 A6 A2 62 59 9B 00 00 B3 [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 03 00 80 11 00 90 00 05 [19:37:25]RAPDU: 90 00 [19:37:25]wFMCommunicate OK [19:37:25]wFMCommunicate request_size=4 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 0D 03 02 [19:37:25]Write to MH i2c: E2 08 00 81 11 80 0D 03 02 00 00 00 00 0D [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 0B 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 0B 00 81 11 00 4C 62 54 6A 16 63 F7 20 90 00 0A [19:37:25]RAPDU: 4C 62 54 6A 16 63 F7 20 90 00 [19:37:25]wFMCommunicate OK [19:37:25]SAM_PROTO_SignData done [19:37:25]FM_MakeSignedData done [19:37:25]CreateOFDProtocolMessage [19:37:25]wFMCommunicate request_size=4 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 11 00 00 [19:37:25]Write to MH i2c: E2 08 00 82 11 80 11 00 00 00 00 00 00 0D [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 17 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 17 00 82 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 67 [19:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:37:25]wFMCommunicate OK [19:37:25]CreateOFDProtocolMessage done [19:37:25]OFDSenderStorePacket 22162 [19:37:25]StoreOFDPacket docnum=22162 [19:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 89 33 07 01 43 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F7 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 92 56 00 00 35 04 06 00 D1 A6 A2 62 59 9B 4C 62 54 6A 16 63 F7 20 [19:37:25]CheckFolder [19:37:25]dirname=/storage/ofd_packets [19:37:25]CheckFolder done [19:37:25]ProducePacketName [19:37:25]name=ofd_packets/00022162 [19:37:25]NVStorageSaveData ofd_packets/00022162 [19:37:25]File name is /storage/ofd_packets/00022162 [19:37:25]Write 301 bytes [19:37:25]NVStorageSaveData done [19:37:25]OFDSenderStorePacket done [19:37:25]KKMCreateOFDPacket done [19:37:25]NVStorageSaveData kkm_last_timestamp [19:37:25]File name is /storage/kkm_last_timestamp [19:37:25]Write 4 bytes [19:37:25]NVStorageSaveData done [19:37:25]ExternCall_PrintAddStr [19:37:25]wPrintStart [19:37:25]Write to MH i2c: 01 00 00 83 11 94 [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: 01 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: 01 07 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: 01 07 00 83 11 00 00 00 00 00 FF 0F A9 [19:37:25]RasterBufferAndPrint [19:37:25]line Счет N : (1)2162602 [19:37:25]line ИНН: 02508201610067 [19:37:25]line Контрольно-Кассовый Чек [19:37:25]line ПРОДАЖА [19:37:25]line ТРК (МРК, ГНК) : 43 [19:37:25]line Товар: 2710124130 [19:37:25]line Аи-92-К-5 [19:37:25]line 8.120 * 67.80 [19:37:25]line = 550.54 [19:37:25]line НДС 12% НСП 1% [19:37:25]line > о реализуемом товаре [19:37:25]line ОКРУГЛЕНИЕ: -0.54 [19:37:25]line ИТОГО: 550.00 [19:37:25]line Внесено: 550.00 [19:37:25]line СДАЧА: 0.00 [19:37:25]line НСП 1% : 4.87 [19:37:25]line НДС 12% : 58.46 [19:37:25]line Наличными: 550.00 [19:37:25]line Безнал.: 0.00 [19:37:25]line Место: АЗС № 88 "Партнер Нефть" [19:37:25]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:37:25]line СНО: Общий режим [19:37:25]line Чек 77 22.09.2024 19:37 [19:37:25]line Смена: 228 ФФД: 1.0 [19:37:25]line ЗНМ: 0300000061 [19:37:25]line РНМ: 0000000000146243 [19:37:25]line Версия ККМ: v1.0 [19:37:25]line ФМ: 0000000000959358 [19:37:25]line ФД: 22162 [19:37:25]line ФПД: 230513619130779 [19:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T193727&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22162&fm=230513619130779&tin=02508201610067®Number=0000000000146243&sum=55000 [19:37:25]OFD Sender: Processing packet 22162 [packets to send 23, broken 22] [19:37:25]ProducePacketName [19:37:25]name=ofd_packets/00022162 [19:37:25]OFD Sender: To server: pG, [19:37:25]CommunicateWithHost lk.salyk.kg:30040 [19:37:25]ConnectInit lk.salyk.kg [19:37:25]written 0, free lines is 4095 [19:37:26]Connected sock=10 [19:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0F 01 00 00 89 33 07 01 43 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F7 71 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 92 56 00 00 35 04 06 00 D1 A6 A2 62 59 9B 4C 62 54 6A 16 63 F7 20 [19:37:26]Write to MH i2c: 01 00 00 AE 11 BF [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: 01 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: 01 07 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 F6 0C C8 [19:37:26]RasterBufferAndPrint [19:37:26]line [19:37:26]line [19:37:26]line [19:37:26]line [19:37:26]line [19:37:26]written 0, free lines is 3324 [19:37:26]MH_Cut [19:37:26]Write to MH i2c: D1 01 00 B5 11 01 98 [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: D1 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: D1 01 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: D1 01 00 B5 11 00 97 [19:37:26]Write to MH i2c: 01 00 00 B6 11 C7 [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 C3 5E 47 00 76 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 92 56 00 00 F4 03 04 00 21 1C F0 66 B6 04 01 00 00 D6 78 B4 8D 0E 51 98 19 [19:37:26]CommunicateWithHost err = 0 [19:37:26]CheckOFDResponse [19:37:26]1017 (14) - 77093643461234 [19:37:26]1041 (16) - 0000000000959358 [19:37:26]1040 (4) - 22162 [19:37:26]1012 (4) - 22.09.2024 13:31 [19:37:26]1206 (1) - 0 [19:37:26]OFD Sender: Remove packet 22162 [19:37:26]ProducePacketName [19:37:26]name=ofd_packets/00022162 [19:37:26]NVStorageDeleteData [19:37:26]OFD Sender: No OFD packet to send [19:37:26]*** Cut start [19:37:26]*** Partial cut [19:37:26]*** CUTSNS_PIN = 1 [19:37:27]*** CUTSNS_PIN = 0 [19:37:27]*** Brake cut motor [19:37:27]Read from MH i2c: 01 [19:37:27]MH_I2C_Read... [19:37:27]*** Stop cut motor [19:37:27]*** Cut end [19:37:27]Read from MH i2c: 01 07 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: 01 07 00 B6 11 00 00 00 00 00 FF 0F DC [19:37:27]process_action close_receipt done [19:37:27]requested_data is exist [19:37:27]produce_requested_data [19:37:27]requested_item fm.sn is exist - process it [19:37:27]wFMCommunicate request_size=4 [19:37:27]MH_SAM_APDU [19:37:27]CAPDU: 80 11 00 00 [19:37:27]Write to MH i2c: E2 08 00 B7 11 80 11 00 00 00 00 00 00 42 [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:27]Read from MH i2c: E2 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 17 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 17 00 B7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9C [19:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:37:27]wFMCommunicate OK [19:37:27]requested_item fd.num is exist - process it [19:37:27]SAM_PROTO_GetFieldsCounters [19:37:27]wFMCommunicate request_size=4 [19:37:27]MH_SAM_APDU [19:37:27]CAPDU: 80 13 00 00 [19:37:27]Write to MH i2c: E2 08 00 B8 11 80 13 00 00 00 00 00 00 45 [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:27]Read from MH i2c: E2 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 62 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 62 00 B8 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 92 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 92 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:27]wFMCommunicate OK [19:37:27]SAM_PROTO_GetFieldsCounters done [19:37:27]requested_item shift.num is exist - process it [19:37:27]requested_item shift.opened is exist - process it [19:37:27]req_shift_opened [19:37:27]FM_GetShiftState [19:37:27]SAM_PROTO_GetShiftState [19:37:27]wFMCommunicate request_size=4 [19:37:27]MH_SAM_APDU [19:37:27]CAPDU: 80 13 01 00 [19:37:27]Write to MH i2c: E2 08 00 B9 11 80 13 01 00 00 00 00 00 47 [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:27]Read from MH i2c: E2 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 0E 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 0E 00 B9 11 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C2 [19:37:27]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:37:27]wFMCommunicate OK [19:37:27]SAM_PROTO_GetShiftState done [19:37:27]FM_GetShiftState done [19:37:27]req_shift_opened done [19:37:27]requested_item shift.open_date is exist - process it [19:37:27]req_shift_open_date [19:37:27]req_shift_open_date done [19:37:27]produce_requested_data done [19:37:27]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22162,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:37:27]process_action_free close_receipt [19:37:27]json_value_free [19:37:27]json_value_free done [19:37:27]process_json_proto returns [19:37:27]Send response to host [19:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22162,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:37:27]free response buf [19:37:27]execute_script done [19:37:27]execute_script returns [19:37:27]free content buf [19:37:27]Sock 9.Close socket [19:37:27]Sock 9.Thread stoped [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:25]accept exits with 7 [19:49:25]New connection [19:49:25]New thread 3067039076 created [19:49:25]Thread 3067182436 joined [19:49:25]Waiting for new connection... [19:49:25] Sock 7.Parse request [19:49:25]Sock 7.Check first char [19:49:25]Sock 7.First char is OK [19:49:25]request: POST /json_proto HTTP/1.0 [19:49:25]Method: POST [19:49:25]URL: /json_proto [19:49:25]Method is POST - this is cgi request [19:49:25]url: /json_proto [19:49:25]query_string will be loaded in cgi processing [19:49:25]execute_cgi json_proto POST (null) [19:49:25]execute_cgi path=json_proto method=POST [19:49:25]POST find Content-Length [19:49:25]Host: 172.17.43.4:8080 [19:49:25]Content-Length: 1187 [19:49:25]Content-Type: application/json [19:49:25] [19:49:25]POST finish read [19:49:25]Found Content-Length = 1187 [19:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51429", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 564.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:25]execute_script... [19:49: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)51429", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 564.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:25]POST & json_proto [19:49:25]process_json_proto [19:49:25]json parsed OK: [19:49:25]protocol is kg_v1.0 [19:49:25]action value=close_receipt [19:49:25]process_action close_receipt [19:49:25]cmd_close_receipt [19:49:25]MH_GetDate [19:49:25]Write to MH i2c: F0 00 00 BA 11 BA [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: F0 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: F0 09 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: F0 09 00 BA 11 00 C8 74 F0 66 02 BF CF 66 4B [19:49:25]GetLastDocTimeStamp 1727033847 [19:49:25]current date 1727034568 [19:49:25]FM_GetShiftState [19:49:25]SAM_PROTO_GetShiftState [19:49:25]wFMCommunicate request_size=4 [19:49:25]MH_SAM_APDU [19:49:25]CAPDU: 80 13 01 00 [19:49:25]Write to MH i2c: E2 08 00 BB 11 80 13 01 00 00 00 00 00 49 [19:49:25]Write i2c OK [19:49:25]MH_I2C_Read... [19:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:25]Read from MH i2c: E2 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 0E 00 [19:49:25]MH_I2C_Read... [19:49:25]Read from MH i2c: E2 0E 00 BB 11 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 C4 [19:49:25]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:49:25]wFMCommunicate OK [19:49:25]SAM_PROTO_GetShiftState done [19:49:25]FM_GetShiftState done [19:49:25]opened in 1726964408 [19:49:25]opened+sec_in_day 1727050808 [19:49:25]quantity*price = 8000 [19:49:25]sum+1 = 8001 [19:49:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002082191 Водка Белое золото 0,46л 1.000 * 350.00 = 350.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741156 Сигареты LD Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 564.00 НСП 1% : 5.00 НДС 12% : 59.90 Наличными: 564.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 78 22.09.2024 19:49 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22163 ФПД: 133931459440965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194928&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22163&fm=133931459440965&tin=02508201610067®Number=0000000000146243&sum=56400 0 [19:49:26]StoreToDocumentArchive [19:49:26]shift 228 fd 22163 [19:49:26]save to /storage/0228/doc_00022163 [19:49:26]save last doc name /storage/0228/doc_00022163 to /storage/kkm_last_doc_name [19:49:26]save OK [19:49:26]Clear old archive folders... [19:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=498 [19:49:26]tlvbuf is 0023D5E0 [19:49:26]SAM_PROTO_ClearQueue [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 09 00 00 [19:49:26]Write to MH i2c: E2 08 00 C8 11 80 09 00 00 00 00 00 00 4B [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 03 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [19:49:26]RAPDU: 90 00 [19:49:26]wFMCommunicate OK [19:49:26]SAM_PROTO_ClearQueue done [19:49:26]KKMCreateOFDPacket [19:49:26]OFDProtocolAddRootSTLVToBuf [19:49:26]FM_MakeSignedData [19:49:26]FM_MakeSignedData [19:49:26]SAM_PROTO_SignData [19:49:26]wFMCommunicate request_size=4 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 0D 01 02 [19:49:26]Write to MH i2c: E2 08 00 C9 11 80 0D 01 02 00 00 00 00 53 [19:49:26]Write i2c OK [19:49:26]MH_I2C_Read... [19:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:26]Read from MH i2c: E2 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 03 00 [19:49:26]MH_I2C_Read... [19:49:26]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [19:49:26]RAPDU: 90 00 [19:49:26]wFMCommunicate OK [19:49:26]wFMCommunicate request_size=255 [19:49:26]MH_SAM_APDU [19:49:26]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 [19:49:27]Write to MH i2c: E2 02 01 CA 11 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 00 00 D8 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]OFD Sender: No OFD packet to send [19:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]wFMCommunicate request_size=255 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 02 02 FA 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 17 00 00 00 00 07 04 06 00 50 DC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C8 74 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 93 56 00 00 35 04 06 00 79 CF 59 10 [19:49:27]Write to MH i2c: E2 02 01 CB 11 80 0D 02 02 FA 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 17 00 00 00 00 07 04 06 00 50 DC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C8 74 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 93 56 00 00 35 04 06 00 79 CF 59 10 00 00 0E [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 CB 11 00 90 00 50 [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]wFMCommunicate request_size=7 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 02 02 02 71 45 [19:49:27]Write to MH i2c: E2 0A 00 CC 11 80 0D 02 02 02 00 71 45 00 00 11 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [19:49:27]RAPDU: 90 00 [19:49:27]wFMCommunicate OK [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 0D 03 02 [19:49:27]Write to MH i2c: E2 08 00 CD 11 80 0D 03 02 00 00 00 00 59 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 0B 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 0B 00 CD 11 00 A8 8A 94 6D 92 8C 7A 66 90 00 8B [19:49:27]RAPDU: A8 8A 94 6D 92 8C 7A 66 90 00 [19:49:27]wFMCommunicate OK [19:49:27]SAM_PROTO_SignData done [19:49:27]FM_MakeSignedData done [19:49:27]CreateOFDProtocolMessage [19:49:27]wFMCommunicate request_size=4 [19:49:27]MH_SAM_APDU [19:49:27]CAPDU: 80 11 00 00 [19:49:27]Write to MH i2c: E2 08 00 CE 11 80 11 00 00 00 00 00 00 59 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:27]Read from MH i2c: E2 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 17 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: E2 17 00 CE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B3 [19:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:49:27]wFMCommunicate OK [19:49:27]CreateOFDProtocolMessage done [19:49:27]OFDSenderStorePacket 22163 [19:49:27]StoreOFDPacket docnum=22163 [19:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 06 02 00 00 DE 57 FE 01 9F AF 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 17 00 00 00 00 07 04 06 00 50 DC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C8 74 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 93 56 00 00 35 04 06 00 79 CF 59 10 71 45 A8 8A 94 6D 92 8C 7A 66 [19:49:27]CheckFolder [19:49:27]dirname=/storage/ofd_packets [19:49:27]CheckFolder done [19:49:27]ProducePacketName [19:49:27]name=ofd_packets/00022163 [19:49:27]NVStorageSaveData ofd_packets/00022163 [19:49:27]File name is /storage/ofd_packets/00022163 [19:49:27]Write 548 bytes [19:49:27]NVStorageSaveData done [19:49:27]OFDSenderStorePacket done [19:49:27]KKMCreateOFDPacket done [19:49:27]NVStorageSaveData kkm_last_timestamp [19:49:27]File name is /storage/kkm_last_timestamp [19:49:27]Write 4 bytes [19:49:27]NVStorageSaveData done [19:49:27]ExternCall_PrintAddStr [19:49:27]wPrintStart [19:49:27]Write to MH i2c: 01 00 00 CF 11 E0 [19:49:27]Write i2c OK [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 07 00 [19:49:27]MH_I2C_Read... [19:49:27]Read from MH i2c: 01 07 00 CF 11 00 00 00 00 00 FF 0F F5 [19:49:27]RasterBufferAndPrint [19:49:27]line Счет N : (3)51429 [19:49:27]line ИНН: 02508201610067 [19:49:27]line Контрольно-Кассовый Чек [19:49:27]line ПРОДАЖА [19:49:27]line Товар: 4700003010353 [19:49:27]line Напиток Let`s Go! с/с груша ПЭТ 1л [19:49:27]line 1.000 * 80.00 [19:49:27]line = 80.00 [19:49:27]line НДС 12% НСП 1% [19:49:27]line > о реализуемом товаре [19:49:27]line Товар: 4700002082191 [19:49:27]line Водка Белое золото 0,46л [19:49:27]line 1.000 * 350.00 [19:49:27]line = 350.00 [19:49:27]line НДС 12% НСП 1% [19:49:27]line > о реализуемом товаре [19:49:27]line Товар: 48741156 [19:49:27]line Сигареты LD Blue [19:49:27]line 1.000 * 134.00 [19:49:27]line = 134.00 [19:49:27]line НДС 12% НСП 1% [19:49:27]line > о реализуемом товаре [19:49:27]line ИТОГО: 564.00 [19:49:27]line НСП 1% : 5.00 [19:49:27]line НДС 12% : 59.90 [19:49:27]line Наличными: 564.00 [19:49:27]line Безнал.: 0.00 [19:49:27]line Место: АЗС № 88 "Партнер Нефть" [19:49:27]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [19:49:27]line СНО: Общий режим [19:49:27]line Чек 78 22.09.2024 19:49 [19:49:27]line Смена: 228 ФФД: 1.0 [19:49:27]line ЗНМ: 0300000061 [19:49:27]line РНМ: 0000000000146243 [19:49:27]line Версия ККМ: v1.0 [19:49:27]line ФМ: 0000000000959358 [19:49:27]line ФД: 22163 [19:49:27]line ФПД: 133931459440965 [19:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T194928&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22163&fm=133931459440965&tin=02508201610067®Number=0000000000146243&sum=56400 [19:49:28]line 0 [19:49:28]OFD Sender: Processing packet 22163 [packets to send 23, broken 22] [19:49:28]ProducePacketName [19:49:28]name=ofd_packets/00022163 [19:49:28]OFD Sender: To server: pG, [19:49:28]CommunicateWithHost lk.salyk.kg:30040 [19:49:28]ConnectInit lk.salyk.kg [19:49:28]written 0, free lines is 4095 [19:49:28]Connected sock=10 [19:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 06 02 00 00 DE 57 FE 01 9F AF 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 DC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 17 00 00 00 00 07 04 06 00 50 DC 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C8 74 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 93 56 00 00 35 04 06 00 79 CF 59 10 71 45 A8 8A 94 6D 92 8C 7A 66 [19:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 EF 18 47 00 36 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 93 56 00 00 F4 03 04 00 F3 1E F0 66 B6 04 01 00 00 BD BC C5 82 65 D2 FC EA [19:49:28]CommunicateWithHost err = 0 [19:49:28]CheckOFDResponse [19:49:28]1017 (14) - 77093643461234 [19:49:28]1041 (16) - 0000000000959358 [19:49:28]1040 (4) - 22163 [19:49:28]1012 (4) - 22.09.2024 13:43 [19:49:28]1206 (1) - 0 [19:49:28]OFD Sender: Remove packet 22163 [19:49:28]ProducePacketName [19:49:28]name=ofd_packets/00022163 [19:49:28]NVStorageDeleteData [19:49:28]Write to MH i2c: 01 00 00 04 12 16 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 6F 0C 98 [19:49:28]RasterBufferAndPrint [19:49:28]line [19:49:28]line [19:49:28]line [19:49:28]line [19:49:28]line [19:49:28]written 0, free lines is 3192 [19:49:28]MH_Cut [19:49:28]Write to MH i2c: D1 01 00 0B 12 01 EF [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D1 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D1 01 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D1 01 00 0B 12 00 EE [19:49:28]Write to MH i2c: 01 00 00 0C 12 1E [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:29]OFD Sender: No OFD packet to send [19:49:29]*** Cut start [19:49:29]*** Partial cut [19:49:29]*** CUTSNS_PIN = 1 [19:49:29]*** CUTSNS_PIN = 0 [19:49:29]*** Brake cut motor [19:49:30]Read from MH i2c: 01 [19:49:30]MH_I2C_Read... [19:49:30]*** Stop cut motor [19:49:30]*** Cut end [19:49:30]Read from MH i2c: 01 07 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: 01 07 00 0C 12 00 00 00 00 00 FF 0F 33 [19:49:30]process_action close_receipt done [19:49:30]requested_data is exist [19:49:30]produce_requested_data [19:49:30]requested_item fm.sn is exist - process it [19:49:30]wFMCommunicate request_size=4 [19:49:30]MH_SAM_APDU [19:49:30]CAPDU: 80 11 00 00 [19:49:30]Write to MH i2c: E2 08 00 0D 12 80 11 00 00 00 00 00 00 99 [19:49:30]Write i2c OK [19:49:30]MH_I2C_Read... [19:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:30]Read from MH i2c: E2 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 17 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 17 00 0D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 F3 [19:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [19:49:30]wFMCommunicate OK [19:49:30]requested_item fd.num is exist - process it [19:49:30]SAM_PROTO_GetFieldsCounters [19:49:30]wFMCommunicate request_size=4 [19:49:30]MH_SAM_APDU [19:49:30]CAPDU: 80 13 00 00 [19:49:30]Write to MH i2c: E2 08 00 0E 12 80 13 00 00 00 00 00 00 9C [19:49:30]Write i2c OK [19:49:30]MH_I2C_Read... [19:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:30]Read from MH i2c: E2 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 62 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 62 00 0E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 93 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [19:49:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 93 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:30]wFMCommunicate OK [19:49:30]SAM_PROTO_GetFieldsCounters done [19:49:30]requested_item shift.num is exist - process it [19:49:30]requested_item shift.opened is exist - process it [19:49:30]req_shift_opened [19:49:30]FM_GetShiftState [19:49:30]SAM_PROTO_GetShiftState [19:49:30]wFMCommunicate request_size=4 [19:49:30]MH_SAM_APDU [19:49:30]CAPDU: 80 13 01 00 [19:49:30]Write to MH i2c: E2 08 00 0F 12 80 13 01 00 00 00 00 00 9E [19:49:30]Write i2c OK [19:49:30]MH_I2C_Read... [19:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:30]Read from MH i2c: E2 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 0E 00 [19:49:30]MH_I2C_Read... [19:49:30]Read from MH i2c: E2 0E 00 0F 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 19 [19:49:30]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [19:49:30]wFMCommunicate OK [19:49:30]SAM_PROTO_GetShiftState done [19:49:30]FM_GetShiftState done [19:49:30]req_shift_opened done [19:49:30]requested_item shift.open_date is exist - process it [19:49:30]req_shift_open_date [19:49:30]req_shift_open_date done [19:49:30]produce_requested_data done [19:49:30]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22163,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [19:49:30]process_action_free close_receipt [19:49:30]json_value_free [19:49:30]json_value_free done [19:49:30]process_json_proto returns [19:49:30]Send response to host [19:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22163,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [19:49:30]free response buf [19:49:30]execute_script done [19:49:30]execute_script returns [19:49:30]free content buf [19:49:30]Sock 7.Close socket [19:49:30]Sock 7.Thread stoped [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:26]accept exits with 9 [20:14:26]New connection [20:14:26]New thread 3067182436 created [20:14:26]Thread 3067039076 joined [20:14:26]Waiting for new connection... [20:14:26] Sock 9.Parse request [20:14:26]Sock 9.Check first char [20:14:26]Sock 9.First char is OK [20:14:26]request: POST /json_proto HTTP/1.0 [20:14:26]Method: POST [20:14:26]URL: /json_proto [20:14:26]Method is POST - this is cgi request [20:14:26]url: /json_proto [20:14:26]query_string will be loaded in cgi processing [20:14:26]execute_cgi json_proto POST (null) [20:14:26]execute_cgi path=json_proto method=POST [20:14:26]POST find Content-Length [20:14:26]Host: 172.17.43.4:8080 [20:14:26]Content-Length: 746 [20:14:26]Content-Type: application/json [20:14:26] [20:14:26]POST finish read [20:14:26]Found Content-Length = 746 [20:14:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51430", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:26]execute_script... [20:14: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)51430", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:26]POST & json_proto [20:14:26]process_json_proto [20:14:26]json parsed OK: [20:14:26]protocol is kg_v1.0 [20:14:26]action value=close_receipt [20:14:26]process_action close_receipt [20:14:26]cmd_close_receipt [20:14:26]MH_GetDate [20:14:26]Write to MH i2c: F0 00 00 10 12 11 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: F0 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: F0 09 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: F0 09 00 10 12 00 A5 7A F0 66 02 BF CF 66 85 [20:14:26]GetLastDocTimeStamp 1727034568 [20:14:26]current date 1727036069 [20:14:26]FM_GetShiftState [20:14:26]SAM_PROTO_GetShiftState [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 13 01 00 [20:14:26]Write to MH i2c: E2 08 00 11 12 80 13 01 00 00 00 00 00 A0 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0E 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0E 00 11 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 1B [20:14:26]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_GetShiftState done [20:14:26]FM_GetShiftState done [20:14:26]opened in 1726964408 [20:14:26]opened+sec_in_day 1727050808 [20:14:26]quantity*price = 0 [20:14:26]sum+1 = 1 [20:14:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 79 22.09.2024 20:14 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22164 ФПД: 65585393568544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201429&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22164&fm=65585393568544&tin=02508201610067®Number=0000000000146243&sum=0 0 [20:14:27]StoreToDocumentArchive [20:14:27]shift 228 fd 22164 [20:14:27]save to /storage/0228/doc_00022164 [20:14:27]save last doc name /storage/0228/doc_00022164 to /storage/kkm_last_doc_name [20:14:27]save OK [20:14:27]Clear old archive folders... [20:14:27]ProcessDocumentItem done err = 0, tmpTLVsize=278 [20:14:27]tlvbuf is 00225210 [20:14:27]SAM_PROTO_ClearQueue [20:14:27]wFMCommunicate request_size=4 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 09 00 00 [20:14:27]Write to MH i2c: E2 08 00 1E 12 80 09 00 00 00 00 00 00 A2 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [20:14:27]RAPDU: 90 00 [20:14:27]wFMCommunicate OK [20:14:27]SAM_PROTO_ClearQueue done [20:14:27]KKMCreateOFDPacket [20:14:27]OFDProtocolAddRootSTLVToBuf [20:14:27]FM_MakeSignedData [20:14:27]FM_MakeSignedData [20:14:27]SAM_PROTO_SignData [20:14:27]wFMCommunicate request_size=4 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 0D 01 02 [20:14:27]Write to MH i2c: E2 08 00 1F 12 80 0D 01 02 00 00 00 00 AA [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [20:14:27]RAPDU: 90 00 [20:14:27]wFMCommunicate OK [20:14:27]wFMCommunicate request_size=255 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 A5 7A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 [20:14:27]Write to MH i2c: E2 02 01 20 12 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 A5 7A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 00 00 66 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [20:14:27]RAPDU: 90 00 [20:14:27]wFMCommunicate OK [20:14:27]wFMCommunicate request_size=37 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 94 56 00 00 35 04 06 00 3B A6 4A 16 0B 20 [20:14:27]Write to MH i2c: E2 28 00 21 12 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 94 56 00 00 35 04 06 00 3B A6 4A 16 0B 20 00 00 61 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [20:14:27]RAPDU: 90 00 [20:14:27]wFMCommunicate OK [20:14:27]wFMCommunicate request_size=4 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 0D 03 02 [20:14:27]Write to MH i2c: E2 08 00 22 12 80 0D 03 02 00 00 00 00 AF [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 0B 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 0B 00 22 12 00 2B 20 96 11 EF 0E 0C B8 90 00 63 [20:14:27]RAPDU: 2B 20 96 11 EF 0E 0C B8 90 00 [20:14:27]wFMCommunicate OK [20:14:27]SAM_PROTO_SignData done [20:14:27]FM_MakeSignedData done [20:14:27]CreateOFDProtocolMessage [20:14:27]wFMCommunicate request_size=4 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 11 00 00 [20:14:27]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 17 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 09 [20:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:14:27]wFMCommunicate OK [20:14:27]CreateOFDProtocolMessage done [20:14:27]OFDSenderStorePacket 22164 [20:14:27]StoreOFDPacket docnum=22164 [20:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 22 90 22 01 88 25 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 A5 7A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 94 56 00 00 35 04 06 00 3B A6 4A 16 0B 20 2B 20 96 11 EF 0E 0C B8 [20:14:27]CheckFolder [20:14:27]dirname=/storage/ofd_packets [20:14:27]CheckFolder done [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00022164 [20:14:27]NVStorageSaveData ofd_packets/00022164 [20:14:27]File name is /storage/ofd_packets/00022164 [20:14:27]Write 328 bytes [20:14:27]NVStorageSaveData done [20:14:27]OFDSenderStorePacket done [20:14:27]KKMCreateOFDPacket done [20:14:27]NVStorageSaveData kkm_last_timestamp [20:14:27]File name is /storage/kkm_last_timestamp [20:14:27]Write 4 bytes [20:14:27]NVStorageSaveData done [20:14:27]ExternCall_PrintAddStr [20:14:27]wPrintStart [20:14:27]Write to MH i2c: 01 00 00 24 12 36 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 FF 0F 4B [20:14:27]RasterBufferAndPrint [20:14:27]line Счет N : (3)51430 [20:14:27]line ИНН: 02508201610067 [20:14:27]line Контрольно-Кассовый Чек [20:14:27]line ПРОДАЖА [20:14:27]line Товар: 4640030092499 [20:14:27]line Сигареты ESSE SENSE Himalaya [20:14:27]line 1.000 * 0.00 [20:14:27]line = 0.00 [20:14:27]line НДС 12% НСП 1% [20:14:27]line > о реализуемом товаре [20:14:27]line ИТОГО: 0.00 [20:14:27]line НСП 1% : 0.00 [20:14:27]line НДС 12% : 0.00 [20:14:27]line Наличными: 0.00 [20:14:27]line Безнал.: 0.00 [20:14:27]line Место: АЗС № 88 "Партнер Нефть" [20:14:27]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [20:14:27]line СНО: Общий режим [20:14:27]line Чек 79 22.09.2024 20:14 [20:14:27]line Смена: 228 ФФД: 1.0 [20:14:27]line ЗНМ: 0300000061 [20:14:27]line РНМ: 0000000000146243 [20:14:27]line Версия ККМ: v1.0 [20:14:27]line Платежная система: Mbank [20:14:27]line ФМ: 0000000000959358 [20:14:27]line ФД: 22164 [20:14:27]line ФПД: 65585393568544 [20:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T201429&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22164&fm=65585393568544&tin=02508201610067®Number=0000000000146243&sum=0 [20:14:28]OFD Sender: Processing packet 22164 [packets to send 23, broken 22] [20:14:28]ProducePacketName [20:14:28]name=ofd_packets/00022164 [20:14:28]OFD Sender: To server: pG, [20:14:28]CommunicateWithHost lk.salyk.kg:30040 [20:14:28]ConnectInit lk.salyk.kg [20:14:28]line 0 [20:14:28]written 0, free lines is 4095 [20:14:28]Connected sock=11 [20:14:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 22 90 22 01 88 25 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 A5 7A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 94 56 00 00 35 04 06 00 3B A6 4A 16 0B 20 2B 20 96 11 EF 0E 0C B8 [20:14:28]Write to MH i2c: 01 00 00 4E 12 60 [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 07 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: 01 07 00 4E 12 00 00 00 00 00 09 0D 7D [20:14:28]RasterBufferAndPrint [20:14:28]line [20:14:28]line [20:14:28]line [20:14:28]line [20:14:28]line [20:14:28]written 0, free lines is 3344 [20:14:28]MH_Cut [20:14:28]Write to MH i2c: D1 01 00 55 12 01 39 [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: D1 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: D1 01 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: D1 01 00 55 12 00 38 [20:14:28]Write to MH i2c: 01 00 00 56 12 68 [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 68 E4 47 00 D0 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 94 56 00 00 F4 03 04 00 D0 24 F0 66 B6 04 01 00 00 FA D0 7E 87 5F AC 02 95 [20:14:28]CommunicateWithHost err = 0 [20:14:28]CheckOFDResponse [20:14:28]1017 (14) - 77093643461234 [20:14:28]1041 (16) - 0000000000959358 [20:14:28]1040 (4) - 22164 [20:14:28]1012 (4) - 22.09.2024 14:08 [20:14:28]1206 (1) - 0 [20:14:28]OFD Sender: Remove packet 22164 [20:14:28]ProducePacketName [20:14:28]name=ofd_packets/00022164 [20:14:28]NVStorageDeleteData [20:14:29]OFD Sender: No OFD packet to send [20:14:29]*** Cut start [20:14:29]*** Partial cut [20:14:29]*** CUTSNS_PIN = 1 [20:14:29]*** CUTSNS_PIN = 0 [20:14:29]*** Brake cut motor [20:14:29]Read from MH i2c: 01 [20:14:29]MH_I2C_Read... [20:14:29]*** Stop cut motor [20:14:29]*** Cut end [20:14:29]Read from MH i2c: 01 07 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 56 12 00 00 00 00 00 FF 0F 7D [20:14:29]process_action close_receipt done [20:14:29]requested_data is exist [20:14:29]produce_requested_data [20:14:29]requested_item fm.sn is exist - process it [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 11 00 00 [20:14:29]Write to MH i2c: E2 08 00 57 12 80 11 00 00 00 00 00 00 E3 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 17 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 17 00 57 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 3D [20:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:14:29]wFMCommunicate OK [20:14:29]requested_item fd.num is exist - process it [20:14:29]SAM_PROTO_GetFieldsCounters [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 13 00 00 [20:14:29]Write to MH i2c: E2 08 00 58 12 80 13 00 00 00 00 00 00 E6 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:30]Read from MH i2c: E2 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: E2 62 00 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: E2 62 00 58 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 94 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [20:14:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 94 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:30]wFMCommunicate OK [20:14:30]SAM_PROTO_GetFieldsCounters done [20:14:30]requested_item shift.num is exist - process it [20:14:30]requested_item shift.opened is exist - process it [20:14:30]req_shift_opened [20:14:30]FM_GetShiftState [20:14:30]SAM_PROTO_GetShiftState [20:14:30]wFMCommunicate request_size=4 [20:14:30]MH_SAM_APDU [20:14:30]CAPDU: 80 13 01 00 [20:14:30]Write to MH i2c: E2 08 00 59 12 80 13 01 00 00 00 00 00 E8 [20:14:30]Write i2c OK [20:14:30]MH_I2C_Read... [20:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:30]Read from MH i2c: E2 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: E2 0E 00 [20:14:30]MH_I2C_Read... [20:14:30]Read from MH i2c: E2 0E 00 59 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 63 [20:14:30]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:14:30]wFMCommunicate OK [20:14:30]SAM_PROTO_GetShiftState done [20:14:30]FM_GetShiftState done [20:14:30]req_shift_opened done [20:14:30]requested_item shift.open_date is exist - process it [20:14:30]req_shift_open_date [20:14:30]req_shift_open_date done [20:14:30]produce_requested_data done [20:14:30]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22164,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [20:14:30]process_action_free close_receipt [20:14:30]json_value_free [20:14:30]json_value_free done [20:14:30]process_json_proto returns [20:14:30]Send response to host [20:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22164,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [20:14:30]free response buf [20:14:30]execute_script done [20:14:30]execute_script returns [20:14:30]free content buf [20:14:30]Sock 9.Close socket [20:14:30]Sock 9.Thread stoped [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: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:16]accept exits with 7 [20:25:16]New connection [20:25:16]New thread 3067039076 created [20:25:16]Thread 3067182436 joined [20:25:16]Waiting for new connection... [20:25:16] Sock 7.Parse request [20:25:16]Sock 7.Check first char [20:25:16]Sock 7.First char is OK [20:25:16]request: POST /json_proto HTTP/1.0 [20:25:16]Method: POST [20:25:16]URL: /json_proto [20:25:16]Method is POST - this is cgi request [20:25:16]url: /json_proto [20:25:16]query_string will be loaded in cgi processing [20:25:16]execute_cgi json_proto POST (null) [20:25:16]execute_cgi path=json_proto method=POST [20:25:16]POST find Content-Length [20:25:16]Host: 172.17.43.4:8080 [20:25:16]Content-Length: 645 [20:25:16]Content-Type: application/json [20:25:16] [20:25:16]POST finish read [20:25:16]Found Content-Length = 645 [20:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51431", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:16]execute_script... [20:25: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)51431", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 61.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:16]POST & json_proto [20:25:16]process_json_proto [20:25:16]json parsed OK: [20:25:16]protocol is kg_v1.0 [20:25:16]action value=close_receipt [20:25:16]process_action close_receipt [20:25:16]cmd_close_receipt [20:25:16]MH_GetDate [20:25:16]Write to MH i2c: F0 00 00 5A 12 5B [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: F0 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: F0 09 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: F0 09 00 5A 12 00 2F 7D F0 66 02 BF CF 66 5C [20:25:16]GetLastDocTimeStamp 1727036069 [20:25:16]current date 1727036719 [20:25:16]FM_GetShiftState [20:25:16]SAM_PROTO_GetShiftState [20:25:16]wFMCommunicate request_size=4 [20:25:16]MH_SAM_APDU [20:25:16]CAPDU: 80 13 01 00 [20:25:16]Write to MH i2c: E2 08 00 5B 12 80 13 01 00 00 00 00 00 EA [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0E 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0E 00 5B 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 65 [20:25:16]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:25:16]wFMCommunicate OK [20:25:16]SAM_PROTO_GetShiftState done [20:25:16]FM_GetShiftState done [20:25:16]opened in 1726964408 [20:25:16]opened+sec_in_day 1727050808 [20:25:16]quantity*price = 6100 [20:25:16]sum+1 = 6101 [20:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 61.00 НСП 1% : 0.54 НДС 12% : 6.48 Наличными: 61.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 80 22.09.2024 20:25 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22165 ФПД: 172176400663139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202519&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22165&fm=172176400663139&tin=02508201610067®Number=0000000000146243&sum=6100 0 [20:25:17]StoreToDocumentArchive [20:25:17]shift 228 fd 22165 [20:25:17]save to /storage/0228/doc_00022165 [20:25:17]save last doc name /storage/0228/doc_00022165 to /storage/kkm_last_doc_name [20:25:17]save OK [20:25:17]Clear old archive folders... [20:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=285 [20:25:17]tlvbuf is B6EE0A30 [20:25:17]SAM_PROTO_ClearQueue [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 09 00 00 [20:25:17]Write to MH i2c: E2 08 00 68 12 80 09 00 00 00 00 00 00 EC [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 68 12 00 90 00 EE [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_ClearQueue done [20:25:17]KKMCreateOFDPacket [20:25:17]OFDProtocolAddRootSTLVToBuf [20:25:17]FM_MakeSignedData [20:25:17]FM_MakeSignedData [20:25:17]SAM_PROTO_SignData [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 01 02 [20:25:17]Write to MH i2c: E2 08 00 69 12 80 0D 01 02 00 00 00 00 F4 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 69 12 00 90 00 EF [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=255 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 2F 7D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 [20:25:17]Write to MH i2c: E2 02 01 6A 12 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 2F 7D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 00 00 A9 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 6A 12 00 90 00 F0 [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=44 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 95 56 00 00 35 04 06 00 9C 97 F1 33 42 63 [20:25:17]Write to MH i2c: E2 2F 00 6B 12 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 95 56 00 00 35 04 06 00 9C 97 F1 33 42 63 00 00 02 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 03 00 6B 12 00 90 00 F1 [20:25:17]RAPDU: 90 00 [20:25:17]wFMCommunicate OK [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 0D 03 02 [20:25:17]Write to MH i2c: E2 08 00 6C 12 80 0D 03 02 00 00 00 00 F9 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 0B 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 0B 00 6C 12 00 B1 03 10 08 C0 74 0B 28 90 00 2D [20:25:17]RAPDU: B1 03 10 08 C0 74 0B 28 90 00 [20:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_SignData done [20:25:17]FM_MakeSignedData done [20:25:17]CreateOFDProtocolMessage [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 11 00 00 [20:25:17]Write to MH i2c: E2 08 00 6D 12 80 11 00 00 00 00 00 00 F9 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 17 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 17 00 6D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 53 [20:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:25:17]wFMCommunicate OK [20:25:17]CreateOFDProtocolMessage done [20:25:17]OFDSenderStorePacket 22165 [20:25:17]StoreOFDPacket docnum=22165 [20:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 31 01 00 00 62 C8 29 01 B8 25 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 2F 7D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 95 56 00 00 35 04 06 00 9C 97 F1 33 42 63 B1 03 10 08 C0 74 0B 28 [20:25:17]CheckFolder [20:25:17]dirname=/storage/ofd_packets [20:25:17]CheckFolder done [20:25:17]ProducePacketName [20:25:17]name=ofd_packets/00022165 [20:25:17]NVStorageSaveData ofd_packets/00022165 [20:25:17]File name is /storage/ofd_packets/00022165 [20:25:17]Write 335 bytes [20:25:17]NVStorageSaveData done [20:25:17]OFDSenderStorePacket done [20:25:17]KKMCreateOFDPacket done [20:25:17]NVStorageSaveData kkm_last_timestamp [20:25:17]File name is /storage/kkm_last_timestamp [20:25:17]Write 4 bytes [20:25:17]NVStorageSaveData done [20:25:17]ExternCall_PrintAddStr [20:25:17]wPrintStart [20:25:17]Write to MH i2c: 01 00 00 6E 12 80 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 6E 12 00 00 00 00 00 FF 0F 95 [20:25:17]RasterBufferAndPrint [20:25:17]line Счет N : (3)51431 [20:25:17]line ИНН: 02508201610067 [20:25:17]line Контрольно-Кассовый Чек [20:25:17]line ПРОДАЖА [20:25:17]line Товар: 4870001154035 [20:25:17]line Напиток Lipton IceTea 0,5л перс [20:25:17]line 1.000 * 61.00 [20:25:17]line = 61.00 [20:25:17]line НДС 12% НСП 1% [20:25:17]line > о реализуемом товаре [20:25:17]line ИТОГО: 61.00 [20:25:17]line НСП 1% : 0.54 [20:25:17]line НДС 12% : 6.48 [20:25:17]line Наличными: 61.00 [20:25:17]line Безнал.: 0.00 [20:25:17]line Место: АЗС № 88 "Партнер Нефть" [20:25:17]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [20:25:17]line СНО: Общий режим [20:25:17]line Чек 80 22.09.2024 20:25 [20:25:17]line Смена: 228 ФФД: 1.0 [20:25:17]line ЗНМ: 0300000061 [20:25:17]line РНМ: 0000000000146243 [20:25:18]line Версия ККМ: v1.0 [20:25:18]line ФМ: 0000000000959358 [20:25:18]line ФД: 22165 [20:25:18]line ФПД: 172176400663139 [20:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T202519&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22165&fm=172176400663139&tin=02508201610067®Number=0000000000146243&sum=6100 [20:25:18]line 0 [20:25:18]OFD Sender: Processing packet 22165 [packets to send 23, broken 22] [20:25:18]ProducePacketName [20:25:18]name=ofd_packets/00022165 [20:25:18]OFD Sender: To server: pG, [20:25:18]CommunicateWithHost lk.salyk.kg:30040 [20:25:18]ConnectInit lk.salyk.kg [20:25:18]written 0, free lines is 4095 [20:25:18]Connected sock=10 [20:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 31 01 00 00 62 C8 29 01 B8 25 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 02 00 00 00 00 07 04 06 00 D4 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 2F 7D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 95 56 00 00 35 04 06 00 9C 97 F1 33 42 63 B1 03 10 08 C0 74 0B 28 [20:25:18]Write to MH i2c: 01 00 00 97 12 A9 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 07 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 07 00 97 12 00 00 00 00 00 07 0D C4 [20:25:18]RasterBufferAndPrint [20:25:18]line [20:25:18]line [20:25:18]line [20:25:18]line [20:25:18]line [20:25:18]written 0, free lines is 3342 [20:25:18]MH_Cut [20:25:18]Write to MH i2c: D1 01 00 9E 12 01 82 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: D1 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: D1 01 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: D1 01 00 9E 12 00 81 [20:25:18]Write to MH i2c: 01 00 00 9F 12 B1 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 F3 86 47 00 E8 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 95 56 00 00 F4 03 04 00 59 27 F0 66 B6 04 01 00 00 96 16 2E 01 75 5C 8C D4 [20:25:18]CommunicateWithHost err = 0 [20:25:18]CheckOFDResponse [20:25:18]1017 (14) - 77093643461234 [20:25:18]1041 (16) - 0000000000959358 [20:25:18]1040 (4) - 22165 [20:25:18]1012 (4) - 22.09.2024 14:19 [20:25:18]1206 (1) - 0 [20:25:18]OFD Sender: Remove packet 22165 [20:25:18]ProducePacketName [20:25:18]name=ofd_packets/00022165 [20:25:18]NVStorageDeleteData [20:25:19]OFD Sender: No OFD packet to send [20:25:19]*** Cut start [20:25:19]*** Partial cut [20:25:19]*** CUTSNS_PIN = 1 [20:25:19]*** CUTSNS_PIN = 0 [20:25:19]*** Brake cut motor [20:25:19]Read from MH i2c: 01 [20:25:19]MH_I2C_Read... [20:25:19]*** Stop cut motor [20:25:19]*** Cut end [20:25:19]Read from MH i2c: 01 07 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: 01 07 00 9F 12 00 00 00 00 00 FF 0F C6 [20:25:19]process_action close_receipt done [20:25:19]requested_data is exist [20:25:19]produce_requested_data [20:25:19]requested_item fm.sn is exist - process it [20:25:19]wFMCommunicate request_size=4 [20:25:19]MH_SAM_APDU [20:25:19]CAPDU: 80 11 00 00 [20:25:19]Write to MH i2c: E2 08 00 A0 12 80 11 00 00 00 00 00 00 2C [20:25:19]Write i2c OK [20:25:19]MH_I2C_Read... [20:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:19]Read from MH i2c: E2 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 17 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 17 00 A0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 86 [20:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:25:19]wFMCommunicate OK [20:25:19]requested_item fd.num is exist - process it [20:25:19]SAM_PROTO_GetFieldsCounters [20:25:19]wFMCommunicate request_size=4 [20:25:19]MH_SAM_APDU [20:25:19]CAPDU: 80 13 00 00 [20:25:19]Write to MH i2c: E2 08 00 A1 12 80 13 00 00 00 00 00 00 2F [20:25:19]Write i2c OK [20:25:19]MH_I2C_Read... [20:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:19]Read from MH i2c: E2 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 62 00 [20:25:19]MH_I2C_Read... [20:25:19]Read from MH i2c: E2 62 00 A1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 95 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [20:25:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 95 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:19]wFMCommunicate OK [20:25:19]SAM_PROTO_GetFieldsCounters done [20:25:19]requested_item shift.num is exist - process it [20:25:19]requested_item shift.opened is exist - process it [20:25:19]req_shift_opened [20:25:19]FM_GetShiftState [20:25:19]SAM_PROTO_GetShiftState [20:25:19]wFMCommunicate request_size=4 [20:25:19]MH_SAM_APDU [20:25:19]CAPDU: 80 13 01 00 [20:25:19]Write to MH i2c: E2 08 00 A2 12 80 13 01 00 00 00 00 00 31 [20:25:19]Write i2c OK [20:25:19]MH_I2C_Read... [20:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:20]Read from MH i2c: E2 [20:25:20]MH_I2C_Read... [20:25:20]Read from MH i2c: E2 0E 00 [20:25:20]MH_I2C_Read... [20:25:20]Read from MH i2c: E2 0E 00 A2 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 AC [20:25:20]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:25:20]wFMCommunicate OK [20:25:20]SAM_PROTO_GetShiftState done [20:25:20]FM_GetShiftState done [20:25:20]req_shift_opened done [20:25:20]requested_item shift.open_date is exist - process it [20:25:20]req_shift_open_date [20:25:20]req_shift_open_date done [20:25:20]produce_requested_data done [20:25:20]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22165,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [20:25:20]process_action_free close_receipt [20:25:20]json_value_free [20:25:20]json_value_free done [20:25:20]process_json_proto returns [20:25:20]Send response to host [20:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22165,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [20:25:20]free response buf [20:25:20]execute_script done [20:25:20]execute_script returns [20:25:20]free content buf [20:25:20]Sock 7.Close socket [20:25:20]Sock 7.Thread stoped [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:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:53]accept exits with 9 [20:39:53]New connection [20:39:53]New thread 3067182436 created [20:39:53]Thread 3067039076 joined [20:39:53]Waiting for new connection... [20:39:53] Sock 9.Parse request [20:39:53]Sock 9.Check first char [20:39:53]Sock 9.First char is OK [20:39:53]request: POST /json_proto HTTP/1.0 [20:39:53]Method: POST [20:39:53]URL: /json_proto [20:39:53]Method is POST - this is cgi request [20:39:53]url: /json_proto [20:39:53]query_string will be loaded in cgi processing [20:39:53]execute_cgi json_proto POST (null) [20:39:53]execute_cgi path=json_proto method=POST [20:39:53]POST find Content-Length [20:39:53]Host: 172.17.43.4:8080 [20:39:53]Content-Length: 937 [20:39:53]Content-Type: application/json [20:39:53] [20:39:53]POST finish read [20:39:53]Found Content-Length = 937 [20:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51432", "tax_sys" : 0, "items" : [ { "code": "4607969940055", "name": "Bizon \u044D\u043D\u0435\u0440. \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u0430\u043B\u0438\u043D\u0430", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:53]execute_script... [20:39:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51432", "tax_sys" : 0, "items" : [ { "code": "4607969940055", "name": "Bizon \u044D\u043D\u0435\u0440. \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u0430\u043B\u0438\u043D\u0430", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:53]POST & json_proto [20:39:53]process_json_proto [20:39:53]json parsed OK: [20:39:53]protocol is kg_v1.0 [20:39:53]action value=close_receipt [20:39:53]process_action close_receipt [20:39:53]cmd_close_receipt [20:39:53]MH_GetDate [20:39:53]Write to MH i2c: F0 00 00 A3 12 A4 [20:39:53]Write i2c OK [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: F0 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: F0 09 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: F0 09 00 A3 12 00 9C 80 F0 66 02 BF CF 66 15 [20:39:53]GetLastDocTimeStamp 1727036719 [20:39:53]current date 1727037596 [20:39:53]FM_GetShiftState [20:39:53]SAM_PROTO_GetShiftState [20:39:53]wFMCommunicate request_size=4 [20:39:53]MH_SAM_APDU [20:39:53]CAPDU: 80 13 01 00 [20:39:53]Write to MH i2c: E2 08 00 A4 12 80 13 01 00 00 00 00 00 33 [20:39:53]Write i2c OK [20:39:53]MH_I2C_Read... [20:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:53]Read from MH i2c: E2 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 0E 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 0E 00 A4 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 AE [20:39:53]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:39:53]wFMCommunicate OK [20:39:53]SAM_PROTO_GetShiftState done [20:39:53]FM_GetShiftState done [20:39:53]opened in 1726964408 [20:39:53]opened+sec_in_day 1727050808 [20:39:53]quantity*price = 8500 [20:39:53]sum+1 = 8501 [20:39:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002086380 Водка Сары челек 0,35л 1.000 * 260.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.64 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 81 22.09.2024 20:39 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22166 ФПД: 195555860663439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203956&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22166&fm=195555860663439&tin=02508201610067®Number=0000000000146243&sum=34500 0 [20:39:54]StoreToDocumentArchive [20:39:54]shift 228 fd 22166 [20:39:54]save to /storage/0228/doc_00022166 [20:39:54]save last doc name /storage/0228/doc_00022166 to /storage/kkm_last_doc_name [20:39:54]save OK [20:39:54]Clear old archive folders... [20:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=394 [20:39:54]tlvbuf is B6EE0690 [20:39:54]SAM_PROTO_ClearQueue [20:39:54]wFMCommunicate request_size=4 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 09 00 00 [20:39:54]Write to MH i2c: E2 08 00 B1 12 80 09 00 00 00 00 00 00 35 [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 03 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [20:39:54]RAPDU: 90 00 [20:39:54]wFMCommunicate OK [20:39:54]SAM_PROTO_ClearQueue done [20:39:54]KKMCreateOFDPacket [20:39:54]OFDProtocolAddRootSTLVToBuf [20:39:54]FM_MakeSignedData [20:39:54]FM_MakeSignedData [20:39:54]SAM_PROTO_SignData [20:39:54]wFMCommunicate request_size=4 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 0D 01 02 [20:39:54]Write to MH i2c: E2 08 00 B2 12 80 0D 01 02 00 00 00 00 3D [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 03 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [20:39:54]RAPDU: 90 00 [20:39:54]wFMCommunicate OK [20:39:54]wFMCommunicate request_size=255 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 35 35 06 04 2B 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 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 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F [20:39:54]Write to MH i2c: E2 02 01 B3 12 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 35 35 06 04 2B 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 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 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 26 [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:54]OFD Sender: No OFD packet to send [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 03 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [20:39:54]RAPDU: 90 00 [20:39:54]wFMCommunicate OK [20:39:54]wFMCommunicate request_size=153 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 9C 80 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 96 56 00 00 35 04 06 00 B1 DB 65 9B CC 8F [20:39:54]Write to MH i2c: E2 9C 00 B4 12 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 9C 80 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 96 56 00 00 35 04 06 00 B1 DB 65 9B CC 8F 00 00 E6 [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [20:39:55]RAPDU: 90 00 [20:39:55]wFMCommunicate OK [20:39:55]wFMCommunicate request_size=4 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 0D 03 02 [20:39:55]Write to MH i2c: E2 08 00 B5 12 80 0D 03 02 00 00 00 00 42 [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 0B 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 0B 00 B5 12 00 A6 F0 90 58 7C C6 D3 D8 90 00 AE [20:39:55]RAPDU: A6 F0 90 58 7C C6 D3 D8 90 00 [20:39:55]wFMCommunicate OK [20:39:55]SAM_PROTO_SignData done [20:39:55]FM_MakeSignedData done [20:39:55]CreateOFDProtocolMessage [20:39:55]wFMCommunicate request_size=4 [20:39:55]MH_SAM_APDU [20:39:55]CAPDU: 80 11 00 00 [20:39:55]Write to MH i2c: E2 08 00 B6 12 80 11 00 00 00 00 00 00 42 [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:55]Read from MH i2c: E2 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 17 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: E2 17 00 B6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9C [20:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:39:55]wFMCommunicate OK [20:39:55]CreateOFDProtocolMessage done [20:39:55]OFDSenderStorePacket 22166 [20:39:55]StoreOFDPacket docnum=22166 [20:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9E 01 00 00 B1 09 96 01 74 92 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 35 35 06 04 2B 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 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 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 9C 80 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 96 56 00 00 35 04 06 00 B1 DB 65 9B CC 8F A6 F0 90 58 7C C6 D3 D8 [20:39:55]CheckFolder [20:39:55]dirname=/storage/ofd_packets [20:39:55]CheckFolder done [20:39:55]ProducePacketName [20:39:55]name=ofd_packets/00022166 [20:39:55]NVStorageSaveData ofd_packets/00022166 [20:39:55]File name is /storage/ofd_packets/00022166 [20:39:55]Write 444 bytes [20:39:55]NVStorageSaveData done [20:39:55]OFDSenderStorePacket done [20:39:55]KKMCreateOFDPacket done [20:39:55]NVStorageSaveData kkm_last_timestamp [20:39:55]File name is /storage/kkm_last_timestamp [20:39:55]Write 4 bytes [20:39:55]NVStorageSaveData done [20:39:55]ExternCall_PrintAddStr [20:39:55]wPrintStart [20:39:55]Write to MH i2c: 01 00 00 B7 12 C9 [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 [20:39:55]MH_I2C_Read... [20:39:55]OFD Sender: Processing packet 22166 [packets to send 23, broken 22] [20:39:55]ProducePacketName [20:39:55]name=ofd_packets/00022166 [20:39:55]OFD Sender: To server: pG, [20:39:55]CommunicateWithHost lk.salyk.kg:30040 [20:39:55]ConnectInit lk.salyk.kg [20:39:55]Read from MH i2c: 01 07 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 FF 0F DE [20:39:55]RasterBufferAndPrint [20:39:55]line Счет N : (3)51432 [20:39:55]line ИНН: 02508201610067 [20:39:55]line Контрольно-Кассовый Чек [20:39:55]line ПРОДАЖА [20:39:55]line Товар: 4607969940055 [20:39:55]line Bizon энер. напиток Малина [20:39:55]line 1.000 * 85.00 [20:39:55]line = 85.00 [20:39:55]line НДС 12% НСП 1% [20:39:55]line > о реализуемом товаре [20:39:55]line Товар: 4700002086380 [20:39:55]line Водка Сары челек 0,35л [20:39:55]line 1.000 * 260.00 [20:39:55]line = 260.00 [20:39:55]line НДС 12% НСП 1% [20:39:55]line > о реализуемом товаре [20:39:55]line ИТОГО: 345.00 [20:39:55]line НСП 1% : 3.05 [20:39:55]line НДС 12% : 36.64 [20:39:55]line Наличными: 345.00 [20:39:55]line Безнал.: 0.00 [20:39:55]line Место: АЗС № 88 "Партнер Нефть" [20:39:55]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [20:39:55]line СНО: Общий режим [20:39:55]line Чек 81 22.09.2024 20:39 [20:39:55]line Смена: 228 ФФД: 1.0 [20:39:55]line ЗНМ: 0300000061 [20:39:55]line РНМ: 0000000000146243 [20:39:55]line Версия ККМ: v1.0 [20:39:55]line ФМ: 0000000000959358 [20:39:55]line ФД: 22166 [20:39:55]line ФПД: 195555860663439 [20:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T203956&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22166&fm=195555860663439&tin=02508201610067®Number=0000000000146243&sum=34500 [20:39:55]line 0 [20:39:55]written 0, free lines is 4095 [20:39:55]Connected sock=10 [20:39:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9E 01 00 00 B1 09 96 01 74 92 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 35 35 06 04 2B 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 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 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 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 9C 80 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 96 56 00 00 35 04 06 00 B1 DB 65 9B CC 8F A6 F0 90 58 7C C6 D3 D8 [20:39:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 44 3B 47 00 93 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 39 35 39 33 35 38 10 04 04 00 96 56 00 00 F4 03 04 00 C7 2A F0 66 B6 04 01 00 00 72 C8 2B 38 C7 85 B8 37 [20:39:55]CommunicateWithHost err = 0 [20:39:55]CheckOFDResponse [20:39:55]1017 (14) - 77093643461234 [20:39:55]1041 (16) - 0000000000959358 [20:39:55]1040 (4) - 22166 [20:39:55]1012 (4) - 22.09.2024 14:33 [20:39:55]1206 (1) - 0 [20:39:55]OFD Sender: Remove packet 22166 [20:39:55]ProducePacketName [20:39:55]name=ofd_packets/00022166 [20:39:55]NVStorageDeleteData [20:39:55]Write to MH i2c: 01 00 00 E5 12 F7 [20:39:55]Write i2c OK [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 07 00 [20:39:55]MH_I2C_Read... [20:39:55]Read from MH i2c: 01 07 00 E5 12 00 00 00 00 00 F6 0C 00 [20:39:55]RasterBufferAndPrint [20:39:55]line [20:39:55]line [20:39:55]line [20:39:55]line [20:39:55]line [20:39:55]written 0, free lines is 3327 [20:39:56]MH_Cut [20:39:56]Write to MH i2c: D1 01 00 EC 12 01 D0 [20:39:56]Write i2c OK [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: D1 [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: D1 01 00 [20:39:56]MH_I2C_Read... [20:39:56]Read from MH i2c: D1 01 00 EC 12 00 CF [20:39:56]Write to MH i2c: 01 00 00 ED 12 FF [20:39:56]Write i2c OK [20:39:56]MH_I2C_Read... [20:39:56]OFD Sender: No OFD packet to send [20:39:56]*** Cut start [20:39:56]*** Partial cut [20:39:56]*** CUTSNS_PIN = 1 [20:39:56]*** CUTSNS_PIN = 0 [20:39:56]*** Brake cut motor [20:39:57]Read from MH i2c: 01 [20:39:57]MH_I2C_Read... [20:39:57]*** Stop cut motor [20:39:57]*** Cut end [20:39:57]Read from MH i2c: 01 07 00 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: 01 07 00 ED 12 00 00 00 00 00 FF 0F 14 [20:39:57]process_action close_receipt done [20:39:57]requested_data is exist [20:39:57]produce_requested_data [20:39:57]requested_item fm.sn is exist - process it [20:39:57]wFMCommunicate request_size=4 [20:39:57]MH_SAM_APDU [20:39:57]CAPDU: 80 11 00 00 [20:39:57]Write to MH i2c: E2 08 00 EE 12 80 11 00 00 00 00 00 00 7A [20:39:57]Write i2c OK [20:39:57]MH_I2C_Read... [20:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:57]Read from MH i2c: E2 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: E2 17 00 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: E2 17 00 EE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D4 [20:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:39:57]wFMCommunicate OK [20:39:57]requested_item fd.num is exist - process it [20:39:57]SAM_PROTO_GetFieldsCounters [20:39:57]wFMCommunicate request_size=4 [20:39:57]MH_SAM_APDU [20:39:57]CAPDU: 80 13 00 00 [20:39:57]Write to MH i2c: E2 08 00 EF 12 80 13 00 00 00 00 00 00 7D [20:39:57]Write i2c OK [20:39:57]MH_I2C_Read... [20:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:57]Read from MH i2c: E2 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: E2 62 00 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: E2 62 00 EF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 96 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [20:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 96 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:57]wFMCommunicate OK [20:39:57]SAM_PROTO_GetFieldsCounters done [20:39:57]requested_item shift.num is exist - process it [20:39:57]requested_item shift.opened is exist - process it [20:39:57]req_shift_opened [20:39:57]FM_GetShiftState [20:39:57]SAM_PROTO_GetShiftState [20:39:57]wFMCommunicate request_size=4 [20:39:57]MH_SAM_APDU [20:39:57]CAPDU: 80 13 01 00 [20:39:57]Write to MH i2c: E2 08 00 F0 12 80 13 01 00 00 00 00 00 7F [20:39:57]Write i2c OK [20:39:57]MH_I2C_Read... [20:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:57]Read from MH i2c: E2 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: E2 0E 00 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: E2 0E 00 F0 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FA [20:39:57]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:39:57]wFMCommunicate OK [20:39:57]SAM_PROTO_GetShiftState done [20:39:57]FM_GetShiftState done [20:39:57]req_shift_opened done [20:39:57]requested_item shift.open_date is exist - process it [20:39:57]req_shift_open_date [20:39:57]req_shift_open_date done [20:39:57]produce_requested_data done [20:39:57]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22166,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [20:39:57]process_action_free close_receipt [20:39:57]json_value_free [20:39:57]json_value_free done [20:39:57]process_json_proto returns [20:39:57]Send response to host [20:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22166,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [20:39:57]free response buf [20:39:57]execute_script done [20:39:57]execute_script returns [20:39:57]free content buf [20:39:57]Sock 9.Close socket [20:39:57]Sock 9.Thread stoped [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]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:33]accept exits with 7 [20:44:33]New connection [20:44:33]New thread 3067039076 created [20:44:33]Thread 3067182436 joined [20:44:33]Waiting for new connection... [20:44:33] Sock 7.Parse request [20:44:33]Sock 7.Check first char [20:44:33]Sock 7.First char is OK [20:44:33]request: POST /json_proto HTTP/1.0 [20:44:33]Method: POST [20:44:33]URL: /json_proto [20:44:33]Method is POST - this is cgi request [20:44:33]url: /json_proto [20:44:33]query_string will be loaded in cgi processing [20:44:33]execute_cgi json_proto POST (null) [20:44:33]execute_cgi path=json_proto method=POST [20:44:33]POST find Content-Length [20:44:33]Host: 172.17.43.4:8080 [20:44:33]Content-Length: 646 [20:44:33]Content-Type: application/json [20:44:33] [20:44:33]POST finish read [20:44:33]Found Content-Length = 646 [20:44:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51433", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:33]execute_script... [20:44: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)51433", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:33]POST & json_proto [20:44:33]process_json_proto [20:44:33]json parsed OK: [20:44:33]protocol is kg_v1.0 [20:44:33]action value=close_receipt [20:44:33]process_action close_receipt [20:44:33]cmd_close_receipt [20:44:33]MH_GetDate [20:44:33]Write to MH i2c: F0 00 00 F1 12 F2 [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: F0 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: F0 09 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: F0 09 00 F1 12 00 B4 81 F0 66 02 BF CF 66 7C [20:44:33]GetLastDocTimeStamp 1727037596 [20:44:33]current date 1727037876 [20:44:33]FM_GetShiftState [20:44:33]SAM_PROTO_GetShiftState [20:44:33]wFMCommunicate request_size=4 [20:44:33]MH_SAM_APDU [20:44:33]CAPDU: 80 13 01 00 [20:44:33]Write to MH i2c: E2 08 00 F2 12 80 13 01 00 00 00 00 00 81 [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:33]Read from MH i2c: E2 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 0E 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 0E 00 F2 12 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FC [20:44:33]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:44:33]wFMCommunicate OK [20:44:33]SAM_PROTO_GetShiftState done [20:44:33]FM_GetShiftState done [20:44:33]opened in 1726964408 [20:44:33]opened+sec_in_day 1727050808 [20:44:33]quantity*price = 25000 [20:44:33]sum+1 = 25001 [20:44:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 82 22.09.2024 20:44 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22167 ФПД: 266845605236541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204436&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22167&fm=266845605236541&tin=02508201610067®Number=0000000000146243&sum=25000 0 [20:44:34]StoreToDocumentArchive [20:44:34]shift 228 fd 22167 [20:44:34]save to /storage/0228/doc_00022167 [20:44:34]save last doc name /storage/0228/doc_00022167 to /storage/kkm_last_doc_name [20:44:34]save OK [20:44:34]Clear old archive folders... [20:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:44:34]tlvbuf is 00236900 [20:44:34]SAM_PROTO_ClearQueue [20:44:34]wFMCommunicate request_size=4 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 09 00 00 [20:44:34]Write to MH i2c: E2 08 00 FF 12 80 09 00 00 00 00 00 00 83 [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 FF 12 00 90 00 85 [20:44:34]RAPDU: 90 00 [20:44:34]wFMCommunicate OK [20:44:34]SAM_PROTO_ClearQueue done [20:44:34]KKMCreateOFDPacket [20:44:34]OFDProtocolAddRootSTLVToBuf [20:44:34]FM_MakeSignedData [20:44:34]FM_MakeSignedData [20:44:34]SAM_PROTO_SignData [20:44:34]wFMCommunicate request_size=4 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 0D 01 02 [20:44:34]Write to MH i2c: E2 08 00 00 13 80 0D 01 02 00 00 00 00 8C [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 00 13 00 90 00 87 [20:44:34]RAPDU: 90 00 [20:44:34]wFMCommunicate OK [20:44:34]wFMCommunicate request_size=255 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B4 81 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [20:44:34]Write to MH i2c: E2 02 01 01 13 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B4 81 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 10 [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 01 13 00 90 00 88 [20:44:34]RAPDU: 90 00 [20:44:34]wFMCommunicate OK [20:44:34]wFMCommunicate request_size=34 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 97 56 00 00 35 04 06 00 F2 B1 D5 82 8F 3D [20:44:34]Write to MH i2c: E2 25 00 02 13 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 97 56 00 00 35 04 06 00 F2 B1 D5 82 8F 3D 00 00 0A [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 03 00 02 13 00 90 00 89 [20:44:34]RAPDU: 90 00 [20:44:34]wFMCommunicate OK [20:44:34]wFMCommunicate request_size=4 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 0D 03 02 [20:44:34]Write to MH i2c: E2 08 00 03 13 80 0D 03 02 00 00 00 00 91 [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 0B 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 0B 00 03 13 00 0D BC DB 44 42 D9 47 87 90 00 63 [20:44:34]RAPDU: 0D BC DB 44 42 D9 47 87 90 00 [20:44:34]wFMCommunicate OK [20:44:34]SAM_PROTO_SignData done [20:44:34]FM_MakeSignedData done [20:44:34]CreateOFDProtocolMessage [20:44:34]wFMCommunicate request_size=4 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 11 00 00 [20:44:34]Write to MH i2c: E2 08 00 04 13 80 11 00 00 00 00 00 00 91 [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 17 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 17 00 04 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EB [20:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:44:34]wFMCommunicate OK [20:44:34]CreateOFDProtocolMessage done [20:44:34]OFDSenderStorePacket 22167 [20:44:34]StoreOFDPacket docnum=22167 [20:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 4D 43 1F 01 0F B9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B4 81 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 97 56 00 00 35 04 06 00 F2 B1 D5 82 8F 3D 0D BC DB 44 42 D9 47 87 [20:44:34]CheckFolder [20:44:34]dirname=/storage/ofd_packets [20:44:34]CheckFolder done [20:44:34]ProducePacketName [20:44:34]name=ofd_packets/00022167 [20:44:34]NVStorageSaveData ofd_packets/00022167 [20:44:34]File name is /storage/ofd_packets/00022167 [20:44:34]Write 325 bytes [20:44:34]NVStorageSaveData done [20:44:34]OFDSenderStorePacket done [20:44:34]KKMCreateOFDPacket done [20:44:34]NVStorageSaveData kkm_last_timestamp [20:44:34]File name is /storage/kkm_last_timestamp [20:44:34]Write 4 bytes [20:44:34]NVStorageSaveData done [20:44:34]ExternCall_PrintAddStr [20:44:34]wPrintStart [20:44:34]Write to MH i2c: 01 00 00 05 13 18 [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: 01 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: 01 07 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: 01 07 00 05 13 00 00 00 00 00 FF 0F 2D [20:44:34]RasterBufferAndPrint [20:44:34]line Счет N : (3)51433 [20:44:34]line ИНН: 02508201610067 [20:44:34]line Контрольно-Кассовый Чек [20:44:34]line ПРОДАЖА [20:44:34]line Товар: 4700001061104 [20:44:34]line Коньяк Семетей 0,2л [20:44:34]line 1.000 * 250.00 [20:44:34]line = 250.00 [20:44:34]line НДС 12% НСП 1% [20:44:34]line > о реализуемом товаре [20:44:34]line ИТОГО: 250.00 [20:44:34]line НСП 1% : 2.21 [20:44:34]line НДС 12% : 26.55 [20:44:34]line Наличными: 250.00 [20:44:34]line Безнал.: 0.00 [20:44:34]line Место: АЗС № 88 "Партнер Нефть" [20:44:34]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [20:44:34]line СНО: Общий режим [20:44:34]line Чек 82 22.09.2024 20:44 [20:44:34]line Смена: 228 ФФД: 1.0 [20:44:34]line ЗНМ: 0300000061 [20:44:34]line РНМ: 0000000000146243 [20:44:34]line Версия ККМ: v1.0 [20:44:34]line ФМ: 0000000000959358 [20:44:34]line ФД: 22167 [20:44:34]line ФПД: 266845605236541 [20:44:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T204436&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22167&fm=266845605236541&tin=02508201610067®Number=0000000000146243&sum=25000 [20:44:35]line 0 [20:44:35]OFD Sender: Processing packet 22167 [packets to send 23, broken 22] [20:44:35]ProducePacketName [20:44:35]name=ofd_packets/00022167 [20:44:35]OFD Sender: To server: pG, [20:44:35]CommunicateWithHost lk.salyk.kg:30040 [20:44:35]ConnectInit lk.salyk.kg [20:44:35]written 0, free lines is 4095 [20:44:35]Write to MH i2c: 01 00 00 2D 13 40 [20:44:35]Write i2c OK [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: 01 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: 01 07 00 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: 01 07 00 2D 13 00 00 00 00 00 16 0D 6A [20:44:35]RasterBufferAndPrint [20:44:35]line [20:44:35]line [20:44:35]line [20:44:35]line [20:44:35]line [20:44:35]written 0, free lines is 3358 [20:44:35]MH_Cut [20:44:35]Write to MH i2c: D1 01 00 34 13 01 19 [20:44:35]Write i2c OK [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: D1 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: D1 01 00 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: D1 01 00 34 13 00 18 [20:44:35]Write to MH i2c: 01 00 00 35 13 48 [20:44:35]Write i2c OK [20:44:35]MH_I2C_Read... [20:44:35]Connected sock=11 [20:44:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 4D 43 1F 01 0F B9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B4 81 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 97 56 00 00 35 04 06 00 F2 B1 D5 82 8F 3D 0D BC DB 44 42 D9 47 87 [20:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 1F CF 47 00 59 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 97 56 00 00 F4 03 04 00 DF 2B F0 66 B6 04 01 00 00 A7 0D F7 63 CE 69 97 12 [20:44:35]CommunicateWithHost err = 0 [20:44:35]CheckOFDResponse [20:44:35]1017 (14) - 77093643461234 [20:44:35]1041 (16) - 0000000000959358 [20:44:35]1040 (4) - 22167 [20:44:35]1012 (4) - 22.09.2024 14:38 [20:44:35]1206 (1) - 0 [20:44:35]OFD Sender: Remove packet 22167 [20:44:35]ProducePacketName [20:44:35]name=ofd_packets/00022167 [20:44:35]NVStorageDeleteData [20:44:36]*** Cut start [20:44:36]*** Partial cut [20:44:36]*** CUTSNS_PIN = 1 [20:44:36]*** CUTSNS_PIN = 0 [20:44:36]OFD Sender: No OFD packet to send [20:44:36]*** Brake cut motor [20:44:36]Read from MH i2c: 01 [20:44:36]MH_I2C_Read... [20:44:36]*** Stop cut motor [20:44:36]*** Cut end [20:44:36]Read from MH i2c: 01 07 00 [20:44:36]MH_I2C_Read... [20:44:36]Read from MH i2c: 01 07 00 35 13 00 00 00 00 00 FF 0F 5D [20:44:36]process_action close_receipt done [20:44:36]requested_data is exist [20:44:36]produce_requested_data [20:44:36]requested_item fm.sn is exist - process it [20:44:36]wFMCommunicate request_size=4 [20:44:36]MH_SAM_APDU [20:44:36]CAPDU: 80 11 00 00 [20:44:36]Write to MH i2c: E2 08 00 36 13 80 11 00 00 00 00 00 00 C3 [20:44:36]Write i2c OK [20:44:36]MH_I2C_Read... [20:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:36]Read from MH i2c: E2 [20:44:36]MH_I2C_Read... [20:44:36]Read from MH i2c: E2 17 00 [20:44:36]MH_I2C_Read... [20:44:36]Read from MH i2c: E2 17 00 36 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1D [20:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:44:36]wFMCommunicate OK [20:44:36]requested_item fd.num is exist - process it [20:44:36]SAM_PROTO_GetFieldsCounters [20:44:36]wFMCommunicate request_size=4 [20:44:36]MH_SAM_APDU [20:44:36]CAPDU: 80 13 00 00 [20:44:36]Write to MH i2c: E2 08 00 37 13 80 13 00 00 00 00 00 00 C6 [20:44:36]Write i2c OK [20:44:36]MH_I2C_Read... [20:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:36]Read from MH i2c: E2 [20:44:36]MH_I2C_Read... [20:44:36]Read from MH i2c: E2 62 00 [20:44:36]MH_I2C_Read... [20:44:36]Read from MH i2c: E2 62 00 37 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 97 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [20:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 97 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:36]wFMCommunicate OK [20:44:36]SAM_PROTO_GetFieldsCounters done [20:44:36]requested_item shift.num is exist - process it [20:44:36]requested_item shift.opened is exist - process it [20:44:36]req_shift_opened [20:44:36]FM_GetShiftState [20:44:36]SAM_PROTO_GetShiftState [20:44:36]wFMCommunicate request_size=4 [20:44:36]MH_SAM_APDU [20:44:36]CAPDU: 80 13 01 00 [20:44:36]Write to MH i2c: E2 08 00 38 13 80 13 01 00 00 00 00 00 C8 [20:44:36]Write i2c OK [20:44:36]MH_I2C_Read... [20:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:36]Read from MH i2c: E2 [20:44:36]MH_I2C_Read... [20:44:36]Read from MH i2c: E2 0E 00 [20:44:36]MH_I2C_Read... [20:44:37]Read from MH i2c: E2 0E 00 38 13 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 43 [20:44:37]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:44:37]wFMCommunicate OK [20:44:37]SAM_PROTO_GetShiftState done [20:44:37]FM_GetShiftState done [20:44:37]req_shift_opened done [20:44:37]requested_item shift.open_date is exist - process it [20:44:37]req_shift_open_date [20:44:37]req_shift_open_date done [20:44:37]produce_requested_data done [20:44:37]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22167,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [20:44:37]process_action_free close_receipt [20:44:37]json_value_free [20:44:37]json_value_free done [20:44:37]process_json_proto returns [20:44:37]Send response to host [20:44:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22167,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [20:44:37]free response buf [20:44:37]execute_script done [20:44:37]execute_script returns [20:44:37]free content buf [20:44:37]Sock 7.Close socket [20:44:37]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:07]accept exits with 9 [20:59:07]New connection [20:59:07]New thread 3067182436 created [20:59:07]Thread 3067039076 joined [20:59:07]Waiting for new connection... [20:59:07] Sock 9.Parse request [20:59:07]Sock 9.Check first char [20:59:07]Sock 9.First char is OK [20:59:07]request: POST /json_proto HTTP/1.0 [20:59:07]Method: POST [20:59:07]URL: /json_proto [20:59:07]Method is POST - this is cgi request [20:59:07]url: /json_proto [20:59:07]query_string will be loaded in cgi processing [20:59:07]execute_cgi json_proto POST (null) [20:59:07]execute_cgi path=json_proto method=POST [20:59:07]POST find Content-Length [20:59:07]Host: 172.17.43.4:8080 [20:59:07]Content-Length: 767 [20:59:07]Content-Type: application/json [20:59:07] [20:59:07]POST finish read [20:59:07]Found Content-Length = 767 [20:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51434", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:07]execute_script... [20:59: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)51434", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:07]POST & json_proto [20:59:07]process_json_proto [20:59:07]json parsed OK: [20:59:07]protocol is kg_v1.0 [20:59:07]action value=close_receipt [20:59:07]process_action close_receipt [20:59:07]cmd_close_receipt [20:59:07]MH_GetDate [20:59:07]Write to MH i2c: F0 00 00 39 13 3B [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: F0 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: F0 09 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: F0 09 00 39 13 00 1F 85 F0 66 02 BF CF 66 34 [20:59:07]GetLastDocTimeStamp 1727037876 [20:59:07]current date 1727038751 [20:59:07]FM_GetShiftState [20:59:07]SAM_PROTO_GetShiftState [20:59:07]wFMCommunicate request_size=4 [20:59:07]MH_SAM_APDU [20:59:07]CAPDU: 80 13 01 00 [20:59:07]Write to MH i2c: E2 08 00 3A 13 80 13 01 00 00 00 00 00 CA [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:08]Read from MH i2c: E2 [20:59:08]MH_I2C_Read... [20:59:08]Read from MH i2c: E2 0E 00 [20:59:08]MH_I2C_Read... [20:59:08]Read from MH i2c: E2 0E 00 3A 13 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 45 [20:59:08]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:59:08]wFMCommunicate OK [20:59:08]SAM_PROTO_GetShiftState done [20:59:08]FM_GetShiftState done [20:59:08]opened in 1726964408 [20:59:08]opened+sec_in_day 1727050808 [20:59:08]quantity*price = 0 [20:59:08]sum+1 = 1 [20:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 83 22.09.2024 20:59 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22168 ФПД: 26481116314846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205911&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22168&fm=26481116314846&tin=02508201610067®Number=0000000000146243&sum=0 0 [20:59:09]StoreToDocumentArchive [20:59:09]shift 228 fd 22168 [20:59:09]save to /storage/0228/doc_00022168 [20:59:09]save last doc name /storage/0228/doc_00022168 to /storage/kkm_last_doc_name [20:59:09]save OK [20:59:09]Clear old archive folders... [20:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:59:09]tlvbuf is 00224FE0 [20:59:09]SAM_PROTO_ClearQueue [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 09 00 00 [20:59:09]Write to MH i2c: E2 08 00 47 13 80 09 00 00 00 00 00 00 CC [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 47 13 00 90 00 CE [20:59:09]RAPDU: 90 00 [20:59:09]wFMCommunicate OK [20:59:09]SAM_PROTO_ClearQueue done [20:59:09]KKMCreateOFDPacket [20:59:09]OFDProtocolAddRootSTLVToBuf [20:59:09]FM_MakeSignedData [20:59:09]FM_MakeSignedData [20:59:09]SAM_PROTO_SignData [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 0D 01 02 [20:59:09]Write to MH i2c: E2 08 00 48 13 80 0D 01 02 00 00 00 00 D4 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 48 13 00 90 00 CF [20:59:09]RAPDU: 90 00 [20:59:09]wFMCommunicate OK [20:59:09]wFMCommunicate request_size=255 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1F 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [20:59:09]Write to MH i2c: E2 02 01 49 13 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1F 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 5E [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 49 13 00 90 00 D0 [20:59:09]RAPDU: 90 00 [20:59:09]wFMCommunicate OK [20:59:09]wFMCommunicate request_size=34 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 98 56 00 00 35 04 06 00 18 15 9D 87 FC DE [20:59:09]Write to MH i2c: E2 25 00 4A 13 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 98 56 00 00 35 04 06 00 18 15 9D 87 FC DE 00 00 B8 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 03 00 4A 13 00 90 00 D1 [20:59:09]RAPDU: 90 00 [20:59:09]wFMCommunicate OK [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 0D 03 02 [20:59:09]Write to MH i2c: E2 08 00 4B 13 80 0D 03 02 00 00 00 00 D9 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 0B 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 0B 00 4B 13 00 AE 4F 99 F9 04 00 42 05 90 00 B4 [20:59:09]RAPDU: AE 4F 99 F9 04 00 42 05 90 00 [20:59:09]wFMCommunicate OK [20:59:09]SAM_PROTO_SignData done [20:59:09]FM_MakeSignedData done [20:59:09]CreateOFDProtocolMessage [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 11 00 00 [20:59:09]Write to MH i2c: E2 08 00 4C 13 80 11 00 00 00 00 00 00 D9 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 17 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 17 00 4C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 33 [20:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:59:09]wFMCommunicate OK [20:59:09]CreateOFDProtocolMessage done [20:59:09]OFDSenderStorePacket 22168 [20:59:09]StoreOFDPacket docnum=22168 [20:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 F0 20 1F 01 38 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1F 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 98 56 00 00 35 04 06 00 18 15 9D 87 FC DE AE 4F 99 F9 04 00 42 05 [20:59:09]CheckFolder [20:59:09]dirname=/storage/ofd_packets [20:59:09]CheckFolder done [20:59:09]ProducePacketName [20:59:09]name=ofd_packets/00022168 [20:59:09]NVStorageSaveData ofd_packets/00022168 [20:59:09]File name is /storage/ofd_packets/00022168 [20:59:09]Write 325 bytes [20:59:09]NVStorageSaveData done [20:59:09]OFDSenderStorePacket done [20:59:09]KKMCreateOFDPacket done [20:59:09]NVStorageSaveData kkm_last_timestamp [20:59:09]File name is /storage/kkm_last_timestamp [20:59:09]Write 4 bytes [20:59:09]NVStorageSaveData done [20:59:09]ExternCall_PrintAddStr [20:59:09]wPrintStart [20:59:09]Write to MH i2c: 01 00 00 4D 13 60 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: 01 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: 01 07 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: 01 07 00 4D 13 00 00 00 00 00 FF 0F 75 [20:59:09]RasterBufferAndPrint [20:59:09]line Счет N : (3)51434 [20:59:09]line ИНН: 02508201610067 [20:59:09]line Контрольно-Кассовый Чек [20:59:09]line ПРОДАЖА [20:59:09]line Товар: 4700001061104 [20:59:09]line Коньяк Семетей 0,2л [20:59:09]line 1.000 * 0.00 [20:59:09]line = 0.00 [20:59:09]line НДС 12% НСП 1% [20:59:09]line > о реализуемом товаре [20:59:09]line ИТОГО: 0.00 [20:59:09]line НСП 1% : 0.00 [20:59:09]line НДС 12% : 0.00 [20:59:09]line Наличными: 0.00 [20:59:09]line Безнал.: 0.00 [20:59:09]line Место: АЗС № 88 "Партнер Нефть" [20:59:09]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [20:59:09]line СНО: Общий режим [20:59:09]line Чек 83 22.09.2024 20:59 [20:59:09]line Смена: 228 ФФД: 1.0 [20:59:09]line ЗНМ: 0300000061 [20:59:09]line РНМ: 0000000000146243 [20:59:09]line Версия ККМ: v1.0 [20:59:09]line Платежная система: Mbank [20:59:09]line ФМ: 0000000000959358 [20:59:09]line ФД: 22168 [20:59:09]line ФПД: 26481116314846 [20:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T205911&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22168&fm=26481116314846&tin=02508201610067®Number=0000000000146243&sum=0 [20:59:10]line 0 [20:59:10]OFD Sender: Processing packet 22168 [packets to send 23, broken 22] [20:59:10]ProducePacketName [20:59:10]name=ofd_packets/00022168 [20:59:10]OFD Sender: To server: pG, [20:59:10]CommunicateWithHost lk.salyk.kg:30040 [20:59:10]ConnectInit lk.salyk.kg [20:59:10]written 0, free lines is 4095 [20:59:10]Connected sock=10 [20:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 F0 20 1F 01 38 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 1F 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 98 56 00 00 35 04 06 00 18 15 9D 87 FC DE AE 4F 99 F9 04 00 42 05 [20:59:10]Write to MH i2c: 01 00 00 76 13 89 [20:59:10]Write i2c OK [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: 01 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: 01 07 00 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: 01 07 00 76 13 00 00 00 00 00 1F 0D BC [20:59:10]RasterBufferAndPrint [20:59:10]line [20:59:10]line [20:59:10]line [20:59:10]line [20:59:10]line [20:59:10]written 0, free lines is 3366 [20:59:10]MH_Cut [20:59:10]Write to MH i2c: D1 01 00 7D 13 01 62 [20:59:10]Write i2c OK [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: D1 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: D1 01 00 [20:59:10]MH_I2C_Read... [20:59:10]Read from MH i2c: D1 01 00 7D 13 00 61 [20:59:10]Write to MH i2c: 01 00 00 7E 13 91 [20:59:10]Write i2c OK [20:59:10]MH_I2C_Read... [20:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 7E 19 47 00 FB 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 98 56 00 00 F4 03 04 00 49 2F F0 66 B6 04 01 00 00 B3 FC F1 47 57 F2 25 14 [20:59:10]CommunicateWithHost err = 0 [20:59:10]CheckOFDResponse [20:59:10]1017 (14) - 77093643461234 [20:59:10]1041 (16) - 0000000000959358 [20:59:10]1040 (4) - 22168 [20:59:10]1012 (4) - 22.09.2024 14:52 [20:59:10]1206 (1) - 0 [20:59:10]OFD Sender: Remove packet 22168 [20:59:10]ProducePacketName [20:59:10]name=ofd_packets/00022168 [20:59:10]NVStorageDeleteData [20:59:11]OFD Sender: No OFD packet to send [20:59:11]*** Cut start [20:59:11]*** Partial cut [20:59:11]*** CUTSNS_PIN = 1 [20:59:11]*** CUTSNS_PIN = 0 [20:59:11]*** Brake cut motor [20:59:11]Read from MH i2c: 01 [20:59:11]MH_I2C_Read... [20:59:11]*** Stop cut motor [20:59:11]*** Cut end [20:59:11]Read from MH i2c: 01 07 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: 01 07 00 7E 13 00 00 00 00 00 FF 0F A6 [20:59:11]process_action close_receipt done [20:59:11]requested_data is exist [20:59:11]produce_requested_data [20:59:11]requested_item fm.sn is exist - process it [20:59:11]wFMCommunicate request_size=4 [20:59:11]MH_SAM_APDU [20:59:11]CAPDU: 80 11 00 00 [20:59:11]Write to MH i2c: E2 08 00 7F 13 80 11 00 00 00 00 00 00 0C [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 [20:59:11]MH_I2C_Read... [20:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:11]Read from MH i2c: E2 17 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 17 00 7F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 66 [20:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [20:59:11]wFMCommunicate OK [20:59:11]requested_item fd.num is exist - process it [20:59:11]SAM_PROTO_GetFieldsCounters [20:59:11]wFMCommunicate request_size=4 [20:59:11]MH_SAM_APDU [20:59:11]CAPDU: 80 13 00 00 [20:59:11]Write to MH i2c: E2 08 00 80 13 80 13 00 00 00 00 00 00 0F [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:11]Read from MH i2c: E2 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 62 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 62 00 80 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 98 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 98 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:11]wFMCommunicate OK [20:59:11]SAM_PROTO_GetFieldsCounters done [20:59:11]requested_item shift.num is exist - process it [20:59:11]requested_item shift.opened is exist - process it [20:59:11]req_shift_opened [20:59:11]FM_GetShiftState [20:59:11]SAM_PROTO_GetShiftState [20:59:11]wFMCommunicate request_size=4 [20:59:11]MH_SAM_APDU [20:59:11]CAPDU: 80 13 01 00 [20:59:11]Write to MH i2c: E2 08 00 81 13 80 13 01 00 00 00 00 00 11 [20:59:11]Write i2c OK [20:59:11]MH_I2C_Read... [20:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:11]Read from MH i2c: E2 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 0E 00 [20:59:11]MH_I2C_Read... [20:59:11]Read from MH i2c: E2 0E 00 81 13 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 8C [20:59:11]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [20:59:11]wFMCommunicate OK [20:59:11]SAM_PROTO_GetShiftState done [20:59:11]FM_GetShiftState done [20:59:11]req_shift_opened done [20:59:11]requested_item shift.open_date is exist - process it [20:59:11]req_shift_open_date [20:59:11]req_shift_open_date done [20:59:11]produce_requested_data done [20:59:11]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22168,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [20:59:11]process_action_free close_receipt [20:59:11]json_value_free [20:59:11]json_value_free done [20:59:11]process_json_proto returns [20:59:11]Send response to host [20:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22168,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [20:59:11]free response buf [20:59:11]execute_script done [20:59:11]execute_script returns [20:59:11]free content buf [20:59:11]Sock 9.Close socket [20:59:11]Sock 9.Thread stoped [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:09]accept exits with 7 [21:00:09]New connection [21:00:09]New thread 3067039076 created [21:00:09]Thread 3067182436 joined [21:00:09]Waiting for new connection... [21:00:09] Sock 7.Parse request [21:00:09]Sock 7.Check first char [21:00:09]Sock 7.First char is OK [21:00:09]request: POST /json_proto HTTP/1.0 [21:00:09]Method: POST [21:00:09]URL: /json_proto [21:00:09]Method is POST - this is cgi request [21:00:09]url: /json_proto [21:00:09]query_string will be loaded in cgi processing [21:00:09]execute_cgi json_proto POST (null) [21:00:09]execute_cgi path=json_proto method=POST [21:00:09]POST find Content-Length [21:00:09]Host: 172.17.43.4:8080 [21:00:09]Content-Length: 627 [21:00:09]Content-Type: application/json [21:00:09] [21:00:09]POST finish read [21:00:09]Found Content-Length = 627 [21:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51435", "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" ] } } [21:00:09]execute_script... [21:00: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)51435", "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" ] } } [21:00:09]POST & json_proto [21:00:09]process_json_proto [21:00:09]json parsed OK: [21:00:09]protocol is kg_v1.0 [21:00:09]action value=close_receipt [21:00:09]process_action close_receipt [21:00:09]cmd_close_receipt [21:00:09]MH_GetDate [21:00:09]Write to MH i2c: F0 00 00 82 13 84 [21:00:09]Write i2c OK [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: F0 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: F0 09 00 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: F0 09 00 82 13 00 5C 85 F0 66 02 BF CF 66 BA [21:00:09]GetLastDocTimeStamp 1727038751 [21:00:09]current date 1727038812 [21:00:09]FM_GetShiftState [21:00:09]SAM_PROTO_GetShiftState [21:00:09]wFMCommunicate request_size=4 [21:00:09]MH_SAM_APDU [21:00:09]CAPDU: 80 13 01 00 [21:00:09]Write to MH i2c: E2 08 00 83 13 80 13 01 00 00 00 00 00 13 [21:00:09]Write i2c OK [21:00:09]MH_I2C_Read... [21:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:09]Read from MH i2c: E2 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 0E 00 [21:00:09]MH_I2C_Read... [21:00:09]Read from MH i2c: E2 0E 00 83 13 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 8E [21:00:09]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:00:09]wFMCommunicate OK [21:00:09]SAM_PROTO_GetShiftState done [21:00:09]FM_GetShiftState done [21:00:09]opened in 1726964408 [21:00:09]opened+sec_in_day 1727050808 [21:00:09]quantity*price = 13000 [21:00:09]sum+1 = 13001 [21:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 84 22.09.2024 21:00 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22169 ФПД: 122475199414318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210012&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22169&fm=122475199414318&tin=02508201610067®Number=0000000000146243&sum=13000 0 [21:00:10]StoreToDocumentArchive [21:00:10]shift 228 fd 22169 [21:00:10]save to /storage/0228/doc_00022169 [21:00:10]save last doc name /storage/0228/doc_00022169 to /storage/kkm_last_doc_name [21:00:10]save OK [21:00:10]Clear old archive folders... [21:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:00:10]tlvbuf is 00246AF0 [21:00:10]SAM_PROTO_ClearQueue [21:00:10]wFMCommunicate request_size=4 [21:00:10]MH_SAM_APDU [21:00:10]CAPDU: 80 09 00 00 [21:00:10]Write to MH i2c: E2 08 00 90 13 80 09 00 00 00 00 00 00 15 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:10]Read from MH i2c: E2 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 90 13 00 90 00 17 [21:00:10]RAPDU: 90 00 [21:00:10]wFMCommunicate OK [21:00:10]SAM_PROTO_ClearQueue done [21:00:10]KKMCreateOFDPacket [21:00:10]OFDProtocolAddRootSTLVToBuf [21:00:10]FM_MakeSignedData [21:00:10]FM_MakeSignedData [21:00:10]SAM_PROTO_SignData [21:00:10]wFMCommunicate request_size=4 [21:00:10]MH_SAM_APDU [21:00:10]CAPDU: 80 0D 01 02 [21:00:10]Write to MH i2c: E2 08 00 91 13 80 0D 01 02 00 00 00 00 1D [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:10]Read from MH i2c: E2 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 91 13 00 90 00 18 [21:00:10]RAPDU: 90 00 [21:00:10]wFMCommunicate OK [21:00:10]wFMCommunicate request_size=255 [21:00:10]MH_SAM_APDU [21:00: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 54 00 00 00 F4 03 04 00 5C 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 [21:00:10]Write to MH i2c: E2 02 01 92 13 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 54 00 00 00 F4 03 04 00 5C 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 00 00 A2 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:10]Read from MH i2c: E2 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 92 13 00 90 00 19 [21:00:10]RAPDU: 90 00 [21:00:10]wFMCommunicate OK [21:00:10]wFMCommunicate request_size=35 [21:00:10]MH_SAM_APDU [21:00:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 99 56 00 00 35 04 06 00 6F 63 FA C1 40 2E [21:00:10]Write to MH i2c: E2 26 00 93 13 80 0D 02 02 1E 00 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 99 56 00 00 35 04 06 00 6F 63 FA C1 40 2E 00 00 04 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:10]Read from MH i2c: E2 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [21:00:10]RAPDU: 90 00 [21:00:10]wFMCommunicate OK [21:00:10]wFMCommunicate request_size=4 [21:00:10]MH_SAM_APDU [21:00:10]CAPDU: 80 0D 03 02 [21:00:10]Write to MH i2c: E2 08 00 94 13 80 0D 03 02 00 00 00 00 22 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:10]Read from MH i2c: E2 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 0B 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 0B 00 94 13 00 8B D4 F8 B5 B8 E0 97 A6 90 00 04 [21:00:10]RAPDU: 8B D4 F8 B5 B8 E0 97 A6 90 00 [21:00:10]wFMCommunicate OK [21:00:10]SAM_PROTO_SignData done [21:00:10]FM_MakeSignedData done [21:00:10]CreateOFDProtocolMessage [21:00:10]wFMCommunicate request_size=4 [21:00:10]MH_SAM_APDU [21:00:10]CAPDU: 80 11 00 00 [21:00:10]Write to MH i2c: E2 08 00 95 13 80 11 00 00 00 00 00 00 22 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:10]Read from MH i2c: E2 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 17 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: E2 17 00 95 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 7C [21:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:00:10]wFMCommunicate OK [21:00:10]CreateOFDProtocolMessage done [21:00:10]OFDSenderStorePacket 22169 [21:00:10]StoreOFDPacket docnum=22169 [21:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 28 01 00 00 50 BA 20 01 D2 72 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 54 00 00 00 F4 03 04 00 5C 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 99 56 00 00 35 04 06 00 6F 63 FA C1 40 2E 8B D4 F8 B5 B8 E0 97 A6 [21:00:10]CheckFolder [21:00:10]dirname=/storage/ofd_packets [21:00:10]CheckFolder done [21:00:10]ProducePacketName [21:00:10]name=ofd_packets/00022169 [21:00:10]NVStorageSaveData ofd_packets/00022169 [21:00:10]File name is /storage/ofd_packets/00022169 [21:00:10]Write 326 bytes [21:00:10]NVStorageSaveData done [21:00:10]OFDSenderStorePacket done [21:00:10]KKMCreateOFDPacket done [21:00:10]NVStorageSaveData kkm_last_timestamp [21:00:10]File name is /storage/kkm_last_timestamp [21:00:10]Write 4 bytes [21:00:10]NVStorageSaveData done [21:00:10]ExternCall_PrintAddStr [21:00:10]wPrintStart [21:00:10]Write to MH i2c: 01 00 00 96 13 A9 [21:00:10]Write i2c OK [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: 01 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: 01 07 00 [21:00:10]MH_I2C_Read... [21:00:10]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 FF 0F BE [21:00:10]RasterBufferAndPrint [21:00:10]line Счет N : (3)51435 [21:00:10]line ИНН: 02508201610067 [21:00:10]line Контрольно-Кассовый Чек [21:00:10]line ПРОДАЖА [21:00:10]line Товар: 2000036230011 [21:00:10]line Кофе Латте XL(GABB TRADE) [21:00:10]line 1.000 * 130.00 [21:00:10]line = 130.00 [21:00:10]line НДС 12% НСП 1% [21:00:10]line > о реализуемом товаре [21:00:10]line ИТОГО: 130.00 [21:00:10]line НСП 1% : 1.15 [21:00:10]line НДС 12% : 13.80 [21:00:10]line Наличными: 130.00 [21:00:10]line Безнал.: 0.00 [21:00:10]line Место: АЗС № 88 "Партнер Нефть" [21:00:10]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:00:10]line СНО: Общий режим [21:00:10]line Чек 84 22.09.2024 21:00 [21:00:10]line Смена: 228 ФФД: 1.0 [21:00:10]line ЗНМ: 0300000061 [21:00:10]line РНМ: 0000000000146243 [21:00:10]line Версия ККМ: v1.0 [21:00:10]line ФМ: 0000000000959358 [21:00:10]line ФД: 22169 [21:00:10]line ФПД: 122475199414318 [21:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210012&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22169&fm=122475199414318&tin=02508201610067®Number=0000000000146243&sum=13000 [21:00:11]line 0 [21:00:11]OFD Sender: Processing packet 22169 [packets to send 23, broken 22] [21:00:11]ProducePacketName [21:00:11]name=ofd_packets/00022169 [21:00:11]OFD Sender: To server: pG, [21:00:11]CommunicateWithHost lk.salyk.kg:30040 [21:00:11]ConnectInit lk.salyk.kg [21:00:11]written 0, free lines is 4095 [21:00:11]Connected sock=10 [21:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 28 01 00 00 50 BA 20 01 D2 72 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 54 00 00 00 F4 03 04 00 5C 85 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 99 56 00 00 35 04 06 00 6F 63 FA C1 40 2E 8B D4 F8 B5 B8 E0 97 A6 [21:00:11]Write to MH i2c: 01 00 00 BE 13 D1 [21:00:11]Write i2c OK [21:00:11]MH_I2C_Read... [21:00:11]Read from MH i2c: 01 [21:00:11]MH_I2C_Read... [21:00:11]Read from MH i2c: 01 07 00 [21:00:11]MH_I2C_Read... [21:00:11]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 23 0D 08 [21:00:11]RasterBufferAndPrint [21:00:11]line [21:00:11]line [21:00:11]line [21:00:11]line [21:00:11]line [21:00:11]written 0, free lines is 3369 [21:00:11]MH_Cut [21:00:11]Write to MH i2c: D1 01 00 C5 13 01 AA [21:00:11]Write i2c OK [21:00:11]MH_I2C_Read... [21:00:11]Read from MH i2c: D1 [21:00:11]MH_I2C_Read... [21:00:11]Read from MH i2c: D1 01 00 [21:00:11]MH_I2C_Read... [21:00:11]Read from MH i2c: D1 01 00 C5 13 00 A9 [21:00:11]Write to MH i2c: 01 00 00 C6 13 D9 [21:00:11]Write i2c OK [21:00:11]MH_I2C_Read... [21:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 4E A2 47 00 6A 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 99 56 00 00 F4 03 04 00 86 2F F0 66 B6 04 01 00 00 DC 0A CB 5D 56 AC 7F 99 [21:00:11]CommunicateWithHost err = 0 [21:00:11]CheckOFDResponse [21:00:11]1017 (14) - 77093643461234 [21:00:11]1041 (16) - 0000000000959358 [21:00:11]1040 (4) - 22169 [21:00:11]1012 (4) - 22.09.2024 14:53 [21:00:11]1206 (1) - 0 [21:00:11]OFD Sender: Remove packet 22169 [21:00:11]ProducePacketName [21:00:11]name=ofd_packets/00022169 [21:00:11]NVStorageDeleteData [21:00:12]OFD Sender: No OFD packet to send [21:00:12]*** Cut start [21:00:12]*** Partial cut [21:00:12]*** CUTSNS_PIN = 1 [21:00:12]*** CUTSNS_PIN = 0 [21:00:12]*** Brake cut motor [21:00:12]Read from MH i2c: 01 [21:00:12]MH_I2C_Read... [21:00:12]*** Stop cut motor [21:00:12]*** Cut end [21:00:12]Read from MH i2c: 01 07 00 [21:00:12]MH_I2C_Read... [21:00:12]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 FF 0F EE [21:00:12]process_action close_receipt done [21:00:12]requested_data is exist [21:00:12]produce_requested_data [21:00:12]requested_item fm.sn is exist - process it [21:00:12]wFMCommunicate request_size=4 [21:00:12]MH_SAM_APDU [21:00:12]CAPDU: 80 11 00 00 [21:00:12]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [21:00:12]Write i2c OK [21:00:12]MH_I2C_Read... [21:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:12]Read from MH i2c: E2 [21:00:12]MH_I2C_Read... [21:00:12]Read from MH i2c: E2 17 00 [21:00:12]MH_I2C_Read... [21:00:12]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 AE [21:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:00:12]wFMCommunicate OK [21:00:12]requested_item fd.num is exist - process it [21:00:12]SAM_PROTO_GetFieldsCounters [21:00:12]wFMCommunicate request_size=4 [21:00:12]MH_SAM_APDU [21:00:12]CAPDU: 80 13 00 00 [21:00:12]Write to MH i2c: E2 08 00 C8 13 80 13 00 00 00 00 00 00 57 [21:00:12]Write i2c OK [21:00:12]MH_I2C_Read... [21:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:12]Read from MH i2c: E2 [21:00:12]MH_I2C_Read... [21:00:12]Read from MH i2c: E2 62 00 [21:00:12]MH_I2C_Read... [21:00:12]Read from MH i2c: E2 62 00 C8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 99 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:00:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 99 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:12]wFMCommunicate OK [21:00:12]SAM_PROTO_GetFieldsCounters done [21:00:12]requested_item shift.num is exist - process it [21:00:12]requested_item shift.opened is exist - process it [21:00:12]req_shift_opened [21:00:12]FM_GetShiftState [21:00:12]SAM_PROTO_GetShiftState [21:00:12]wFMCommunicate request_size=4 [21:00:12]MH_SAM_APDU [21:00:12]CAPDU: 80 13 01 00 [21:00:12]Write to MH i2c: E2 08 00 C9 13 80 13 01 00 00 00 00 00 59 [21:00:12]Write i2c OK [21:00:12]MH_I2C_Read... [21:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:13]Read from MH i2c: E2 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: E2 0E 00 C9 13 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D4 [21:00:13]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:00:13]wFMCommunicate OK [21:00:13]SAM_PROTO_GetShiftState done [21:00:13]FM_GetShiftState done [21:00:13]req_shift_opened done [21:00:13]requested_item shift.open_date is exist - process it [21:00:13]req_shift_open_date [21:00:13]req_shift_open_date done [21:00:13]produce_requested_data done [21:00:13]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22169,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:00:13]process_action_free close_receipt [21:00:13]json_value_free [21:00:13]json_value_free done [21:00:13]process_json_proto returns [21:00:13]Send response to host [21:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22169,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:00:13]free response buf [21:00:13]execute_script done [21:00:13]execute_script returns [21:00:13]free content buf [21:00:13]Sock 7.Close socket [21:00:13]Sock 7.Thread stoped [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:36]accept exits with 9 [21:04:36]New connection [21:04:36]New thread 3067182436 created [21:04:36]Thread 3067039076 joined [21:04:36]Waiting for new connection... [21:04:36] Sock 9.Parse request [21:04:36]Sock 9.Check first char [21:04:36]Sock 9.First char is OK [21:04:36]request: POST /json_proto HTTP/1.0 [21:04:36]Method: POST [21:04:36]URL: /json_proto [21:04:36]Method is POST - this is cgi request [21:04:36]url: /json_proto [21:04:36]query_string will be loaded in cgi processing [21:04:36]execute_cgi json_proto POST (null) [21:04:36]execute_cgi path=json_proto method=POST [21:04:36]POST find Content-Length [21:04:36]Host: 172.17.43.4:8080 [21:04:36]Content-Length: 707 [21:04:36]Content-Type: application/json [21:04:36] [21:04:36]POST finish read [21:04:36]Found Content-Length = 707 [21:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51436", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 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" ] } } [21:04:36]execute_script... [21:04: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)51436", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 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" ] } } [21:04:36]POST & json_proto [21:04:36]process_json_proto [21:04:36]json parsed OK: [21:04:36]protocol is kg_v1.0 [21:04:36]action value=close_receipt [21:04:36]process_action close_receipt [21:04:36]cmd_close_receipt [21:04:36]MH_GetDate [21:04:36]Write to MH i2c: F0 00 00 CA 13 CC [21:04:36]Write i2c OK [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: F0 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: F0 09 00 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: F0 09 00 CA 13 00 68 86 F0 66 02 BF CF 66 0F [21:04:36]GetLastDocTimeStamp 1727038812 [21:04:36]current date 1727039080 [21:04:36]FM_GetShiftState [21:04:36]SAM_PROTO_GetShiftState [21:04:36]wFMCommunicate request_size=4 [21:04:36]MH_SAM_APDU [21:04:36]CAPDU: 80 13 01 00 [21:04:36]Write to MH i2c: E2 08 00 CB 13 80 13 01 00 00 00 00 00 5B [21:04:36]Write i2c OK [21:04:36]MH_I2C_Read... [21:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:36]Read from MH i2c: E2 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 0E 00 [21:04:36]MH_I2C_Read... [21:04:36]Read from MH i2c: E2 0E 00 CB 13 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 D6 [21:04:36]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:04:36]wFMCommunicate OK [21:04:36]SAM_PROTO_GetShiftState done [21:04:36]FM_GetShiftState done [21:04:36]opened in 1726964408 [21:04:36]opened+sec_in_day 1727050808 [21:04:36]quantity*price = 8500 [21:04:36]sum+1 = 8501 [21:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 85 22.09.2024 21:04 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22170 ФПД: 106600354507905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210440&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22170&fm=106600354507905&tin=02508201610067®Number=0000000000146243&sum=8500 0 [21:04:38]StoreToDocumentArchive [21:04:38]shift 228 fd 22170 [21:04:38]save to /storage/0228/doc_00022170 [21:04:38]save last doc name /storage/0228/doc_00022170 to /storage/kkm_last_doc_name [21:04:38]save OK [21:04:38]Clear old archive folders... [21:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:04:38]tlvbuf is 00224A30 [21:04:38]SAM_PROTO_ClearQueue [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 09 00 00 [21:04:38]Write to MH i2c: E2 08 00 D8 13 80 09 00 00 00 00 00 00 5D [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_ClearQueue done [21:04:38]KKMCreateOFDPacket [21:04:38]OFDProtocolAddRootSTLVToBuf [21:04:38]FM_MakeSignedData [21:04:38]FM_MakeSignedData [21:04:38]SAM_PROTO_SignData [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 01 02 [21:04:38]Write to MH i2c: E2 08 00 D9 13 80 0D 01 02 00 00 00 00 65 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]wFMCommunicate request_size=255 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 55 00 00 00 F4 03 04 00 68 86 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:04:38]Write to MH i2c: E2 02 01 DA 13 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 55 00 00 00 F4 03 04 00 68 86 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 D4 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]wFMCommunicate request_size=58 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9A 56 00 00 35 04 06 00 60 F3 D4 43 6C 81 [21:04:38]Write to MH i2c: E2 3D 00 DB 13 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9A 56 00 00 35 04 06 00 60 F3 D4 43 6C 81 00 00 A0 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [21:04:38]RAPDU: 90 00 [21:04:38]wFMCommunicate OK [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 0D 03 02 [21:04:38]Write to MH i2c: E2 08 00 DC 13 80 0D 03 02 00 00 00 00 6A [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0B 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0B 00 DC 13 00 B7 EA 6A 9C F3 4C 04 C7 90 00 1C [21:04:38]RAPDU: B7 EA 6A 9C F3 4C 04 C7 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_SignData done [21:04:38]FM_MakeSignedData done [21:04:38]CreateOFDProtocolMessage [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 11 00 00 [21:04:38]Write to MH i2c: E2 08 00 DD 13 80 11 00 00 00 00 00 00 6A [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 17 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 17 00 DD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C4 [21:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:04:38]wFMCommunicate OK [21:04:38]CreateOFDProtocolMessage done [21:04:38]OFDSenderStorePacket 22170 [21:04:38]StoreOFDPacket docnum=22170 [21:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3F 01 00 00 E3 24 37 01 2E C1 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 55 00 00 00 F4 03 04 00 68 86 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9A 56 00 00 35 04 06 00 60 F3 D4 43 6C 81 B7 EA 6A 9C F3 4C 04 C7 [21:04:38]CheckFolder [21:04:38]dirname=/storage/ofd_packets [21:04:38]CheckFolder done [21:04:38]ProducePacketName [21:04:38]name=ofd_packets/00022170 [21:04:38]NVStorageSaveData ofd_packets/00022170 [21:04:38]File name is /storage/ofd_packets/00022170 [21:04:38]Write 349 bytes [21:04:38]NVStorageSaveData done [21:04:38]OFDSenderStorePacket done [21:04:38]KKMCreateOFDPacket done [21:04:38]NVStorageSaveData kkm_last_timestamp [21:04:38]File name is /storage/kkm_last_timestamp [21:04:38]Write 4 bytes [21:04:38]NVStorageSaveData done [21:04:38]ExternCall_PrintAddStr [21:04:38]wPrintStart [21:04:38]Write to MH i2c: 01 00 00 DE 13 F1 [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 FF 0F 06 [21:04:38]RasterBufferAndPrint [21:04:38]line Счет N : (3)51436 [21:04:38]line ИНН: 02508201610067 [21:04:38]line Контрольно-Кассовый Чек [21:04:38]line ПРОДАЖА [21:04:38]line Товар: 4660085515163 [21:04:38]line Шок Батончик Сникерс супер 95/80г [21:04:38]line 1.000 * 85.00 [21:04:38]line = 85.00 [21:04:38]line НДС 12% НСП 1% [21:04:38]line > о реализуемом товаре [21:04:38]line ИТОГО: 85.00 [21:04:38]line НСП 1% : 0.75 [21:04:38]line НДС 12% : 9.03 [21:04:38]line Наличными: 85.00 [21:04:38]line Безнал.: 0.00 [21:04:38]line Место: АЗС № 88 "Партнер Нефть" [21:04:38]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:04:38]line СНО: Общий режим [21:04:38]line Чек 85 22.09.2024 21:04 [21:04:38]line Смена: 228 ФФД: 1.0 [21:04:38]line ЗНМ: 0300000061 [21:04:38]line РНМ: 0000000000146243 [21:04:38]line Версия ККМ: v1.0 [21:04:38]line ФМ: 0000000000959358 [21:04:38]line ФД: 22170 [21:04:38]line ФПД: 106600354507905 [21:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210440&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22170&fm=106600354507905&tin=02508201610067®Number=0000000000146243&sum=8500 [21:04:39]line 0 [21:04:39]OFD Sender: Processing packet 22170 [packets to send 23, broken 22] [21:04:39]ProducePacketName [21:04:39]name=ofd_packets/00022170 [21:04:39]OFD Sender: To server: pG, [21:04:39]CommunicateWithHost lk.salyk.kg:30040 [21:04:39]ConnectInit lk.salyk.kg [21:04:39]written 0, free lines is 4095 [21:04:39]Connected sock=10 [21:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3F 01 00 00 E3 24 37 01 2E C1 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 55 00 00 00 F4 03 04 00 68 86 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9A 56 00 00 35 04 06 00 60 F3 D4 43 6C 81 B7 EA 6A 9C F3 4C 04 C7 [21:04:39]Write to MH i2c: 01 00 00 07 14 1B [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: 01 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: 01 07 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: 01 07 00 07 14 00 00 00 00 00 12 0D 41 [21:04:39]RasterBufferAndPrint [21:04:39]line [21:04:39]line [21:04:39]line [21:04:39]line [21:04:39]line [21:04:39]written 0, free lines is 3353 [21:04:39]MH_Cut [21:04:39]Write to MH i2c: D1 01 00 0E 14 01 F4 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: D1 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: D1 01 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: D1 01 00 0E 14 00 F3 [21:04:39]Write to MH i2c: 01 00 00 0F 14 23 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 FA 20 47 00 53 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9A 56 00 00 F4 03 04 00 92 30 F0 66 B6 04 01 00 00 D7 54 9B 65 C4 65 A9 7C [21:04:39]CommunicateWithHost err = 0 [21:04:39]CheckOFDResponse [21:04:39]1017 (14) - 77093643461234 [21:04:39]1041 (16) - 0000000000959358 [21:04:39]1040 (4) - 22170 [21:04:39]1012 (4) - 22.09.2024 14:58 [21:04:39]1206 (1) - 0 [21:04:39]OFD Sender: Remove packet 22170 [21:04:39]ProducePacketName [21:04:39]name=ofd_packets/00022170 [21:04:39]NVStorageDeleteData [21:04:39]OFD Sender: No OFD packet to send [21:04:40]*** Cut start [21:04:40]*** Partial cut [21:04:40]*** CUTSNS_PIN = 1 [21:04:40]*** CUTSNS_PIN = 0 [21:04:40]*** Brake cut motor [21:04:40]Read from MH i2c: 01 [21:04:40]MH_I2C_Read... [21:04:40]*** Stop cut motor [21:04:40]*** Cut end [21:04:40]Read from MH i2c: 01 07 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 FF 0F 38 [21:04:40]process_action close_receipt done [21:04:40]requested_data is exist [21:04:40]produce_requested_data [21:04:40]requested_item fm.sn is exist - process it [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 11 00 00 [21:04:40]Write to MH i2c: E2 08 00 10 14 80 11 00 00 00 00 00 00 9E [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 17 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 17 00 10 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 F8 [21:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:04:40]wFMCommunicate OK [21:04:40]requested_item fd.num is exist - process it [21:04:40]SAM_PROTO_GetFieldsCounters [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 13 00 00 [21:04:40]Write to MH i2c: E2 08 00 11 14 80 13 00 00 00 00 00 00 A1 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 62 00 [21:04:40]MH_I2C_Read... [21:04:40]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 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [21:04:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9A 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:40]wFMCommunicate OK [21:04:40]SAM_PROTO_GetFieldsCounters done [21:04:40]requested_item shift.num is exist - process it [21:04:40]requested_item shift.opened is exist - process it [21:04:40]req_shift_opened [21:04:40]FM_GetShiftState [21:04:40]SAM_PROTO_GetShiftState [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 13 01 00 [21:04:40]Write to MH i2c: E2 08 00 12 14 80 13 01 00 00 00 00 00 A3 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 0E 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 0E 00 12 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 1E [21:04:40]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:04:40]wFMCommunicate OK [21:04:40]SAM_PROTO_GetShiftState done [21:04:40]FM_GetShiftState done [21:04:40]req_shift_opened done [21:04:40]requested_item shift.open_date is exist - process it [21:04:40]req_shift_open_date [21:04:40]req_shift_open_date done [21:04:40]produce_requested_data done [21:04:40]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22170,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:04:40]process_action_free close_receipt [21:04:40]json_value_free [21:04:40]json_value_free done [21:04:40]process_json_proto returns [21:04:40]Send response to host [21:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22170,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:04:40]free response buf [21:04:40]execute_script done [21:04:40]execute_script returns [21:04:40]free content buf [21:04:40]Sock 9.Close socket [21:04:40]Sock 9.Thread stoped [21:04:44]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:19]accept exits with 7 [21:07:19]New connection [21:07:19]New thread 3067039076 created [21:07:19]Thread 3067182436 joined [21:07:19]Waiting for new connection... [21:07:19] Sock 7.Parse request [21:07:19]Sock 7.Check first char [21:07:19]Sock 7.First char is OK [21:07:19]request: POST /json_proto HTTP/1.0 [21:07:19]Method: POST [21:07:19]URL: /json_proto [21:07:19]Method is POST - this is cgi request [21:07:19]url: /json_proto [21:07:19]query_string will be loaded in cgi processing [21:07:19]execute_cgi json_proto POST (null) [21:07:19]execute_cgi path=json_proto method=POST [21:07:19]POST find Content-Length [21:07:19]Host: 172.17.43.4:8080 [21:07:19]Content-Length: 668 [21:07:19]Content-Type: application/json [21:07:19] [21:07:19]POST finish read [21:07:19]Found Content-Length = 668 [21:07:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51437", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:19]execute_script... [21:07: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)51437", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:19]POST & json_proto [21:07:19]process_json_proto [21:07:19]json parsed OK: [21:07:19]protocol is kg_v1.0 [21:07:19]action value=close_receipt [21:07:19]process_action close_receipt [21:07:19]cmd_close_receipt [21:07:19]MH_GetDate [21:07:19]Write to MH i2c: F0 00 00 13 14 16 [21:07:19]Write i2c OK [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: F0 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: F0 09 00 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: F0 09 00 13 14 00 0B 87 F0 66 02 BF CF 66 FD [21:07:19]GetLastDocTimeStamp 1727039080 [21:07:19]current date 1727039243 [21:07:19]FM_GetShiftState [21:07:19]SAM_PROTO_GetShiftState [21:07:19]wFMCommunicate request_size=4 [21:07:19]MH_SAM_APDU [21:07:19]CAPDU: 80 13 01 00 [21:07:19]Write to MH i2c: E2 08 00 14 14 80 13 01 00 00 00 00 00 A5 [21:07:19]Write i2c OK [21:07:19]MH_I2C_Read... [21:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:19]Read from MH i2c: E2 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: E2 0E 00 [21:07:19]MH_I2C_Read... [21:07:19]Read from MH i2c: E2 0E 00 14 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 20 [21:07:19]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:07:19]wFMCommunicate OK [21:07:19]SAM_PROTO_GetShiftState done [21:07:19]FM_GetShiftState done [21:07:19]opened in 1726964408 [21:07:19]opened+sec_in_day 1727050808 [21:07:19]quantity*price = 5000 [21:07:19]sum+1 = 5001 [21:07:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 86 22.09.2024 21:07 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22171 ФПД: 184609418148157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210723&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22171&fm=184609418148157&tin=02508201610067®Number=0000000000146243&sum=5000 0 [21:07:21]StoreToDocumentArchive [21:07:21]shift 228 fd 22171 [21:07:21]save to /storage/0228/doc_00022171 [21:07:21]save last doc name /storage/0228/doc_00022171 to /storage/kkm_last_doc_name [21:07:21]save OK [21:07:21]Clear old archive folders... [21:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=292 [21:07:21]tlvbuf is B6EF9180 [21:07:21]SAM_PROTO_ClearQueue [21:07:21]wFMCommunicate request_size=4 [21:07:21]MH_SAM_APDU [21:07:21]CAPDU: 80 09 00 00 [21:07:21]Write to MH i2c: E2 08 00 21 14 80 09 00 00 00 00 00 00 A7 [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:21]Read from MH i2c: E2 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [21:07:21]RAPDU: 90 00 [21:07:21]wFMCommunicate OK [21:07:21]SAM_PROTO_ClearQueue done [21:07:21]KKMCreateOFDPacket [21:07:21]OFDProtocolAddRootSTLVToBuf [21:07:21]FM_MakeSignedData [21:07:21]FM_MakeSignedData [21:07:21]SAM_PROTO_SignData [21:07:21]wFMCommunicate request_size=4 [21:07:21]MH_SAM_APDU [21:07:21]CAPDU: 80 0D 01 02 [21:07:21]Write to MH i2c: E2 08 00 22 14 80 0D 01 02 00 00 00 00 AF [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:21]Read from MH i2c: E2 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [21:07:21]RAPDU: 90 00 [21:07:21]wFMCommunicate OK [21:07:21]wFMCommunicate request_size=255 [21:07:21]MH_SAM_APDU [21:07:21]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 0B 87 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [21:07:21]Write to MH i2c: E2 02 01 23 14 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 0B 87 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 22 [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:21]Read from MH i2c: E2 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [21:07:21]RAPDU: 90 00 [21:07:21]wFMCommunicate OK [21:07:21]wFMCommunicate request_size=51 [21:07:21]MH_SAM_APDU [21:07:21]CAPDU: 80 0D 02 02 2E 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9B 56 00 00 35 04 06 00 A7 E6 BA CA 79 3D [21:07:21]Write to MH i2c: E2 36 00 24 14 80 0D 02 02 2E 00 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9B 56 00 00 35 04 06 00 A7 E6 BA CA 79 3D 00 00 FD [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:21]Read from MH i2c: E2 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [21:07:21]RAPDU: 90 00 [21:07:21]wFMCommunicate OK [21:07:21]wFMCommunicate request_size=4 [21:07:21]MH_SAM_APDU [21:07:21]CAPDU: 80 0D 03 02 [21:07:21]Write to MH i2c: E2 08 00 25 14 80 0D 03 02 00 00 00 00 B4 [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:21]Read from MH i2c: E2 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 0B 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 0B 00 25 14 00 EE CD DE B1 AD F1 62 DE 90 00 DD [21:07:21]RAPDU: EE CD DE B1 AD F1 62 DE 90 00 [21:07:21]wFMCommunicate OK [21:07:21]SAM_PROTO_SignData done [21:07:21]FM_MakeSignedData done [21:07:21]CreateOFDProtocolMessage [21:07:21]wFMCommunicate request_size=4 [21:07:21]MH_SAM_APDU [21:07:21]CAPDU: 80 11 00 00 [21:07:21]Write to MH i2c: E2 08 00 26 14 80 11 00 00 00 00 00 00 B4 [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:21]Read from MH i2c: E2 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 17 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: E2 17 00 26 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 0E [21:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:07:21]wFMCommunicate OK [21:07:21]CreateOFDProtocolMessage done [21:07:21]OFDSenderStorePacket 22171 [21:07:21]StoreOFDPacket docnum=22171 [21:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 38 01 00 00 05 BB 30 01 DD A9 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 0B 87 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9B 56 00 00 35 04 06 00 A7 E6 BA CA 79 3D EE CD DE B1 AD F1 62 DE [21:07:21]CheckFolder [21:07:21]dirname=/storage/ofd_packets [21:07:21]CheckFolder done [21:07:21]ProducePacketName [21:07:21]name=ofd_packets/00022171 [21:07:21]NVStorageSaveData ofd_packets/00022171 [21:07:21]File name is /storage/ofd_packets/00022171 [21:07:21]Write 342 bytes [21:07:21]NVStorageSaveData done [21:07:21]OFDSenderStorePacket done [21:07:21]KKMCreateOFDPacket done [21:07:21]NVStorageSaveData kkm_last_timestamp [21:07:21]File name is /storage/kkm_last_timestamp [21:07:21]Write 4 bytes [21:07:21]NVStorageSaveData done [21:07:21]ExternCall_PrintAddStr [21:07:21]wPrintStart [21:07:21]Write to MH i2c: 01 00 00 27 14 3B [21:07:21]OFD Sender: Processing packet 22171 [packets to send 23, broken 22] [21:07:21]ProducePacketName [21:07:21]name=ofd_packets/00022171 [21:07:21]OFD Sender: To server: pG, [21:07:21]CommunicateWithHost lk.salyk.kg:30040 [21:07:21]ConnectInit lk.salyk.kg [21:07:21]Write i2c OK [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: 01 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: 01 07 00 [21:07:21]MH_I2C_Read... [21:07:21]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 FF 0F 50 [21:07:21]RasterBufferAndPrint [21:07:21]line Счет N : (3)51437 [21:07:21]line ИНН: 02508201610067 [21:07:21]line Контрольно-Кассовый Чек [21:07:21]line ПРОДАЖА [21:07:21]line Товар: 4700003010018 [21:07:21]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [21:07:21]line 1.000 * 50.00 [21:07:21]line = 50.00 [21:07:21]line НДС 12% НСП 1% [21:07:21]line > о реализуемом товаре [21:07:21]line ИТОГО: 50.00 [21:07:21]line НСП 1% : 0.44 [21:07:21]line НДС 12% : 5.31 [21:07:21]line Наличными: 50.00 [21:07:21]line Безнал.: 0.00 [21:07:21]line Место: АЗС № 88 "Партнер Нефть" [21:07:21]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:07:21]line СНО: Общий режим [21:07:21]line Чек 86 22.09.2024 21:07 [21:07:21]line Смена: 228 ФФД: 1.0 [21:07:21]line ЗНМ: 0300000061 [21:07:21]line РНМ: 0000000000146243 [21:07:21]line Версия ККМ: v1.0 [21:07:21]line ФМ: 0000000000959358 [21:07:21]line ФД: 22171 [21:07:21]line ФПД: 184609418148157 [21:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T210723&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22171&fm=184609418148157&tin=02508201610067®Number=0000000000146243&sum=5000 [21:07:22]line 0 [21:07:22]Connected sock=10 [21:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 38 01 00 00 05 BB 30 01 DD A9 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 0B 87 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9B 56 00 00 35 04 06 00 A7 E6 BA CA 79 3D EE CD DE B1 AD F1 62 DE [21:07:22]written 0, free lines is 4095 [21:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 8B 4A 47 00 51 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 39 35 39 33 35 38 10 04 04 00 9B 56 00 00 F4 03 04 00 35 31 F0 66 B6 04 01 00 00 AD 55 6C F2 D8 93 A3 56 [21:07:22]CommunicateWithHost err = 0 [21:07:22]CheckOFDResponse [21:07:22]1017 (14) - 77093643461234 [21:07:22]1041 (16) - 0000000000959358 [21:07:22]1040 (4) - 22171 [21:07:22]1012 (4) - 22.09.2024 15:01 [21:07:22]1206 (1) - 0 [21:07:22]OFD Sender: Remove packet 22171 [21:07:22]ProducePacketName [21:07:22]name=ofd_packets/00022171 [21:07:22]NVStorageDeleteData [21:07:22]Write to MH i2c: 01 00 00 50 14 64 [21:07:22]Write i2c OK [21:07:22]MH_I2C_Read... [21:07:22]Read from MH i2c: 01 [21:07:22]MH_I2C_Read... [21:07:22]Read from MH i2c: 01 07 00 [21:07:22]MH_I2C_Read... [21:07:22]Read from MH i2c: 01 07 00 50 14 00 00 00 00 00 01 0D 79 [21:07:22]RasterBufferAndPrint [21:07:22]line [21:07:22]line [21:07:22]line [21:07:22]line [21:07:22]line [21:07:22]written 0, free lines is 3338 [21:07:22]MH_Cut [21:07:22]Write to MH i2c: D1 01 00 57 14 01 3D [21:07:22]Write i2c OK [21:07:22]MH_I2C_Read... [21:07:22]Read from MH i2c: D1 [21:07:22]MH_I2C_Read... [21:07:22]Read from MH i2c: D1 01 00 [21:07:22]MH_I2C_Read... [21:07:22]Read from MH i2c: D1 01 00 57 14 00 3C [21:07:22]Write to MH i2c: 01 00 00 58 14 6C [21:07:22]Write i2c OK [21:07:22]MH_I2C_Read... [21:07:22]OFD Sender: No OFD packet to send [21:07:23]*** Cut start [21:07:23]*** Partial cut [21:07:23]*** CUTSNS_PIN = 1 [21:07:23]*** CUTSNS_PIN = 0 [21:07:23]*** Brake cut motor [21:07:23]Read from MH i2c: 01 [21:07:23]MH_I2C_Read... [21:07:23]*** Stop cut motor [21:07:23]*** Cut end [21:07:23]Read from MH i2c: 01 07 00 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: 01 07 00 58 14 00 00 00 00 00 FF 0F 81 [21:07:23]process_action close_receipt done [21:07:23]requested_data is exist [21:07:23]produce_requested_data [21:07:23]requested_item fm.sn is exist - process it [21:07:23]wFMCommunicate request_size=4 [21:07:23]MH_SAM_APDU [21:07:23]CAPDU: 80 11 00 00 [21:07:23]Write to MH i2c: E2 08 00 59 14 80 11 00 00 00 00 00 00 E7 [21:07:23]Write i2c OK [21:07:23]MH_I2C_Read... [21:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:23]Read from MH i2c: E2 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: E2 17 00 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: E2 17 00 59 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 41 [21:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:07:23]wFMCommunicate OK [21:07:23]requested_item fd.num is exist - process it [21:07:23]SAM_PROTO_GetFieldsCounters [21:07:23]wFMCommunicate request_size=4 [21:07:23]MH_SAM_APDU [21:07:23]CAPDU: 80 13 00 00 [21:07:23]Write to MH i2c: E2 08 00 5A 14 80 13 00 00 00 00 00 00 EA [21:07:23]Write i2c OK [21:07:23]MH_I2C_Read... [21:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:23]Read from MH i2c: E2 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: E2 62 00 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: E2 62 00 5A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:07:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9B 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:23]wFMCommunicate OK [21:07:23]SAM_PROTO_GetFieldsCounters done [21:07:23]requested_item shift.num is exist - process it [21:07:23]requested_item shift.opened is exist - process it [21:07:23]req_shift_opened [21:07:23]FM_GetShiftState [21:07:23]SAM_PROTO_GetShiftState [21:07:23]wFMCommunicate request_size=4 [21:07:23]MH_SAM_APDU [21:07:23]CAPDU: 80 13 01 00 [21:07:23]Write to MH i2c: E2 08 00 5B 14 80 13 01 00 00 00 00 00 EC [21:07:23]Write i2c OK [21:07:23]MH_I2C_Read... [21:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:23]Read from MH i2c: E2 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: E2 0E 00 [21:07:24]MH_I2C_Read... [21:07:24]Read from MH i2c: E2 0E 00 5B 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 67 [21:07:24]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:07:24]wFMCommunicate OK [21:07:24]SAM_PROTO_GetShiftState done [21:07:24]FM_GetShiftState done [21:07:24]req_shift_opened done [21:07:24]requested_item shift.open_date is exist - process it [21:07:24]req_shift_open_date [21:07:24]req_shift_open_date done [21:07:24]produce_requested_data done [21:07:24]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22171,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:07:24]process_action_free close_receipt [21:07:24]json_value_free [21:07:24]json_value_free done [21:07:24]process_json_proto returns [21:07:24]Send response to host [21:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22171,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:07:24]free response buf [21:07:24]execute_script done [21:07:24]execute_script returns [21:07:24]free content buf [21:07:24]Sock 7.Close socket [21:07:24]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:29]accept exits with 9 [21:21:29]New connection [21:21:29]New thread 3067182436 created [21:21:29]Thread 3067039076 joined [21:21:29]Waiting for new connection... [21:21:29] Sock 9.Parse request [21:21:29]Sock 9.Check first char [21:21:29]Sock 9.First char is OK [21:21:29]request: POST /json_proto HTTP/1.0 [21:21:29]Method: POST [21:21:29]URL: /json_proto [21:21:29]Method is POST - this is cgi request [21:21:29]url: /json_proto [21:21:29]query_string will be loaded in cgi processing [21:21:29]execute_cgi json_proto POST (null) [21:21:29]execute_cgi path=json_proto method=POST [21:21:29]POST find Content-Length [21:21:29]Host: 172.17.43.4:8080 [21:21:29]Content-Length: 742 [21:21:29]Content-Type: application/json [21:21:29] [21:21:29]POST finish read [21:21:29]Found Content-Length = 742 [21:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51438", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 0.00, "quantity" : 2.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:29]execute_script... [21:21:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51438", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 0.00, "quantity" : 2.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:29]POST & json_proto [21:21:29]process_json_proto [21:21:29]json parsed OK: [21:21:29]protocol is kg_v1.0 [21:21:29]action value=close_receipt [21:21:29]process_action close_receipt [21:21:29]cmd_close_receipt [21:21:29]MH_GetDate [21:21:29]Write to MH i2c: F0 00 00 5C 14 5F [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: F0 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: F0 09 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: F0 09 00 5C 14 00 5C 8A F0 66 02 BF CF 66 9A [21:21:29]GetLastDocTimeStamp 1727039243 [21:21:29]current date 1727040092 [21:21:29]FM_GetShiftState [21:21:29]SAM_PROTO_GetShiftState [21:21:29]wFMCommunicate request_size=4 [21:21:29]MH_SAM_APDU [21:21:29]CAPDU: 80 13 01 00 [21:21:29]Write to MH i2c: E2 08 00 5D 14 80 13 01 00 00 00 00 00 EE [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:29]Read from MH i2c: E2 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 0E 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 0E 00 5D 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 69 [21:21:29]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:21:29]wFMCommunicate OK [21:21:29]SAM_PROTO_GetShiftState done [21:21:29]FM_GetShiftState done [21:21:29]opened in 1726964408 [21:21:29]opened+sec_in_day 1727050808 [21:21:29]quantity*price = 0 [21:21:29]sum+1 = 1 [21:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 87 22.09.2024 21:21 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22172 ФПД: 177245973300806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T212132&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22172&fm=177245973300806&tin=02508201610067®Number=0000000000146243&sum=0 0 [21:21:30]StoreToDocumentArchive [21:21:30]shift 228 fd 22172 [21:21:30]save to /storage/0228/doc_00022172 [21:21:30]save last doc name /storage/0228/doc_00022172 to /storage/kkm_last_doc_name [21:21:30]save OK [21:21:30]Clear old archive folders... [21:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:21:30]tlvbuf is B6EE0730 [21:21:30]SAM_PROTO_ClearQueue [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 09 00 00 [21:21:30]Write to MH i2c: E2 08 00 6A 14 80 09 00 00 00 00 00 00 F0 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]SAM_PROTO_ClearQueue done [21:21:30]KKMCreateOFDPacket [21:21:30]OFDProtocolAddRootSTLVToBuf [21:21:30]FM_MakeSignedData [21:21:30]FM_MakeSignedData [21:21:30]SAM_PROTO_SignData [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 01 02 [21:21:30]Write to MH i2c: E2 08 00 6B 14 80 0D 01 02 00 00 00 00 F8 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]wFMCommunicate request_size=255 [21:21:30]MH_SAM_APDU [21:21:30]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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5C 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 [21:21:30]Write to MH i2c: E2 02 01 6C 14 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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5C 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 00 00 A2 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]wFMCommunicate request_size=33 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9C 56 00 00 35 04 06 00 A1 34 4B 46 C6 46 [21:21:30]Write to MH i2c: E2 24 00 6D 14 80 0D 02 02 1C 00 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9C 56 00 00 35 04 06 00 A1 34 4B 46 C6 46 00 00 F5 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [21:21:30]RAPDU: 90 00 [21:21:30]wFMCommunicate OK [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 0D 03 02 [21:21:30]Write to MH i2c: E2 08 00 6E 14 80 0D 03 02 00 00 00 00 FD [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 0B 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 0B 00 6E 14 00 2C F2 53 A0 51 20 07 C7 90 00 4E [21:21:30]RAPDU: 2C F2 53 A0 51 20 07 C7 90 00 [21:21:30]wFMCommunicate OK [21:21:30]SAM_PROTO_SignData done [21:21:30]FM_MakeSignedData done [21:21:30]CreateOFDProtocolMessage [21:21:30]wFMCommunicate request_size=4 [21:21:30]MH_SAM_APDU [21:21:30]CAPDU: 80 11 00 00 [21:21:30]Write to MH i2c: E2 08 00 6F 14 80 11 00 00 00 00 00 00 FD [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:30]Read from MH i2c: E2 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 17 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: E2 17 00 6F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 57 [21:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:21:30]wFMCommunicate OK [21:21:30]CreateOFDProtocolMessage done [21:21:30]OFDSenderStorePacket 22172 [21:21:30]StoreOFDPacket docnum=22172 [21:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 26 01 00 00 EA 0B 1E 01 1D E7 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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5C 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9C 56 00 00 35 04 06 00 A1 34 4B 46 C6 46 2C F2 53 A0 51 20 07 C7 [21:21:30]CheckFolder [21:21:30]dirname=/storage/ofd_packets [21:21:30]CheckFolder done [21:21:30]ProducePacketName [21:21:30]name=ofd_packets/00022172 [21:21:30]NVStorageSaveData ofd_packets/00022172 [21:21:30]File name is /storage/ofd_packets/00022172 [21:21:30]Write 324 bytes [21:21:30]NVStorageSaveData done [21:21:30]OFDSenderStorePacket done [21:21:30]KKMCreateOFDPacket done [21:21:30]NVStorageSaveData kkm_last_timestamp [21:21:30]File name is /storage/kkm_last_timestamp [21:21:30]Write 4 bytes [21:21:30]NVStorageSaveData done [21:21:30]ExternCall_PrintAddStr [21:21:30]wPrintStart [21:21:30]Write to MH i2c: 01 00 00 70 14 84 [21:21:30]Write i2c OK [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: 01 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: 01 07 00 [21:21:30]MH_I2C_Read... [21:21:30]Read from MH i2c: 01 07 00 70 14 00 00 00 00 00 FF 0F 99 [21:21:30]RasterBufferAndPrint [21:21:30]line Счет N : (3)51438 [21:21:30]line ИНН: 02508201610067 [21:21:30]line Контрольно-Кассовый Чек [21:21:30]line ПРОДАЖА [21:21:30]line Товар: 48744997 [21:21:30]line Сигареты Winston Compact Blue [21:21:30]line 2.000 * 0.00 [21:21:30]line = 0.00 [21:21:30]line НДС 12% НСП 1% [21:21:30]line > о реализуемом товаре [21:21:30]line ИТОГО: 0.00 [21:21:30]line НСП 1% : 0.00 [21:21:30]line НДС 12% : 0.00 [21:21:30]line Наличными: 0.00 [21:21:30]line Безнал.: 0.00 [21:21:30]line Место: АЗС № 88 "Партнер Нефть" [21:21:30]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:21:30]line СНО: Общий режим [21:21:30]line Чек 87 22.09.2024 21:21 [21:21:30]line Смена: 228 ФФД: 1.0 [21:21:30]line ЗНМ: 0300000061 [21:21:30]line РНМ: 0000000000146243 [21:21:30]line Версия ККМ: v1.0 [21:21:30]line Платежная система: Mbank [21:21:30]line ФМ: 0000000000959358 [21:21:30]line ФД: 22172 [21:21:30]line ФПД: 177245973300806 [21:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T212132&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22172&fm=177245973300806&tin=02508201610067®Number=0000000000146243&sum=0 [21:21:31]line 0 [21:21:31]OFD Sender: Processing packet 22172 [packets to send 23, broken 22] [21:21:31]ProducePacketName [21:21:31]name=ofd_packets/00022172 [21:21:31]OFD Sender: To server: pG, [21:21:31]CommunicateWithHost lk.salyk.kg:30040 [21:21:31]ConnectInit lk.salyk.kg [21:21:31]written 0, free lines is 4095 [21:21:31]Connected sock=10 [21:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 26 01 00 00 EA 0B 1E 01 1D E7 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 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5C 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9C 56 00 00 35 04 06 00 A1 34 4B 46 C6 46 2C F2 53 A0 51 20 07 C7 [21:21:31]Write to MH i2c: 01 00 00 9A 14 AE [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: 01 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: 01 07 00 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: 01 07 00 9A 14 00 00 00 00 00 01 0D C3 [21:21:31]RasterBufferAndPrint [21:21:31]line [21:21:31]line [21:21:31]line [21:21:31]line [21:21:31]line [21:21:31]written 0, free lines is 3335 [21:21:31]MH_Cut [21:21:31]Write to MH i2c: D1 01 00 A1 14 01 87 [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: D1 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: D1 01 00 [21:21:31]MH_I2C_Read... [21:21:31]Read from MH i2c: D1 01 00 A1 14 00 86 [21:21:31]Write to MH i2c: 01 00 00 A2 14 B6 [21:21:31]Write i2c OK [21:21:31]MH_I2C_Read... [21:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 1D 70 47 00 3D 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9C 56 00 00 F4 03 04 00 87 34 F0 66 B6 04 01 00 00 AB A5 98 81 37 1D BA 41 [21:21:31]CommunicateWithHost err = 0 [21:21:31]CheckOFDResponse [21:21:31]1017 (14) - 77093643461234 [21:21:31]1041 (16) - 0000000000959358 [21:21:31]1040 (4) - 22172 [21:21:31]1012 (4) - 22.09.2024 15:15 [21:21:31]1206 (1) - 0 [21:21:31]OFD Sender: Remove packet 22172 [21:21:31]ProducePacketName [21:21:31]name=ofd_packets/00022172 [21:21:31]NVStorageDeleteData [21:21:32]*** Cut start [21:21:32]*** Partial cut [21:21:32]*** CUTSNS_PIN = 1 [21:21:32]*** CUTSNS_PIN = 0 [21:21:32]OFD Sender: No OFD packet to send [21:21:32]*** Brake cut motor [21:21:32]Read from MH i2c: 01 [21:21:32]MH_I2C_Read... [21:21:32]*** Stop cut motor [21:21:32]*** Cut end [21:21:32]Read from MH i2c: 01 07 00 [21:21:32]MH_I2C_Read... [21:21:32]Read from MH i2c: 01 07 00 A2 14 00 00 00 00 00 FF 0F CB [21:21:32]process_action close_receipt done [21:21:32]requested_data is exist [21:21:32]produce_requested_data [21:21:32]requested_item fm.sn is exist - process it [21:21:32]wFMCommunicate request_size=4 [21:21:32]MH_SAM_APDU [21:21:32]CAPDU: 80 11 00 00 [21:21:32]Write to MH i2c: E2 08 00 A3 14 80 11 00 00 00 00 00 00 31 [21:21:32]Write i2c OK [21:21:32]MH_I2C_Read... [21:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:32]Read from MH i2c: E2 [21:21:32]MH_I2C_Read... [21:21:32]Read from MH i2c: E2 17 00 [21:21:32]MH_I2C_Read... [21:21:32]Read from MH i2c: E2 17 00 A3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 8B [21:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:21:32]wFMCommunicate OK [21:21:32]requested_item fd.num is exist - process it [21:21:32]SAM_PROTO_GetFieldsCounters [21:21:32]wFMCommunicate request_size=4 [21:21:32]MH_SAM_APDU [21:21:32]CAPDU: 80 13 00 00 [21:21:32]Write to MH i2c: E2 08 00 A4 14 80 13 00 00 00 00 00 00 34 [21:21:32]Write i2c OK [21:21:32]MH_I2C_Read... [21:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:32]Read from MH i2c: E2 [21:21:32]MH_I2C_Read... [21:21:32]Read from MH i2c: E2 62 00 [21:21:32]MH_I2C_Read... [21:21:32]Read from MH i2c: E2 62 00 A4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9C 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:32]wFMCommunicate OK [21:21:32]SAM_PROTO_GetFieldsCounters done [21:21:32]requested_item shift.num is exist - process it [21:21:32]requested_item shift.opened is exist - process it [21:21:32]req_shift_opened [21:21:32]FM_GetShiftState [21:21:32]SAM_PROTO_GetShiftState [21:21:32]wFMCommunicate request_size=4 [21:21:32]MH_SAM_APDU [21:21:32]CAPDU: 80 13 01 00 [21:21:32]Write to MH i2c: E2 08 00 A5 14 80 13 01 00 00 00 00 00 36 [21:21:33]Write i2c OK [21:21:33]MH_I2C_Read... [21:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:33]Read from MH i2c: E2 [21:21:33]MH_I2C_Read... [21:21:33]Read from MH i2c: E2 0E 00 [21:21:33]MH_I2C_Read... [21:21:33]Read from MH i2c: E2 0E 00 A5 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B1 [21:21:33]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:21:33]wFMCommunicate OK [21:21:33]SAM_PROTO_GetShiftState done [21:21:33]FM_GetShiftState done [21:21:33]req_shift_opened done [21:21:33]requested_item shift.open_date is exist - process it [21:21:33]req_shift_open_date [21:21:33]req_shift_open_date done [21:21:33]produce_requested_data done [21:21:33]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22172,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:21:33]process_action_free close_receipt [21:21:33]json_value_free [21:21:33]json_value_free done [21:21:33]process_json_proto returns [21:21:33]Send response to host [21:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22172,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:21:33]free response buf [21:21:33]execute_script done [21:21:33]execute_script returns [21:21:33]free content buf [21:21:33]Sock 9.Close socket [21:21:33]Sock 9.Thread stoped [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:52]accept exits with 7 [21:23:52]New connection [21:23:52]New thread 3067039076 created [21:23:52]Thread 3067182436 joined [21:23:52]Waiting for new connection... [21:23:52] Sock 7.Parse request [21:23:52]Sock 7.Check first char [21:23:52]Sock 7.First char is OK [21:23:52]request: POST /json_proto HTTP/1.0 [21:23:52]Method: POST [21:23:52]URL: /json_proto [21:23:52]Method is POST - this is cgi request [21:23:52]url: /json_proto [21:23:52]query_string will be loaded in cgi processing [21:23:52]execute_cgi json_proto POST (null) [21:23:52]execute_cgi path=json_proto method=POST [21:23:52]POST find Content-Length [21:23:52]Host: 172.17.43.4:8080 [21:23:52]Content-Length: 653 [21:23:52]Content-Type: application/json [21:23:52] [21:23:52]POST finish read [21:23:52]Found Content-Length = 653 [21:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51439", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:52]execute_script... [21:23: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)51439", "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" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:52]POST & json_proto [21:23:52]process_json_proto [21:23:52]json parsed OK: [21:23:52]protocol is kg_v1.0 [21:23:52]action value=close_receipt [21:23:52]process_action close_receipt [21:23:52]cmd_close_receipt [21:23:52]MH_GetDate [21:23:52]Write to MH i2c: F0 00 00 A6 14 A9 [21:23:52]Write i2c OK [21:23:52]MH_I2C_Read... [21:23:52]Read from MH i2c: F0 [21:23:52]MH_I2C_Read... [21:23:52]Read from MH i2c: F0 09 00 [21:23:52]MH_I2C_Read... [21:23:52]Read from MH i2c: F0 09 00 A6 14 00 EC 8A F0 66 02 BF CF 66 74 [21:23:52]GetLastDocTimeStamp 1727040092 [21:23:52]current date 1727040236 [21:23:52]FM_GetShiftState [21:23:52]SAM_PROTO_GetShiftState [21:23:52]wFMCommunicate request_size=4 [21:23:52]MH_SAM_APDU [21:23:52]CAPDU: 80 13 01 00 [21:23:52]Write to MH i2c: E2 08 00 A7 14 80 13 01 00 00 00 00 00 38 [21:23:52]Write i2c OK [21:23:52]MH_I2C_Read... [21:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:52]Read from MH i2c: E2 [21:23:52]MH_I2C_Read... [21:23:52]Read from MH i2c: E2 0E 00 [21:23:52]MH_I2C_Read... [21:23:52]Read from MH i2c: E2 0E 00 A7 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 B3 [21:23:52]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:23:52]wFMCommunicate OK [21:23:52]SAM_PROTO_GetShiftState done [21:23:52]FM_GetShiftState done [21:23:52]opened in 1726964408 [21:23:52]opened+sec_in_day 1727050808 [21:23:52]quantity*price = 7700 [21:23:52]sum+1 = 7701 [21:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 88 22.09.2024 21:23 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22173 ФПД: 235571085336283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T212356&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22173&fm=235571085336283&tin=02508201610067®Number=0000000000146243&sum=7700 0 [21:23:54]StoreToDocumentArchive [21:23:54]shift 228 fd 22173 [21:23:54]save to /storage/0228/doc_00022173 [21:23:54]save last doc name /storage/0228/doc_00022173 to /storage/kkm_last_doc_name [21:23:54]save OK [21:23:54]Clear old archive folders... [21:23:54]ProcessDocumentItem done err = 0, tmpTLVsize=293 [21:23:54]tlvbuf is 00236410 [21:23:54]SAM_PROTO_ClearQueue [21:23:54]wFMCommunicate request_size=4 [21:23:54]MH_SAM_APDU [21:23:54]CAPDU: 80 09 00 00 [21:23:54]Write to MH i2c: E2 08 00 B4 14 80 09 00 00 00 00 00 00 3A [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:54]Read from MH i2c: E2 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [21:23:54]RAPDU: 90 00 [21:23:54]wFMCommunicate OK [21:23:54]SAM_PROTO_ClearQueue done [21:23:54]KKMCreateOFDPacket [21:23:54]OFDProtocolAddRootSTLVToBuf [21:23:54]FM_MakeSignedData [21:23:54]FM_MakeSignedData [21:23:54]SAM_PROTO_SignData [21:23:54]wFMCommunicate request_size=4 [21:23:54]MH_SAM_APDU [21:23:54]CAPDU: 80 0D 01 02 [21:23:54]Write to MH i2c: E2 08 00 B5 14 80 0D 01 02 00 00 00 00 42 [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:54]Read from MH i2c: E2 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [21:23:54]RAPDU: 90 00 [21:23:54]wFMCommunicate OK [21:23:54]wFMCommunicate request_size=255 [21:23:54]MH_SAM_APDU [21:23:54]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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EC 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [21:23:54]Write to MH i2c: E2 02 01 B6 14 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EC 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 DF [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:54]Read from MH i2c: E2 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [21:23:54]RAPDU: 90 00 [21:23:54]wFMCommunicate OK [21:23:54]wFMCommunicate request_size=52 [21:23:54]MH_SAM_APDU [21:23:54]CAPDU: 80 0D 02 02 2F 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9D 56 00 00 35 04 06 00 D6 40 2A DC 5E DB [21:23:54]Write to MH i2c: E2 37 00 B7 14 80 0D 02 02 2F 00 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9D 56 00 00 35 04 06 00 D6 40 2A DC 5E DB 00 00 52 [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:54]Read from MH i2c: E2 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [21:23:54]RAPDU: 90 00 [21:23:54]wFMCommunicate OK [21:23:54]wFMCommunicate request_size=4 [21:23:54]MH_SAM_APDU [21:23:54]CAPDU: 80 0D 03 02 [21:23:54]Write to MH i2c: E2 08 00 B8 14 80 0D 03 02 00 00 00 00 47 [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:54]Read from MH i2c: E2 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 0B 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 0B 00 B8 14 00 B4 3F C6 67 DA 61 D4 82 90 00 F9 [21:23:54]RAPDU: B4 3F C6 67 DA 61 D4 82 90 00 [21:23:54]wFMCommunicate OK [21:23:54]SAM_PROTO_SignData done [21:23:54]FM_MakeSignedData done [21:23:54]CreateOFDProtocolMessage [21:23:54]wFMCommunicate request_size=4 [21:23:54]MH_SAM_APDU [21:23:54]CAPDU: 80 11 00 00 [21:23:54]Write to MH i2c: E2 08 00 B9 14 80 11 00 00 00 00 00 00 47 [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:54]Read from MH i2c: E2 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 17 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: E2 17 00 B9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A1 [21:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:23:54]wFMCommunicate OK [21:23:54]CreateOFDProtocolMessage done [21:23:54]OFDSenderStorePacket 22173 [21:23:54]StoreOFDPacket docnum=22173 [21:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 39 01 00 00 4B 04 31 01 22 54 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EC 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9D 56 00 00 35 04 06 00 D6 40 2A DC 5E DB B4 3F C6 67 DA 61 D4 82 [21:23:54]CheckFolder [21:23:54]dirname=/storage/ofd_packets [21:23:54]CheckFolder done [21:23:54]ProducePacketName [21:23:54]name=ofd_packets/00022173 [21:23:54]NVStorageSaveData ofd_packets/00022173 [21:23:54]File name is /storage/ofd_packets/00022173 [21:23:54]Write 343 bytes [21:23:54]NVStorageSaveData done [21:23:54]OFDSenderStorePacket done [21:23:54]KKMCreateOFDPacket done [21:23:54]NVStorageSaveData kkm_last_timestamp [21:23:54]File name is /storage/kkm_last_timestamp [21:23:54]Write 4 bytes [21:23:54]NVStorageSaveData done [21:23:54]ExternCall_PrintAddStr [21:23:54]wPrintStart [21:23:54]Write to MH i2c: 01 00 00 BA 14 CE [21:23:54]Write i2c OK [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: 01 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: 01 07 00 [21:23:54]MH_I2C_Read... [21:23:54]Read from MH i2c: 01 07 00 BA 14 00 00 00 00 00 FF 0F E3 [21:23:54]RasterBufferAndPrint [21:23:54]line Счет N : (3)51439 [21:23:54]line ИНН: 02508201610067 [21:23:54]line Контрольно-Кассовый Чек [21:23:54]line ПРОДАЖА [21:23:54]line Товар: 4700000480050 [21:23:54]line Напиток Nitro Energy эн green ж/б 0,45л [21:23:54]line 1.000 * 77.00 [21:23:54]line = 77.00 [21:23:54]line НДС 12% НСП 1% [21:23:54]line > о реализуемом товаре [21:23:54]line ИТОГО: 77.00 [21:23:54]line НСП 1% : 0.68 [21:23:54]line НДС 12% : 8.18 [21:23:54]line Наличными: 77.00 [21:23:54]line Безнал.: 0.00 [21:23:54]line Место: АЗС № 88 "Партнер Нефть" [21:23:54]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:23:54]line СНО: Общий режим [21:23:54]line Чек 88 22.09.2024 21:23 [21:23:54]line Смена: 228 ФФД: 1.0 [21:23:54]line ЗНМ: 0300000061 [21:23:54]line РНМ: 0000000000146243 [21:23:54]line Версия ККМ: v1.0 [21:23:54]line ФМ: 0000000000959358 [21:23:54]line ФД: 22173 [21:23:54]line ФПД: 235571085336283 [21:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T212356&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22173&fm=235571085336283&tin=02508201610067®Number=0000000000146243&sum=7700 [21:23:54]line 0 [21:23:54]OFD Sender: Processing packet 22173 [packets to send 23, broken 22] [21:23:54]ProducePacketName [21:23:54]name=ofd_packets/00022173 [21:23:54]OFD Sender: To server: pG, [21:23:54]CommunicateWithHost lk.salyk.kg:30040 [21:23:54]ConnectInit lk.salyk.kg [21:23:54]written 0, free lines is 4095 [21:23:55]Connected sock=10 [21:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 39 01 00 00 4B 04 31 01 22 54 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 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EC 8A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9D 56 00 00 35 04 06 00 D6 40 2A DC 5E DB B4 3F C6 67 DA 61 D4 82 [21:23:55]Write to MH i2c: 01 00 00 E3 14 F7 [21:23:55]Write i2c OK [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: 01 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: 01 07 00 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 0C 0D 17 [21:23:55]RasterBufferAndPrint [21:23:55]line [21:23:55]line [21:23:55]line [21:23:55]line [21:23:55]line [21:23:55]written 0, free lines is 3346 [21:23:55]MH_Cut [21:23:55]Write to MH i2c: D1 01 00 EA 14 01 D0 [21:23:55]Write i2c OK [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: D1 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: D1 01 00 [21:23:55]MH_I2C_Read... [21:23:55]Read from MH i2c: D1 01 00 EA 14 00 CF [21:23:55]Write to MH i2c: 01 00 00 EB 14 FF [21:23:55]Write i2c OK [21:23:55]MH_I2C_Read... [21:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 44 D9 47 00 CC 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 39 35 39 33 35 38 10 04 04 00 9D 56 00 00 F4 03 04 00 16 35 F0 66 B6 04 01 00 00 AB 76 D4 4C 57 F0 3D E1 [21:23:55]CommunicateWithHost err = 0 [21:23:55]CheckOFDResponse [21:23:55]1017 (14) - 77093643461234 [21:23:55]1041 (16) - 0000000000959358 [21:23:55]1040 (4) - 22173 [21:23:55]1012 (4) - 22.09.2024 15:17 [21:23:55]1206 (1) - 0 [21:23:55]OFD Sender: Remove packet 22173 [21:23:55]ProducePacketName [21:23:55]name=ofd_packets/00022173 [21:23:55]NVStorageDeleteData [21:23:55]OFD Sender: No OFD packet to send [21:23:56]*** Cut start [21:23:56]*** Partial cut [21:23:56]*** CUTSNS_PIN = 1 [21:23:56]*** CUTSNS_PIN = 0 [21:23:56]*** Brake cut motor [21:23:56]Read from MH i2c: 01 [21:23:56]MH_I2C_Read... [21:23:56]*** Stop cut motor [21:23:56]*** Cut end [21:23:56]Read from MH i2c: 01 07 00 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: 01 07 00 EB 14 00 00 00 00 00 FF 0F 14 [21:23:56]process_action close_receipt done [21:23:56]requested_data is exist [21:23:56]produce_requested_data [21:23:56]requested_item fm.sn is exist - process it [21:23:56]wFMCommunicate request_size=4 [21:23:56]MH_SAM_APDU [21:23:56]CAPDU: 80 11 00 00 [21:23:56]Write to MH i2c: E2 08 00 EC 14 80 11 00 00 00 00 00 00 7A [21:23:56]Write i2c OK [21:23:56]MH_I2C_Read... [21:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:56]Read from MH i2c: E2 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 17 00 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 17 00 EC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D4 [21:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:23:56]wFMCommunicate OK [21:23:56]requested_item fd.num is exist - process it [21:23:56]SAM_PROTO_GetFieldsCounters [21:23:56]wFMCommunicate request_size=4 [21:23:56]MH_SAM_APDU [21:23:56]CAPDU: 80 13 00 00 [21:23:56]Write to MH i2c: E2 08 00 ED 14 80 13 00 00 00 00 00 00 7D [21:23:56]Write i2c OK [21:23:56]MH_I2C_Read... [21:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:56]Read from MH i2c: E2 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 62 00 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 62 00 ED 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [21:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9D 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:56]wFMCommunicate OK [21:23:56]SAM_PROTO_GetFieldsCounters done [21:23:56]requested_item shift.num is exist - process it [21:23:56]requested_item shift.opened is exist - process it [21:23:56]req_shift_opened [21:23:56]FM_GetShiftState [21:23:56]SAM_PROTO_GetShiftState [21:23:56]wFMCommunicate request_size=4 [21:23:56]MH_SAM_APDU [21:23:56]CAPDU: 80 13 01 00 [21:23:56]Write to MH i2c: E2 08 00 EE 14 80 13 01 00 00 00 00 00 7F [21:23:56]Write i2c OK [21:23:56]MH_I2C_Read... [21:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:56]Read from MH i2c: E2 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 0E 00 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 0E 00 EE 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FA [21:23:56]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:23:56]wFMCommunicate OK [21:23:56]SAM_PROTO_GetShiftState done [21:23:56]FM_GetShiftState done [21:23:56]req_shift_opened done [21:23:56]requested_item shift.open_date is exist - process it [21:23:56]req_shift_open_date [21:23:56]req_shift_open_date done [21:23:56]produce_requested_data done [21:23:56]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22173,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:23:56]process_action_free close_receipt [21:23:56]json_value_free [21:23:56]json_value_free done [21:23:56]process_json_proto returns [21:23:56]Send response to host [21:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22173,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:23:56]free response buf [21:23:56]execute_script done [21:23:56]execute_script returns [21:23:56]free content buf [21:23:56]Sock 7.Close socket [21:23:56]Sock 7.Thread stoped [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:42]accept exits with 9 [21:31:42]New connection [21:31:42]New thread 3067182436 created [21:31:42]Thread 3067039076 joined [21:31:42]Waiting for new connection... [21:31:42] Sock 9.Parse request [21:31:42]Sock 9.Check first char [21:31:42]Sock 9.First char is OK [21:31:42]request: POST /json_proto HTTP/1.0 [21:31:42]Method: POST [21:31:42]URL: /json_proto [21:31:42]Method is POST - this is cgi request [21:31:42]url: /json_proto [21:31:42]query_string will be loaded in cgi processing [21:31:42]execute_cgi json_proto POST (null) [21:31:42]execute_cgi path=json_proto method=POST [21:31:42]POST find Content-Length [21:31:42]Host: 172.17.43.4:8080 [21:31:42]Content-Length: 1310 [21:31:42]Content-Type: application/json [21:31:42] [21:31:42]POST finish read [21:31:42]Found Content-Length = 1310 [21:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51440", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 372.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:42]execute_script... [21:31: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)51440", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870066000476", "name": "\u041F\u0430\u043B\u043E\u0447\u043A\u0438 \u0410\u043B\u043C\u0430\u0442\u0438\u043D\u0441\u043A\u0438\u0439 \u041F\u0440\u043E\u0434\u0443\u043A\u0442 \u0441\u043B\u0430\u0434\u043A\u0438\u0435 50\u0433", "price" : 27.00, "quantity" : 1.000, "sum" : 27.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 372.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:42]POST & json_proto [21:31:42]process_json_proto [21:31:42]json parsed OK: [21:31:42]protocol is kg_v1.0 [21:31:42]action value=close_receipt [21:31:42]process_action close_receipt [21:31:42]cmd_close_receipt [21:31:42]MH_GetDate [21:31:42]Write to MH i2c: F0 00 00 EF 14 F2 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: F0 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: F0 09 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: F0 09 00 EF 14 00 C1 8C F0 66 02 BF CF 66 94 [21:31:42]GetLastDocTimeStamp 1727040236 [21:31:42]current date 1727040705 [21:31:42]FM_GetShiftState [21:31:42]SAM_PROTO_GetShiftState [21:31:42]wFMCommunicate request_size=4 [21:31:42]MH_SAM_APDU [21:31:42]CAPDU: 80 13 01 00 [21:31:42]Write to MH i2c: E2 08 00 F0 14 80 13 01 00 00 00 00 00 81 [21:31:42]Write i2c OK [21:31:42]MH_I2C_Read... [21:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:42]Read from MH i2c: E2 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 0E 00 [21:31:42]MH_I2C_Read... [21:31:42]Read from MH i2c: E2 0E 00 F0 14 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 FC [21:31:42]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:31:42]wFMCommunicate OK [21:31:42]SAM_PROTO_GetShiftState done [21:31:42]FM_GetShiftState done [21:31:42]opened in 1726964408 [21:31:42]opened+sec_in_day 1727050808 [21:31:42]quantity*price = 9500 [21:31:42]sum+1 = 9501 [21:31:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870066000476 Палочки Алматинский Продукт сладкие 50г 1.000 * 27.00 = 27.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001061104 Коньяк Семетей 0,2л 1.000 * 250.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 372.00 НСП 1% : 3.29 НДС 12% : 39.51 Наличными: 372.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 89 22.09.2024 21:31 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22174 ФПД: 145985425992423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T213146&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22174&fm=145985425992423&tin=02508201610067®Number=0000000000146243&sum=37200 0 [21:31:43]StoreToDocumentArchive [21:31:43]shift 228 fd 22174 [21:31:43]save to /storage/0228/doc_00022174 [21:31:43]save last doc name /storage/0228/doc_00022174 to /storage/kkm_last_doc_name [21:31:43]save OK [21:31:43]Clear old archive folders... [21:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=539 [21:31:43]tlvbuf is B6F12AA0 [21:31:43]SAM_PROTO_ClearQueue [21:31:43]wFMCommunicate request_size=4 [21:31:43]MH_SAM_APDU [21:31:43]CAPDU: 80 09 00 00 [21:31:43]Write to MH i2c: E2 08 00 FD 14 80 09 00 00 00 00 00 00 83 [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:43]Read from MH i2c: E2 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 03 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [21:31:43]RAPDU: 90 00 [21:31:43]wFMCommunicate OK [21:31:43]SAM_PROTO_ClearQueue done [21:31:43]KKMCreateOFDPacket [21:31:43]OFDProtocolAddRootSTLVToBuf [21:31:43]FM_MakeSignedData [21:31:43]FM_MakeSignedData [21:31:43]SAM_PROTO_SignData [21:31:43]wFMCommunicate request_size=4 [21:31:43]MH_SAM_APDU [21:31:43]CAPDU: 80 0D 01 02 [21:31:43]Write to MH i2c: E2 08 00 FE 14 80 0D 01 02 00 00 00 00 8B [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:43]Read from MH i2c: E2 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 03 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [21:31:43]RAPDU: 90 00 [21:31:43]wFMCommunicate OK [21:31:43]wFMCommunicate request_size=255 [21:31:43]MH_SAM_APDU [21:31:43]CAPDU: 80 0D 02 02 FA 03 00 1B 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 [21:31:43]Write to MH i2c: E2 02 01 FF 14 80 0D 02 02 FA 00 03 00 1B 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 00 00 E4 [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 03 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [21:31:44]RAPDU: 90 00 [21:31:44]wFMCommunicate OK [21:31:44]wFMCommunicate request_size=255 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 0D 02 02 FA 06 00 8C 0A 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 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0F 00 00 00 00 07 04 06 00 50 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C2 8C F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 [21:31:44]Write to MH i2c: E2 02 01 00 15 80 0D 02 02 FA 00 06 00 8C 0A 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 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0F 00 00 00 00 07 04 06 00 50 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C2 8C F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 00 00 60 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 03 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [21:31:44]RAPDU: 90 00 [21:31:44]wFMCommunicate OK [21:31:44]wFMCommunicate request_size=48 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 0D 02 02 2B 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9E 56 00 00 35 04 06 00 84 C5 E1 75 6A E7 [21:31:44]Write to MH i2c: E2 33 00 01 15 80 0D 02 02 2B 00 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9E 56 00 00 35 04 06 00 84 C5 E1 75 6A E7 00 00 70 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 03 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [21:31:44]RAPDU: 90 00 [21:31:44]wFMCommunicate OK [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 0D 03 02 [21:31:44]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0B 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 0B 00 02 15 00 56 CB 63 74 9F 84 41 6E 90 00 5D [21:31:44]RAPDU: 56 CB 63 74 9F 84 41 6E 90 00 [21:31:44]wFMCommunicate OK [21:31:44]SAM_PROTO_SignData done [21:31:44]FM_MakeSignedData done [21:31:44]CreateOFDProtocolMessage [21:31:44]wFMCommunicate request_size=4 [21:31:44]MH_SAM_APDU [21:31:44]CAPDU: 80 11 00 00 [21:31:44]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:44]Read from MH i2c: E2 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 17 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EC [21:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:31:44]wFMCommunicate OK [21:31:44]CreateOFDProtocolMessage done [21:31:44]OFDSenderStorePacket 22174 [21:31:44]StoreOFDPacket docnum=22174 [21:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2F 02 00 00 FC 36 27 02 ED D4 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 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 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0F 00 00 00 00 07 04 06 00 50 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C2 8C F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9E 56 00 00 35 04 06 00 84 C5 E1 75 6A E7 56 CB 63 74 9F 84 41 6E [21:31:44]CheckFolder [21:31:44]dirname=/storage/ofd_packets [21:31:44]CheckFolder done [21:31:44]ProducePacketName [21:31:44]name=ofd_packets/00022174 [21:31:44]NVStorageSaveData ofd_packets/00022174 [21:31:44]File name is /storage/ofd_packets/00022174 [21:31:44]Write 589 bytes [21:31:44]NVStorageSaveData done [21:31:44]OFDSenderStorePacket done [21:31:44]KKMCreateOFDPacket done [21:31:44]NVStorageSaveData kkm_last_timestamp [21:31:44]File name is /storage/kkm_last_timestamp [21:31:44]Write 4 bytes [21:31:44]NVStorageSaveData done [21:31:44]ExternCall_PrintAddStr [21:31:44]wPrintStart [21:31:44]Write to MH i2c: 01 00 00 04 15 19 [21:31:44]Write i2c OK [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: 01 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: 01 07 00 [21:31:44]MH_I2C_Read... [21:31:44]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [21:31:44]RasterBufferAndPrint [21:31:44]line Счет N : (3)51440 [21:31:44]line ИНН: 02508201610067 [21:31:44]line Контрольно-Кассовый Чек [21:31:44]line ПРОДАЖА [21:31:44]line Товар: 4700000483334 [21:31:44]line Напиток Nitro Fresh Дикие ягоды [21:31:44]line 1.000 * 95.00 [21:31:44]line = 95.00 [21:31:44]line НДС 12% НСП 1% [21:31:44]line > о реализуемом товаре [21:31:44]line Товар: 4870066000476 [21:31:44]line Палочки Алматинский Продукт сладкие 50г [21:31:44]line 1.000 * 27.00 [21:31:44]line = 27.00 [21:31:44]line НДС 12% НСП 1% [21:31:44]line > о реализуемом товаре [21:31:44]line Товар: 4700001061104 [21:31:44]line Коньяк Семетей 0,2л [21:31:44]line 1.000 * 250.00 [21:31:44]line = 250.00 [21:31:44]line НДС 12% НСП 1% [21:31:44]line > о реализуемом товаре [21:31:44]line ИТОГО: 372.00 [21:31:44]line НСП 1% : 3.29 [21:31:44]line НДС 12% : 39.51 [21:31:44]line Наличными: 372.00 [21:31:44]line Безнал.: 0.00 [21:31:44]line Место: АЗС № 88 "Партнер Нефть" [21:31:44]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:31:44]line СНО: Общий режим [21:31:44]line Чек 89 22.09.2024 21:31 [21:31:44]line Смена: 228 ФФД: 1.0 [21:31:44]line ЗНМ: 0300000061 [21:31:44]line РНМ: 0000000000146243 [21:31:44]line Версия ККМ: v1.0 [21:31:44]line ФМ: 0000000000959358 [21:31:44]line ФД: 22174 [21:31:44]line ФПД: 145985425992423 [21:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T213146&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22174&fm=145985425992423&tin=02508201610067®Number=0000000000146243&sum=37200 [21:31:45]OFD Sender: Processing packet 22174 [packets to send 23, broken 22] [21:31:45]ProducePacketName [21:31:45]name=ofd_packets/00022174 [21:31:45]OFD Sender: To server: pG, [21:31:45]CommunicateWithHost lk.salyk.kg:30040 [21:31:45]ConnectInit lk.salyk.kg [21:31:45]line 0 [21:31:45]written 0, free lines is 4095 [21:31:45]Connected sock=10 [21:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2F 02 00 00 FC 36 27 02 ED D4 5A 03 01 00 03 00 1B 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 8A 04 0D 00 34 38 37 30 30 36 36 30 30 30 34 37 36 06 04 48 00 D0 9F D0 B0 D0 BB D0 BE D1 87 D0 BA D0 B8 20 D0 90 D0 BB D0 BC D0 B0 D1 82 D0 B8 D0 BD D1 81 D0 BA D0 B8 D0 B9 20 D0 9F D1 80 D0 BE D0 B4 D1 83 D0 BA D1 82 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B5 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 0A 00 00 00 00 13 04 06 00 8C 0A 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 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB 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 FC 03 06 00 50 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0F 00 00 00 00 07 04 06 00 50 91 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 C2 8C F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9E 56 00 00 35 04 06 00 84 C5 E1 75 6A E7 56 CB 63 74 9F 84 41 6E [21:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 59 AB 47 00 92 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 39 35 39 33 35 38 10 04 04 00 9E 56 00 00 F4 03 04 00 EC 36 F0 66 B6 04 01 00 00 D2 0A 74 FB 75 30 2F DB [21:31:45]CommunicateWithHost err = 0 [21:31:45]CheckOFDResponse [21:31:45]1017 (14) - 77093643461234 [21:31:45]1041 (16) - 0000000000959358 [21:31:45]1040 (4) - 22174 [21:31:45]1012 (4) - 22.09.2024 15:25 [21:31:45]1206 (1) - 0 [21:31:45]OFD Sender: Remove packet 22174 [21:31:45]ProducePacketName [21:31:45]name=ofd_packets/00022174 [21:31:45]NVStorageDeleteData [21:31:45]Write to MH i2c: 01 00 00 3A 15 4F [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: 01 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: 01 07 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: 01 07 00 3A 15 00 00 00 00 00 64 0C C6 [21:31:45]RasterBufferAndPrint [21:31:45]line [21:31:45]line [21:31:45]line [21:31:45]line [21:31:45]line [21:31:45]written 0, free lines is 3180 [21:31:45]MH_Cut [21:31:45]Write to MH i2c: D1 01 00 41 15 01 28 [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: D1 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: D1 01 00 [21:31:45]MH_I2C_Read... [21:31:45]Read from MH i2c: D1 01 00 41 15 00 27 [21:31:45]Write to MH i2c: 01 00 00 42 15 57 [21:31:45]Write i2c OK [21:31:45]MH_I2C_Read... [21:31:46]OFD Sender: No OFD packet to send [21:31:46]*** Cut start [21:31:46]*** Partial cut [21:31:46]*** CUTSNS_PIN = 1 [21:31:46]*** CUTSNS_PIN = 0 [21:31:46]*** Brake cut motor [21:31:46]Read from MH i2c: 01 [21:31:46]MH_I2C_Read... [21:31:46]*** Stop cut motor [21:31:47]*** Cut end [21:31:47]Read from MH i2c: 01 07 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: 01 07 00 42 15 00 00 00 00 00 FF 0F 6C [21:31:47]process_action close_receipt done [21:31:47]requested_data is exist [21:31:47]produce_requested_data [21:31:47]requested_item fm.sn is exist - process it [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 11 00 00 [21:31:47]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 17 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 2C [21:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:31:47]wFMCommunicate OK [21:31:47]requested_item fd.num is exist - process it [21:31:47]SAM_PROTO_GetFieldsCounters [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 00 00 [21:31:47]Write to MH i2c: E2 08 00 44 15 80 13 00 00 00 00 00 00 D5 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 62 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 62 00 44 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [21:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9E 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetFieldsCounters done [21:31:47]requested_item shift.num is exist - process it [21:31:47]requested_item shift.opened is exist - process it [21:31:47]req_shift_opened [21:31:47]FM_GetShiftState [21:31:47]SAM_PROTO_GetShiftState [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 01 00 [21:31:47]Write to MH i2c: E2 08 00 45 15 80 13 01 00 00 00 00 00 D7 [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 45 15 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 52 [21:31:47]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetShiftState done [21:31:47]FM_GetShiftState done [21:31:47]req_shift_opened done [21:31:47]requested_item shift.open_date is exist - process it [21:31:47]req_shift_open_date [21:31:47]req_shift_open_date done [21:31:47]produce_requested_data done [21:31:47]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22174,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:31:47]process_action_free close_receipt [21:31:47]json_value_free [21:31:47]json_value_free done [21:31:47]process_json_proto returns [21:31:47]Send response to host [21:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22174,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:31:47]free response buf [21:31:47]execute_script done [21:31:47]execute_script returns [21:31:47]free content buf [21:31:47]Sock 9.Close socket [21:31:47]Sock 9.Thread stoped [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:48]accept exits with 7 [21:35:48]New connection [21:35:48]New thread 3067039076 created [21:35:48]Thread 3067182436 joined [21:35:48]Waiting for new connection... [21:35:48] Sock 7.Parse request [21:35:48]Sock 7.Check first char [21:35:48]Sock 7.First char is OK [21:35:48]request: POST /json_proto HTTP/1.0 [21:35:48]Method: POST [21:35:48]URL: /json_proto [21:35:48]Method is POST - this is cgi request [21:35:48]url: /json_proto [21:35:48]query_string will be loaded in cgi processing [21:35:48]execute_cgi json_proto POST (null) [21:35:48]execute_cgi path=json_proto method=POST [21:35:48]POST find Content-Length [21:35:48]Host: 172.17.43.4:8080 [21:35:48]Content-Length: 1069 [21:35:48]Content-Type: application/json [21:35:48] [21:35:48]POST finish read [21:35:48]Found Content-Length = 1069 [21:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51441", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:48]execute_script... [21:35:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51441", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:48]POST & json_proto [21:35:48]process_json_proto [21:35:48]json parsed OK: [21:35:48]protocol is kg_v1.0 [21:35:48]action value=close_receipt [21:35:48]process_action close_receipt [21:35:48]cmd_close_receipt [21:35:48]MH_GetDate [21:35:48]Write to MH i2c: F0 00 00 46 15 4A [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: F0 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: F0 09 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: F0 09 00 46 15 00 B7 8D F0 66 02 BF CF 66 E3 [21:35:48]GetLastDocTimeStamp 1727040706 [21:35:48]current date 1727040951 [21:35:48]FM_GetShiftState [21:35:48]SAM_PROTO_GetShiftState [21:35:48]wFMCommunicate request_size=4 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 13 01 00 [21:35:48]Write to MH i2c: E2 08 00 47 15 80 13 01 00 00 00 00 00 D9 [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0E 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0E 00 47 15 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 54 [21:35:48]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:35:48]wFMCommunicate OK [21:35:48]SAM_PROTO_GetShiftState done [21:35:48]FM_GetShiftState done [21:35:48]opened in 1726964408 [21:35:48]opened+sec_in_day 1727050808 [21:35:48]quantity*price = 0 [21:35:48]sum+1 = 1 [21:35:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001061104 Коньяк Семетей 0,2л 1.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 90 22.09.2024 21:35 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22175 ФПД: 262334793447496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T213551&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22175&fm=262334793447496&tin=02508201610067®Number=0000000000146243&sum=0 0 [21:35:49]StoreToDocumentArchive [21:35:49]shift 228 fd 22175 [21:35:49]save to /storage/0228/doc_00022175 [21:35:49]save last doc name /storage/0228/doc_00022175 to /storage/kkm_last_doc_name [21:35:49]save OK [21:35:49]Clear old archive folders... [21:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=403 [21:35:49]tlvbuf is 00246D10 [21:35:49]SAM_PROTO_ClearQueue [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 09 00 00 [21:35:49]Write to MH i2c: E2 08 00 54 15 80 09 00 00 00 00 00 00 DB [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 54 15 00 90 00 DD [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]SAM_PROTO_ClearQueue done [21:35:49]KKMCreateOFDPacket [21:35:49]OFDProtocolAddRootSTLVToBuf [21:35:49]FM_MakeSignedData [21:35:49]FM_MakeSignedData [21:35:49]SAM_PROTO_SignData [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 01 02 [21:35:49]Write to MH i2c: E2 08 00 55 15 80 0D 01 02 00 00 00 00 E3 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 55 15 00 90 00 DE [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]wFMCommunicate request_size=255 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 [21:35:49]Write to MH i2c: E2 02 01 56 15 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 28 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]wFMCommunicate request_size=162 [21:35:49]MH_SAM_APDU [21:35:49]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 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B7 8D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9F 56 00 00 35 04 06 00 EE 97 94 2C F8 48 [21:35:49]Write to MH i2c: E2 A5 00 57 15 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 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B7 8D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9F 56 00 00 35 04 06 00 EE 97 94 2C F8 48 00 00 B1 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 03 00 57 15 00 90 00 E0 [21:35:49]RAPDU: 90 00 [21:35:49]wFMCommunicate OK [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 0D 03 02 [21:35:49]Write to MH i2c: E2 08 00 58 15 80 0D 03 02 00 00 00 00 E8 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 0B 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 0B 00 58 15 00 44 5C 1C 75 4F 39 EA B2 90 00 3E [21:35:49]RAPDU: 44 5C 1C 75 4F 39 EA B2 90 00 [21:35:49]wFMCommunicate OK [21:35:49]SAM_PROTO_SignData done [21:35:49]FM_MakeSignedData done [21:35:49]CreateOFDProtocolMessage [21:35:49]wFMCommunicate request_size=4 [21:35:49]MH_SAM_APDU [21:35:49]CAPDU: 80 11 00 00 [21:35:49]Write to MH i2c: E2 08 00 59 15 80 11 00 00 00 00 00 00 E8 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:49]Read from MH i2c: E2 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 17 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: E2 17 00 59 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 42 [21:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:35:49]wFMCommunicate OK [21:35:49]CreateOFDProtocolMessage done [21:35:49]OFDSenderStorePacket 22175 [21:35:49]StoreOFDPacket docnum=22175 [21:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A7 01 00 00 F4 51 9F 01 4C 4A 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B7 8D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9F 56 00 00 35 04 06 00 EE 97 94 2C F8 48 44 5C 1C 75 4F 39 EA B2 [21:35:49]CheckFolder [21:35:49]dirname=/storage/ofd_packets [21:35:49]CheckFolder done [21:35:49]ProducePacketName [21:35:49]name=ofd_packets/00022175 [21:35:49]NVStorageSaveData ofd_packets/00022175 [21:35:49]File name is /storage/ofd_packets/00022175 [21:35:49]Write 453 bytes [21:35:49]NVStorageSaveData done [21:35:49]OFDSenderStorePacket done [21:35:49]KKMCreateOFDPacket done [21:35:49]NVStorageSaveData kkm_last_timestamp [21:35:49]File name is /storage/kkm_last_timestamp [21:35:49]Write 4 bytes [21:35:49]NVStorageSaveData done [21:35:50]ExternCall_PrintAddStr [21:35:50]wPrintStart [21:35:50]Write to MH i2c: 01 00 00 5A 15 6F [21:35:50]OFD Sender: Processing packet 22175 [packets to send 23, broken 22] [21:35:50]ProducePacketName [21:35:50]name=ofd_packets/00022175 [21:35:50]OFD Sender: To server: pG, [21:35:50]CommunicateWithHost lk.salyk.kg:30040 [21:35:50]ConnectInit lk.salyk.kg [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 FF 0F 84 [21:35:50]RasterBufferAndPrint [21:35:50]line Счет N : (3)51441 [21:35:50]line ИНН: 02508201610067 [21:35:50]line Контрольно-Кассовый Чек [21:35:50]line ПРОДАЖА [21:35:50]line Товар: 4700003010032 [21:35:50]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [21:35:50]line 1.000 * 0.00 [21:35:50]line = 0.00 [21:35:50]line НДС 12% НСП 1% [21:35:50]line > о реализуемом товаре [21:35:50]line Товар: 4700001061104 [21:35:50]line Коньяк Семетей 0,2л [21:35:50]line 1.000 * 0.00 [21:35:50]line = 0.00 [21:35:50]line НДС 12% НСП 1% [21:35:50]line > о реализуемом товаре [21:35:50]line ИТОГО: 0.00 [21:35:50]line НСП 1% : 0.00 [21:35:50]line НДС 12% : 0.00 [21:35:50]line Наличными: 0.00 [21:35:50]line Безнал.: 0.00 [21:35:50]line Место: АЗС № 88 "Партнер Нефть" [21:35:50]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:35:50]line СНО: Общий режим [21:35:50]line Чек 90 22.09.2024 21:35 [21:35:50]line Смена: 228 ФФД: 1.0 [21:35:50]line ЗНМ: 0300000061 [21:35:50]line РНМ: 0000000000146243 [21:35:50]line Версия ККМ: v1.0 [21:35:50]line Платежная система: Mbank [21:35:50]line ФМ: 0000000000959358 [21:35:50]line ФД: 22175 [21:35:50]line ФПД: 262334793447496 [21:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T213551&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22175&fm=262334793447496&tin=02508201610067®Number=0000000000146243&sum=0 [21:35:50]line 0 [21:35:50]written 0, free lines is 4095 [21:35:50]Connected sock=10 [21:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 A7 01 00 00 F4 51 9F 01 4C 4A 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B7 8D F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 9F 56 00 00 35 04 06 00 EE 97 94 2C F8 48 44 5C 1C 75 4F 39 EA B2 [21:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 5B 96 47 00 52 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 39 35 39 33 35 38 10 04 04 00 9F 56 00 00 F4 03 04 00 E2 37 F0 66 B6 04 01 00 00 86 E1 27 F0 7B 7F 84 DB [21:35:50]CommunicateWithHost err = 0 [21:35:50]CheckOFDResponse [21:35:50]1017 (14) - 77093643461234 [21:35:50]1041 (16) - 0000000000959358 [21:35:50]1040 (4) - 22175 [21:35:50]1012 (4) - 22.09.2024 15:29 [21:35:50]1206 (1) - 0 [21:35:50]OFD Sender: Remove packet 22175 [21:35:50]ProducePacketName [21:35:50]name=ofd_packets/00022175 [21:35:50]NVStorageDeleteData [21:35:50]Write to MH i2c: 01 00 00 8A 15 9F [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 C4 0C 76 [21:35:50]RasterBufferAndPrint [21:35:50]line [21:35:50]line [21:35:50]line [21:35:50]line [21:35:50]line [21:35:50]written 0, free lines is 3275 [21:35:50]MH_Cut [21:35:50]Write to MH i2c: D1 01 00 91 15 01 78 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: D1 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: D1 01 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: D1 01 00 91 15 00 77 [21:35:50]Write to MH i2c: 01 00 00 92 15 A7 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:51]OFD Sender: No OFD packet to send [21:35:51]*** Cut start [21:35:51]*** Partial cut [21:35:51]*** CUTSNS_PIN = 1 [21:35:51]*** CUTSNS_PIN = 0 [21:35:51]*** Brake cut motor [21:35:52]Read from MH i2c: 01 [21:35:52]MH_I2C_Read... [21:35:52]*** Stop cut motor [21:35:52]*** Cut end [21:35:52]Read from MH i2c: 01 07 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 FF 0F BC [21:35:52]process_action close_receipt done [21:35:52]requested_data is exist [21:35:52]produce_requested_data [21:35:52]requested_item fm.sn is exist - process it [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 11 00 00 [21:35:52]Write to MH i2c: E2 08 00 93 15 80 11 00 00 00 00 00 00 22 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 17 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 17 00 93 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 7C [21:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:35:52]wFMCommunicate OK [21:35:52]requested_item fd.num is exist - process it [21:35:52]SAM_PROTO_GetFieldsCounters [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 00 00 [21:35:52]Write to MH i2c: E2 08 00 94 15 80 13 00 00 00 00 00 00 25 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 62 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 62 00 94 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [21:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 9F 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:52]wFMCommunicate OK [21:35:52]SAM_PROTO_GetFieldsCounters done [21:35:52]requested_item shift.num is exist - process it [21:35:52]requested_item shift.opened is exist - process it [21:35:52]req_shift_opened [21:35:52]FM_GetShiftState [21:35:52]SAM_PROTO_GetShiftState [21:35:52]wFMCommunicate request_size=4 [21:35:52]MH_SAM_APDU [21:35:52]CAPDU: 80 13 01 00 [21:35:52]Write to MH i2c: E2 08 00 95 15 80 13 01 00 00 00 00 00 27 [21:35:52]Write i2c OK [21:35:52]MH_I2C_Read... [21:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:52]Read from MH i2c: E2 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 [21:35:52]MH_I2C_Read... [21:35:52]Read from MH i2c: E2 0E 00 95 15 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A2 [21:35:52]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:35:52]wFMCommunicate OK [21:35:52]SAM_PROTO_GetShiftState done [21:35:52]FM_GetShiftState done [21:35:52]req_shift_opened done [21:35:52]requested_item shift.open_date is exist - process it [21:35:52]req_shift_open_date [21:35:52]req_shift_open_date done [21:35:52]produce_requested_data done [21:35:52]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22175,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:35:52]process_action_free close_receipt [21:35:52]json_value_free [21:35:52]json_value_free done [21:35:52]process_json_proto returns [21:35:52]Send response to host [21:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22175,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:35:52]free response buf [21:35:52]execute_script done [21:35:52]execute_script returns [21:35:52]free content buf [21:35:52]Sock 7.Close socket [21:35:52]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]accept exits with 9 [21:48:46]New connection [21:48:46]New thread 3067182436 created [21:48:46]Thread 3067039076 joined [21:48:46]Waiting for new connection... [21:48:46] Sock 9.Parse request [21:48:46]Sock 9.Check first char [21:48:46]Sock 9.First char is OK [21:48:46]request: POST /json_proto HTTP/1.0 [21:48:46]Method: POST [21:48:46]URL: /json_proto [21:48:46]Method is POST - this is cgi request [21:48:46]url: /json_proto [21:48:46]query_string will be loaded in cgi processing [21:48:46]execute_cgi json_proto POST (null) [21:48:46]execute_cgi path=json_proto method=POST [21:48:46]POST find Content-Length [21:48:46]Host: 172.17.43.4:8080 [21:48:46]Content-Length: 959 [21:48:46]Content-Type: application/json [21:48:46] [21:48:46]POST finish read [21:48:46]Found Content-Length = 959 [21:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51442", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:46]execute_script... [21:48: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)51442", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:46]POST & json_proto [21:48:46]process_json_proto [21:48:46]json parsed OK: [21:48:46]protocol is kg_v1.0 [21:48:46]action value=close_receipt [21:48:46]process_action close_receipt [21:48:46]cmd_close_receipt [21:48:46]MH_GetDate [21:48:46]Write to MH i2c: F0 00 00 96 15 9A [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: F0 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: F0 09 00 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: F0 09 00 96 15 00 C1 90 F0 66 02 BF CF 66 40 [21:48:46]GetLastDocTimeStamp 1727040951 [21:48:46]current date 1727041729 [21:48:46]FM_GetShiftState [21:48:46]SAM_PROTO_GetShiftState [21:48:46]wFMCommunicate request_size=4 [21:48:46]MH_SAM_APDU [21:48:46]CAPDU: 80 13 01 00 [21:48:46]Write to MH i2c: E2 08 00 97 15 80 13 01 00 00 00 00 00 29 [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:46]Read from MH i2c: E2 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: E2 0E 00 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: E2 0E 00 97 15 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A4 [21:48:46]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:48:46]wFMCommunicate OK [21:48:46]SAM_PROTO_GetShiftState done [21:48:46]FM_GetShiftState done [21:48:46]opened in 1726964408 [21:48:46]opened+sec_in_day 1727050808 [21:48:46]quantity*price = 9500 [21:48:46]sum+1 = 9501 [21:48:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002086380 Водка Сары челек 0,35л 1.000 * 260.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 355.00 НСП 1% : 3.14 НДС 12% : 37.70 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 91 22.09.2024 21:48 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22176 ФПД: 210096372801152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214849&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22176&fm=210096372801152&tin=02508201610067®Number=0000000000146243&sum=35500 0 [21:48:47]StoreToDocumentArchive [21:48:47]shift 228 fd 22176 [21:48:47]save to /storage/0228/doc_00022176 [21:48:47]save last doc name /storage/0228/doc_00022176 to /storage/kkm_last_doc_name [21:48:47]save OK [21:48:47]Clear old archive folders... [21:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=408 [21:48:47]tlvbuf is 00256E10 [21:48:47]SAM_PROTO_ClearQueue [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 09 00 00 [21:48:47]Write to MH i2c: E2 08 00 A4 15 80 09 00 00 00 00 00 00 2B [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [21:48:47]RAPDU: 90 00 [21:48:47]wFMCommunicate OK [21:48:47]SAM_PROTO_ClearQueue done [21:48:47]KKMCreateOFDPacket [21:48:47]OFDProtocolAddRootSTLVToBuf [21:48:47]FM_MakeSignedData [21:48:47]FM_MakeSignedData [21:48:47]SAM_PROTO_SignData [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 0D 01 02 [21:48:47]Write to MH i2c: E2 08 00 A5 15 80 0D 01 02 00 00 00 00 33 [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [21:48:47]RAPDU: 90 00 [21:48:47]wFMCommunicate OK [21:48:47]wFMCommunicate request_size=255 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [21:48:47]Write to MH i2c: E2 02 01 A6 15 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EB [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [21:48:47]RAPDU: 90 00 [21:48:47]wFMCommunicate OK [21:48:47]wFMCommunicate request_size=167 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 0D 02 02 A2 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 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 C1 90 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A0 56 00 00 35 04 06 00 BF 14 DF AB 5E 80 [21:48:47]Write to MH i2c: E2 AA 00 A7 15 80 0D 02 02 A2 00 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 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 C1 90 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A0 56 00 00 35 04 06 00 BF 14 DF AB 5E 80 00 00 3F [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [21:48:47]RAPDU: 90 00 [21:48:47]wFMCommunicate OK [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 0D 03 02 [21:48:47]Write to MH i2c: E2 08 00 A8 15 80 0D 03 02 00 00 00 00 38 [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 0B 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 0B 00 A8 15 00 D9 71 1D A5 CF 16 3A 9F 90 00 03 [21:48:47]RAPDU: D9 71 1D A5 CF 16 3A 9F 90 00 [21:48:47]wFMCommunicate OK [21:48:47]SAM_PROTO_SignData done [21:48:47]FM_MakeSignedData done [21:48:47]CreateOFDProtocolMessage [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 11 00 00 [21:48:47]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:47]Read from MH i2c: E2 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 17 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 92 [21:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:48:48]wFMCommunicate OK [21:48:48]CreateOFDProtocolMessage done [21:48:48]OFDSenderStorePacket 22176 [21:48:48]StoreOFDPacket docnum=22176 [21:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 AC 01 00 00 8D C4 A4 01 45 0A 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 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 C1 90 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A0 56 00 00 35 04 06 00 BF 14 DF AB 5E 80 D9 71 1D A5 CF 16 3A 9F [21:48:48]CheckFolder [21:48:48]dirname=/storage/ofd_packets [21:48:48]CheckFolder done [21:48:48]ProducePacketName [21:48:48]name=ofd_packets/00022176 [21:48:48]NVStorageSaveData ofd_packets/00022176 [21:48:48]File name is /storage/ofd_packets/00022176 [21:48:48]Write 458 bytes [21:48:48]NVStorageSaveData done [21:48:48]OFDSenderStorePacket done [21:48:48]KKMCreateOFDPacket done [21:48:48]NVStorageSaveData kkm_last_timestamp [21:48:48]File name is /storage/kkm_last_timestamp [21:48:48]Write 4 bytes [21:48:48]NVStorageSaveData done [21:48:48]ExternCall_PrintAddStr [21:48:48]wPrintStart [21:48:48]Write to MH i2c: 01 00 00 AA 15 BF [21:48:48]OFD Sender: Processing packet 22176 [packets to send 23, broken 22] [21:48:48]ProducePacketName [21:48:48]name=ofd_packets/00022176 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 [21:48:48]MH_I2C_Read... [21:48:48]OFD Sender: To server: pG, [21:48:48]CommunicateWithHost lk.salyk.kg:30040 [21:48:48]ConnectInit lk.salyk.kg [21:48:48]Read from MH i2c: 01 07 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 07 00 AA 15 00 00 00 00 00 FF 0F D4 [21:48:48]RasterBufferAndPrint [21:48:48]line Счет N : (3)51442 [21:48:48]line ИНН: 02508201610067 [21:48:48]line Контрольно-Кассовый Чек [21:48:48]line ПРОДАЖА [21:48:48]line Товар: 4700003010070 [21:48:48]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [21:48:48]line 1.000 * 95.00 [21:48:48]line = 95.00 [21:48:48]line НДС 12% НСП 1% [21:48:48]line > о реализуемом товаре [21:48:48]line Товар: 4700002086380 [21:48:48]line Водка Сары челек 0,35л [21:48:48]line 1.000 * 260.00 [21:48:48]line = 260.00 [21:48:48]line НДС 12% НСП 1% [21:48:48]line > о реализуемом товаре [21:48:48]line ИТОГО: 355.00 [21:48:48]line НСП 1% : 3.14 [21:48:48]line НДС 12% : 37.70 [21:48:48]line Наличными: 355.00 [21:48:48]line Безнал.: 0.00 [21:48:48]line Место: АЗС № 88 "Партнер Нефть" [21:48:48]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:48:48]line СНО: Общий режим [21:48:48]line Чек 91 22.09.2024 21:48 [21:48:48]line Смена: 228 ФФД: 1.0 [21:48:48]line ЗНМ: 0300000061 [21:48:48]line РНМ: 0000000000146243 [21:48:48]line Версия ККМ: v1.0 [21:48:48]line ФМ: 0000000000959358 [21:48:48]line ФД: 22176 [21:48:48]line ФПД: 210096372801152 [21:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T214849&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22176&fm=210096372801152&tin=02508201610067®Number=0000000000146243&sum=35500 [21:48:48]line 0 [21:48:48]written 0, free lines is 4095 [21:48:48]Connected sock=7 [21:48:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 AC 01 00 00 8D C4 A4 01 45 0A 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 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 C1 90 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A0 56 00 00 35 04 06 00 BF 14 DF AB 5E 80 D9 71 1D A5 CF 16 3A 9F [21:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 5C 70 47 00 0C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A0 56 00 00 F4 03 04 00 EC 3A F0 66 B6 04 01 00 00 8A 33 86 54 F9 CC 15 32 [21:48:48]CommunicateWithHost err = 0 [21:48:48]CheckOFDResponse [21:48:48]1017 (14) - 77093643461234 [21:48:48]1041 (16) - 0000000000959358 [21:48:48]1040 (4) - 22176 [21:48:48]1012 (4) - 22.09.2024 15:42 [21:48:48]1206 (1) - 0 [21:48:48]OFD Sender: Remove packet 22176 [21:48:48]ProducePacketName [21:48:48]name=ofd_packets/00022176 [21:48:48]NVStorageDeleteData [21:48:48]Write to MH i2c: 01 00 00 D9 15 EE [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 07 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 07 00 D9 15 00 00 00 00 00 D9 0C DA [21:48:48]RasterBufferAndPrint [21:48:48]line [21:48:48]line [21:48:48]line [21:48:48]line [21:48:48]line [21:48:48]written 0, free lines is 3298 [21:48:48]MH_Cut [21:48:48]Write to MH i2c: D1 01 00 E0 15 01 C7 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: D1 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: D1 01 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: D1 01 00 E0 15 00 C6 [21:48:48]Write to MH i2c: 01 00 00 E1 15 F6 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:49]OFD Sender: No OFD packet to send [21:48:49]*** Cut start [21:48:49]*** Partial cut [21:48:49]*** CUTSNS_PIN = 1 [21:48:49]*** CUTSNS_PIN = 0 [21:48:49]*** Brake cut motor [21:48:50]Read from MH i2c: 01 [21:48:50]MH_I2C_Read... [21:48:50]*** Stop cut motor [21:48:50]*** Cut end [21:48:50]Read from MH i2c: 01 07 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 FF 0F 0B [21:48:50]process_action close_receipt done [21:48:50]requested_data is exist [21:48:50]produce_requested_data [21:48:50]requested_item fm.sn is exist - process it [21:48:50]wFMCommunicate request_size=4 [21:48:50]MH_SAM_APDU [21:48:50]CAPDU: 80 11 00 00 [21:48:50]Write to MH i2c: E2 08 00 E2 15 80 11 00 00 00 00 00 00 71 [21:48:50]Write i2c OK [21:48:50]MH_I2C_Read... [21:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:50]Read from MH i2c: E2 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 17 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 17 00 E2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 CB [21:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:48:50]wFMCommunicate OK [21:48:50]requested_item fd.num is exist - process it [21:48:50]SAM_PROTO_GetFieldsCounters [21:48:50]wFMCommunicate request_size=4 [21:48:50]MH_SAM_APDU [21:48:50]CAPDU: 80 13 00 00 [21:48:50]Write to MH i2c: E2 08 00 E3 15 80 13 00 00 00 00 00 00 74 [21:48:50]Write i2c OK [21:48:50]MH_I2C_Read... [21:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:50]Read from MH i2c: E2 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 62 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 62 00 E3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A0 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [21:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A0 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:50]wFMCommunicate OK [21:48:50]SAM_PROTO_GetFieldsCounters done [21:48:50]requested_item shift.num is exist - process it [21:48:50]requested_item shift.opened is exist - process it [21:48:50]req_shift_opened [21:48:50]FM_GetShiftState [21:48:50]SAM_PROTO_GetShiftState [21:48:50]wFMCommunicate request_size=4 [21:48:50]MH_SAM_APDU [21:48:50]CAPDU: 80 13 01 00 [21:48:50]Write to MH i2c: E2 08 00 E4 15 80 13 01 00 00 00 00 00 76 [21:48:50]Write i2c OK [21:48:50]MH_I2C_Read... [21:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:50]Read from MH i2c: E2 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 0E 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 0E 00 E4 15 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 F1 [21:48:50]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:48:50]wFMCommunicate OK [21:48:50]SAM_PROTO_GetShiftState done [21:48:50]FM_GetShiftState done [21:48:50]req_shift_opened done [21:48:50]requested_item shift.open_date is exist - process it [21:48:50]req_shift_open_date [21:48:50]req_shift_open_date done [21:48:50]produce_requested_data done [21:48:50]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22176,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:48:50]process_action_free close_receipt [21:48:50]json_value_free [21:48:50]json_value_free done [21:48:50]process_json_proto returns [21:48:50]Send response to host [21:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22176,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:48:50]free response buf [21:48:50]execute_script done [21:48:50]execute_script returns [21:48:50]free content buf [21:48:50]Sock 9.Close socket [21:48:50]Sock 9.Thread stoped [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:04]accept exits with 10 [21:50:04]New connection [21:50:04]New thread 3067039076 created [21:50:04]Thread 3067182436 joined [21:50:04]Waiting for new connection... [21:50:04] Sock 10.Parse request [21:50:04]Sock 10.Check first char [21:50:04]Sock 10.First char is OK [21:50:04]request: POST /json_proto HTTP/1.0 [21:50:04]Method: POST [21:50:04]URL: /json_proto [21:50:04]Method is POST - this is cgi request [21:50:04]url: /json_proto [21:50:04]query_string will be loaded in cgi processing [21:50:04]execute_cgi json_proto POST (null) [21:50:04]execute_cgi path=json_proto method=POST [21:50:04]POST find Content-Length [21:50:04]Host: 172.17.43.4:8080 [21:50:04]Content-Length: 754 [21:50:04]Content-Type: application/json [21:50:04] [21:50:04]POST finish read [21:50:04]Found Content-Length = 754 [21:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51443", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "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 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "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" ] } } [21:50:04]execute_script... [21:50:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51443", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "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 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "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" ] } } [21:50:04]POST & json_proto [21:50:04]process_json_proto [21:50:04]json parsed OK: [21:50:04]protocol is kg_v1.0 [21:50:04]action value=close_receipt [21:50:04]process_action close_receipt [21:50:04]cmd_close_receipt [21:50:04]MH_GetDate [21:50:04]Write to MH i2c: F0 00 00 E5 15 E9 [21:50:04]Write i2c OK [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: F0 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: F0 09 00 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: F0 09 00 E5 15 00 10 91 F0 66 02 BF CF 66 DF [21:50:04]GetLastDocTimeStamp 1727041729 [21:50:04]current date 1727041808 [21:50:04]FM_GetShiftState [21:50:04]SAM_PROTO_GetShiftState [21:50:04]wFMCommunicate request_size=4 [21:50:04]MH_SAM_APDU [21:50:04]CAPDU: 80 13 01 00 [21:50:04]Write to MH i2c: E2 08 00 E6 15 80 13 01 00 00 00 00 00 78 [21:50:04]Write i2c OK [21:50:04]MH_I2C_Read... [21:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:04]Read from MH i2c: E2 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: E2 0E 00 [21:50:04]MH_I2C_Read... [21:50:04]Read from MH i2c: E2 0E 00 E6 15 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 F3 [21:50:04]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:50:04]wFMCommunicate OK [21:50:04]SAM_PROTO_GetShiftState done [21:50:04]FM_GetShiftState done [21:50:04]opened in 1726964408 [21:50:04]opened+sec_in_day 1727050808 [21:50:04]quantity*price = 4000 [21:50:04]sum+1 = 4001 [21:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 92 22.09.2024 21:50 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22177 ФПД: 46686647069240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215008&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22177&fm=46686647069240&tin=02508201610067®Number=0000000000146243&sum=4000 0 [21:50:06]StoreToDocumentArchive [21:50:06]shift 228 fd 22177 [21:50:06]save to /storage/0228/doc_00022177 [21:50:06]save last doc name /storage/0228/doc_00022177 to /storage/kkm_last_doc_name [21:50:06]save OK [21:50:06]Clear old archive folders... [21:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=314 [21:50:06]tlvbuf is B6F12540 [21:50:06]SAM_PROTO_ClearQueue [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 09 00 00 [21:50:06]Write to MH i2c: E2 08 00 F3 15 80 09 00 00 00 00 00 00 7A [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 F3 15 00 90 00 7C [21:50:06]RAPDU: 90 00 [21:50:06]wFMCommunicate OK [21:50:06]SAM_PROTO_ClearQueue done [21:50:06]KKMCreateOFDPacket [21:50:06]OFDProtocolAddRootSTLVToBuf [21:50:06]FM_MakeSignedData [21:50:06]FM_MakeSignedData [21:50:06]SAM_PROTO_SignData [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 0D 01 02 [21:50:06]Write to MH i2c: E2 08 00 F4 15 80 0D 01 02 00 00 00 00 82 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [21:50:06]RAPDU: 90 00 [21:50:06]wFMCommunicate OK [21:50:06]wFMCommunicate request_size=255 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 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 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 10 91 F0 66 0E 04 04 [21:50:06]Write to MH i2c: E2 02 01 F5 15 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 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 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 10 91 F0 66 0E 04 04 00 00 29 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [21:50:06]RAPDU: 90 00 [21:50:06]wFMCommunicate OK [21:50:06]wFMCommunicate request_size=73 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 0D 02 02 44 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A1 56 00 00 35 04 06 00 2A 76 15 03 AA 38 [21:50:06]Write to MH i2c: E2 4C 00 F6 15 80 0D 02 02 44 00 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A1 56 00 00 35 04 06 00 2A 76 15 03 AA 38 00 00 19 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [21:50:06]RAPDU: 90 00 [21:50:06]wFMCommunicate OK [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 0D 03 02 [21:50:06]Write to MH i2c: E2 08 00 F7 15 80 0D 03 02 00 00 00 00 87 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0B 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 0B 00 F7 15 00 FE 38 C5 12 FC 45 92 E2 90 00 4A [21:50:06]RAPDU: FE 38 C5 12 FC 45 92 E2 90 00 [21:50:06]wFMCommunicate OK [21:50:06]SAM_PROTO_SignData done [21:50:06]FM_MakeSignedData done [21:50:06]CreateOFDProtocolMessage [21:50:06]wFMCommunicate request_size=4 [21:50:06]MH_SAM_APDU [21:50:06]CAPDU: 80 11 00 00 [21:50:06]Write to MH i2c: E2 08 00 F8 15 80 11 00 00 00 00 00 00 87 [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:06]Read from MH i2c: E2 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 17 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: E2 17 00 F8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 E1 [21:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:50:06]wFMCommunicate OK [21:50:06]CreateOFDProtocolMessage done [21:50:06]OFDSenderStorePacket 22177 [21:50:06]StoreOFDPacket docnum=22177 [21:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4E 01 00 00 AE F5 46 01 5B C9 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 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 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 10 91 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A1 56 00 00 35 04 06 00 2A 76 15 03 AA 38 FE 38 C5 12 FC 45 92 E2 [21:50:06]CheckFolder [21:50:06]dirname=/storage/ofd_packets [21:50:06]CheckFolder done [21:50:06]ProducePacketName [21:50:06]name=ofd_packets/00022177 [21:50:06]NVStorageSaveData ofd_packets/00022177 [21:50:06]File name is /storage/ofd_packets/00022177 [21:50:06]Write 364 bytes [21:50:06]NVStorageSaveData done [21:50:06]OFDSenderStorePacket done [21:50:06]KKMCreateOFDPacket done [21:50:06]NVStorageSaveData kkm_last_timestamp [21:50:06]File name is /storage/kkm_last_timestamp [21:50:06]Write 4 bytes [21:50:06]NVStorageSaveData done [21:50:06]ExternCall_PrintAddStr [21:50:06]wPrintStart [21:50:06]Write to MH i2c: 01 00 00 F9 15 0E [21:50:06]Write i2c OK [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 07 00 [21:50:06]MH_I2C_Read... [21:50:06]Read from MH i2c: 01 07 00 F9 15 00 00 00 00 00 FF 0F 23 [21:50:06]RasterBufferAndPrint [21:50:06]line Счет N : (3)51443 [21:50:06]line ИНН: 02508201610067 [21:50:06]line Контрольно-Кассовый Чек [21:50:06]line ПРОДАЖА [21:50:06]line Товар: 4630007400969 [21:50:06]line Арахис жарен Караван орехов Стандарт 40 [21:50:06]line 1.000 * 40.00 [21:50:06]line = 40.00 [21:50:06]line НДС 12% НСП 1% [21:50:06]line > о реализуемом товаре [21:50:06]line ИТОГО: 40.00 [21:50:06]line НСП 1% : 0.35 [21:50:06]line НДС 12% : 4.25 [21:50:06]line Наличными: 40.00 [21:50:06]line Безнал.: 0.00 [21:50:06]line Место: АЗС № 88 "Партнер Нефть" [21:50:06]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:50:06]line СНО: Общий режим [21:50:06]line Чек 92 22.09.2024 21:50 [21:50:06]line Смена: 228 ФФД: 1.0 [21:50:06]line ЗНМ: 0300000061 [21:50:06]line РНМ: 0000000000146243 [21:50:06]line Версия ККМ: v1.0 [21:50:06]line ФМ: 0000000000959358 [21:50:06]line ФД: 22177 [21:50:06]line ФПД: 46686647069240 [21:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215008&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22177&fm=46686647069240&tin=02508201610067®Number=0000000000146243&sum=4000 [21:50:07]line 0 [21:50:07]OFD Sender: Processing packet 22177 [packets to send 23, broken 22] [21:50:07]ProducePacketName [21:50:07]name=ofd_packets/00022177 [21:50:07]OFD Sender: To server: pG, [21:50:07]CommunicateWithHost lk.salyk.kg:30040 [21:50:07]ConnectInit lk.salyk.kg [21:50:07]written 0, free lines is 4095 [21:50:07]Connected sock=9 [21:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4E 01 00 00 AE F5 46 01 5B C9 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 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 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 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 10 91 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A1 56 00 00 35 04 06 00 2A 76 15 03 AA 38 FE 38 C5 12 FC 45 92 E2 [21:50:07]Write to MH i2c: 01 00 00 22 16 38 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: 01 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: 01 07 00 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: 01 07 00 22 16 00 00 00 00 00 10 0D 5C [21:50:07]RasterBufferAndPrint [21:50:07]line [21:50:07]line [21:50:07]line [21:50:07]line [21:50:07]line [21:50:07]written 0, free lines is 3353 [21:50:07]MH_Cut [21:50:07]Write to MH i2c: D1 01 00 29 16 01 11 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: D1 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: D1 01 00 [21:50:07]MH_I2C_Read... [21:50:07]Read from MH i2c: D1 01 00 29 16 00 10 [21:50:07]Write to MH i2c: 01 00 00 2A 16 40 [21:50:07]Write i2c OK [21:50:07]MH_I2C_Read... [21:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 6C 45 47 00 22 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A1 56 00 00 F4 03 04 00 3A 3B F0 66 B6 04 01 00 00 04 B3 95 E6 94 D4 02 A6 [21:50:07]CommunicateWithHost err = 0 [21:50:07]CheckOFDResponse [21:50:07]1017 (14) - 77093643461234 [21:50:07]1041 (16) - 0000000000959358 [21:50:07]1040 (4) - 22177 [21:50:07]1012 (4) - 22.09.2024 15:43 [21:50:07]1206 (1) - 0 [21:50:07]OFD Sender: Remove packet 22177 [21:50:07]ProducePacketName [21:50:07]name=ofd_packets/00022177 [21:50:07]NVStorageDeleteData [21:50:08]OFD Sender: No OFD packet to send [21:50:08]*** Cut start [21:50:08]*** Partial cut [21:50:08]*** CUTSNS_PIN = 1 [21:50:08]*** CUTSNS_PIN = 0 [21:50:08]*** Brake cut motor [21:50:08]Read from MH i2c: 01 [21:50:08]MH_I2C_Read... [21:50:08]*** Stop cut motor [21:50:08]*** Cut end [21:50:08]Read from MH i2c: 01 07 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 FF 0F 55 [21:50:08]process_action close_receipt done [21:50:08]requested_data is exist [21:50:08]produce_requested_data [21:50:08]requested_item fm.sn is exist - process it [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 11 00 00 [21:50:08]Write to MH i2c: E2 08 00 2B 16 80 11 00 00 00 00 00 00 BB [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 17 00 2B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 15 [21:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:50:08]wFMCommunicate OK [21:50:08]requested_item fd.num is exist - process it [21:50:08]SAM_PROTO_GetFieldsCounters [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 13 00 00 [21:50:08]Write to MH i2c: E2 08 00 2C 16 80 13 00 00 00 00 00 00 BE [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 62 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 62 00 2C 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A1 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [21:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A1 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:08]wFMCommunicate OK [21:50:08]SAM_PROTO_GetFieldsCounters done [21:50:08]requested_item shift.num is exist - process it [21:50:08]requested_item shift.opened is exist - process it [21:50:08]req_shift_opened [21:50:08]FM_GetShiftState [21:50:08]SAM_PROTO_GetShiftState [21:50:08]wFMCommunicate request_size=4 [21:50:08]MH_SAM_APDU [21:50:08]CAPDU: 80 13 01 00 [21:50:08]Write to MH i2c: E2 08 00 2D 16 80 13 01 00 00 00 00 00 C0 [21:50:08]Write i2c OK [21:50:08]MH_I2C_Read... [21:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:08]Read from MH i2c: E2 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0E 00 [21:50:08]MH_I2C_Read... [21:50:08]Read from MH i2c: E2 0E 00 2D 16 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 3B [21:50:08]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:50:08]wFMCommunicate OK [21:50:08]SAM_PROTO_GetShiftState done [21:50:08]FM_GetShiftState done [21:50:08]req_shift_opened done [21:50:08]requested_item shift.open_date is exist - process it [21:50:08]req_shift_open_date [21:50:08]req_shift_open_date done [21:50:08]produce_requested_data done [21:50:08]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22177,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:50:08]process_action_free close_receipt [21:50:08]json_value_free [21:50:08]json_value_free done [21:50:08]process_json_proto returns [21:50:08]Send response to host [21:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22177,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:50:08]free response buf [21:50:08]execute_script done [21:50:08]execute_script returns [21:50:08]free content buf [21:50:08]Sock 10.Close socket [21:50:08]Sock 10.Thread stoped [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:00]accept exits with 7 [21:52:00]New connection [21:52:00]New thread 3067182436 created [21:52:00]Thread 3067039076 joined [21:52:00]Waiting for new connection... [21:52:00] Sock 7.Parse request [21:52:00]Sock 7.Check first char [21:52:00]Sock 7.First char is OK [21:52:00]request: POST /json_proto HTTP/1.0 [21:52:00]Method: POST [21:52:00]URL: /json_proto [21:52:00]Method is POST - this is cgi request [21:52:00]url: /json_proto [21:52:00]query_string will be loaded in cgi processing [21:52:00]execute_cgi json_proto POST (null) [21:52:00]execute_cgi path=json_proto method=POST [21:52:00]POST find Content-Length [21:52:00]Host: 172.17.43.4:8080 [21:52:00]Content-Length: 683 [21:52:00]Content-Type: application/json [21:52:00] [21:52:00]POST finish read [21:52:00]Found Content-Length = 683 [21:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51444", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 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" ] } } [21:52:00]execute_script... [21:52: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)51444", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 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" ] } } [21:52:00]POST & json_proto [21:52:00]process_json_proto [21:52:00]json parsed OK: [21:52:00]protocol is kg_v1.0 [21:52:00]action value=close_receipt [21:52:00]process_action close_receipt [21:52:00]cmd_close_receipt [21:52:00]MH_GetDate [21:52:00]Write to MH i2c: F0 00 00 2E 16 33 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: F0 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: F0 09 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: F0 09 00 2E 16 00 84 91 F0 66 02 BF CF 66 9D [21:52:00]GetLastDocTimeStamp 1727041808 [21:52:00]current date 1727041924 [21:52:00]FM_GetShiftState [21:52:00]SAM_PROTO_GetShiftState [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 13 01 00 [21:52:00]Write to MH i2c: E2 08 00 2F 16 80 13 01 00 00 00 00 00 C2 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 2F 16 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 3D [21:52:00]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:52:00]wFMCommunicate OK [21:52:00]SAM_PROTO_GetShiftState done [21:52:00]FM_GetShiftState done [21:52:00]opened in 1726964408 [21:52:00]opened+sec_in_day 1727050808 [21:52:00]quantity*price = 7500 [21:52:00]sum+1 = 7501 [21:52:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 93 22.09.2024 21:52 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22178 ФПД: 11749544062977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215204&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22178&fm=11749544062977&tin=02508201610067®Number=0000000000146243&sum=7500 0 [21:52:01]StoreToDocumentArchive [21:52:01]shift 228 fd 22178 [21:52:01]save to /storage/0228/doc_00022178 [21:52:01]save last doc name /storage/0228/doc_00022178 to /storage/kkm_last_doc_name [21:52:01]save OK [21:52:01]Clear old archive folders... [21:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=295 [21:52:01]tlvbuf is 002389E0 [21:52:01]SAM_PROTO_ClearQueue [21:52:01]wFMCommunicate request_size=4 [21:52:01]MH_SAM_APDU [21:52:01]CAPDU: 80 09 00 00 [21:52:01]Write to MH i2c: E2 08 00 3C 16 80 09 00 00 00 00 00 00 C4 [21:52:01]Write i2c OK [21:52:01]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 3C 16 00 90 00 C6 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]SAM_PROTO_ClearQueue done [21:52:02]KKMCreateOFDPacket [21:52:02]OFDProtocolAddRootSTLVToBuf [21:52:02]FM_MakeSignedData [21:52:02]FM_MakeSignedData [21:52:02]SAM_PROTO_SignData [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 01 02 [21:52:02]Write to MH i2c: E2 08 00 3D 16 80 0D 01 02 00 00 00 00 CC [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 3D 16 00 90 00 C7 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=255 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 5D 00 00 00 F4 03 04 00 84 91 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [21:52:02]Write to MH i2c: E2 02 01 3E 16 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 5D 00 00 00 F4 03 04 00 84 91 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 BD [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 3E 16 00 90 00 C8 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=54 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 02 02 31 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A2 56 00 00 35 04 06 00 0A AF A7 66 70 01 [21:52:02]Write to MH i2c: E2 39 00 3F 16 80 0D 02 02 31 00 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A2 56 00 00 35 04 06 00 0A AF A7 66 70 01 00 00 27 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 03 02 [21:52:02]Write to MH i2c: E2 08 00 40 16 80 0D 03 02 00 00 00 00 D1 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 0B 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 0B 00 40 16 00 ED 6B 85 B4 61 17 93 F5 90 00 63 [21:52:02]RAPDU: ED 6B 85 B4 61 17 93 F5 90 00 [21:52:02]wFMCommunicate OK [21:52:02]SAM_PROTO_SignData done [21:52:02]FM_MakeSignedData done [21:52:02]CreateOFDProtocolMessage [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 11 00 00 [21:52:02]Write to MH i2c: E2 08 00 41 16 80 11 00 00 00 00 00 00 D1 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 17 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 17 00 41 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 2B [21:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:52:02]wFMCommunicate OK [21:52:02]CreateOFDProtocolMessage done [21:52:02]OFDSenderStorePacket 22178 [21:52:02]StoreOFDPacket docnum=22178 [21:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3B 01 00 00 D2 21 33 01 BD A9 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 5D 00 00 00 F4 03 04 00 84 91 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A2 56 00 00 35 04 06 00 0A AF A7 66 70 01 ED 6B 85 B4 61 17 93 F5 [21:52:02]CheckFolder [21:52:02]dirname=/storage/ofd_packets [21:52:02]CheckFolder done [21:52:02]ProducePacketName [21:52:02]name=ofd_packets/00022178 [21:52:02]NVStorageSaveData ofd_packets/00022178 [21:52:02]File name is /storage/ofd_packets/00022178 [21:52:02]Write 345 bytes [21:52:02]NVStorageSaveData done [21:52:02]OFDSenderStorePacket done [21:52:02]KKMCreateOFDPacket done [21:52:02]NVStorageSaveData kkm_last_timestamp [21:52:02]File name is /storage/kkm_last_timestamp [21:52:02]Write 4 bytes [21:52:02]NVStorageSaveData done [21:52:02]ExternCall_PrintAddStr [21:52:02]wPrintStart [21:52:02]Write to MH i2c: 01 00 00 42 16 58 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 FF 0F 6D [21:52:02]RasterBufferAndPrint [21:52:02]line Счет N : (3)51444 [21:52:02]line ИНН: 02508201610067 [21:52:02]line Контрольно-Кассовый Чек [21:52:02]line ПРОДАЖА [21:52:02]line Товар: 5449000027450 [21:52:02]line Напиток FuzeTea чай манго,ром 0,5л [21:52:02]line 1.000 * 75.00 [21:52:02]line = 75.00 [21:52:02]line НДС 12% НСП 1% [21:52:02]line > о реализуемом товаре [21:52:02]line ИТОГО: 75.00 [21:52:02]line НСП 1% : 0.66 [21:52:02]line НДС 12% : 7.96 [21:52:02]line Наличными: 75.00 [21:52:02]line Безнал.: 0.00 [21:52:02]line Место: АЗС № 88 "Партнер Нефть" [21:52:02]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:52:02]line СНО: Общий режим [21:52:02]line Чек 93 22.09.2024 21:52 [21:52:02]line Смена: 228 ФФД: 1.0 [21:52:02]line ЗНМ: 0300000061 [21:52:02]line РНМ: 0000000000146243 [21:52:02]line Версия ККМ: v1.0 [21:52:02]line ФМ: 0000000000959358 [21:52:02]line ФД: 22178 [21:52:02]line ФПД: 11749544062977 [21:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215204&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22178&fm=11749544062977&tin=02508201610067®Number=0000000000146243&sum=7500 [21:52:02]line 0 [21:52:02]OFD Sender: Processing packet 22178 [packets to send 23, broken 22] [21:52:02]ProducePacketName [21:52:02]name=ofd_packets/00022178 [21:52:02]OFD Sender: To server: pG, [21:52:02]CommunicateWithHost lk.salyk.kg:30040 [21:52:02]ConnectInit lk.salyk.kg [21:52:02]written 0, free lines is 4095 [21:52:03]Connected sock=10 [21:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 3B 01 00 00 D2 21 33 01 BD A9 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 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 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 5D 00 00 00 F4 03 04 00 84 91 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A2 56 00 00 35 04 06 00 0A AF A7 66 70 01 ED 6B 85 B4 61 17 93 F5 [21:52:03]Write to MH i2c: 01 00 00 6B 16 81 [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 07 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: 01 07 00 6B 16 00 00 00 00 00 0D 0D A2 [21:52:03]RasterBufferAndPrint [21:52:03]line [21:52:03]line [21:52:03]line [21:52:03]line [21:52:03]line [21:52:03]written 0, free lines is 3347 [21:52:03]MH_Cut [21:52:03]Write to MH i2c: D1 01 00 72 16 01 5A [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: D1 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: D1 01 00 [21:52:03]MH_I2C_Read... [21:52:03]Read from MH i2c: D1 01 00 72 16 00 59 [21:52:03]Write to MH i2c: 01 00 00 73 16 89 [21:52:03]Write i2c OK [21:52:03]MH_I2C_Read... [21:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 7F 77 47 00 FC 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 39 35 39 33 35 38 10 04 04 00 A2 56 00 00 F4 03 04 00 AE 3B F0 66 B6 04 01 00 00 2A 14 11 CE DB 60 9E 86 [21:52:03]CommunicateWithHost err = 0 [21:52:03]CheckOFDResponse [21:52:03]1017 (14) - 77093643461234 [21:52:03]1041 (16) - 0000000000959358 [21:52:03]1040 (4) - 22178 [21:52:03]1012 (4) - 22.09.2024 15:45 [21:52:03]1206 (1) - 0 [21:52:03]OFD Sender: Remove packet 22178 [21:52:03]ProducePacketName [21:52:03]name=ofd_packets/00022178 [21:52:03]NVStorageDeleteData [21:52:03]OFD Sender: No OFD packet to send [21:52:03]*** Cut start [21:52:03]*** Partial cut [21:52:03]*** CUTSNS_PIN = 1 [21:52:04]*** CUTSNS_PIN = 0 [21:52:04]*** Brake cut motor [21:52:04]Read from MH i2c: 01 [21:52:04]MH_I2C_Read... [21:52:04]*** Stop cut motor [21:52:04]*** Cut end [21:52:04]Read from MH i2c: 01 07 00 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 FF 0F 9E [21:52:04]process_action close_receipt done [21:52:04]requested_data is exist [21:52:04]produce_requested_data [21:52:04]requested_item fm.sn is exist - process it [21:52:04]wFMCommunicate request_size=4 [21:52:04]MH_SAM_APDU [21:52:04]CAPDU: 80 11 00 00 [21:52:04]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [21:52:04]Write i2c OK [21:52:04]MH_I2C_Read... [21:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:04]Read from MH i2c: E2 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 17 00 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 5E [21:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:52:04]wFMCommunicate OK [21:52:04]requested_item fd.num is exist - process it [21:52:04]SAM_PROTO_GetFieldsCounters [21:52:04]wFMCommunicate request_size=4 [21:52:04]MH_SAM_APDU [21:52:04]CAPDU: 80 13 00 00 [21:52:04]Write to MH i2c: E2 08 00 75 16 80 13 00 00 00 00 00 00 07 [21:52:04]Write i2c OK [21:52:04]MH_I2C_Read... [21:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:04]Read from MH i2c: E2 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 62 00 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 62 00 75 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A2 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [21:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A2 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:04]wFMCommunicate OK [21:52:04]SAM_PROTO_GetFieldsCounters done [21:52:04]requested_item shift.num is exist - process it [21:52:04]requested_item shift.opened is exist - process it [21:52:04]req_shift_opened [21:52:04]FM_GetShiftState [21:52:04]SAM_PROTO_GetShiftState [21:52:04]wFMCommunicate request_size=4 [21:52:04]MH_SAM_APDU [21:52:04]CAPDU: 80 13 01 00 [21:52:04]Write to MH i2c: E2 08 00 76 16 80 13 01 00 00 00 00 00 09 [21:52:04]Write i2c OK [21:52:04]MH_I2C_Read... [21:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:04]Read from MH i2c: E2 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 0E 00 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 0E 00 76 16 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 84 [21:52:04]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:52:04]wFMCommunicate OK [21:52:04]SAM_PROTO_GetShiftState done [21:52:04]FM_GetShiftState done [21:52:04]req_shift_opened done [21:52:04]requested_item shift.open_date is exist - process it [21:52:04]req_shift_open_date [21:52:04]req_shift_open_date done [21:52:04]produce_requested_data done [21:52:04]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22178,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:52:04]process_action_free close_receipt [21:52:04]json_value_free [21:52:04]json_value_free done [21:52:04]process_json_proto returns [21:52:04]Send response to host [21:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22178,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:52:04]free response buf [21:52:04]execute_script done [21:52:04]execute_script returns [21:52:04]free content buf [21:52:04]Sock 7.Close socket [21:52:04]Sock 7.Thread stoped [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:31]accept exits with 9 [21:57:31]New connection [21:57:31]New thread 3067039076 created [21:57:31]Thread 3067182436 joined [21:57:31]Waiting for new connection... [21:57:31] Sock 9.Parse request [21:57:31]Sock 9.Check first char [21:57:31]Sock 9.First char is OK [21:57:31]request: POST /json_proto HTTP/1.0 [21:57:31]Method: POST [21:57:31]URL: /json_proto [21:57:31]Method is POST - this is cgi request [21:57:31]url: /json_proto [21:57:31]query_string will be loaded in cgi processing [21:57:31]execute_cgi json_proto POST (null) [21:57:31]execute_cgi path=json_proto method=POST [21:57:31]POST find Content-Length [21:57:31]Host: 172.17.43.4:8080 [21:57:31]Content-Length: 657 [21:57:31]Content-Type: application/json [21:57:31] [21:57:31]POST finish read [21:57:31]Found Content-Length = 657 [21:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51445", "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" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:31]execute_script... [21:57:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51445", "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" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:31]POST & json_proto [21:57:31]process_json_proto [21:57:31]json parsed OK: [21:57:31]protocol is kg_v1.0 [21:57:31]action value=close_receipt [21:57:31]process_action close_receipt [21:57:31]cmd_close_receipt [21:57:31]MH_GetDate [21:57:31]Write to MH i2c: F0 00 00 77 16 7C [21:57:31]Write i2c OK [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: F0 [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: F0 09 00 [21:57:31]MH_I2C_Read... [21:57:31]Read from MH i2c: F0 09 00 77 16 00 CF 92 F0 66 02 BF CF 66 32 [21:57:31]GetLastDocTimeStamp 1727041924 [21:57:31]current date 1727042255 [21:57:31]FM_GetShiftState [21:57:31]SAM_PROTO_GetShiftState [21:57:31]wFMCommunicate request_size=4 [21:57:31]MH_SAM_APDU [21:57:31]CAPDU: 80 13 01 00 [21:57:31]Write to MH i2c: E2 08 00 78 16 80 13 01 00 00 00 00 00 0B [21:57:31]Write i2c OK [21:57:31]MH_I2C_Read... [21:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:32]Read from MH i2c: E2 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 0E 00 [21:57:32]MH_I2C_Read... [21:57:32]Read from MH i2c: E2 0E 00 78 16 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 86 [21:57:32]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:57:32]wFMCommunicate OK [21:57:32]SAM_PROTO_GetShiftState done [21:57:32]FM_GetShiftState done [21:57:32]opened in 1726964408 [21:57:32]opened+sec_in_day 1727050808 [21:57:32]quantity*price = 10500 [21:57:32]sum+1 = 10501 [21:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 94 22.09.2024 21:57 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22179 ФПД: 215169134409966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215735&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22179&fm=215169134409966&tin=02508201610067®Number=0000000000146243&sum=10500 0 [21:57:33]StoreToDocumentArchive [21:57:33]shift 228 fd 22179 [21:57:33]save to /storage/0228/doc_00022179 [21:57:33]save last doc name /storage/0228/doc_00022179 to /storage/kkm_last_doc_name [21:57:33]save OK [21:57:33]Clear old archive folders... [21:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:57:33]tlvbuf is 0022CC50 [21:57:33]SAM_PROTO_ClearQueue [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 09 00 00 [21:57:33]Write to MH i2c: E2 08 00 85 16 80 09 00 00 00 00 00 00 0D [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 85 16 00 90 00 0F [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]SAM_PROTO_ClearQueue done [21:57:33]KKMCreateOFDPacket [21:57:33]OFDProtocolAddRootSTLVToBuf [21:57:33]FM_MakeSignedData [21:57:33]FM_MakeSignedData [21:57:33]SAM_PROTO_SignData [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 01 02 [21:57:33]Write to MH i2c: E2 08 00 86 16 80 0D 01 02 00 00 00 00 15 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=255 [21:57:33]MH_SAM_APDU [21:57:33]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 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CF 92 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 [21:57:33]Write to MH i2c: E2 02 01 87 16 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 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CF 92 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 00 00 72 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=37 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A3 56 00 00 35 04 06 00 C3 B1 F7 D2 B8 EE [21:57:33]Write to MH i2c: E2 28 00 88 16 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A3 56 00 00 35 04 06 00 C3 B1 F7 D2 B8 EE 00 00 52 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [21:57:33]RAPDU: 90 00 [21:57:33]wFMCommunicate OK [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 0D 03 02 [21:57:33]Write to MH i2c: E2 08 00 89 16 80 0D 03 02 00 00 00 00 1A [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 0B 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 0B 00 89 16 00 C2 27 9C 72 97 89 EC 7B 90 00 99 [21:57:33]RAPDU: C2 27 9C 72 97 89 EC 7B 90 00 [21:57:33]wFMCommunicate OK [21:57:33]SAM_PROTO_SignData done [21:57:33]FM_MakeSignedData done [21:57:33]CreateOFDProtocolMessage [21:57:33]wFMCommunicate request_size=4 [21:57:33]MH_SAM_APDU [21:57:33]CAPDU: 80 11 00 00 [21:57:33]Write to MH i2c: E2 08 00 8A 16 80 11 00 00 00 00 00 00 1A [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:33]Read from MH i2c: E2 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 17 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: E2 17 00 8A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 74 [21:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:57:33]wFMCommunicate OK [21:57:33]CreateOFDProtocolMessage done [21:57:33]OFDSenderStorePacket 22179 [21:57:33]StoreOFDPacket docnum=22179 [21:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 AA 5C 22 01 E0 A3 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 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CF 92 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A3 56 00 00 35 04 06 00 C3 B1 F7 D2 B8 EE C2 27 9C 72 97 89 EC 7B [21:57:33]CheckFolder [21:57:33]dirname=/storage/ofd_packets [21:57:33]CheckFolder done [21:57:33]ProducePacketName [21:57:33]name=ofd_packets/00022179 [21:57:33]NVStorageSaveData ofd_packets/00022179 [21:57:33]File name is /storage/ofd_packets/00022179 [21:57:33]Write 328 bytes [21:57:33]NVStorageSaveData done [21:57:33]OFDSenderStorePacket done [21:57:33]KKMCreateOFDPacket done [21:57:33]NVStorageSaveData kkm_last_timestamp [21:57:33]File name is /storage/kkm_last_timestamp [21:57:33]Write 4 bytes [21:57:33]NVStorageSaveData done [21:57:33]ExternCall_PrintAddStr [21:57:33]wPrintStart [21:57:33]Write to MH i2c: 01 00 00 8B 16 A1 [21:57:33]Write i2c OK [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 07 00 [21:57:33]MH_I2C_Read... [21:57:33]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [21:57:33]RasterBufferAndPrint [21:57:33]line Счет N : (3)51445 [21:57:33]line ИНН: 02508201610067 [21:57:33]line Контрольно-Кассовый Чек [21:57:33]line ПРОДАЖА [21:57:33]line Товар: 5449000054227 [21:57:33]line Напиток Кока-Кола 1л [21:57:33]line 1.000 * 105.00 [21:57:33]line = 105.00 [21:57:33]line НДС 12% НСП 1% [21:57:33]line > о реализуемом товаре [21:57:33]line ИТОГО: 105.00 [21:57:33]line НСП 1% : 0.93 [21:57:33]line НДС 12% : 11.15 [21:57:33]line Наличными: 105.00 [21:57:33]line Безнал.: 0.00 [21:57:33]line Место: АЗС № 88 "Партнер Нефть" [21:57:33]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [21:57:33]line СНО: Общий режим [21:57:33]line Чек 94 22.09.2024 21:57 [21:57:33]line Смена: 228 ФФД: 1.0 [21:57:33]line ЗНМ: 0300000061 [21:57:33]line РНМ: 0000000000146243 [21:57:33]line Версия ККМ: v1.0 [21:57:33]line ФМ: 0000000000959358 [21:57:33]line ФД: 22179 [21:57:33]line ФПД: 215169134409966 [21:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T215735&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22179&fm=215169134409966&tin=02508201610067®Number=0000000000146243&sum=10500 [21:57:33]line 0 [21:57:33]OFD Sender: Processing packet 22179 [packets to send 23, broken 22] [21:57:33]ProducePacketName [21:57:33]name=ofd_packets/00022179 [21:57:33]OFD Sender: To server: pG, [21:57:33]CommunicateWithHost lk.salyk.kg:30040 [21:57:33]ConnectInit lk.salyk.kg [21:57:33]written 0, free lines is 4095 [21:57:34]Connected sock=10 [21:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2A 01 00 00 AA 5C 22 01 E0 A3 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 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CF 92 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A3 56 00 00 35 04 06 00 C3 B1 F7 D2 B8 EE C2 27 9C 72 97 89 EC 7B [21:57:34]Write to MH i2c: 01 00 00 B3 16 C9 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: 01 07 00 B3 16 00 00 00 00 00 20 0D FD [21:57:34]RasterBufferAndPrint [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]line [21:57:34]written 0, free lines is 3366 [21:57:34]MH_Cut [21:57:34]Write to MH i2c: D1 01 00 BA 16 01 A2 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 01 00 [21:57:34]MH_I2C_Read... [21:57:34]Read from MH i2c: D1 01 00 BA 16 00 A1 [21:57:34]Write to MH i2c: 01 00 00 BB 16 D1 [21:57:34]Write i2c OK [21:57:34]MH_I2C_Read... [21:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 74 80 47 00 44 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A3 56 00 00 F4 03 04 00 F9 3C F0 66 B6 04 01 00 00 7F 76 4E 13 DB 30 93 C4 [21:57:34]CommunicateWithHost err = 0 [21:57:34]CheckOFDResponse [21:57:34]1017 (14) - 77093643461234 [21:57:34]1041 (16) - 0000000000959358 [21:57:34]1040 (4) - 22179 [21:57:34]1012 (4) - 22.09.2024 15:51 [21:57:34]1206 (1) - 0 [21:57:34]OFD Sender: Remove packet 22179 [21:57:34]ProducePacketName [21:57:34]name=ofd_packets/00022179 [21:57:34]NVStorageDeleteData [21:57:34]OFD Sender: No OFD packet to send [21:57:35]*** Cut start [21:57:35]*** Partial cut [21:57:35]*** CUTSNS_PIN = 1 [21:57:35]*** CUTSNS_PIN = 0 [21:57:35]*** Brake cut motor [21:57:35]Read from MH i2c: 01 [21:57:35]MH_I2C_Read... [21:57:35]*** Stop cut motor [21:57:35]*** Cut end [21:57:35]Read from MH i2c: 01 07 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: 01 07 00 BB 16 00 00 00 00 00 FF 0F E6 [21:57:35]process_action close_receipt done [21:57:35]requested_data is exist [21:57:35]produce_requested_data [21:57:35]requested_item fm.sn is exist - process it [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 11 00 00 [21:57:35]Write to MH i2c: E2 08 00 BC 16 80 11 00 00 00 00 00 00 4C [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 17 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 17 00 BC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 A6 [21:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [21:57:35]wFMCommunicate OK [21:57:35]requested_item fd.num is exist - process it [21:57:35]SAM_PROTO_GetFieldsCounters [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 13 00 00 [21:57:35]Write to MH i2c: E2 08 00 BD 16 80 13 00 00 00 00 00 00 4F [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 62 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 62 00 BD 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A3 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [21:57:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A3 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:35]wFMCommunicate OK [21:57:35]SAM_PROTO_GetFieldsCounters done [21:57:35]requested_item shift.num is exist - process it [21:57:35]requested_item shift.opened is exist - process it [21:57:35]req_shift_opened [21:57:35]FM_GetShiftState [21:57:35]SAM_PROTO_GetShiftState [21:57:35]wFMCommunicate request_size=4 [21:57:35]MH_SAM_APDU [21:57:35]CAPDU: 80 13 01 00 [21:57:35]Write to MH i2c: E2 08 00 BE 16 80 13 01 00 00 00 00 00 51 [21:57:35]Write i2c OK [21:57:35]MH_I2C_Read... [21:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:35]Read from MH i2c: E2 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 0E 00 [21:57:35]MH_I2C_Read... [21:57:35]Read from MH i2c: E2 0E 00 BE 16 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 CC [21:57:35]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [21:57:35]wFMCommunicate OK [21:57:35]SAM_PROTO_GetShiftState done [21:57:35]FM_GetShiftState done [21:57:35]req_shift_opened done [21:57:35]requested_item shift.open_date is exist - process it [21:57:35]req_shift_open_date [21:57:35]req_shift_open_date done [21:57:35]produce_requested_data done [21:57:35]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22179,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [21:57:35]process_action_free close_receipt [21:57:35]json_value_free [21:57:35]json_value_free done [21:57:35]process_json_proto returns [21:57:35]Send response to host [21:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22179,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [21:57:35]free response buf [21:57:35]execute_script done [21:57:35]execute_script returns [21:57:35]free content buf [21:57:35]Sock 9.Close socket [21:57:35]Sock 9.Thread stoped [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:12:56]accept exits with 7 [22:12:56]New connection [22:12:56]New thread 3067182436 created [22:12:56]Thread 3067039076 joined [22:12:56]Waiting for new connection... [22:12:56] Sock 7.Parse request [22:12:56]Sock 7.Check first char [22:12:56]Sock 7.First char is OK [22:12:56]request: POST /json_proto HTTP/1.0 [22:12:56]Method: POST [22:12:56]URL: /json_proto [22:12:56]Method is POST - this is cgi request [22:12:56]url: /json_proto [22:12:56]query_string will be loaded in cgi processing [22:12:56]execute_cgi json_proto POST (null) [22:12:56]execute_cgi path=json_proto method=POST [22:12:56]POST find Content-Length [22:12:56]Host: 172.17.43.4:8080 [22:12:56]Content-Length: 622 [22:12:56]Content-Type: application/json [22:12:56] [22:12:56]POST finish read [22:12:56]Found Content-Length = 622 [22:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51446", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:56]execute_script... [22:12:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51446", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:56]POST & json_proto [22:12:56]process_json_proto [22:12:56]json parsed OK: [22:12:56]protocol is kg_v1.0 [22:12:56]action value=close_receipt [22:12:56]process_action close_receipt [22:12:56]cmd_close_receipt [22:12:56]MH_GetDate [22:12:56]Write to MH i2c: F0 00 00 BF 16 C4 [22:12:56]Write i2c OK [22:12:56]MH_I2C_Read... [22:12:56]Read from MH i2c: F0 [22:12:56]MH_I2C_Read... [22:12:56]Read from MH i2c: F0 09 00 [22:12:56]MH_I2C_Read... [22:12:56]Read from MH i2c: F0 09 00 BF 16 00 6C 96 F0 66 02 BF CF 66 1B [22:12:56]GetLastDocTimeStamp 1727042255 [22:12:56]current date 1727043180 [22:12:56]FM_GetShiftState [22:12:56]SAM_PROTO_GetShiftState [22:12:56]wFMCommunicate request_size=4 [22:12:56]MH_SAM_APDU [22:12:56]CAPDU: 80 13 01 00 [22:12:56]Write to MH i2c: E2 08 00 C0 16 80 13 01 00 00 00 00 00 53 [22:12:56]Write i2c OK [22:12:56]MH_I2C_Read... [22:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:56]Read from MH i2c: E2 [22:12:56]MH_I2C_Read... [22:12:56]Read from MH i2c: E2 0E 00 [22:12:56]MH_I2C_Read... [22:12:56]Read from MH i2c: E2 0E 00 C0 16 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 CE [22:12:56]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [22:12:56]wFMCommunicate OK [22:12:56]SAM_PROTO_GetShiftState done [22:12:56]FM_GetShiftState done [22:12:56]opened in 1726964408 [22:12:56]opened+sec_in_day 1727050808 [22:12:56]quantity*price = 14400 [22:12:56]sum+1 = 14401 [22:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 95 22.09.2024 22:13 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22180 ФПД: 257842827062310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T221300&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22180&fm=257842827062310&tin=02508201610067®Number=0000000000146243&sum=14400 0 [22:12:57]StoreToDocumentArchive [22:12:57]shift 228 fd 22180 [22:12:57]save to /storage/0228/doc_00022180 [22:12:57]save last doc name /storage/0228/doc_00022180 to /storage/kkm_last_doc_name [22:12:57]save OK [22:12:57]Clear old archive folders... [22:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=275 [22:12:57]tlvbuf is 0022C670 [22:12:57]SAM_PROTO_ClearQueue [22:12:57]wFMCommunicate request_size=4 [22:12:57]MH_SAM_APDU [22:12:57]CAPDU: 80 09 00 00 [22:12:57]Write to MH i2c: E2 08 00 CD 16 80 09 00 00 00 00 00 00 55 [22:12:57]Write i2c OK [22:12:57]MH_I2C_Read... [22:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:58]Read from MH i2c: E2 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [22:12:58]RAPDU: 90 00 [22:12:58]wFMCommunicate OK [22:12:58]SAM_PROTO_ClearQueue done [22:12:58]KKMCreateOFDPacket [22:12:58]OFDProtocolAddRootSTLVToBuf [22:12:58]FM_MakeSignedData [22:12:58]FM_MakeSignedData [22:12:58]SAM_PROTO_SignData [22:12:58]wFMCommunicate request_size=4 [22:12:58]MH_SAM_APDU [22:12:58]CAPDU: 80 0D 01 02 [22:12:58]Write to MH i2c: E2 08 00 CE 16 80 0D 01 02 00 00 00 00 5D [22:12:58]Write i2c OK [22:12:58]MH_I2C_Read... [22:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:58]Read from MH i2c: E2 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [22:12:58]RAPDU: 90 00 [22:12:58]wFMCommunicate OK [22:12:58]wFMCommunicate request_size=255 [22:12:58]MH_SAM_APDU [22:12:58]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 96 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 [22:12:58]Write to MH i2c: E2 02 01 CF 16 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 96 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 00 00 F8 [22:12:58]Write i2c OK [22:12:58]MH_I2C_Read... [22:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:58]Read from MH i2c: E2 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [22:12:58]RAPDU: 90 00 [22:12:58]wFMCommunicate OK [22:12:58]wFMCommunicate request_size=34 [22:12:58]MH_SAM_APDU [22:12:58]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A4 56 00 00 35 04 06 00 EA 81 B6 1D 6C 26 [22:12:58]Write to MH i2c: E2 25 00 D0 16 80 0D 02 02 1D 00 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A4 56 00 00 35 04 06 00 EA 81 B6 1D 6C 26 00 00 F2 [22:12:58]Write i2c OK [22:12:58]MH_I2C_Read... [22:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:58]Read from MH i2c: E2 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 03 00 D0 16 00 90 00 5A [22:12:58]RAPDU: 90 00 [22:12:58]wFMCommunicate OK [22:12:58]wFMCommunicate request_size=4 [22:12:58]MH_SAM_APDU [22:12:58]CAPDU: 80 0D 03 02 [22:12:58]Write to MH i2c: E2 08 00 D1 16 80 0D 03 02 00 00 00 00 62 [22:12:58]Write i2c OK [22:12:58]MH_I2C_Read... [22:12:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:58]Read from MH i2c: E2 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 0B 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 0B 00 D1 16 00 F0 C5 86 62 CA 60 A6 89 90 00 59 [22:12:58]RAPDU: F0 C5 86 62 CA 60 A6 89 90 00 [22:12:58]wFMCommunicate OK [22:12:58]SAM_PROTO_SignData done [22:12:58]FM_MakeSignedData done [22:12:58]CreateOFDProtocolMessage [22:12:58]wFMCommunicate request_size=4 [22:12:58]MH_SAM_APDU [22:12:58]CAPDU: 80 11 00 00 [22:12:58]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [22:12:58]Write i2c OK [22:12:58]MH_I2C_Read... [22:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:58]Read from MH i2c: E2 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 17 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 BC [22:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [22:12:58]wFMCommunicate OK [22:12:58]CreateOFDProtocolMessage done [22:12:58]OFDSenderStorePacket 22180 [22:12:58]StoreOFDPacket docnum=22180 [22:12:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 AA CB 1F 01 ED 7C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 96 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A4 56 00 00 35 04 06 00 EA 81 B6 1D 6C 26 F0 C5 86 62 CA 60 A6 89 [22:12:58]CheckFolder [22:12:58]dirname=/storage/ofd_packets [22:12:58]CheckFolder done [22:12:58]ProducePacketName [22:12:58]name=ofd_packets/00022180 [22:12:58]NVStorageSaveData ofd_packets/00022180 [22:12:58]File name is /storage/ofd_packets/00022180 [22:12:58]Write 325 bytes [22:12:58]NVStorageSaveData done [22:12:58]OFDSenderStorePacket done [22:12:58]KKMCreateOFDPacket done [22:12:58]NVStorageSaveData kkm_last_timestamp [22:12:58]File name is /storage/kkm_last_timestamp [22:12:58]Write 4 bytes [22:12:58]NVStorageSaveData done [22:12:58]ExternCall_PrintAddStr [22:12:58]wPrintStart [22:12:58]Write to MH i2c: 01 00 00 D3 16 E9 [22:12:58]Write i2c OK [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: 01 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: 01 07 00 [22:12:58]MH_I2C_Read... [22:12:58]Read from MH i2c: 01 07 00 D3 16 00 00 00 00 00 FF 0F FE [22:12:58]RasterBufferAndPrint [22:12:58]line Счет N : (3)51446 [22:12:58]line ИНН: 02508201610067 [22:12:58]line Контрольно-Кассовый Чек [22:12:58]line ПРОДАЖА [22:12:58]line Товар: 48743587 [22:12:58]line Сигареты Winston XStyle Silver [22:12:58]line 1.000 * 144.00 [22:12:58]line = 144.00 [22:12:58]line НДС 12% НСП 1% [22:12:58]line > о реализуемом товаре [22:12:58]line ИТОГО: 144.00 [22:12:58]line НСП 1% : 1.27 [22:12:58]line НДС 12% : 15.29 [22:12:58]line Наличными: 144.00 [22:12:58]line Безнал.: 0.00 [22:12:58]line Место: АЗС № 88 "Партнер Нефть" [22:12:58]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [22:12:58]line СНО: Общий режим [22:12:58]line Чек 95 22.09.2024 22:13 [22:12:58]line Смена: 228 ФФД: 1.0 [22:12:58]line ЗНМ: 0300000061 [22:12:58]line РНМ: 0000000000146243 [22:12:58]line Версия ККМ: v1.0 [22:12:58]line ФМ: 0000000000959358 [22:12:58]line ФД: 22180 [22:12:58]line ФПД: 257842827062310 [22:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T221300&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22180&fm=257842827062310&tin=02508201610067®Number=0000000000146243&sum=14400 [22:12:58]line 0 [22:12:58]OFD Sender: Processing packet 22180 [packets to send 23, broken 22] [22:12:58]ProducePacketName [22:12:58]name=ofd_packets/00022180 [22:12:58]OFD Sender: To server: pG, [22:12:58]CommunicateWithHost lk.salyk.kg:30040 [22:12:58]ConnectInit lk.salyk.kg [22:12:58]written 0, free lines is 4095 [22:12:59]Connected sock=10 [22:12:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 27 01 00 00 AA CB 1F 01 ED 7C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 6C 96 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A4 56 00 00 35 04 06 00 EA 81 B6 1D 6C 26 F0 C5 86 62 CA 60 A6 89 [22:12:59]Write to MH i2c: 01 00 00 FC 16 12 [22:12:59]Write i2c OK [22:12:59]MH_I2C_Read... [22:12:59]Read from MH i2c: 01 [22:12:59]MH_I2C_Read... [22:12:59]Read from MH i2c: 01 07 00 [22:12:59]MH_I2C_Read... [22:12:59]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 13 0D 39 [22:12:59]RasterBufferAndPrint [22:12:59]line [22:12:59]line [22:12:59]line [22:12:59]line [22:12:59]line [22:12:59]written 0, free lines is 3354 [22:12:59]MH_Cut [22:12:59]Write to MH i2c: D1 01 00 03 17 01 EC [22:12:59]Write i2c OK [22:12:59]MH_I2C_Read... [22:12:59]Read from MH i2c: D1 [22:12:59]MH_I2C_Read... [22:12:59]Read from MH i2c: D1 01 00 [22:12:59]MH_I2C_Read... [22:12:59]Read from MH i2c: D1 01 00 03 17 00 EB [22:12:59]Write to MH i2c: 01 00 00 04 17 1B [22:12:59]Write i2c OK [22:12:59]MH_I2C_Read... [22:12:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 BD A4 47 00 20 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 39 35 39 33 35 38 10 04 04 00 A4 56 00 00 F4 03 04 00 96 40 F0 66 B6 04 01 00 00 82 F0 A0 DB 8C E3 74 15 [22:12:59]CommunicateWithHost err = 0 [22:12:59]CheckOFDResponse [22:12:59]1017 (14) - 77093643461234 [22:12:59]1041 (16) - 0000000000959358 [22:12:59]1040 (4) - 22180 [22:12:59]1012 (4) - 22.09.2024 16:06 [22:12:59]1206 (1) - 0 [22:12:59]OFD Sender: Remove packet 22180 [22:12:59]ProducePacketName [22:12:59]name=ofd_packets/00022180 [22:12:59]NVStorageDeleteData [22:12:59]OFD Sender: No OFD packet to send [22:12:59]*** Cut start [22:12:59]*** Partial cut [22:12:59]*** CUTSNS_PIN = 1 [22:13:00]*** CUTSNS_PIN = 0 [22:13:00]*** Brake cut motor [22:13:00]Read from MH i2c: 01 [22:13:00]MH_I2C_Read... [22:13:00]*** Stop cut motor [22:13:00]*** Cut end [22:13:00]Read from MH i2c: 01 07 00 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: 01 07 00 04 17 00 00 00 00 00 FF 0F 30 [22:13:00]process_action close_receipt done [22:13:00]requested_data is exist [22:13:00]produce_requested_data [22:13:00]requested_item fm.sn is exist - process it [22:13:00]wFMCommunicate request_size=4 [22:13:00]MH_SAM_APDU [22:13:00]CAPDU: 80 11 00 00 [22:13:00]Write to MH i2c: E2 08 00 05 17 80 11 00 00 00 00 00 00 96 [22:13:00]Write i2c OK [22:13:00]MH_I2C_Read... [22:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:00]Read from MH i2c: E2 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: E2 17 00 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: E2 17 00 05 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 F0 [22:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [22:13:00]wFMCommunicate OK [22:13:00]requested_item fd.num is exist - process it [22:13:00]SAM_PROTO_GetFieldsCounters [22:13:00]wFMCommunicate request_size=4 [22:13:00]MH_SAM_APDU [22:13:00]CAPDU: 80 13 00 00 [22:13:00]Write to MH i2c: E2 08 00 06 17 80 13 00 00 00 00 00 00 99 [22:13:00]Write i2c OK [22:13:00]MH_I2C_Read... [22:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:00]Read from MH i2c: E2 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: E2 62 00 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: E2 62 00 06 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A4 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [22:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A4 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:00]wFMCommunicate OK [22:13:00]SAM_PROTO_GetFieldsCounters done [22:13:00]requested_item shift.num is exist - process it [22:13:00]requested_item shift.opened is exist - process it [22:13:00]req_shift_opened [22:13:00]FM_GetShiftState [22:13:00]SAM_PROTO_GetShiftState [22:13:00]wFMCommunicate request_size=4 [22:13:00]MH_SAM_APDU [22:13:00]CAPDU: 80 13 01 00 [22:13:00]Write to MH i2c: E2 08 00 07 17 80 13 01 00 00 00 00 00 9B [22:13:00]Write i2c OK [22:13:00]MH_I2C_Read... [22:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:00]Read from MH i2c: E2 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: E2 0E 00 [22:13:00]MH_I2C_Read... [22:13:00]Read from MH i2c: E2 0E 00 07 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 16 [22:13:00]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [22:13:00]wFMCommunicate OK [22:13:00]SAM_PROTO_GetShiftState done [22:13:00]FM_GetShiftState done [22:13:00]req_shift_opened done [22:13:00]requested_item shift.open_date is exist - process it [22:13:00]req_shift_open_date [22:13:00]req_shift_open_date done [22:13:00]produce_requested_data done [22:13:00]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22180,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [22:13:00]process_action_free close_receipt [22:13:00]json_value_free [22:13:00]json_value_free done [22:13:00]process_json_proto returns [22:13:00]Send response to host [22:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22180,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [22:13:00]free response buf [22:13:00]execute_script done [22:13:00]execute_script returns [22:13:00]free content buf [22:13:00]Sock 7.Close socket [22:13:00]Sock 7.Thread stoped [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:03]accept exits with 9 [22:23:03]New connection [22:23:03]New thread 3067039076 created [22:23:03]Thread 3067182436 joined [22:23:03]Waiting for new connection... [22:23:03] Sock 9.Parse request [22:23:03]Sock 9.Check first char [22:23:03]Sock 9.First char is OK [22:23:03]request: POST /json_proto HTTP/1.0 [22:23:03]Method: POST [22:23:03]URL: /json_proto [22:23:03]Method is POST - this is cgi request [22:23:03]url: /json_proto [22:23:03]query_string will be loaded in cgi processing [22:23:03]execute_cgi json_proto POST (null) [22:23:03]execute_cgi path=json_proto method=POST [22:23:03]POST find Content-Length [22:23:03]Host: 172.17.43.4:8080 [22:23:03]Content-Length: 613 [22:23:03]Content-Type: application/json [22:23:03] [22:23:03]POST finish read [22:23:03]Found Content-Length = 613 [22:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51447", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:03]execute_script... [22:23:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51447", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:03]POST & json_proto [22:23:03]process_json_proto [22:23:03]json parsed OK: [22:23:03]protocol is kg_v1.0 [22:23:03]action value=close_receipt [22:23:03]process_action close_receipt [22:23:03]cmd_close_receipt [22:23:03]MH_GetDate [22:23:03]Write to MH i2c: F0 00 00 08 17 0E [22:23:03]Write i2c OK [22:23:03]MH_I2C_Read... [22:23:03]Read from MH i2c: F0 [22:23:03]MH_I2C_Read... [22:23:03]Read from MH i2c: F0 09 00 [22:23:03]MH_I2C_Read... [22:23:03]Read from MH i2c: F0 09 00 08 17 00 CB 98 F0 66 02 BF CF 66 C6 [22:23:03]GetLastDocTimeStamp 1727043180 [22:23:03]current date 1727043787 [22:23:03]FM_GetShiftState [22:23:03]SAM_PROTO_GetShiftState [22:23:03]wFMCommunicate request_size=4 [22:23:03]MH_SAM_APDU [22:23:03]CAPDU: 80 13 01 00 [22:23:03]Write to MH i2c: E2 08 00 09 17 80 13 01 00 00 00 00 00 9D [22:23:03]Write i2c OK [22:23:03]MH_I2C_Read... [22:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:03]Read from MH i2c: E2 [22:23:03]MH_I2C_Read... [22:23:03]Read from MH i2c: E2 0E 00 [22:23:03]MH_I2C_Read... [22:23:03]Read from MH i2c: E2 0E 00 09 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 18 [22:23:03]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [22:23:03]wFMCommunicate OK [22:23:03]SAM_PROTO_GetShiftState done [22:23:03]FM_GetShiftState done [22:23:03]opened in 1726964408 [22:23:03]opened+sec_in_day 1727050808 [22:23:03]quantity*price = 11000 [22:23:03]sum+1 = 11001 [22:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 96 22.09.2024 22:23 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22181 ФПД: 188664173653836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T222307&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22181&fm=188664173653836&tin=02508201610067®Number=0000000000146243&sum=11000 0 [22:23:05]StoreToDocumentArchive [22:23:05]shift 228 fd 22181 [22:23:05]save to /storage/0228/doc_00022181 [22:23:05]save last doc name /storage/0228/doc_00022181 to /storage/kkm_last_doc_name [22:23:05]save OK [22:23:05]Clear old archive folders... [22:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:23:05]tlvbuf is 00218460 [22:23:05]SAM_PROTO_ClearQueue [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 09 00 00 [22:23:05]Write to MH i2c: E2 08 00 16 17 80 09 00 00 00 00 00 00 9F [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]SAM_PROTO_ClearQueue done [22:23:05]KKMCreateOFDPacket [22:23:05]OFDProtocolAddRootSTLVToBuf [22:23:05]FM_MakeSignedData [22:23:05]FM_MakeSignedData [22:23:05]SAM_PROTO_SignData [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 01 02 [22:23:05]Write to MH i2c: E2 08 00 17 17 80 0D 01 02 00 00 00 00 A7 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]wFMCommunicate request_size=255 [22:23:05]MH_SAM_APDU [22:23:05]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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CB 98 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 [22:23:05]Write to MH i2c: E2 02 01 18 17 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CB 98 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 00 00 18 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]wFMCommunicate request_size=25 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 02 02 14 35 38 10 04 04 00 A5 56 00 00 35 04 06 00 AB 96 CD 0D 6F 4C [22:23:05]Write to MH i2c: E2 1C 00 19 17 80 0D 02 02 14 00 35 38 10 04 04 00 A5 56 00 00 35 04 06 00 AB 96 CD 0D 6F 4C 00 00 67 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]OFD Sender: No OFD packet to send [22:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 19 17 00 90 00 A4 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 03 02 [22:23:05]Write to MH i2c: E2 08 00 1A 17 80 0D 03 02 00 00 00 00 AC [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 0B 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 0B 00 1A 17 00 E6 E8 C4 8F D0 35 A9 C5 90 00 41 [22:23:05]RAPDU: E6 E8 C4 8F D0 35 A9 C5 90 00 [22:23:05]wFMCommunicate OK [22:23:05]SAM_PROTO_SignData done [22:23:05]FM_MakeSignedData done [22:23:05]CreateOFDProtocolMessage [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 11 00 00 [22:23:05]Write to MH i2c: E2 08 00 1B 17 80 11 00 00 00 00 00 00 AC [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 17 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 17 00 1B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 06 [22:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [22:23:05]wFMCommunicate OK [22:23:05]CreateOFDProtocolMessage done [22:23:05]OFDSenderStorePacket 22181 [22:23:05]StoreOFDPacket docnum=22181 [22:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1E 01 00 00 BD B6 16 01 7F C4 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CB 98 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A5 56 00 00 35 04 06 00 AB 96 CD 0D 6F 4C E6 E8 C4 8F D0 35 A9 C5 [22:23:05]CheckFolder [22:23:05]dirname=/storage/ofd_packets [22:23:05]CheckFolder done [22:23:05]ProducePacketName [22:23:05]name=ofd_packets/00022181 [22:23:05]NVStorageSaveData ofd_packets/00022181 [22:23:05]File name is /storage/ofd_packets/00022181 [22:23:05]Write 316 bytes [22:23:05]NVStorageSaveData done [22:23:05]OFDSenderStorePacket done [22:23:05]KKMCreateOFDPacket done [22:23:05]NVStorageSaveData kkm_last_timestamp [22:23:05]File name is /storage/kkm_last_timestamp [22:23:05]Write 4 bytes [22:23:05]NVStorageSaveData done [22:23:05]ExternCall_PrintAddStr [22:23:05]wPrintStart [22:23:05]Write to MH i2c: 01 00 00 1C 17 33 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: 01 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: 01 07 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [22:23:05]RasterBufferAndPrint [22:23:05]line Счет N : (3)51447 [22:23:05]line ИНН: 02508201610067 [22:23:05]line Контрольно-Кассовый Чек [22:23:05]line ПРОДАЖА [22:23:05]line Товар: 4870001570071 [22:23:05]line Напиток Pepsi 1л [22:23:05]line 1.000 * 110.00 [22:23:05]line = 110.00 [22:23:05]line НДС 12% НСП 1% [22:23:05]line > о реализуемом товаре [22:23:05]line ИТОГО: 110.00 [22:23:05]line НСП 1% : 0.97 [22:23:05]line НДС 12% : 11.68 [22:23:05]line Наличными: 110.00 [22:23:05]line Безнал.: 0.00 [22:23:05]line Место: АЗС № 88 "Партнер Нефть" [22:23:05]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [22:23:05]line СНО: Общий режим [22:23:05]line Чек 96 22.09.2024 22:23 [22:23:05]line Смена: 228 ФФД: 1.0 [22:23:05]line ЗНМ: 0300000061 [22:23:05]line РНМ: 0000000000146243 [22:23:05]line Версия ККМ: v1.0 [22:23:05]line ФМ: 0000000000959358 [22:23:05]line ФД: 22181 [22:23:05]line ФПД: 188664173653836 [22:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T222307&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22181&fm=188664173653836&tin=02508201610067®Number=0000000000146243&sum=11000 [22:23:05]OFD Sender: Processing packet 22181 [packets to send 23, broken 22] [22:23:05]ProducePacketName [22:23:05]name=ofd_packets/00022181 [22:23:05]OFD Sender: To server: pG, [22:23:05]CommunicateWithHost lk.salyk.kg:30040 [22:23:05]ConnectInit lk.salyk.kg [22:23:05]line 0 [22:23:05]written 0, free lines is 4095 [22:23:06]Connected sock=6 [22:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 1E 01 00 00 BD B6 16 01 7F C4 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 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 CB 98 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A5 56 00 00 35 04 06 00 AB 96 CD 0D 6F 4C E6 E8 C4 8F D0 35 A9 C5 [22:23:06]Write to MH i2c: 01 00 00 44 17 5B [22:23:06]Write i2c OK [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: 01 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: 01 07 00 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: 01 07 00 44 17 00 00 00 00 00 19 0D 88 [22:23:06]RasterBufferAndPrint [22:23:06]line [22:23:06]line [22:23:06]line [22:23:06]line [22:23:06]line [22:23:06]written 0, free lines is 3359 [22:23:06]MH_Cut [22:23:06]Write to MH i2c: D1 01 00 4B 17 01 34 [22:23:06]Write i2c OK [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: D1 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: D1 01 00 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: D1 01 00 4B 17 00 33 [22:23:06]Write to MH i2c: 01 00 00 4C 17 63 [22:23:06]Write i2c OK [22:23:06]MH_I2C_Read... [22:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 EA 1D 47 00 E5 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A5 56 00 00 F4 03 04 00 F5 42 F0 66 B6 04 01 00 00 B0 A9 75 DB F9 A5 79 7E [22:23:06]CommunicateWithHost err = 0 [22:23:06]CheckOFDResponse [22:23:06]1017 (14) - 77093643461234 [22:23:06]1041 (16) - 0000000000959358 [22:23:06]1040 (4) - 22181 [22:23:06]1012 (4) - 22.09.2024 16:16 [22:23:06]1206 (1) - 0 [22:23:06]OFD Sender: Remove packet 22181 [22:23:06]ProducePacketName [22:23:06]name=ofd_packets/00022181 [22:23:06]NVStorageDeleteData [22:23:06]OFD Sender: No OFD packet to send [22:23:06]*** Cut start [22:23:06]*** Partial cut [22:23:06]*** CUTSNS_PIN = 1 [22:23:07]*** CUTSNS_PIN = 0 [22:23:07]*** Brake cut motor [22:23:07]Read from MH i2c: 01 [22:23:07]MH_I2C_Read... [22:23:07]*** Stop cut motor [22:23:07]*** Cut end [22:23:07]Read from MH i2c: 01 07 00 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 FF 0F 78 [22:23:07]process_action close_receipt done [22:23:07]requested_data is exist [22:23:07]produce_requested_data [22:23:07]requested_item fm.sn is exist - process it [22:23:07]wFMCommunicate request_size=4 [22:23:07]MH_SAM_APDU [22:23:07]CAPDU: 80 11 00 00 [22:23:07]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [22:23:07]Write i2c OK [22:23:07]MH_I2C_Read... [22:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:07]Read from MH i2c: E2 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: E2 17 00 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 38 [22:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [22:23:07]wFMCommunicate OK [22:23:07]requested_item fd.num is exist - process it [22:23:07]SAM_PROTO_GetFieldsCounters [22:23:07]wFMCommunicate request_size=4 [22:23:07]MH_SAM_APDU [22:23:07]CAPDU: 80 13 00 00 [22:23:07]Write to MH i2c: E2 08 00 4E 17 80 13 00 00 00 00 00 00 E1 [22:23:07]Write i2c OK [22:23:07]MH_I2C_Read... [22:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:07]Read from MH i2c: E2 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: E2 62 00 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: E2 62 00 4E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A5 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A5 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:07]wFMCommunicate OK [22:23:07]SAM_PROTO_GetFieldsCounters done [22:23:07]requested_item shift.num is exist - process it [22:23:07]requested_item shift.opened is exist - process it [22:23:07]req_shift_opened [22:23:07]FM_GetShiftState [22:23:07]SAM_PROTO_GetShiftState [22:23:07]wFMCommunicate request_size=4 [22:23:07]MH_SAM_APDU [22:23:07]CAPDU: 80 13 01 00 [22:23:07]Write to MH i2c: E2 08 00 4F 17 80 13 01 00 00 00 00 00 E3 [22:23:07]Write i2c OK [22:23:07]MH_I2C_Read... [22:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:07]Read from MH i2c: E2 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: E2 0E 00 [22:23:07]MH_I2C_Read... [22:23:07]Read from MH i2c: E2 0E 00 4F 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 5E [22:23:07]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [22:23:07]wFMCommunicate OK [22:23:07]SAM_PROTO_GetShiftState done [22:23:07]FM_GetShiftState done [22:23:07]req_shift_opened done [22:23:07]requested_item shift.open_date is exist - process it [22:23:07]req_shift_open_date [22:23:07]req_shift_open_date done [22:23:07]produce_requested_data done [22:23:07]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22181,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [22:23:07]process_action_free close_receipt [22:23:07]json_value_free [22:23:07]json_value_free done [22:23:07]process_json_proto returns [22:23:07]Send response to host [22:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22181,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [22:23:07]free response buf [22:23:07]execute_script done [22:23:07]execute_script returns [22:23:07]free content buf [22:23:07]Sock 9.Close socket [22:23:07]Sock 9.Thread stoped [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]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:55]accept exits with 7 [22:30:55]New connection [22:30:55]New thread 3067182436 created [22:30:55]Thread 3067039076 joined [22:30:55]Waiting for new connection... [22:30:55] Sock 7.Parse request [22:30:55]Sock 7.Check first char [22:30:55]Sock 7.First char is OK [22:30:55]request: POST /json_proto HTTP/1.0 [22:30:55]Method: POST [22:30:55]URL: /json_proto [22:30:55]Method is POST - this is cgi request [22:30:55]url: /json_proto [22:30:55]query_string will be loaded in cgi processing [22:30:55]execute_cgi json_proto POST (null) [22:30:55]execute_cgi path=json_proto method=POST [22:30:55]POST find Content-Length [22:30:55]Host: 172.17.43.4:8080 [22:30:55]Content-Length: 620 [22:30:55]Content-Type: application/json [22:30:55] [22:30:55]POST finish read [22:30:55]Found Content-Length = 620 [22:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51448", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:55]execute_script... [22:30: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)51448", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:55]POST & json_proto [22:30:55]process_json_proto [22:30:55]json parsed OK: [22:30:55]protocol is kg_v1.0 [22:30:55]action value=close_receipt [22:30:55]process_action close_receipt [22:30:55]cmd_close_receipt [22:30:55]MH_GetDate [22:30:55]Write to MH i2c: F0 00 00 50 17 56 [22:30:55]Write i2c OK [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: F0 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: F0 09 00 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: F0 09 00 50 17 00 A3 9A F0 66 02 BF CF 66 E8 [22:30:55]GetLastDocTimeStamp 1727043787 [22:30:55]current date 1727044259 [22:30:55]FM_GetShiftState [22:30:55]SAM_PROTO_GetShiftState [22:30:55]wFMCommunicate request_size=4 [22:30:55]MH_SAM_APDU [22:30:55]CAPDU: 80 13 01 00 [22:30:55]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [22:30:55]Write i2c OK [22:30:55]MH_I2C_Read... [22:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:55]Read from MH i2c: E2 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: E2 0E 00 [22:30:55]MH_I2C_Read... [22:30:55]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 60 [22:30:55]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [22:30:55]wFMCommunicate OK [22:30:55]SAM_PROTO_GetShiftState done [22:30:55]FM_GetShiftState done [22:30:55]opened in 1726964408 [22:30:55]opened+sec_in_day 1727050808 [22:30:55]quantity*price = 14400 [22:30:55]sum+1 = 14401 [22:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 97 22.09.2024 22:30 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22182 ФПД: 39449543288420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223059&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22182&fm=39449543288420&tin=02508201610067®Number=0000000000146243&sum=14400 0 [22:30:57]StoreToDocumentArchive [22:30:57]shift 228 fd 22182 [22:30:57]save to /storage/0228/doc_00022182 [22:30:57]save last doc name /storage/0228/doc_00022182 to /storage/kkm_last_doc_name [22:30:57]save OK [22:30:57]Clear old archive folders... [22:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:30:57]tlvbuf is B6F909D0 [22:30:57]SAM_PROTO_ClearQueue [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 09 00 00 [22:30:57]Write to MH i2c: E2 08 00 5E 17 80 09 00 00 00 00 00 00 E7 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [22:30:57]RAPDU: 90 00 [22:30:57]wFMCommunicate OK [22:30:57]SAM_PROTO_ClearQueue done [22:30:57]KKMCreateOFDPacket [22:30:57]OFDProtocolAddRootSTLVToBuf [22:30:57]FM_MakeSignedData [22:30:57]FM_MakeSignedData [22:30:57]SAM_PROTO_SignData [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 0D 01 02 [22:30:57]Write to MH i2c: E2 08 00 5F 17 80 0D 01 02 00 00 00 00 EF [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [22:30:57]RAPDU: 90 00 [22:30:57]wFMCommunicate OK [22:30:57]wFMCommunicate request_size=255 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A3 9A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [22:30:57]Write to MH i2c: E2 02 01 60 17 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A3 9A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 2C [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]OFD Sender: No OFD packet to send [22:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [22:30:57]RAPDU: 90 00 [22:30:57]wFMCommunicate OK [22:30:57]wFMCommunicate request_size=32 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 A6 56 00 00 35 04 06 00 23 E1 10 03 A6 64 [22:30:57]Write to MH i2c: E2 23 00 61 17 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 A6 56 00 00 35 04 06 00 23 E1 10 03 A6 64 00 00 73 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [22:30:57]RAPDU: 90 00 [22:30:57]wFMCommunicate OK [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 0D 03 02 [22:30:57]Write to MH i2c: E2 08 00 62 17 80 0D 03 02 00 00 00 00 F4 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 0B 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 0B 00 62 17 00 60 21 01 22 2F 1F 63 43 90 00 8D [22:30:57]RAPDU: 60 21 01 22 2F 1F 63 43 90 00 [22:30:57]wFMCommunicate OK [22:30:57]SAM_PROTO_SignData done [22:30:57]FM_MakeSignedData done [22:30:57]CreateOFDProtocolMessage [22:30:57]wFMCommunicate request_size=4 [22:30:57]MH_SAM_APDU [22:30:57]CAPDU: 80 11 00 00 [22:30:57]Write to MH i2c: E2 08 00 63 17 80 11 00 00 00 00 00 00 F4 [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:57]Read from MH i2c: E2 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 17 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: E2 17 00 63 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 4E [22:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [22:30:57]wFMCommunicate OK [22:30:57]CreateOFDProtocolMessage done [22:30:57]OFDSenderStorePacket 22182 [22:30:57]StoreOFDPacket docnum=22182 [22:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 21 E4 1D 01 C9 F9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A3 9A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A6 56 00 00 35 04 06 00 23 E1 10 03 A6 64 60 21 01 22 2F 1F 63 43 [22:30:57]CheckFolder [22:30:57]dirname=/storage/ofd_packets [22:30:57]CheckFolder done [22:30:57]ProducePacketName [22:30:57]name=ofd_packets/00022182 [22:30:57]NVStorageSaveData ofd_packets/00022182 [22:30:57]File name is /storage/ofd_packets/00022182 [22:30:57]Write 323 bytes [22:30:57]NVStorageSaveData done [22:30:57]OFDSenderStorePacket done [22:30:57]KKMCreateOFDPacket done [22:30:57]NVStorageSaveData kkm_last_timestamp [22:30:57]File name is /storage/kkm_last_timestamp [22:30:57]Write 4 bytes [22:30:57]NVStorageSaveData done [22:30:57]ExternCall_PrintAddStr [22:30:57]wPrintStart [22:30:57]Write to MH i2c: 01 00 00 64 17 7B [22:30:57]Write i2c OK [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: 01 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: 01 07 00 [22:30:57]MH_I2C_Read... [22:30:57]Read from MH i2c: 01 07 00 64 17 00 00 00 00 00 FF 0F 90 [22:30:57]RasterBufferAndPrint [22:30:57]line Счет N : (3)51448 [22:30:57]line ИНН: 02508201610067 [22:30:57]line Контрольно-Кассовый Чек [22:30:57]line ПРОДАЖА [22:30:57]line Товар: 48743570 [22:30:57]line Сигареты Winston XStyle Blue [22:30:57]line 1.000 * 144.00 [22:30:57]line = 144.00 [22:30:57]line НДС 12% НСП 1% [22:30:57]line > о реализуемом товаре [22:30:57]line ИТОГО: 144.00 [22:30:57]line НСП 1% : 1.27 [22:30:57]line НДС 12% : 15.29 [22:30:57]line Наличными: 144.00 [22:30:57]line Безнал.: 0.00 [22:30:57]line Место: АЗС № 88 "Партнер Нефть" [22:30:57]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [22:30:57]line СНО: Общий режим [22:30:57]line Чек 97 22.09.2024 22:30 [22:30:57]line Смена: 228 ФФД: 1.0 [22:30:57]line ЗНМ: 0300000061 [22:30:57]line РНМ: 0000000000146243 [22:30:57]line Версия ККМ: v1.0 [22:30:57]line ФМ: 0000000000959358 [22:30:57]line ФД: 22182 [22:30:57]line ФПД: 39449543288420 [22:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T223059&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22182&fm=39449543288420&tin=02508201610067®Number=0000000000146243&sum=14400 [22:30:57]line 0 [22:30:57]OFD Sender: Processing packet 22182 [packets to send 23, broken 22] [22:30:57]ProducePacketName [22:30:57]name=ofd_packets/00022182 [22:30:57]OFD Sender: To server: pG, [22:30:57]CommunicateWithHost lk.salyk.kg:30040 [22:30:57]ConnectInit lk.salyk.kg [22:30:57]written 0, free lines is 4095 [22:30:58]Connected sock=10 [22:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 21 E4 1D 01 C9 F9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A3 9A F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A6 56 00 00 35 04 06 00 23 E1 10 03 A6 64 60 21 01 22 2F 1F 63 43 [22:30:58]Write to MH i2c: 01 00 00 8C 17 A3 [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: 01 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: 01 07 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: 01 07 00 8C 17 00 00 00 00 00 1B 0D D2 [22:30:58]RasterBufferAndPrint [22:30:58]line [22:30:58]line [22:30:58]line [22:30:58]line [22:30:58]line [22:30:58]written 0, free lines is 3361 [22:30:58]MH_Cut [22:30:58]Write to MH i2c: D1 01 00 93 17 01 7C [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: D1 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: D1 01 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: D1 01 00 93 17 00 7B [22:30:58]Write to MH i2c: 01 00 00 94 17 AB [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 0A 45 47 00 91 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A6 56 00 00 F4 03 04 00 CD 44 F0 66 B6 04 01 00 00 FB B7 50 6D 1A 2F 68 80 [22:30:58]CommunicateWithHost err = 0 [22:30:58]CheckOFDResponse [22:30:58]1017 (14) - 77093643461234 [22:30:58]1041 (16) - 0000000000959358 [22:30:58]1040 (4) - 22182 [22:30:58]1012 (4) - 22.09.2024 16:24 [22:30:58]1206 (1) - 0 [22:30:58]OFD Sender: Remove packet 22182 [22:30:58]ProducePacketName [22:30:58]name=ofd_packets/00022182 [22:30:58]NVStorageDeleteData [22:30:58]OFD Sender: No OFD packet to send [22:30:58]*** Cut start [22:30:58]*** Partial cut [22:30:58]*** CUTSNS_PIN = 1 [22:30:59]*** CUTSNS_PIN = 0 [22:30:59]*** Brake cut motor [22:30:59]Read from MH i2c: 01 [22:30:59]MH_I2C_Read... [22:30:59]*** Stop cut motor [22:30:59]*** Cut end [22:30:59]Read from MH i2c: 01 07 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 07 00 94 17 00 00 00 00 00 FF 0F C0 [22:30:59]process_action close_receipt done [22:30:59]requested_data is exist [22:30:59]produce_requested_data [22:30:59]requested_item fm.sn is exist - process it [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 11 00 00 [22:30:59]Write to MH i2c: E2 08 00 95 17 80 11 00 00 00 00 00 00 26 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:59]Read from MH i2c: E2 17 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 17 00 95 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 80 [22:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [22:30:59]wFMCommunicate OK [22:30:59]requested_item fd.num is exist - process it [22:30:59]SAM_PROTO_GetFieldsCounters [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 13 00 00 [22:30:59]Write to MH i2c: E2 08 00 96 17 80 13 00 00 00 00 00 00 29 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 62 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 62 00 96 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A6 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [22:30:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A6 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:59]wFMCommunicate OK [22:30:59]SAM_PROTO_GetFieldsCounters done [22:30:59]requested_item shift.num is exist - process it [22:30:59]requested_item shift.opened is exist - process it [22:30:59]req_shift_opened [22:30:59]FM_GetShiftState [22:30:59]SAM_PROTO_GetShiftState [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 13 01 00 [22:30:59]Write to MH i2c: E2 08 00 97 17 80 13 01 00 00 00 00 00 2B [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 0E 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 0E 00 97 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A6 [22:30:59]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [22:30:59]wFMCommunicate OK [22:30:59]SAM_PROTO_GetShiftState done [22:30:59]FM_GetShiftState done [22:30:59]req_shift_opened done [22:30:59]requested_item shift.open_date is exist - process it [22:30:59]req_shift_open_date [22:30:59]req_shift_open_date done [22:30:59]produce_requested_data done [22:30:59]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22182,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [22:30:59]process_action_free close_receipt [22:30:59]json_value_free [22:30:59]json_value_free done [22:30:59]process_json_proto returns [22:30:59]Send response to host [22:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22182,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [22:30:59]free response buf [22:30:59]execute_script done [22:30:59]execute_script returns [22:30:59]free content buf [22:30:59]Sock 7.Close socket [22:30:59]Sock 7.Thread stoped [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [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]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:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]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:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:33]accept exits with 9 [23:07:33]New connection [23:07:33]New thread 3067039076 created [23:07:33]Thread 3067182436 joined [23:07:33]Waiting for new connection... [23:07:33] Sock 9.Parse request [23:07:33]Sock 9.Check first char [23:07:33]Sock 9.First char is OK [23:07:33]request: POST /json_proto HTTP/1.0 [23:07:33]Method: POST [23:07:33]URL: /json_proto [23:07:33]Method is POST - this is cgi request [23:07:33]url: /json_proto [23:07:33]query_string will be loaded in cgi processing [23:07:33]execute_cgi json_proto POST (null) [23:07:33]execute_cgi path=json_proto method=POST [23:07:33]POST find Content-Length [23:07:33]Host: 172.17.43.4:8080 [23:07:33]Content-Length: 643 [23:07:33]Content-Type: application/json [23:07:33] [23:07:33]POST finish read [23:07:33]Found Content-Length = 643 [23:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51449", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:33]execute_script... [23:07: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)51449", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:33]POST & json_proto [23:07:33]process_json_proto [23:07:33]json parsed OK: [23:07:33]protocol is kg_v1.0 [23:07:33]action value=close_receipt [23:07:33]process_action close_receipt [23:07:33]cmd_close_receipt [23:07:33]MH_GetDate [23:07:33]Write to MH i2c: F0 00 00 98 17 9E [23:07:33]Write i2c OK [23:07:33]MH_I2C_Read... [23:07:33]Read from MH i2c: F0 [23:07:33]MH_I2C_Read... [23:07:33]Read from MH i2c: F0 09 00 [23:07:33]MH_I2C_Read... [23:07:33]Read from MH i2c: F0 09 00 98 17 00 39 A3 F0 66 02 BF CF 66 CF [23:07:33]GetLastDocTimeStamp 1727044259 [23:07:33]current date 1727046457 [23:07:33]FM_GetShiftState [23:07:33]SAM_PROTO_GetShiftState [23:07:33]wFMCommunicate request_size=4 [23:07:33]MH_SAM_APDU [23:07:33]CAPDU: 80 13 01 00 [23:07:33]Write to MH i2c: E2 08 00 99 17 80 13 01 00 00 00 00 00 2D [23:07:33]Write i2c OK [23:07:33]MH_I2C_Read... [23:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:33]Read from MH i2c: E2 [23:07:33]MH_I2C_Read... [23:07:33]Read from MH i2c: E2 0E 00 [23:07:33]MH_I2C_Read... [23:07:33]Read from MH i2c: E2 0E 00 99 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 A8 [23:07:33]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:07:33]wFMCommunicate OK [23:07:33]SAM_PROTO_GetShiftState done [23:07:33]FM_GetShiftState done [23:07:33]opened in 1726964408 [23:07:33]opened+sec_in_day 1727050808 [23:07:33]quantity*price = 11500 [23:07:33]sum+1 = 11501 [23:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 98 22.09.2024 23:07 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22183 ФПД: 125998288979720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230737&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22183&fm=125998288979720&tin=02508201610067®Number=0000000000146243&sum=11500 0 [23:07:34]StoreToDocumentArchive [23:07:34]shift 228 fd 22183 [23:07:34]save to /storage/0228/doc_00022183 [23:07:34]save last doc name /storage/0228/doc_00022183 to /storage/kkm_last_doc_name [23:07:34]save OK [23:07:34]Clear old archive folders... [23:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=280 [23:07:34]tlvbuf is 002762D0 [23:07:34]SAM_PROTO_ClearQueue [23:07:34]wFMCommunicate request_size=4 [23:07:34]MH_SAM_APDU [23:07:34]CAPDU: 80 09 00 00 [23:07:34]Write to MH i2c: E2 08 00 A6 17 80 09 00 00 00 00 00 00 2F [23:07:34]Write i2c OK [23:07:34]MH_I2C_Read... [23:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:34]Read from MH i2c: E2 [23:07:34]MH_I2C_Read... [23:07:34]Read from MH i2c: E2 03 00 [23:07:34]MH_I2C_Read... [23:07:34]Read from MH i2c: E2 03 00 A6 17 00 90 00 31 [23:07:34]RAPDU: 90 00 [23:07:34]wFMCommunicate OK [23:07:34]SAM_PROTO_ClearQueue done [23:07:34]KKMCreateOFDPacket [23:07:34]OFDProtocolAddRootSTLVToBuf [23:07:34]FM_MakeSignedData [23:07:34]FM_MakeSignedData [23:07:34]SAM_PROTO_SignData [23:07:34]wFMCommunicate request_size=4 [23:07:34]MH_SAM_APDU [23:07:34]CAPDU: 80 0D 01 02 [23:07:34]Write to MH i2c: E2 08 00 A7 17 80 0D 01 02 00 00 00 00 37 [23:07:34]Write i2c OK [23:07:34]MH_I2C_Read... [23:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:35]Read from MH i2c: E2 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 03 00 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 03 00 A7 17 00 90 00 32 [23:07:35]RAPDU: 90 00 [23:07:35]wFMCommunicate OK [23:07:35]wFMCommunicate request_size=255 [23:07:35]MH_SAM_APDU [23:07:35]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 39 A3 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 [23:07:35]Write to MH i2c: E2 02 01 A8 17 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 39 A3 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 00 00 EA [23:07:35]Write i2c OK [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 [23:07:35]MH_I2C_Read... [23:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:35]Read from MH i2c: E2 03 00 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 03 00 A8 17 00 90 00 33 [23:07:35]RAPDU: 90 00 [23:07:35]wFMCommunicate OK [23:07:35]wFMCommunicate request_size=39 [23:07:35]MH_SAM_APDU [23:07:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A7 56 00 00 35 04 06 00 72 98 43 41 C7 08 [23:07:35]Write to MH i2c: E2 2A 00 A9 17 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A7 56 00 00 35 04 06 00 72 98 43 41 C7 08 00 00 56 [23:07:35]Write i2c OK [23:07:35]MH_I2C_Read... [23:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:35]Read from MH i2c: E2 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 03 00 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [23:07:35]RAPDU: 90 00 [23:07:35]wFMCommunicate OK [23:07:35]wFMCommunicate request_size=4 [23:07:35]MH_SAM_APDU [23:07:35]CAPDU: 80 0D 03 02 [23:07:35]Write to MH i2c: E2 08 00 AA 17 80 0D 03 02 00 00 00 00 3C [23:07:35]Write i2c OK [23:07:35]MH_I2C_Read... [23:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:35]Read from MH i2c: E2 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 0B 00 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 0B 00 AA 17 00 6A 0E C0 93 90 C6 61 AE 90 00 6D [23:07:35]RAPDU: 6A 0E C0 93 90 C6 61 AE 90 00 [23:07:35]wFMCommunicate OK [23:07:35]SAM_PROTO_SignData done [23:07:35]FM_MakeSignedData done [23:07:35]CreateOFDProtocolMessage [23:07:35]wFMCommunicate request_size=4 [23:07:35]MH_SAM_APDU [23:07:35]CAPDU: 80 11 00 00 [23:07:35]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [23:07:35]Write i2c OK [23:07:35]MH_I2C_Read... [23:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:35]Read from MH i2c: E2 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 17 00 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: E2 17 00 AB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 96 [23:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:07:35]wFMCommunicate OK [23:07:35]CreateOFDProtocolMessage done [23:07:35]OFDSenderStorePacket 22183 [23:07:35]StoreOFDPacket docnum=22183 [23:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 3C 81 24 01 74 DC 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 39 A3 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A7 56 00 00 35 04 06 00 72 98 43 41 C7 08 6A 0E C0 93 90 C6 61 AE [23:07:35]CheckFolder [23:07:35]dirname=/storage/ofd_packets [23:07:35]CheckFolder done [23:07:35]ProducePacketName [23:07:35]name=ofd_packets/00022183 [23:07:35]NVStorageSaveData ofd_packets/00022183 [23:07:35]File name is /storage/ofd_packets/00022183 [23:07:35]Write 330 bytes [23:07:35]NVStorageSaveData done [23:07:35]OFDSenderStorePacket done [23:07:35]KKMCreateOFDPacket done [23:07:35]NVStorageSaveData kkm_last_timestamp [23:07:35]File name is /storage/kkm_last_timestamp [23:07:35]Write 4 bytes [23:07:35]NVStorageSaveData done [23:07:35]ExternCall_PrintAddStr [23:07:35]wPrintStart [23:07:35]Write to MH i2c: 01 00 00 AC 17 C3 [23:07:35]Write i2c OK [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: 01 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: 01 07 00 [23:07:35]MH_I2C_Read... [23:07:35]Read from MH i2c: 01 07 00 AC 17 00 00 00 00 00 FF 0F D8 [23:07:35]RasterBufferAndPrint [23:07:35]line Счет N : (3)51449 [23:07:35]line ИНН: 02508201610067 [23:07:35]line Контрольно-Кассовый Чек [23:07:35]line ПРОДАЖА [23:07:35]line Товар: 2000036210013 [23:07:35]line Кофе Капучино (GABB TRADE) [23:07:35]line 1.000 * 115.00 [23:07:35]line = 115.00 [23:07:35]line НДС 12% НСП 1% [23:07:35]line > о реализуемом товаре [23:07:35]line ИТОГО: 115.00 [23:07:35]line НСП 1% : 1.02 [23:07:35]line НДС 12% : 12.21 [23:07:35]line Наличными: 115.00 [23:07:35]line Безнал.: 0.00 [23:07:35]line Место: АЗС № 88 "Партнер Нефть" [23:07:35]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [23:07:35]line СНО: Общий режим [23:07:35]line Чек 98 22.09.2024 23:07 [23:07:35]line Смена: 228 ФФД: 1.0 [23:07:35]line ЗНМ: 0300000061 [23:07:35]line РНМ: 0000000000146243 [23:07:35]line Версия ККМ: v1.0 [23:07:35]line ФМ: 0000000000959358 [23:07:35]line ФД: 22183 [23:07:35]line ФПД: 125998288979720 [23:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T230737&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22183&fm=125998288979720&tin=02508201610067®Number=0000000000146243&sum=11500 [23:07:35]line 0 [23:07:35]OFD Sender: Processing packet 22183 [packets to send 23, broken 22] [23:07:35]ProducePacketName [23:07:35]name=ofd_packets/00022183 [23:07:35]OFD Sender: To server: pG, [23:07:35]CommunicateWithHost lk.salyk.kg:30040 [23:07:35]ConnectInit lk.salyk.kg [23:07:35]written 0, free lines is 4095 [23:07:36]Connected sock=10 [23:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 2C 01 00 00 3C 81 24 01 74 DC 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 39 A3 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A7 56 00 00 35 04 06 00 72 98 43 41 C7 08 6A 0E C0 93 90 C6 61 AE [23:07:36]Write to MH i2c: 01 00 00 D4 17 EB [23:07:36]Write i2c OK [23:07:36]MH_I2C_Read... [23:07:36]Read from MH i2c: 01 [23:07:36]MH_I2C_Read... [23:07:36]Read from MH i2c: 01 07 00 [23:07:36]MH_I2C_Read... [23:07:36]Read from MH i2c: 01 07 00 D4 17 00 00 00 00 00 24 0D 23 [23:07:36]RasterBufferAndPrint [23:07:36]line [23:07:36]line [23:07:36]line [23:07:36]line [23:07:36]line [23:07:36]written 0, free lines is 3370 [23:07:36]MH_Cut [23:07:36]Write to MH i2c: D1 01 00 DB 17 01 C4 [23:07:36]Write i2c OK [23:07:36]MH_I2C_Read... [23:07:36]Read from MH i2c: D1 [23:07:36]MH_I2C_Read... [23:07:36]Read from MH i2c: D1 01 00 [23:07:36]MH_I2C_Read... [23:07:36]Read from MH i2c: D1 01 00 DB 17 00 C3 [23:07:36]Write to MH i2c: 01 00 00 DC 17 F3 [23:07:36]Write i2c OK [23:07:36]MH_I2C_Read... [23:07:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 97 9F 47 00 BF 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A7 56 00 00 F4 03 04 00 63 4D F0 66 B6 04 01 00 00 4E 31 3F 37 9A 80 7C 96 [23:07:36]CommunicateWithHost err = 0 [23:07:36]CheckOFDResponse [23:07:36]1017 (14) - 77093643461234 [23:07:36]1041 (16) - 0000000000959358 [23:07:36]1040 (4) - 22183 [23:07:36]1012 (4) - 22.09.2024 17:01 [23:07:36]1206 (1) - 0 [23:07:36]OFD Sender: Remove packet 22183 [23:07:36]ProducePacketName [23:07:36]name=ofd_packets/00022183 [23:07:36]NVStorageDeleteData [23:07:36]OFD Sender: No OFD packet to send [23:07:36]*** Cut start [23:07:36]*** Partial cut [23:07:36]*** CUTSNS_PIN = 1 [23:07:36]*** CUTSNS_PIN = 0 [23:07:37]*** Brake cut motor [23:07:37]Read from MH i2c: 01 [23:07:37]MH_I2C_Read... [23:07:37]*** Stop cut motor [23:07:37]*** Cut end [23:07:37]Read from MH i2c: 01 07 00 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: 01 07 00 DC 17 00 00 00 00 00 FF 0F 08 [23:07:37]process_action close_receipt done [23:07:37]requested_data is exist [23:07:37]produce_requested_data [23:07:37]requested_item fm.sn is exist - process it [23:07:37]wFMCommunicate request_size=4 [23:07:37]MH_SAM_APDU [23:07:37]CAPDU: 80 11 00 00 [23:07:37]Write to MH i2c: E2 08 00 DD 17 80 11 00 00 00 00 00 00 6E [23:07:37]Write i2c OK [23:07:37]MH_I2C_Read... [23:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:37]Read from MH i2c: E2 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: E2 17 00 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: E2 17 00 DD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C8 [23:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:07:37]wFMCommunicate OK [23:07:37]requested_item fd.num is exist - process it [23:07:37]SAM_PROTO_GetFieldsCounters [23:07:37]wFMCommunicate request_size=4 [23:07:37]MH_SAM_APDU [23:07:37]CAPDU: 80 13 00 00 [23:07:37]Write to MH i2c: E2 08 00 DE 17 80 13 00 00 00 00 00 00 71 [23:07:37]Write i2c OK [23:07:37]MH_I2C_Read... [23:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:37]Read from MH i2c: E2 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: E2 62 00 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: E2 62 00 DE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A7 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [23:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A7 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:37]wFMCommunicate OK [23:07:37]SAM_PROTO_GetFieldsCounters done [23:07:37]requested_item shift.num is exist - process it [23:07:37]requested_item shift.opened is exist - process it [23:07:37]req_shift_opened [23:07:37]FM_GetShiftState [23:07:37]SAM_PROTO_GetShiftState [23:07:37]wFMCommunicate request_size=4 [23:07:37]MH_SAM_APDU [23:07:37]CAPDU: 80 13 01 00 [23:07:37]Write to MH i2c: E2 08 00 DF 17 80 13 01 00 00 00 00 00 73 [23:07:37]Write i2c OK [23:07:37]MH_I2C_Read... [23:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:37]Read from MH i2c: E2 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: E2 0E 00 [23:07:37]MH_I2C_Read... [23:07:37]Read from MH i2c: E2 0E 00 DF 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 EE [23:07:37]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:07:37]wFMCommunicate OK [23:07:37]SAM_PROTO_GetShiftState done [23:07:37]FM_GetShiftState done [23:07:37]req_shift_opened done [23:07:37]requested_item shift.open_date is exist - process it [23:07:37]req_shift_open_date [23:07:37]req_shift_open_date done [23:07:37]produce_requested_data done [23:07:37]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22183,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [23:07:37]process_action_free close_receipt [23:07:37]json_value_free [23:07:37]json_value_free done [23:07:37]process_json_proto returns [23:07:37]Send response to host [23:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22183,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [23:07:37]free response buf [23:07:37]execute_script done [23:07:37]execute_script returns [23:07:37]free content buf [23:07:37]Sock 9.Close socket [23:07:37]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:51]accept exits with 7 [23:27:51]New connection [23:27:51]New thread 3067182436 created [23:27:51]Thread 3067039076 joined [23:27:51]Waiting for new connection... [23:27:51] Sock 7.Parse request [23:27:51]Sock 7.Check first char [23:27:51]Sock 7.First char is OK [23:27:51]request: POST /json_proto HTTP/1.0 [23:27:51]Method: POST [23:27:51]URL: /json_proto [23:27:51]Method is POST - this is cgi request [23:27:51]url: /json_proto [23:27:51]query_string will be loaded in cgi processing [23:27:51]execute_cgi json_proto POST (null) [23:27:51]execute_cgi path=json_proto method=POST [23:27:51]POST find Content-Length [23:27:51]Host: 172.17.43.4:8080 [23:27:51]Content-Length: 868 [23:27:51]Content-Type: application/json [23:27:51] [23:27:51]POST finish read [23:27:51]Found Content-Length = 868 [23:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51450", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:51]execute_script... [23:27: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)51450", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:51]POST & json_proto [23:27:51]process_json_proto [23:27:51]json parsed OK: [23:27:51]protocol is kg_v1.0 [23:27:51]action value=close_receipt [23:27:51]process_action close_receipt [23:27:51]cmd_close_receipt [23:27:51]MH_GetDate [23:27:51]Write to MH i2c: F0 00 00 E0 17 E6 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: F0 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: F0 09 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: F0 09 00 E0 17 00 FB A7 F0 66 02 BF CF 66 DD [23:27:51]GetLastDocTimeStamp 1727046457 [23:27:51]current date 1727047675 [23:27:51]FM_GetShiftState [23:27:51]SAM_PROTO_GetShiftState [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 01 00 [23:27:51]Write to MH i2c: E2 08 00 E1 17 80 13 01 00 00 00 00 00 75 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:52]Read from MH i2c: E2 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 0E 00 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 0E 00 E1 17 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 F0 [23:27:52]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:27:52]wFMCommunicate OK [23:27:52]SAM_PROTO_GetShiftState done [23:27:52]FM_GetShiftState done [23:27:52]opened in 1726964408 [23:27:52]opened+sec_in_day 1727050808 [23:27:52]quantity*price = 5000 [23:27:52]sum+1 = 5001 [23:27:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 99 22.09.2024 23:27 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22184 ФПД: 192339700052388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T232756&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22184&fm=192339700052388&tin=02508201610067®Number=0000000000146243&sum=20000 0 [23:27:53]StoreToDocumentArchive [23:27:53]shift 228 fd 22184 [23:27:53]save to /storage/0228/doc_00022184 [23:27:53]save last doc name /storage/0228/doc_00022184 to /storage/kkm_last_doc_name [23:27:53]save OK [23:27:53]Clear old archive folders... [23:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=373 [23:27:53]tlvbuf is 0025B180 [23:27:53]SAM_PROTO_ClearQueue [23:27:53]wFMCommunicate request_size=4 [23:27:53]MH_SAM_APDU [23:27:53]CAPDU: 80 09 00 00 [23:27:53]Write to MH i2c: E2 08 00 EE 17 80 09 00 00 00 00 00 00 77 [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:53]Read from MH i2c: E2 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [23:27:53]RAPDU: 90 00 [23:27:53]wFMCommunicate OK [23:27:53]SAM_PROTO_ClearQueue done [23:27:53]KKMCreateOFDPacket [23:27:53]OFDProtocolAddRootSTLVToBuf [23:27:53]FM_MakeSignedData [23:27:53]FM_MakeSignedData [23:27:53]SAM_PROTO_SignData [23:27:53]wFMCommunicate request_size=4 [23:27:53]MH_SAM_APDU [23:27:53]CAPDU: 80 0D 01 02 [23:27:53]Write to MH i2c: E2 08 00 EF 17 80 0D 01 02 00 00 00 00 7F [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:53]Read from MH i2c: E2 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [23:27:53]RAPDU: 90 00 [23:27:53]wFMCommunicate OK [23:27:53]wFMCommunicate request_size=255 [23:27:53]MH_SAM_APDU [23:27:53]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 [23:27:53]Write to MH i2c: E2 02 01 F0 17 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 00 00 E3 [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:53]Read from MH i2c: E2 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 F0 17 00 90 00 7B [23:27:53]RAPDU: 90 00 [23:27:53]wFMCommunicate OK [23:27:53]wFMCommunicate request_size=132 [23:27:53]MH_SAM_APDU [23:27:53]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC A7 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A8 56 00 00 35 04 06 00 AE EE 93 7F 71 A4 [23:27:53]Write to MH i2c: E2 87 00 F1 17 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC A7 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A8 56 00 00 35 04 06 00 AE EE 93 7F 71 A4 00 00 80 [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:53]Read from MH i2c: E2 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 03 00 F1 17 00 90 00 7C [23:27:53]RAPDU: 90 00 [23:27:53]wFMCommunicate OK [23:27:53]wFMCommunicate request_size=4 [23:27:53]MH_SAM_APDU [23:27:53]CAPDU: 80 0D 03 02 [23:27:53]Write to MH i2c: E2 08 00 F2 17 80 0D 03 02 00 00 00 00 84 [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:53]Read from MH i2c: E2 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 0B 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 0B 00 F2 17 00 1B 60 E5 4C CD 58 9F 75 90 00 6A [23:27:53]RAPDU: 1B 60 E5 4C CD 58 9F 75 90 00 [23:27:53]wFMCommunicate OK [23:27:53]SAM_PROTO_SignData done [23:27:53]FM_MakeSignedData done [23:27:53]CreateOFDProtocolMessage [23:27:53]wFMCommunicate request_size=4 [23:27:53]MH_SAM_APDU [23:27:53]CAPDU: 80 11 00 00 [23:27:53]Write to MH i2c: E2 08 00 F3 17 80 11 00 00 00 00 00 00 84 [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:53]Read from MH i2c: E2 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 17 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: E2 17 00 F3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 DE [23:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:27:53]wFMCommunicate OK [23:27:53]CreateOFDProtocolMessage done [23:27:53]OFDSenderStorePacket 22184 [23:27:53]StoreOFDPacket docnum=22184 [23:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 89 01 00 00 F5 95 81 01 6D E1 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC A7 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A8 56 00 00 35 04 06 00 AE EE 93 7F 71 A4 1B 60 E5 4C CD 58 9F 75 [23:27:53]CheckFolder [23:27:53]dirname=/storage/ofd_packets [23:27:53]CheckFolder done [23:27:53]ProducePacketName [23:27:53]name=ofd_packets/00022184 [23:27:53]NVStorageSaveData ofd_packets/00022184 [23:27:53]File name is /storage/ofd_packets/00022184 [23:27:53]Write 423 bytes [23:27:53]NVStorageSaveData done [23:27:53]OFDSenderStorePacket done [23:27:53]KKMCreateOFDPacket done [23:27:53]NVStorageSaveData kkm_last_timestamp [23:27:53]File name is /storage/kkm_last_timestamp [23:27:53]Write 4 bytes [23:27:53]NVStorageSaveData done [23:27:53]ExternCall_PrintAddStr [23:27:53]wPrintStart [23:27:53]Write to MH i2c: 01 00 00 F4 17 0B [23:27:53]Write i2c OK [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: 01 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: 01 07 00 [23:27:53]MH_I2C_Read... [23:27:53]Read from MH i2c: 01 07 00 F4 17 00 00 00 00 00 FF 0F 20 [23:27:53]RasterBufferAndPrint [23:27:53]line Счет N : (3)51450 [23:27:53]line ИНН: 02508201610067 [23:27:53]line Контрольно-Кассовый Чек [23:27:53]line ПРОДАЖА [23:27:53]line Товар: 4700000160358 [23:27:54]line Вода Легенда 1л [23:27:54]line 1.000 * 50.00 [23:27:54]line = 50.00 [23:27:54]line НДС 12% НСП 1% [23:27:54]line > о реализуемом товаре [23:27:54]line Товар: 4640030091645 [23:27:54]line Сигареты ESSE Exchange M [23:27:54]line 1.000 * 150.00 [23:27:54]line = 150.00 [23:27:54]line НДС 12% НСП 1% [23:27:54]line > о реализуемом товаре [23:27:54]line ИТОГО: 200.00 [23:27:54]line НСП 1% : 1.77 [23:27:54]line НДС 12% : 21.24 [23:27:54]line Наличными: 200.00 [23:27:54]line Безнал.: 0.00 [23:27:54]line Место: АЗС № 88 "Партнер Нефть" [23:27:54]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [23:27:54]line СНО: Общий режим [23:27:54]line Чек 99 22.09.2024 23:27 [23:27:54]line Смена: 228 ФФД: 1.0 [23:27:54]line ЗНМ: 0300000061 [23:27:54]line РНМ: 0000000000146243 [23:27:54]line Версия ККМ: v1.0 [23:27:54]line ФМ: 0000000000959358 [23:27:54]line ФД: 22184 [23:27:54]line ФПД: 192339700052388 [23:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T232756&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22184&fm=192339700052388&tin=02508201610067®Number=0000000000146243&sum=20000 [23:27:54]line 0 [23:27:54]OFD Sender: Processing packet 22184 [packets to send 23, broken 22] [23:27:54]ProducePacketName [23:27:54]name=ofd_packets/00022184 [23:27:54]OFD Sender: To server: pG, [23:27:54]CommunicateWithHost lk.salyk.kg:30040 [23:27:54]ConnectInit lk.salyk.kg [23:27:54]written 0, free lines is 4095 [23:27:54]Connected sock=11 [23:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 89 01 00 00 F5 95 81 01 6D E1 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FC A7 F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A8 56 00 00 35 04 06 00 AE EE 93 7F 71 A4 1B 60 E5 4C CD 58 9F 75 [23:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 15 2E 47 00 2B 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 39 35 39 33 35 38 10 04 04 00 A8 56 00 00 F4 03 04 00 26 52 F0 66 B6 04 01 00 00 86 6B 86 51 91 1F 47 8F [23:27:54]CommunicateWithHost err = 0 [23:27:54]CheckOFDResponse [23:27:54]1017 (14) - 77093643461234 [23:27:54]1041 (16) - 0000000000959358 [23:27:54]1040 (4) - 22184 [23:27:54]1012 (4) - 22.09.2024 17:21 [23:27:54]1206 (1) - 0 [23:27:54]OFD Sender: Remove packet 22184 [23:27:54]ProducePacketName [23:27:54]name=ofd_packets/00022184 [23:27:54]NVStorageDeleteData [23:27:54]Write to MH i2c: 01 00 00 22 18 3A [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: 01 07 00 22 18 00 00 00 00 00 EE 0C 3B [23:27:54]RasterBufferAndPrint [23:27:54]line [23:27:54]line [23:27:54]line [23:27:54]line [23:27:54]line [23:27:54]written 0, free lines is 3316 [23:27:54]MH_Cut [23:27:54]Write to MH i2c: D1 01 00 29 18 01 13 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: D1 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: D1 01 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: D1 01 00 29 18 00 12 [23:27:54]Write to MH i2c: 01 00 00 2A 18 42 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:55]OFD Sender: No OFD packet to send [23:27:55]*** Cut start [23:27:55]*** Partial cut [23:27:55]*** CUTSNS_PIN = 1 [23:27:55]*** CUTSNS_PIN = 0 [23:27:55]*** Brake cut motor [23:27:55]Read from MH i2c: 01 [23:27:55]MH_I2C_Read... [23:27:55]*** Stop cut motor [23:27:55]*** Cut end [23:27:55]Read from MH i2c: 01 07 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: 01 07 00 2A 18 00 00 00 00 00 FF 0F 57 [23:27:55]process_action close_receipt done [23:27:55]requested_data is exist [23:27:55]produce_requested_data [23:27:55]requested_item fm.sn is exist - process it [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 11 00 00 [23:27:55]Write to MH i2c: E2 08 00 2B 18 80 11 00 00 00 00 00 00 BD [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 17 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 17 00 2B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 17 [23:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:27:55]wFMCommunicate OK [23:27:55]requested_item fd.num is exist - process it [23:27:55]SAM_PROTO_GetFieldsCounters [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 13 00 00 [23:27:55]Write to MH i2c: E2 08 00 2C 18 80 13 00 00 00 00 00 00 C0 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:56]Read from MH i2c: E2 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 62 00 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 62 00 2C 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A8 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [23:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A8 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:56]wFMCommunicate OK [23:27:56]SAM_PROTO_GetFieldsCounters done [23:27:56]requested_item shift.num is exist - process it [23:27:56]requested_item shift.opened is exist - process it [23:27:56]req_shift_opened [23:27:56]FM_GetShiftState [23:27:56]SAM_PROTO_GetShiftState [23:27:56]wFMCommunicate request_size=4 [23:27:56]MH_SAM_APDU [23:27:56]CAPDU: 80 13 01 00 [23:27:56]Write to MH i2c: E2 08 00 2D 18 80 13 01 00 00 00 00 00 C2 [23:27:56]Write i2c OK [23:27:56]MH_I2C_Read... [23:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:56]Read from MH i2c: E2 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 0E 00 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: E2 0E 00 2D 18 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 3D [23:27:56]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:27:56]wFMCommunicate OK [23:27:56]SAM_PROTO_GetShiftState done [23:27:56]FM_GetShiftState done [23:27:56]req_shift_opened done [23:27:56]requested_item shift.open_date is exist - process it [23:27:56]req_shift_open_date [23:27:56]req_shift_open_date done [23:27:56]produce_requested_data done [23:27:56]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22184,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [23:27:56]process_action_free close_receipt [23:27:56]json_value_free [23:27:56]json_value_free done [23:27:56]process_json_proto returns [23:27:56]Send response to host [23:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22184,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [23:27:56]free response buf [23:27:56]execute_script done [23:27:56]execute_script returns [23:27:56]free content buf [23:27:56]Sock 7.Close socket [23:27:56]Sock 7.Thread stoped [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39: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:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:15]accept exits with 9 [23:49:15]New connection [23:49:15]New thread 3067039076 created [23:49:15]Thread 3067182436 joined [23:49:15]Waiting for new connection... [23:49:15] Sock 9.Parse request [23:49:15]Sock 9.Check first char [23:49:15]Sock 9.First char is OK [23:49:15]request: POST /json_proto HTTP/1.0 [23:49:15]Method: POST [23:49:15]URL: /json_proto [23:49:15]Method is POST - this is cgi request [23:49:15]url: /json_proto [23:49:15]query_string will be loaded in cgi processing [23:49:15]execute_cgi json_proto POST (null) [23:49:15]execute_cgi path=json_proto method=POST [23:49:15]POST find Content-Length [23:49:15]Host: 172.17.43.4:8080 [23:49:15]Content-Length: 1173 [23:49:15]Content-Type: application/json [23:49:15] [23:49:15]POST finish read [23:49:15]Found Content-Length = 1173 [23:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51451", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:15]execute_script... [23:49: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)51451", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.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" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:15]POST & json_proto [23:49:15]process_json_proto [23:49:15]json parsed OK: [23:49:15]protocol is kg_v1.0 [23:49:15]action value=close_receipt [23:49:15]process_action close_receipt [23:49:15]cmd_close_receipt [23:49:15]MH_GetDate [23:49:15]Write to MH i2c: F0 00 00 2E 18 35 [23:49:15]Write i2c OK [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: F0 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: F0 09 00 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: F0 09 00 2E 18 00 FF AC F0 66 02 BF CF 66 35 [23:49:15]GetLastDocTimeStamp 1727047676 [23:49:15]current date 1727048959 [23:49:15]FM_GetShiftState [23:49:15]SAM_PROTO_GetShiftState [23:49:15]wFMCommunicate request_size=4 [23:49:15]MH_SAM_APDU [23:49:15]CAPDU: 80 13 01 00 [23:49:15]Write to MH i2c: E2 08 00 2F 18 80 13 01 00 00 00 00 00 C4 [23:49:15]Write i2c OK [23:49:15]MH_I2C_Read... [23:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:15]Read from MH i2c: E2 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 0E 00 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 0E 00 2F 18 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 3F [23:49:15]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:49:15]wFMCommunicate OK [23:49:15]SAM_PROTO_GetShiftState done [23:49:15]FM_GetShiftState done [23:49:15]opened in 1726964408 [23:49:15]opened+sec_in_day 1727050808 [23:49:15]quantity*price = 9500 [23:49:15]sum+1 = 9501 [23:49:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4780014240406 Сигареты Sovereign Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.41 НДС 12% : 40.89 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 100 22.09.2024 23:49 Смена: 228 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22185 ФПД: 246170131887524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234919&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22185&fm=246170131887524&tin=02508201610067®Number=0000000000146243&sum=38500 0 [23:49:16]StoreToDocumentArchive [23:49:16]shift 228 fd 22185 [23:49:16]save to /storage/0228/doc_00022185 [23:49:16]save last doc name /storage/0228/doc_00022185 to /storage/kkm_last_doc_name [23:49:16]save OK [23:49:16]Clear old archive folders... [23:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=508 [23:49:16]tlvbuf is 00224440 [23:49:16]SAM_PROTO_ClearQueue [23:49:16]wFMCommunicate request_size=4 [23:49:16]MH_SAM_APDU [23:49:16]CAPDU: 80 09 00 00 [23:49:16]Write to MH i2c: E2 08 00 3C 18 80 09 00 00 00 00 00 00 C6 [23:49:16]Write i2c OK [23:49:16]MH_I2C_Read... [23:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:16]Read from MH i2c: E2 [23:49:16]MH_I2C_Read... [23:49:16]Read from MH i2c: E2 03 00 [23:49:16]MH_I2C_Read... [23:49:16]Read from MH i2c: E2 03 00 3C 18 00 90 00 C8 [23:49:16]RAPDU: 90 00 [23:49:16]wFMCommunicate OK [23:49:16]SAM_PROTO_ClearQueue done [23:49:16]KKMCreateOFDPacket [23:49:16]OFDProtocolAddRootSTLVToBuf [23:49:16]FM_MakeSignedData [23:49:16]FM_MakeSignedData [23:49:16]SAM_PROTO_SignData [23:49:16]wFMCommunicate request_size=4 [23:49:16]MH_SAM_APDU [23:49:16]CAPDU: 80 0D 01 02 [23:49:16]Write to MH i2c: E2 08 00 3D 18 80 0D 01 02 00 00 00 00 CE [23:49:16]Write i2c OK [23:49:16]MH_I2C_Read... [23:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:16]Read from MH i2c: E2 [23:49:16]MH_I2C_Read... [23:49:16]Read from MH i2c: E2 03 00 [23:49:16]MH_I2C_Read... [23:49:16]Read from MH i2c: E2 03 00 3D 18 00 90 00 C9 [23:49:16]RAPDU: 90 00 [23:49:16]wFMCommunicate OK [23:49:16]wFMCommunicate request_size=255 [23:49:16]MH_SAM_APDU [23:49:16]CAPDU: 80 0D 02 02 FA 03 00 FC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 63 00 8A 04 [23:49:16]Write to MH i2c: E2 02 01 3E 18 80 0D 02 02 FA 00 03 00 FC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 63 00 8A 04 00 00 A6 [23:49:16]Write i2c OK [23:49:16]MH_I2C_Read... [23:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:16]Read from MH i2c: E2 [23:49:16]MH_I2C_Read... [23:49:16]Read from MH i2c: E2 03 00 [23:49:16]MH_I2C_Read... [23:49:16]Read from MH i2c: E2 03 00 3E 18 00 90 00 CA [23:49:16]RAPDU: 90 00 [23:49:16]wFMCommunicate OK [23:49:16]wFMCommunicate request_size=255 [23:49:16]MH_SAM_APDU [23:49:16]CAPDU: 80 0D 02 02 FA 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF AC F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A9 56 [23:49:16]Write to MH i2c: E2 02 01 3F 18 80 0D 02 02 FA 00 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF AC F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A9 56 00 00 50 [23:49:16]Write i2c OK [23:49:16]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 3F 18 00 90 00 CB [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=17 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 DF E3 F3 43 F5 A4 [23:49:17]Write to MH i2c: E2 14 00 40 18 80 0D 02 02 0C 00 00 00 35 04 06 00 DF E3 F3 43 F5 A4 00 00 BA [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=4 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 0D 03 02 [23:49:17]Write to MH i2c: E2 08 00 41 18 80 0D 03 02 00 00 00 00 D4 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 0B 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 0B 00 41 18 00 1A 20 51 2D CC 1B F7 1B 90 00 86 [23:49:17]RAPDU: 1A 20 51 2D CC 1B F7 1B 90 00 [23:49:17]wFMCommunicate OK [23:49:17]SAM_PROTO_SignData done [23:49:17]FM_MakeSignedData done [23:49:17]CreateOFDProtocolMessage [23:49:17]wFMCommunicate request_size=4 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 11 00 00 [23:49:17]Write to MH i2c: E2 08 00 42 18 80 11 00 00 00 00 00 00 D4 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 17 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 17 00 42 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 2E [23:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:49:17]wFMCommunicate OK [23:49:17]CreateOFDProtocolMessage done [23:49:17]OFDSenderStorePacket 22185 [23:49:17]StoreOFDPacket docnum=22185 [23:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 02 00 00 08 6D 08 02 2A F4 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF AC F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A9 56 00 00 35 04 06 00 DF E3 F3 43 F5 A4 1A 20 51 2D CC 1B F7 1B [23:49:17]CheckFolder [23:49:17]dirname=/storage/ofd_packets [23:49:17]CheckFolder done [23:49:17]ProducePacketName [23:49:17]name=ofd_packets/00022185 [23:49:17]NVStorageSaveData ofd_packets/00022185 [23:49:17]File name is /storage/ofd_packets/00022185 [23:49:17]Write 558 bytes [23:49:17]NVStorageSaveData done [23:49:17]OFDSenderStorePacket done [23:49:17]KKMCreateOFDPacket done [23:49:17]NVStorageSaveData kkm_last_timestamp [23:49:17]File name is /storage/kkm_last_timestamp [23:49:17]Write 4 bytes [23:49:17]NVStorageSaveData done [23:49:17]ExternCall_PrintAddStr [23:49:17]wPrintStart [23:49:17]Write to MH i2c: 01 00 00 43 18 5B [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: 01 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: 01 07 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: 01 07 00 43 18 00 00 00 00 00 FF 0F 70 [23:49:17]RasterBufferAndPrint [23:49:17]line Счет N : (3)51451 [23:49:17]line ИНН: 02508201610067 [23:49:17]line Контрольно-Кассовый Чек [23:49:17]line ПРОДАЖА [23:49:17]line Товар: 4700000480364 [23:49:17]line Напиток энерг Nitro экзотик 0.45 ж/б [23:49:17]line 1.000 * 95.00 [23:49:17]line = 95.00 [23:49:17]line НДС 12% НСП 1% [23:49:17]line > о реализуемом товаре [23:49:17]line Товар: 48742245 [23:49:17]line Сигареты Parliament Silver Blue [23:49:17]line 1.000 * 156.00 [23:49:17]line = 156.00 [23:49:17]line НДС 12% НСП 1% [23:49:17]line > о реализуемом товаре [23:49:17]line Товар: 4780014240406 [23:49:17]line Сигареты Sovereign Blue [23:49:17]line 1.000 * 134.00 [23:49:17]line = 134.00 [23:49:17]line НДС 12% НСП 1% [23:49:17]line > о реализуемом товаре [23:49:17]line ИТОГО: 385.00 [23:49:17]line НСП 1% : 3.41 [23:49:17]line НДС 12% : 40.89 [23:49:17]line Наличными: 385.00 [23:49:17]line Безнал.: 0.00 [23:49:17]line Место: АЗС № 88 "Партнер Нефть" [23:49:17]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [23:49:17]line СНО: Общий режим [23:49:17]line Чек 100 22.09.2024 23:49 [23:49:17]line Смена: 228 ФФД: 1.0 [23:49:17]line ЗНМ: 0300000061 [23:49:17]line РНМ: 0000000000146243 [23:49:17]line Версия ККМ: v1.0 [23:49:17]line ФМ: 0000000000959358 [23:49:17]line ФД: 22185 [23:49:17]line ФПД: 246170131887524 [23:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240922T234919&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22185&fm=246170131887524&tin=02508201610067®Number=0000000000146243&sum=38500 [23:49:17]line 0 [23:49:17]OFD Sender: Processing packet 22185 [packets to send 23, broken 22] [23:49:17]ProducePacketName [23:49:17]name=ofd_packets/00022185 [23:49:17]OFD Sender: To server: pG, [23:49:17]CommunicateWithHost lk.salyk.kg:30040 [23:49:17]ConnectInit lk.salyk.kg [23:49:17]written 0, free lines is 4095 [23:49:18]Connected sock=11 [23:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 02 00 00 08 6D 08 02 2A F4 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 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 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FF AC F0 66 0E 04 04 00 E4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 A9 56 00 00 35 04 06 00 DF E3 F3 43 F5 A4 1A 20 51 2D CC 1B F7 1B [23:49:18]Write to MH i2c: 01 00 00 79 18 91 [23:49:18]Write i2c OK [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: 01 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: 01 07 00 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: 01 07 00 79 18 00 00 00 00 00 6D 0C 11 [23:49:18]RasterBufferAndPrint [23:49:18]line [23:49:18]line [23:49:18]line [23:49:18]line [23:49:18]line [23:49:18]written 0, free lines is 3189 [23:49:18]MH_Cut [23:49:18]Write to MH i2c: D1 01 00 80 18 01 6A [23:49:18]Write i2c OK [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: D1 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: D1 01 00 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: D1 01 00 80 18 00 69 [23:49:18]Write to MH i2c: 01 00 00 81 18 99 [23:49:18]Write i2c OK [23:49:18]MH_I2C_Read... [23:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 94 65 47 00 51 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 39 35 39 33 35 38 10 04 04 00 A9 56 00 00 F4 03 04 00 29 57 F0 66 B6 04 01 00 00 FF 6F DC AB 84 55 9B 80 [23:49:18]CommunicateWithHost err = 0 [23:49:18]CheckOFDResponse [23:49:18]1017 (14) - 77093643461234 [23:49:18]1041 (16) - 0000000000959358 [23:49:18]1040 (4) - 22185 [23:49:18]1012 (4) - 22.09.2024 17:43 [23:49:18]1206 (1) - 0 [23:49:18]OFD Sender: Remove packet 22185 [23:49:18]ProducePacketName [23:49:18]name=ofd_packets/00022185 [23:49:18]NVStorageDeleteData [23:49:18]OFD Sender: No OFD packet to send [23:49:19]*** Cut start [23:49:19]*** Partial cut [23:49:19]*** CUTSNS_PIN = 1 [23:49:19]*** CUTSNS_PIN = 0 [23:49:19]*** Brake cut motor [23:49:19]Read from MH i2c: 01 [23:49:19]MH_I2C_Read... [23:49:19]*** Stop cut motor [23:49:19]*** Cut end [23:49:19]Read from MH i2c: 01 07 00 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 FF 0F AE [23:49:19]process_action close_receipt done [23:49:19]requested_data is exist [23:49:19]produce_requested_data [23:49:19]requested_item fm.sn is exist - process it [23:49:19]wFMCommunicate request_size=4 [23:49:19]MH_SAM_APDU [23:49:19]CAPDU: 80 11 00 00 [23:49:19]Write to MH i2c: E2 08 00 82 18 80 11 00 00 00 00 00 00 14 [23:49:19]Write i2c OK [23:49:19]MH_I2C_Read... [23:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:19]Read from MH i2c: E2 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 17 00 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 17 00 82 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 6E [23:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:49:19]wFMCommunicate OK [23:49:19]requested_item fd.num is exist - process it [23:49:19]SAM_PROTO_GetFieldsCounters [23:49:19]wFMCommunicate request_size=4 [23:49:19]MH_SAM_APDU [23:49:19]CAPDU: 80 13 00 00 [23:49:19]Write to MH i2c: E2 08 00 83 18 80 13 00 00 00 00 00 00 17 [23:49:19]Write i2c OK [23:49:19]MH_I2C_Read... [23:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:19]Read from MH i2c: E2 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 62 00 [23:49:19]MH_I2C_Read... [23:49:19]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 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [23:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:19]wFMCommunicate OK [23:49:19]SAM_PROTO_GetFieldsCounters done [23:49:19]requested_item shift.num is exist - process it [23:49:19]requested_item shift.opened is exist - process it [23:49:19]req_shift_opened [23:49:19]FM_GetShiftState [23:49:19]SAM_PROTO_GetShiftState [23:49:19]wFMCommunicate request_size=4 [23:49:19]MH_SAM_APDU [23:49:19]CAPDU: 80 13 01 00 [23:49:19]Write to MH i2c: E2 08 00 84 18 80 13 01 00 00 00 00 00 19 [23:49:19]Write i2c OK [23:49:19]MH_I2C_Read... [23:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:19]Read from MH i2c: E2 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 0E 00 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 0E 00 84 18 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 94 [23:49:19]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:49:19]wFMCommunicate OK [23:49:19]SAM_PROTO_GetShiftState done [23:49:19]FM_GetShiftState done [23:49:19]req_shift_opened done [23:49:19]requested_item shift.open_date is exist - process it [23:49:19]req_shift_open_date [23:49:19]req_shift_open_date done [23:49:19]produce_requested_data done [23:49:19]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [23:49:19]process_action_free close_receipt [23:49:19]json_value_free [23:49:19]json_value_free done [23:49:19]process_json_proto returns [23:49:19]Send response to host [23:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [23:49:19]free response buf [23:49:19]execute_script done [23:49:19]execute_script returns [23:49:19]free content buf [23:49:19]Sock 9.Close socket [23:49:19]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:40]accept exits with 7 [23:52:40]New connection [23:52:40]New thread 3067182436 created [23:52:40]Thread 3067039076 joined [23:52:40]Waiting for new connection... [23:52:40] Sock 7.Parse request [23:52:40]Sock 7.Check first char [23:52:40]Sock 7.First char is OK [23:52:40]request: POST /json_proto HTTP/1.0 [23:52:40]Method: POST [23:52:40]URL: /json_proto [23:52:40]Method is POST - this is cgi request [23:52:40]url: /json_proto [23:52:40]query_string will be loaded in cgi processing [23:52:40]execute_cgi json_proto POST (null) [23:52:40]execute_cgi path=json_proto method=POST [23:52:40]POST find Content-Length [23:52:40]Host: 172.17.43.4:8080 [23:52:40]Content-Length: 215 [23:52:40]Content-Type: application/json [23:52:40] [23:52:40]POST finish read [23:52:40]Found Content-Length = 215 [23:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:40]execute_script... [23:52:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:40]POST & json_proto [23:52:40]process_json_proto [23:52:40]json parsed OK: [23:52:40]protocol is kg_v1.0 [23:52:40]action value=get_value [23:52:40]process_action get_value [23:52:40]cmd_get_value [23:52:40]process_action get_value done [23:52:40]requested_data is exist [23:52:40]produce_requested_data [23:52:40]requested_item kkm.sn is exist - process it [23:52:40]requested_item kkm.ver is exist - process it [23:52:40]requested_item fm.sn is exist - process it [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 11 00 00 [23:52:40]Write to MH i2c: E2 08 00 85 18 80 11 00 00 00 00 00 00 17 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 17 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 17 00 85 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 71 [23:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:52:40]wFMCommunicate OK [23:52:40]requested_item fd.num is exist - process it [23:52:40]SAM_PROTO_GetFieldsCounters [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 13 00 00 [23:52:40]Write to MH i2c: E2 08 00 86 18 80 13 00 00 00 00 00 00 1A [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 62 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 62 00 86 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [23:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_GetFieldsCounters done [23:52:40]requested_item shift.num is exist - process it [23:52:40]requested_item shift.opened is exist - process it [23:52:40]req_shift_opened [23:52:40]FM_GetShiftState [23:52:40]SAM_PROTO_GetShiftState [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 13 01 00 [23:52:40]Write to MH i2c: E2 08 00 87 18 80 13 01 00 00 00 00 00 1C [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 0E 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 0E 00 87 18 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 97 [23:52:41]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:52:41]wFMCommunicate OK [23:52:41]SAM_PROTO_GetShiftState done [23:52:41]FM_GetShiftState done [23:52:41]req_shift_opened done [23:52:41]requested_item shift.open_date is exist - process it [23:52:41]req_shift_open_date [23:52:41]req_shift_open_date done [23:52:41]produce_requested_data done [23:52:41]produce_requested_data return {"kkm.sn":"0300000061","kkm.ver":"v1.0","fm.sn":"0000000000959358","fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [23:52:41]process_action_free get_value [23:52:41]json_value_free [23:52:41]json_value_free done [23:52:41]process_json_proto returns [23:52:41]Send response to host [23:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000061","kkm.ver":"v1.0","fm.sn":"0000000000959358","fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [23:52:41]free response buf [23:52:41]execute_script done [23:52:41]execute_script returns [23:52:41]free content buf [23:52:41]Sock 7.Close socket [23:52:41]Sock 7.Thread stoped [23:52:41]accept exits with 9 [23:52:41]New connection [23:52:41]New thread 3067039076 created [23:52:41]Thread 3067182436 joined [23:52:41]Waiting for new connection... [23:52:41] Sock 9.Parse request [23:52:41]Sock 9.Check first char [23:52:41]Sock 9.First char is OK [23:52:41]request: POST /json_proto HTTP/1.0 [23:52:41]Method: POST [23:52:41]URL: /json_proto [23:52:41]Method is POST - this is cgi request [23:52:41]url: /json_proto [23:52:41]query_string will be loaded in cgi processing [23:52:41]execute_cgi json_proto POST (null) [23:52:41]execute_cgi path=json_proto method=POST [23:52:41]POST find Content-Length [23:52:41]Host: 172.17.43.4:8080 [23:52:41]Content-Length: 331 [23:52:41]Content-Type: application/json [23:52:41] [23:52:41]POST finish read [23:52:41]Found Content-Length = 331 [23:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:41]execute_script... [23:52:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:41]POST & json_proto [23:52:41]process_json_proto [23:52:41]json parsed OK: [23:52:41]protocol is kg_v1.0 [23:52:41]action value=get_value [23:52:41]process_action get_value [23:52:41]cmd_get_value [23:52:41]process_action get_value done [23:52:41]requested_data is exist [23:52:41]produce_requested_data [23:52:41]requested_item fm.sale.total is exist - process it [23:52:41]SAM_PROTO_GetFMData [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 13 03 00 [23:52:41]Write to MH i2c: E2 08 00 88 18 80 13 03 00 00 00 00 00 1F [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 88 18 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F1 [23:52:41]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:52:41]wFMCommunicate OK [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 17 00 00 [23:52:41]Write to MH i2c: E2 08 00 89 18 80 17 00 00 00 00 00 00 21 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 89 18 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [23:52:42]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:42]wFMCommunicate OK [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 17 00 00 [23:52:42]Write to MH i2c: E2 08 00 8A 18 80 17 00 00 00 00 00 00 22 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 8A 18 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [23:52:42]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:42]wFMCommunicate OK [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 17 00 00 [23:52:42]Write to MH i2c: E2 08 00 8B 18 80 17 00 00 00 00 00 00 23 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 8B 18 00 00 EF 03 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 90 00 9B [23:52:42]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:42]wFMCommunicate OK [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 17 00 00 [23:52:42]Write to MH i2c: E2 08 00 8C 18 80 17 00 00 00 00 00 00 24 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 D7 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 D7 00 8C 18 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [23:52:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_GetFMData done [23:52:42]requested_item fm.sale_refund.total is exist - process it [23:52:42]requested_item fm.buy.total is exist - process it [23:52:42]requested_item shift.sale.total is exist - process it [23:52:42]SAM_PROTO_GetShiftData [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 13 02 00 [23:52:42]Write to MH i2c: E2 08 00 8D 18 80 13 02 00 00 00 00 00 23 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 8D 18 00 AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [23:52:43]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 17 00 00 [23:52:43]Write to MH i2c: E2 08 00 8E 18 80 17 00 00 00 00 00 00 26 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 8E 18 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [23:52:43]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 17 00 00 [23:52:43]Write to MH i2c: E2 08 00 8F 18 80 17 00 00 00 00 00 00 27 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 8F 18 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D7 [23:52:43]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 17 00 00 [23:52:43]Write to MH i2c: E2 08 00 90 18 80 17 00 00 00 00 00 00 28 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:44]OFD Sender: No OFD packet to send [23:52:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 FD 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 FD 00 90 18 00 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 90 00 AE [23:52:44]RAPDU: 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 90 00 [23:52:44]wFMCommunicate OK [23:52:44]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 17 00 00 [23:52:44]Write to MH i2c: E2 08 00 91 18 80 17 00 00 00 00 00 00 29 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 C8 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 C8 00 91 18 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [23:52:44]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:44]wFMCommunicate OK [23:52:44]SAM_PROTO_GetShiftData done [23:52:44]requested_item shift.sale.total_cash is exist - process it [23:52:44]requested_item shift.sale_refund.total is exist - process it [23:52:44]requested_item shift.sale_refund.total_cash is exist - process it [23:52:44]requested_item shift.buy.total is exist - process it [23:52:44]requested_item shift.buy.total_cash is exist - process it [23:52:44]produce_requested_data done [23:52:44]produce_requested_data return {"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:52:44]process_action_free get_value [23:52:44]json_value_free [23:52:44]json_value_free done [23:52:44]process_json_proto returns [23:52:44]Send response to host [23:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:52:44]free response buf [23:52:44]execute_script done [23:52:44]execute_script returns [23:52:44]free content buf [23:52:44]Sock 9.Close socket [23:52:44]Sock 9.Thread stoped [23:52:44]accept exits with 7 [23:52:44]New connection [23:52:44]New thread 3067182436 created [23:52:44]Thread 3067039076 joined [23:52:44]Waiting for new connection... [23:52:44] Sock 7.Parse request [23:52:44]Sock 7.Check first char [23:52:44]Sock 7.First char is OK [23:52:44]request: POST /json_proto HTTP/1.0 [23:52:44]Method: POST [23:52:44]URL: /json_proto [23:52:44]Method is POST - this is cgi request [23:52:44]url: /json_proto [23:52:44]query_string will be loaded in cgi processing [23:52:44]execute_cgi json_proto POST (null) [23:52:44]execute_cgi path=json_proto method=POST [23:52:44]POST find Content-Length [23:52:44]Host: 172.17.43.4:8080 [23:52:44]Content-Length: 331 [23:52:44]Content-Type: application/json [23:52:44] [23:52:44]POST finish read [23:52:44]Found Content-Length = 331 [23:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:44]execute_script... [23:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:44]POST & json_proto [23:52:44]process_json_proto [23:52:44]json parsed OK: [23:52:44]protocol is kg_v1.0 [23:52:44]action value=get_value [23:52:44]process_action get_value [23:52:44]cmd_get_value [23:52:44]process_action get_value done [23:52:44]requested_data is exist [23:52:44]produce_requested_data [23:52:44]requested_item fm.sale.total is exist - process it [23:52:44]SAM_PROTO_GetFMData [23:52:44]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 13 03 00 [23:52:44]Write to MH i2c: E2 08 00 92 18 80 13 03 00 00 00 00 00 29 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 92 18 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FB [23:52:45]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 17 00 00 [23:52:45]Write to MH i2c: E2 08 00 93 18 80 17 00 00 00 00 00 00 2B [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 93 18 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [23:52:45]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 17 00 00 [23:52:45]Write to MH i2c: E2 08 00 94 18 80 17 00 00 00 00 00 00 2C [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 FD 00 94 18 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [23:52:45]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 17 00 00 [23:52:45]Write to MH i2c: E2 08 00 95 18 80 17 00 00 00 00 00 00 2D [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 95 18 00 00 EF 03 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 90 00 A5 [23:52:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 17 00 00 [23:52:46]Write to MH i2c: E2 08 00 96 18 80 17 00 00 00 00 00 00 2E [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 D7 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 D7 00 96 18 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 11 [23:52:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:46]wFMCommunicate OK [23:52:46]SAM_PROTO_GetFMData done [23:52:46]requested_item fm.sale_refund.total is exist - process it [23:52:46]requested_item fm.buy.total is exist - process it [23:52:46]requested_item shift.sale.total is exist - process it [23:52:46]SAM_PROTO_GetShiftData [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 13 02 00 [23:52:46]Write to MH i2c: E2 08 00 97 18 80 13 02 00 00 00 00 00 2D [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 97 18 00 AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D1 [23:52:47]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:47]wFMCommunicate OK [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 17 00 00 [23:52:47]Write to MH i2c: E2 08 00 98 18 80 17 00 00 00 00 00 00 30 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 98 18 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [23:52:47]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:47]wFMCommunicate OK [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 17 00 00 [23:52:47]Write to MH i2c: E2 08 00 99 18 80 17 00 00 00 00 00 00 31 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:47]Read from MH i2c: E2 FD 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 99 18 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [23:52:47]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:47]wFMCommunicate OK [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 17 00 00 [23:52:47]Write to MH i2c: E2 08 00 9A 18 80 17 00 00 00 00 00 00 32 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 FD 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 FD 00 9A 18 00 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 90 00 B8 [23:52:48]RAPDU: 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 90 00 [23:52:48]wFMCommunicate OK [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 17 00 00 [23:52:48]Write to MH i2c: E2 08 00 9B 18 80 17 00 00 00 00 00 00 33 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 C8 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 C8 00 9B 18 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [23:52:48]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:48]wFMCommunicate OK [23:52:48]SAM_PROTO_GetShiftData done [23:52:48]requested_item shift.sale.total_cash is exist - process it [23:52:48]requested_item shift.sale_refund.total is exist - process it [23:52:48]requested_item shift.sale_refund.total_cash is exist - process it [23:52:48]requested_item shift.buy.total is exist - process it [23:52:48]requested_item shift.buy.total_cash is exist - process it [23:52:48]produce_requested_data done [23:52:48]produce_requested_data return {"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:52:48]process_action_free get_value [23:52:48]json_value_free [23:52:48]json_value_free done [23:52:48]process_json_proto returns [23:52:48]Send response to host [23:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:52:48]free response buf [23:52:48]execute_script done [23:52:48]execute_script returns [23:52:48]free content buf [23:52:48]Sock 7.Close socket [23:52:48]Sock 7.Thread stoped [23:52:48]accept exits with 9 [23:52:48]New connection [23:52:48]New thread 3067039076 created [23:52:48]Thread 3067182436 joined [23:52:48]Waiting for new connection... [23:52:48] Sock 9.Parse request [23:52:48]Sock 9.Check first char [23:52:48]Sock 9.First char is OK [23:52:48]request: POST /json_proto HTTP/1.0 [23:52:48]Method: POST [23:52:48]URL: /json_proto [23:52:48]Method is POST - this is cgi request [23:52:48]url: /json_proto [23:52:48]query_string will be loaded in cgi processing [23:52:48]execute_cgi json_proto POST (null) [23:52:48]execute_cgi path=json_proto method=POST [23:52:48]POST find Content-Length [23:52:48]Host: 172.17.43.4:8080 [23:52:48]Content-Length: 251 [23:52:48]Content-Type: application/json [23:52:48] [23:52:48]POST finish read [23:52:48]Found Content-Length = 251 [23:52:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0440\u0438\u043C\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:48]execute_script... [23:52:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0440\u0438\u043C\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:48]POST & json_proto [23:52:48]process_json_proto [23:52:48]json parsed OK: [23:52:48]protocol is kg_v1.0 [23:52:48]action value=x_report [23:52:48]process_action x_report [23:52:48]cmd_x_report [23:52:48]MH_GetDate [23:52:48]Write to MH i2c: F0 00 00 9C 18 A3 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: F0 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: F0 09 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: F0 09 00 9C 18 00 D4 AD F0 66 02 BF CF 66 79 [23:52:48]GetLastDocTimeStamp 1727048959 [23:52:48]current date 1727049172 [23:52:48]FM_GetShiftState [23:52:48]SAM_PROTO_GetShiftState [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 13 01 00 [23:52:48]Write to MH i2c: E2 08 00 9D 18 80 13 01 00 00 00 00 00 32 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 0E 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 0E 00 9D 18 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 AD [23:52:48]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:52:48]wFMCommunicate OK [23:52:48]SAM_PROTO_GetShiftState done [23:52:48]FM_GetShiftState done [23:52:48]KKMCreateXReportDocument [23:52:48]Load OK [23:52:48]Malloc new data [23:52:48]MH_GetDate [23:52:48]Write to MH i2c: F0 00 00 9E 18 A5 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: F0 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: F0 09 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: F0 09 00 9E 18 00 D4 AD F0 66 02 BF CF 66 7B [23:52:48]Malloc new data [23:52:48]Malloc new data [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 11 00 00 [23:52:48]Write to MH i2c: E2 08 00 9F 18 80 11 00 00 00 00 00 00 31 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 17 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 17 00 9F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 8B [23:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:52:48]wFMCommunicate OK [23:52:48]SAM_PROTO_GetFieldsCounters [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 13 00 00 [23:52:48]Write to MH i2c: E2 08 00 A0 18 80 13 00 00 00 00 00 00 34 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:49]Read from MH i2c: E2 62 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 62 00 A0 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [23:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:49]wFMCommunicate OK [23:52:49]SAM_PROTO_GetFieldsCounters done [23:52:49]Malloc new data [23:52:49]Malloc new data [23:52:49]Malloc new data [23:52:49]KKMCreateXReportDocument OK [23:52:49]KKMSetXReportData OK [23:52:49]KKMPrepareXReportFMData [23:52:49]SAM_PROTO_GetShiftData [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 02 00 [23:52:49]Write to MH i2c: E2 08 00 A1 18 80 13 02 00 00 00 00 00 37 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]OFD Sender: No OFD packet to send [23:52:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 FD 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 FD 00 A1 18 00 AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [23:52:49]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:49]wFMCommunicate OK [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 17 00 00 [23:52:49]Write to MH i2c: E2 08 00 A2 18 80 17 00 00 00 00 00 00 3A [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 FD 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 FD 00 A2 18 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [23:52:50]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 17 00 00 [23:52:50]Write to MH i2c: E2 08 00 A3 18 80 17 00 00 00 00 00 00 3B [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 FD 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 FD 00 A3 18 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [23:52:50]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 17 00 00 [23:52:50]Write to MH i2c: E2 08 00 A4 18 80 17 00 00 00 00 00 00 3C [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 FD 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 FD 00 A4 18 00 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 90 00 C2 [23:52:51]RAPDU: 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 90 00 [23:52:51]wFMCommunicate OK [23:52:51]wFMCommunicate request_size=4 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 17 00 00 [23:52:51]Write to MH i2c: E2 08 00 A5 18 80 17 00 00 00 00 00 00 3D [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 C8 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 C8 00 A5 18 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 20 [23:52:51]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:51]wFMCommunicate OK [23:52:51]SAM_PROTO_GetShiftData done [23:52:51]1194 (1191) - счетчики итогов смены [23:52:51] 1134 (4) - 100 - количество чеков со всеми признаками расчетов [23:52:51] 1129 (152) - счетчики операций «приход» [23:52:51] 1135 (4) - 100 - количество чеков по признаку расчетов [23:52:51] 1201 (3) - 23708.00 - общая итоговая сумма в чеках [23:52:51] 1136 (3) - 23708.00 - итоговая сумма в чеках наличными [23:52:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:51] 1024 (122) - суммы налогов [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 0% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1006 (12) - суммы НДС [23:52:51] 1010 (1) - 12% - код ставки НДС [23:52:51] 1011 (3) - 2517.87 - сумма НДС по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (11) - суммы НСП [23:52:51] 1014 (1) - 1% - код ставки НСП [23:52:51] 1015 (2) - 209.74 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 2% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 3% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 5% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1130 (141) - счетчики операций «возврат прихода» [23:52:51] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:51] 1024 (117) - суммы налогов [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 0% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 12% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 2% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 3% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 5% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1131 (141) - счетчики операций «расход» [23:52:51] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:51] 1024 (117) - суммы налогов [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 0% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 12% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 2% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 3% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 5% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1132 (141) - счетчики операций «возврат расхода» [23:52:51] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:51] 1024 (117) - суммы налогов [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 0% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1006 (9) - суммы НДС [23:52:51] 1010 (1) - 12% - код ставки НДС [23:52:51] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 2% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 3% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 5% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 0,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1007 (9) - суммы НСП [23:52:51] 1014 (1) - 1,50% - код ставки НСП [23:52:51] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:51] 1133 (588) - - счетчики коррекции - не используются [23:52:51]SetTLVBufToDocument [23:52:51]Processing tag 1194 (04AA) [23:52:51]Load OK [23:52:51]SetTLVBufToDocument [23:52:51]Processing tag 1134 (046E) [23:52:51]Malloc new data [23:52:51]Processing tag 1129 (0469) [23:52:51]Load OK [23:52:51]SetTLVBufToDocument [23:52:51]Processing tag 1135 (046F) [23:52:51]Malloc new data [23:52:51]Processing tag 1201 (04B1) [23:52:51]Malloc new data [23:52:51]Processing tag 1136 (0470) [23:52:51]Malloc new data [23:52:51]Processing tag 1138 (0472) [23:52:51]Malloc new data [23:52:51]Processing tag 1024 (0400) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1130 (046A) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1135 (046F) [23:52:52]Malloc new data [23:52:52]Processing tag 1201 (04B1) [23:52:52]Malloc new data [23:52:52]Processing tag 1136 (0470) [23:52:52]Malloc new data [23:52:52]Processing tag 1138 (0472) [23:52:52]Malloc new data [23:52:52]Processing tag 1024 (0400) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1131 (046B) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1135 (046F) [23:52:52]Malloc new data [23:52:52]Processing tag 1201 (04B1) [23:52:52]Malloc new data [23:52:52]Processing tag 1136 (0470) [23:52:52]Malloc new data [23:52:52]Processing tag 1138 (0472) [23:52:52]Malloc new data [23:52:52]Processing tag 1024 (0400) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1132 (046C) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1135 (046F) [23:52:52]Malloc new data [23:52:52]Processing tag 1201 (04B1) [23:52:52]Malloc new data [23:52:52]Processing tag 1136 (0470) [23:52:52]Malloc new data [23:52:52]Processing tag 1138 (0472) [23:52:52]Malloc new data [23:52:52]Processing tag 1024 (0400) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1006 (03EE) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1010 (03F2) [23:52:52]Malloc new data [23:52:52]Processing tag 1011 (03F3) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1007 (03EF) [23:52:52]Load OK [23:52:52]SetTLVBufToDocument [23:52:52]Processing tag 1014 (03F6) [23:52:52]Malloc new data [23:52:52]Processing tag 1015 (03F7) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Processing tag 1133 (046D) [23:52:52]Malloc new data [23:52:52]SetTLVBufToDocument err=0 [23:52:52]SetTLVBufToDocument err=0 [23:52:52]Malloc new data [23:52:52]SAM_PROTO_GetFMData [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 13 03 00 [23:52:52]Write to MH i2c: E2 08 00 A6 18 80 13 03 00 00 00 00 00 3D [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 A6 18 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0F [23:52:53]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:52:53]wFMCommunicate OK [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 17 00 00 [23:52:53]Write to MH i2c: E2 08 00 A7 18 80 17 00 00 00 00 00 00 3F [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 A7 18 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [23:52:53]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:53]wFMCommunicate OK [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 17 00 00 [23:52:53]Write to MH i2c: E2 08 00 A8 18 80 17 00 00 00 00 00 00 40 [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:54]Read from MH i2c: E2 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 FD 00 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 FD 00 A8 18 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [23:52:54]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [23:52:54]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 90 00 [23:52:54]wFMCommunicate OK [23:52:54]wFMCommunicate request_size=4 [23:52:54]MH_SAM_APDU [23:52:54]CAPDU: 80 17 00 00 [23:52:54]Write to MH i2c: E2 08 00 A9 18 80 17 00 00 00 00 00 00 41 [23:52:54]Write i2c OK [23:52:54]MH_I2C_Read... [23:52:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:54]Read from MH i2c: E2 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 FD 00 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 FD 00 A9 18 00 00 EF 03 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 90 00 B9 [23:52:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:55]wFMCommunicate OK [23:52:55]wFMCommunicate request_size=4 [23:52:55]MH_SAM_APDU [23:52:55]CAPDU: 80 17 00 00 [23:52:55]Write to MH i2c: E2 08 00 AA 18 80 17 00 00 00 00 00 00 42 [23:52:55]Write i2c OK [23:52:55]MH_I2C_Read... [23:52:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:52:55]Read from MH i2c: E2 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: E2 D7 00 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: E2 D7 00 AA 18 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 [23:52:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:55]wFMCommunicate OK [23:52:55]SAM_PROTO_GetFMData done [23:52:55]FM_GetFMData:85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:56]oper:6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:56]total:B0 08 B8 2F [23:52:56]Malloc new data [23:52:56]oper:6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:56]total:80 4D 0A [23:52:56]Malloc new data [23:52:56]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:56]total: [23:52:56]Malloc new data [23:52:56]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:56]total: [23:52:56]Malloc new data [23:52:56]KKMPrepareXReportFMData err=0 [23:52:56]Х отчет ИНН: 02508201610067 Кассир: Каримов С. 22.09.2024 23:52 Смена: 10 РНМ: 0000000000146243 ЗНМ: 0300000061 СНО: Общий режим Всего чеков: 100 ИТОГИ ПРИХОД Чеков: 100 Общий итог: 23708.00 Итого наличными: 23708.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 2517.87 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 209.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 23708.00 НС Приход: 8005900.00 НС Возвр.Прихода: 6752.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000959358 [23:52:56]StoreToDocumentArchive [23:52:56]MH_GetDate [23:52:56]Write to MH i2c: F0 00 00 AB 18 B2 [23:52:56]Write i2c OK [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: F0 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: F0 09 00 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: F0 09 00 AB 18 00 DC AD F0 66 02 BF CF 66 90 [23:52:56]shift 10 fd 1727049180 [23:52:56]Create dir for shift 0010 [23:52:56]save to /storage/0010/doc_1727049180 [23:52:56]save last doc name /storage/0010/doc_1727049180 to /storage/kkm_last_doc_name [23:52:56]save OK [23:52:56]Clear old archive folders... [23:52:56]NVStorageSaveData kkm_last_timestamp [23:52:56]File name is /storage/kkm_last_timestamp [23:52:56]Write 4 bytes [23:52:56]NVStorageSaveData done [23:52:56]ExternCall_PrintAddStr [23:52:56]wPrintStart [23:52:56]Write to MH i2c: 01 00 00 AC 18 C4 [23:52:56]Write i2c OK [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: 01 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: 01 07 00 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: 01 07 00 AC 18 00 00 00 00 00 FF 0F D9 [23:52:56]RasterBufferAndPrint [23:52:56]line Х отчет [23:52:56]line ИНН: 02508201610067 [23:52:56]line Кассир: Каримов С. [23:52:56]line 22.09.2024 23:52 [23:52:56]line Смена: 10 [23:52:56]line РНМ: 0000000000146243 [23:52:56]line ЗНМ: 0300000061 [23:52:56]line СНО: Общий режим [23:52:56]line Всего чеков: 100 [23:52:56]line ИТОГИ ПРИХОД [23:52:56]line Чеков: 100 [23:52:56]line Общий итог: 23708.00 [23:52:56]line Итого наличными: 23708.00 [23:52:56]line Итого безнал.: 0.00 [23:52:56]line НДС 0% : 0.00 [23:52:56]line НДС 12% : 2517.87 [23:52:56]line НСП 0% : 0.00 [23:52:56]line НСП 1,50% : 0.00 [23:52:56]line НСП 0,50% : 0.00 [23:52:56]line НСП 5% : 0.00 [23:52:56]line НСП 3% : 0.00 [23:52:56]line НСП 2% : 0.00 [23:52:56]line НСП 1% : 209.74 [23:52:56]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:52:56]line Чеков: 0 [23:52:56]line Общий итог: 0.00 [23:52:56]line Итого наличными: 0.00 [23:52:56]line Итого безнал.: 0.00 [23:52:56]line НДС 0% : 0.00 [23:52:56]line НДС 12% : 0.00 [23:52:56]line НСП 0% : 0.00 [23:52:56]line НСП 1,50% : 0.00 [23:52:56]line НСП 0,50% : 0.00 [23:52:56]line НСП 5% : 0.00 [23:52:56]line НСП 3% : 0.00 [23:52:56]line НСП 2% : 0.00 [23:52:56]line НСП 1% : 0.00 [23:52:56]line ИТОГИ РАСХОД [23:52:56]line Чеков: 0 [23:52:56]line Общий итог: 0.00 [23:52:56]line Итого наличными: 0.00 [23:52:56]line Итого безнал.: 0.00 [23:52:56]line НДС 0% : 0.00 [23:52:56]line НДС 12% : 0.00 [23:52:56]line НСП 0% : 0.00 [23:52:56]line НСП 1,50% : 0.00 [23:52:56]line НСП 0,50% : 0.00 [23:52:56]line НСП 5% : 0.00 [23:52:56]line НСП 3% : 0.00 [23:52:56]line НСП 2% : 0.00 [23:52:56]line НСП 1% : 0.00 [23:52:56]line ИТОГИ ВОЗВРАТ РАСХОДА [23:52:56]line Чеков: 0 [23:52:56]line Общий итог: 0.00 [23:52:56]line Итого наличными: 0.00 [23:52:56]line Итого безнал.: 0.00 [23:52:56]line НДС 0% : 0.00 [23:52:56]line НДС 12% : 0.00 [23:52:56]line НСП 0% : 0.00 [23:52:56]line НСП 1,50% : 0.00 [23:52:56]line НСП 0,50% : 0.00 [23:52:56]line НСП 5% : 0.00 [23:52:56]line НСП 3% : 0.00 [23:52:56]line НСП 2% : 0.00 [23:52:56]line НСП 1% : 0.00 [23:52:56]line Сумма внесений: 0.00 [23:52:56]line Сумма выплат: 0.00 [23:52:56]line Нал. в кассе: 23708.00 [23:52:56]line НС Приход: 8005900.00 [23:52:56]line НС Возвр.Прихода: 6752.00 [23:52:56]line НС Расход: 0.00 [23:52:56]line НС Возвр.Расхода: 0.00 [23:52:56]line ФМ: 0000000000959358 [23:52:56]written 0, free lines is 4095 [23:52:57]Write to MH i2c: 01 00 00 F7 18 0F [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: 01 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: 01 07 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: 01 07 00 F7 18 00 00 00 00 00 07 0B 28 [23:52:57]RasterBufferAndPrint [23:52:57]line [23:52:57]line [23:52:57]line [23:52:57]line [23:52:57]line [23:52:57]written 0, free lines is 2863 [23:52:57]MH_Cut [23:52:57]Write to MH i2c: D1 01 00 FE 18 01 E8 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: D1 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: D1 01 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: D1 01 00 FE 18 00 E7 [23:52:57]Write to MH i2c: 01 00 00 FF 18 17 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:58]*** Cut start [23:52:58]*** Partial cut [23:52:58]*** CUTSNS_PIN = 1 [23:52:58]*** CUTSNS_PIN = 0 [23:52:58]*** Brake cut motor [23:52:59]Read from MH i2c: 01 [23:52:59]MH_I2C_Read... [23:52:59]*** Stop cut motor [23:52:59]*** Cut end [23:52:59]Read from MH i2c: 01 07 00 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: 01 07 00 FF 18 00 00 00 00 00 FF 0F 2C [23:52:59]process_action x_report done [23:52:59]requested_data is exist [23:52:59]produce_requested_data [23:52:59]requested_item fd.num is exist - process it [23:52:59]SAM_PROTO_GetFieldsCounters [23:52:59]wFMCommunicate request_size=4 [23:52:59]MH_SAM_APDU [23:52:59]CAPDU: 80 13 00 00 [23:52:59]Write to MH i2c: E2 08 00 00 19 80 13 00 00 00 00 00 00 95 [23:52:59]Write i2c OK [23:52:59]MH_I2C_Read... [23:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:59]Read from MH i2c: E2 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: E2 62 00 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: E2 62 00 00 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [23:52:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:59]wFMCommunicate OK [23:52:59]SAM_PROTO_GetFieldsCounters done [23:52:59]requested_item shift.num is exist - process it [23:52:59]requested_item shift.opened is exist - process it [23:52:59]req_shift_opened [23:52:59]FM_GetShiftState [23:52:59]SAM_PROTO_GetShiftState [23:52:59]wFMCommunicate request_size=4 [23:52:59]MH_SAM_APDU [23:52:59]CAPDU: 80 13 01 00 [23:52:59]Write to MH i2c: E2 08 00 01 19 80 13 01 00 00 00 00 00 97 [23:52:59]Write i2c OK [23:52:59]MH_I2C_Read... [23:52:59]OFD Sender: No OFD packet to send [23:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:59]Read from MH i2c: E2 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: E2 0E 00 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: E2 0E 00 01 19 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 12 [23:52:59]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:52:59]wFMCommunicate OK [23:52:59]SAM_PROTO_GetShiftState done [23:52:59]FM_GetShiftState done [23:52:59]req_shift_opened done [23:52:59]requested_item shift.open_date is exist - process it [23:52:59]req_shift_open_date [23:52:59]req_shift_open_date done [23:52:59]produce_requested_data done [23:52:59]produce_requested_data return {"fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [23:52:59]process_action_free x_report [23:52:59]json_value_free [23:52:59]json_value_free done [23:52:59]process_json_proto returns [23:52:59]Send response to host [23:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [23:52:59]free response buf [23:52:59]execute_script done [23:52:59]execute_script returns [23:52:59]free content buf [23:52:59]Sock 9.Close socket [23:52:59]Sock 9.Thread stoped [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:32]accept exits with 7 [23:53:32]New connection [23:53:32]New thread 3067182436 created [23:53:32]Thread 3067039076 joined [23:53:32]Waiting for new connection... [23:53:32] Sock 7.Parse request [23:53:32]Sock 7.Check first char [23:53:32]Sock 7.First char is OK [23:53:32]request: POST /json_proto HTTP/1.0 [23:53:32]Method: POST [23:53:32]URL: /json_proto [23:53:32]Method is POST - this is cgi request [23:53:32]url: /json_proto [23:53:32]query_string will be loaded in cgi processing [23:53:32]execute_cgi json_proto POST (null) [23:53:32]execute_cgi path=json_proto method=POST [23:53:32]POST find Content-Length [23:53:32]Host: 172.17.43.4:8080 [23:53:32]Content-Length: 215 [23:53:32]Content-Type: application/json [23:53:32] [23:53:32]POST finish read [23:53:32]Found Content-Length = 215 [23:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:32]execute_script... [23:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:32]POST & json_proto [23:53:32]process_json_proto [23:53:32]json parsed OK: [23:53:32]protocol is kg_v1.0 [23:53:32]action value=get_value [23:53:32]process_action get_value [23:53:32]cmd_get_value [23:53:32]process_action get_value done [23:53:32]requested_data is exist [23:53:32]produce_requested_data [23:53:32]requested_item kkm.sn is exist - process it [23:53:32]requested_item kkm.ver is exist - process it [23:53:32]requested_item fm.sn is exist - process it [23:53:32]wFMCommunicate request_size=4 [23:53:32]MH_SAM_APDU [23:53:32]CAPDU: 80 11 00 00 [23:53:32]Write to MH i2c: E2 08 00 02 19 80 11 00 00 00 00 00 00 95 [23:53:32]Write i2c OK [23:53:32]MH_I2C_Read... [23:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:32]Read from MH i2c: E2 [23:53:32]MH_I2C_Read... [23:53:32]Read from MH i2c: E2 17 00 [23:53:32]MH_I2C_Read... [23:53:32]Read from MH i2c: E2 17 00 02 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 EF [23:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:53:32]wFMCommunicate OK [23:53:32]requested_item fd.num is exist - process it [23:53:32]SAM_PROTO_GetFieldsCounters [23:53:32]wFMCommunicate request_size=4 [23:53:32]MH_SAM_APDU [23:53:32]CAPDU: 80 13 00 00 [23:53:32]Write to MH i2c: E2 08 00 03 19 80 13 00 00 00 00 00 00 98 [23:53:32]Write i2c OK [23:53:32]MH_I2C_Read... [23:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:32]Read from MH i2c: E2 [23:53:32]MH_I2C_Read... [23:53:32]Read from MH i2c: E2 62 00 [23:53:32]MH_I2C_Read... [23:53:32]Read from MH i2c: E2 62 00 03 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 A9 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:32]wFMCommunicate OK [23:53:32]SAM_PROTO_GetFieldsCounters done [23:53:32]requested_item shift.num is exist - process it [23:53:32]requested_item shift.opened is exist - process it [23:53:32]req_shift_opened [23:53:32]FM_GetShiftState [23:53:32]SAM_PROTO_GetShiftState [23:53:32]wFMCommunicate request_size=4 [23:53:32]MH_SAM_APDU [23:53:32]CAPDU: 80 13 01 00 [23:53:32]Write to MH i2c: E2 08 00 04 19 80 13 01 00 00 00 00 00 9A [23:53:32]Write i2c OK [23:53:32]MH_I2C_Read... [23:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:32]Read from MH i2c: E2 [23:53:32]MH_I2C_Read... [23:53:32]Read from MH i2c: E2 0E 00 [23:53:32]MH_I2C_Read... [23:53:32]Read from MH i2c: E2 0E 00 04 19 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 15 [23:53:32]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:53:32]wFMCommunicate OK [23:53:32]SAM_PROTO_GetShiftState done [23:53:32]FM_GetShiftState done [23:53:32]req_shift_opened done [23:53:32]requested_item shift.open_date is exist - process it [23:53:32]req_shift_open_date [23:53:32]req_shift_open_date done [23:53:32]produce_requested_data done [23:53:32]produce_requested_data return {"kkm.sn":"0300000061","kkm.ver":"v1.0","fm.sn":"0000000000959358","fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408} [23:53:32]process_action_free get_value [23:53:32]json_value_free [23:53:32]json_value_free done [23:53:32]process_json_proto returns [23:53:32]Send response to host [23:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000061","kkm.ver":"v1.0","fm.sn":"0000000000959358","fd.num":22185,"shift.num":228,"shift.opened":1,"shift.open_date":1726964408}}} [23:53:32]free response buf [23:53:32]execute_script done [23:53:32]execute_script returns [23:53:32]free content buf [23:53:32]Sock 7.Close socket [23:53:32]Sock 7.Thread stoped [23:53:32]accept exits with 9 [23:53:32]New connection [23:53:32]New thread 3067039076 created [23:53:32]Thread 3067182436 joined [23:53:32]Waiting for new connection... [23:53:32] Sock 9.Parse request [23:53:32]Sock 9.Check first char [23:53:32]Sock 9.First char is OK [23:53:32]request: POST /json_proto HTTP/1.0 [23:53:32]Method: POST [23:53:32]URL: /json_proto [23:53:32]Method is POST - this is cgi request [23:53:32]url: /json_proto [23:53:32]query_string will be loaded in cgi processing [23:53:32]execute_cgi json_proto POST (null) [23:53:32]execute_cgi path=json_proto method=POST [23:53:32]POST find Content-Length [23:53:32]Host: 172.17.43.4:8080 [23:53:32]Content-Length: 331 [23:53:32]Content-Type: application/json [23:53:32] [23:53:32]POST finish read [23:53:32]Found Content-Length = 331 [23:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:32]execute_script... [23:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:32]POST & json_proto [23:53:32]process_json_proto [23:53:32]json parsed OK: [23:53:32]protocol is kg_v1.0 [23:53:32]action value=get_value [23:53:32]process_action get_value [23:53:32]cmd_get_value [23:53:32]process_action get_value done [23:53:32]requested_data is exist [23:53:32]produce_requested_data [23:53:32]requested_item fm.sale.total is exist - process it [23:53:32]SAM_PROTO_GetFMData [23:53:32]wFMCommunicate request_size=4 [23:53:32]MH_SAM_APDU [23:53:32]CAPDU: 80 13 03 00 [23:53:32]Write to MH i2c: E2 08 00 05 19 80 13 03 00 00 00 00 00 9D [23:53:32]Write i2c OK [23:53:32]MH_I2C_Read... [23:53:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:33]Read from MH i2c: E2 [23:53:33]MH_I2C_Read... [23:53:33]Read from MH i2c: E2 FD 00 [23:53:33]MH_I2C_Read... [23:53:33]Read from MH i2c: E2 FD 00 05 19 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6F [23:53:33]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:53:33]wFMCommunicate OK [23:53:33]wFMCommunicate request_size=4 [23:53:33]MH_SAM_APDU [23:53:33]CAPDU: 80 17 00 00 [23:53:33]Write to MH i2c: E2 08 00 06 19 80 17 00 00 00 00 00 00 9F [23:53:33]Write i2c OK [23:53:33]MH_I2C_Read... [23:53:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:33]Read from MH i2c: E2 [23:53:33]MH_I2C_Read... [23:53:33]Read from MH i2c: E2 FD 00 [23:53:33]MH_I2C_Read... [23:53:33]Read from MH i2c: E2 FD 00 06 19 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [23:53:33]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:33]wFMCommunicate OK [23:53:33]wFMCommunicate request_size=4 [23:53:33]MH_SAM_APDU [23:53:33]CAPDU: 80 17 00 00 [23:53:33]Write to MH i2c: E2 08 00 07 19 80 17 00 00 00 00 00 00 A0 [23:53:33]Write i2c OK [23:53:33]MH_I2C_Read... [23:53:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:34]Read from MH i2c: E2 [23:53:34]MH_I2C_Read... [23:53:34]Read from MH i2c: E2 FD 00 [23:53:34]MH_I2C_Read... [23:53:34]Read from MH i2c: E2 FD 00 07 19 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CC [23:53:34]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:34]wFMCommunicate OK [23:53:34]wFMCommunicate request_size=4 [23:53:34]MH_SAM_APDU [23:53:34]CAPDU: 80 17 00 00 [23:53:34]Write to MH i2c: E2 08 00 08 19 80 17 00 00 00 00 00 00 A1 [23:53:34]Write i2c OK [23:53:34]MH_I2C_Read... [23:53:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:34]Read from MH i2c: E2 [23:53:34]MH_I2C_Read... [23:53:34]OFD Sender: No OFD packet to send [23:53:34]Read from MH i2c: E2 FD 00 [23:53:34]MH_I2C_Read... [23:53:34]Read from MH i2c: E2 FD 00 08 19 00 00 EF 03 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 90 00 19 [23:53:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:53:34]wFMCommunicate OK [23:53:34]wFMCommunicate request_size=4 [23:53:34]MH_SAM_APDU [23:53:34]CAPDU: 80 17 00 00 [23:53:34]Write to MH i2c: E2 08 00 09 19 80 17 00 00 00 00 00 00 A2 [23:53:34]Write i2c OK [23:53:34]MH_I2C_Read... [23:53:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:53:34]Read from MH i2c: E2 [23:53:34]MH_I2C_Read... [23:53:34]Read from MH i2c: E2 D7 00 [23:53:34]MH_I2C_Read... [23:53:34]Read from MH i2c: E2 D7 00 09 19 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [23:53:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:34]wFMCommunicate OK [23:53:34]SAM_PROTO_GetFMData done [23:53:34]requested_item fm.sale_refund.total is exist - process it [23:53:34]requested_item fm.buy.total is exist - process it [23:53:34]requested_item shift.sale.total is exist - process it [23:53:34]SAM_PROTO_GetShiftData [23:53:34]wFMCommunicate request_size=4 [23:53:34]MH_SAM_APDU [23:53:34]CAPDU: 80 13 02 00 [23:53:34]Write to MH i2c: E2 08 00 0A 19 80 13 02 00 00 00 00 00 A1 [23:53:34]Write i2c OK [23:53:34]MH_I2C_Read... [23:53:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:35]Read from MH i2c: E2 [23:53:35]MH_I2C_Read... [23:53:35]Read from MH i2c: E2 FD 00 [23:53:35]MH_I2C_Read... [23:53:35]Read from MH i2c: E2 FD 00 0A 19 00 AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [23:53:35]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:35]wFMCommunicate OK [23:53:35]wFMCommunicate request_size=4 [23:53:35]MH_SAM_APDU [23:53:35]CAPDU: 80 17 00 00 [23:53:35]Write to MH i2c: E2 08 00 0B 19 80 17 00 00 00 00 00 00 A4 [23:53:35]Write i2c OK [23:53:35]MH_I2C_Read... [23:53:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:35]Read from MH i2c: E2 [23:53:35]MH_I2C_Read... [23:53:35]Read from MH i2c: E2 FD 00 [23:53:35]MH_I2C_Read... [23:53:35]Read from MH i2c: E2 FD 00 0B 19 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [23:53:35]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:35]wFMCommunicate OK [23:53:35]wFMCommunicate request_size=4 [23:53:35]MH_SAM_APDU [23:53:35]CAPDU: 80 17 00 00 [23:53:35]Write to MH i2c: E2 08 00 0C 19 80 17 00 00 00 00 00 00 A5 [23:53:35]Write i2c OK [23:53:35]MH_I2C_Read... [23:53:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:35]Read from MH i2c: E2 [23:53:35]MH_I2C_Read... [23:53:35]Read from MH i2c: E2 FD 00 [23:53:35]MH_I2C_Read... [23:53:35]Read from MH i2c: E2 FD 00 0C 19 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 55 [23:53:36]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:36]wFMCommunicate OK [23:53:36]wFMCommunicate request_size=4 [23:53:36]MH_SAM_APDU [23:53:36]CAPDU: 80 17 00 00 [23:53:36]Write to MH i2c: E2 08 00 0D 19 80 17 00 00 00 00 00 00 A6 [23:53:36]Write i2c OK [23:53:36]MH_I2C_Read... [23:53:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:36]Read from MH i2c: E2 [23:53:36]MH_I2C_Read... [23:53:36]Read from MH i2c: E2 FD 00 [23:53:36]MH_I2C_Read... [23:53:36]Read from MH i2c: E2 FD 00 0D 19 00 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 90 00 2C [23:53:36]RAPDU: 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 90 00 [23:53:36]wFMCommunicate OK [23:53:36]wFMCommunicate request_size=4 [23:53:36]MH_SAM_APDU [23:53:36]CAPDU: 80 17 00 00 [23:53:36]Write to MH i2c: E2 08 00 0E 19 80 17 00 00 00 00 00 00 A7 [23:53:36]Write i2c OK [23:53:36]MH_I2C_Read... [23:53:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:53:36]Read from MH i2c: E2 [23:53:36]MH_I2C_Read... [23:53:36]Read from MH i2c: E2 C8 00 [23:53:36]MH_I2C_Read... [23:53:36]Read from MH i2c: E2 C8 00 0E 19 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:53:36]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:36]wFMCommunicate OK [23:53:36]SAM_PROTO_GetShiftData done [23:53:36]requested_item shift.sale.total_cash is exist - process it [23:53:36]requested_item shift.sale_refund.total is exist - process it [23:53:36]requested_item shift.sale_refund.total_cash is exist - process it [23:53:36]requested_item shift.buy.total is exist - process it [23:53:36]requested_item shift.buy.total_cash is exist - process it [23:53:36]produce_requested_data done [23:53:36]produce_requested_data return {"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:53:36]process_action_free get_value [23:53:36]json_value_free [23:53:36]json_value_free done [23:53:36]process_json_proto returns [23:53:36]Send response to host [23:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:53:36]free response buf [23:53:36]execute_script done [23:53:36]execute_script returns [23:53:36]free content buf [23:53:36]Sock 9.Close socket [23:53:36]Sock 9.Thread stoped [23:53:36]accept exits with 7 [23:53:36]New connection [23:53:36]New thread 3067182436 created [23:53:36]Thread 3067039076 joined [23:53:36]Waiting for new connection... [23:53:36] Sock 7.Parse request [23:53:36]Sock 7.Check first char [23:53:36]Sock 7.First char is OK [23:53:36]request: POST /json_proto HTTP/1.0 [23:53:36]Method: POST [23:53:36]URL: /json_proto [23:53:36]Method is POST - this is cgi request [23:53:36]url: /json_proto [23:53:36]query_string will be loaded in cgi processing [23:53:36]execute_cgi json_proto POST (null) [23:53:36]execute_cgi path=json_proto method=POST [23:53:36]POST find Content-Length [23:53:36]Host: 172.17.43.4:8080 [23:53:36]Content-Length: 331 [23:53:36]Content-Type: application/json [23:53:36] [23:53:36]POST finish read [23:53:36]Found Content-Length = 331 [23:53: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" ] } } [23:53:36]execute_script... [23:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:36]POST & json_proto [23:53:36]process_json_proto [23:53:36]json parsed OK: [23:53:36]protocol is kg_v1.0 [23:53:36]action value=get_value [23:53:36]process_action get_value [23:53:36]cmd_get_value [23:53:36]process_action get_value done [23:53:36]requested_data is exist [23:53:36]produce_requested_data [23:53:36]requested_item fm.sale.total is exist - process it [23:53:36]SAM_PROTO_GetFMData [23:53:36]wFMCommunicate request_size=4 [23:53:36]MH_SAM_APDU [23:53:36]CAPDU: 80 13 03 00 [23:53:36]Write to MH i2c: E2 08 00 0F 19 80 13 03 00 00 00 00 00 A7 [23:53:36]Write i2c OK [23:53:36]MH_I2C_Read... [23:53:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:37]Read from MH i2c: E2 [23:53:37]MH_I2C_Read... [23:53:37]Read from MH i2c: E2 FD 00 [23:53:37]MH_I2C_Read... [23:53:37]Read from MH i2c: E2 FD 00 0F 19 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 79 [23:53:37]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:53:37]wFMCommunicate OK [23:53:37]wFMCommunicate request_size=4 [23:53:37]MH_SAM_APDU [23:53:37]CAPDU: 80 17 00 00 [23:53:37]Write to MH i2c: E2 08 00 10 19 80 17 00 00 00 00 00 00 A9 [23:53:37]Write i2c OK [23:53:37]MH_I2C_Read... [23:53:37]Read from MH i2c: E2 [23:53:37]MH_I2C_Read... [23:53:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:37]Read from MH i2c: E2 FD 00 [23:53:37]MH_I2C_Read... [23:53:37]Read from MH i2c: E2 FD 00 10 19 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [23:53:37]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:37]wFMCommunicate OK [23:53:37]wFMCommunicate request_size=4 [23:53:37]MH_SAM_APDU [23:53:37]CAPDU: 80 17 00 00 [23:53:37]Write to MH i2c: E2 08 00 11 19 80 17 00 00 00 00 00 00 AA [23:53:37]Write i2c OK [23:53:37]MH_I2C_Read... [23:53:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:38]Read from MH i2c: E2 [23:53:38]MH_I2C_Read... [23:53:38]Read from MH i2c: E2 FD 00 [23:53:38]MH_I2C_Read... [23:53:38]Read from MH i2c: E2 FD 00 11 19 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [23:53:38]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:38]wFMCommunicate OK [23:53:38]wFMCommunicate request_size=4 [23:53:38]MH_SAM_APDU [23:53:38]CAPDU: 80 17 00 00 [23:53:38]Write to MH i2c: E2 08 00 12 19 80 17 00 00 00 00 00 00 AB [23:53:38]Write i2c OK [23:53:38]MH_I2C_Read... [23:53:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:38]Read from MH i2c: E2 [23:53:38]MH_I2C_Read... [23:53:38]Read from MH i2c: E2 FD 00 [23:53:38]MH_I2C_Read... [23:53:38]Read from MH i2c: E2 FD 00 12 19 00 00 EF 03 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 90 00 23 [23:53:38]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:53:38]wFMCommunicate OK [23:53:38]wFMCommunicate request_size=4 [23:53:38]MH_SAM_APDU [23:53:38]CAPDU: 80 17 00 00 [23:53:38]Write to MH i2c: E2 08 00 13 19 80 17 00 00 00 00 00 00 AC [23:53:38]Write i2c OK [23:53:38]MH_I2C_Read... [23:53:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:53:39]Read from MH i2c: E2 [23:53:39]MH_I2C_Read... [23:53:39]Read from MH i2c: E2 D7 00 [23:53:39]MH_I2C_Read... [23:53:39]Read from MH i2c: E2 D7 00 13 19 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [23:53:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:39]wFMCommunicate OK [23:53:39]SAM_PROTO_GetFMData done [23:53:39]requested_item fm.sale_refund.total is exist - process it [23:53:39]requested_item fm.buy.total is exist - process it [23:53:39]requested_item shift.sale.total is exist - process it [23:53:39]SAM_PROTO_GetShiftData [23:53:39]wFMCommunicate request_size=4 [23:53:39]MH_SAM_APDU [23:53:39]CAPDU: 80 13 02 00 [23:53:39]Write to MH i2c: E2 08 00 14 19 80 13 02 00 00 00 00 00 AB [23:53:39]Write i2c OK [23:53:39]MH_I2C_Read... [23:53:39]OFD Sender: No OFD packet to send [23:53:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:39]Read from MH i2c: E2 [23:53:39]MH_I2C_Read... [23:53:39]Read from MH i2c: E2 FD 00 [23:53:39]MH_I2C_Read... [23:53:39]Read from MH i2c: E2 FD 00 14 19 00 AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [23:53:39]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:39]wFMCommunicate OK [23:53:39]wFMCommunicate request_size=4 [23:53:39]MH_SAM_APDU [23:53:39]CAPDU: 80 17 00 00 [23:53:39]Write to MH i2c: E2 08 00 15 19 80 17 00 00 00 00 00 00 AE [23:53:40]Write i2c OK [23:53:40]MH_I2C_Read... [23:53:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:40]Read from MH i2c: E2 [23:53:40]MH_I2C_Read... [23:53:40]Read from MH i2c: E2 FD 00 [23:53:40]MH_I2C_Read... [23:53:40]Read from MH i2c: E2 FD 00 15 19 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [23:53:40]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:40]wFMCommunicate OK [23:53:40]wFMCommunicate request_size=4 [23:53:40]MH_SAM_APDU [23:53:40]CAPDU: 80 17 00 00 [23:53:40]Write to MH i2c: E2 08 00 16 19 80 17 00 00 00 00 00 00 AF [23:53:40]Write i2c OK [23:53:40]MH_I2C_Read... [23:53:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:40]Read from MH i2c: E2 [23:53:40]MH_I2C_Read... [23:53:40]Read from MH i2c: E2 FD 00 [23:53:40]MH_I2C_Read... [23:53:40]Read from MH i2c: E2 FD 00 16 19 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [23:53:40]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:40]wFMCommunicate OK [23:53:40]wFMCommunicate request_size=4 [23:53:40]MH_SAM_APDU [23:53:40]CAPDU: 80 17 00 00 [23:53:40]Write to MH i2c: E2 08 00 17 19 80 17 00 00 00 00 00 00 B0 [23:53:40]Write i2c OK [23:53:40]MH_I2C_Read... [23:53:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:41]Read from MH i2c: E2 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: E2 FD 00 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: E2 FD 00 17 19 00 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 90 00 36 [23:53:41]RAPDU: 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 90 00 [23:53:41]wFMCommunicate OK [23:53:41]wFMCommunicate request_size=4 [23:53:41]MH_SAM_APDU [23:53:41]CAPDU: 80 17 00 00 [23:53:41]Write to MH i2c: E2 08 00 18 19 80 17 00 00 00 00 00 00 B1 [23:53:41]Write i2c OK [23:53:41]MH_I2C_Read... [23:53:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:53:41]Read from MH i2c: E2 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: E2 C8 00 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: E2 C8 00 18 19 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [23:53:41]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:41]wFMCommunicate OK [23:53:41]SAM_PROTO_GetShiftData done [23:53:41]requested_item shift.sale.total_cash is exist - process it [23:53:41]requested_item shift.sale_refund.total is exist - process it [23:53:41]requested_item shift.sale_refund.total_cash is exist - process it [23:53:41]requested_item shift.buy.total is exist - process it [23:53:41]requested_item shift.buy.total_cash is exist - process it [23:53:41]produce_requested_data done [23:53:41]produce_requested_data return {"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:53:41]process_action_free get_value [23:53:41]json_value_free [23:53:41]json_value_free done [23:53:41]process_json_proto returns [23:53:41]Send response to host [23:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:53:41]free response buf [23:53:41]execute_script done [23:53:41]execute_script returns [23:53:41]free content buf [23:53:41]Sock 7.Close socket [23:53:41]Sock 7.Thread stoped [23:53:41]accept exits with 9 [23:53:41]New connection [23:53:41]New thread 3067039076 created [23:53:41]Thread 3067182436 joined [23:53:41]Waiting for new connection... [23:53:41] Sock 9.Parse request [23:53:41]Sock 9.Check first char [23:53:41]Sock 9.First char is OK [23:53:41]request: POST /json_proto HTTP/1.0 [23:53:41]Method: POST [23:53:41]URL: /json_proto [23:53:41]Method is POST - this is cgi request [23:53:41]url: /json_proto [23:53:41]query_string will be loaded in cgi processing [23:53:41]execute_cgi json_proto POST (null) [23:53:41]execute_cgi path=json_proto method=POST [23:53:41]POST find Content-Length [23:53:41]Host: 172.17.43.4:8080 [23:53:41]Content-Length: 254 [23:53:41]Content-Type: application/json [23:53:41] [23:53:41]POST finish read [23:53:41]Found Content-Length = 254 [23:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0440\u0438\u043C\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:41]execute_script... [23:53:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0440\u0438\u043C\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:41]POST & json_proto [23:53:41]process_json_proto [23:53:41]json parsed OK: [23:53:41]protocol is kg_v1.0 [23:53:41]action value=close_shift [23:53:41]process_action close_shift [23:53:41]cmd_close_shift [23:53:41]MH_GetDate [23:53:41]Write to MH i2c: F0 00 00 19 19 21 [23:53:41]Write i2c OK [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: F0 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: F0 09 00 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: F0 09 00 19 19 00 09 AE F0 66 02 BF CF 66 2D [23:53:41]GetLastDocTimeStamp 1727049172 [23:53:41]current date 1727049225 [23:53:41]FM_GetShiftState [23:53:41]SAM_PROTO_GetShiftState [23:53:41]wFMCommunicate request_size=4 [23:53:41]MH_SAM_APDU [23:53:41]CAPDU: 80 13 01 00 [23:53:41]Write to MH i2c: E2 08 00 1A 19 80 13 01 00 00 00 00 00 B0 [23:53:41]Write i2c OK [23:53:41]MH_I2C_Read... [23:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:41]Read from MH i2c: E2 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: E2 0E 00 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: E2 0E 00 1A 19 00 09 00 01 B8 62 EF 66 00 00 00 00 90 00 2B [23:53:41]RAPDU: 09 00 01 B8 62 EF 66 00 00 00 00 90 00 [23:53:41]wFMCommunicate OK [23:53:41]SAM_PROTO_GetShiftState done [23:53:41]FM_GetShiftState done [23:53:41]KKMCreateCloseShiftDocument [23:53:41]Load OK [23:53:41]Malloc new data [23:53:41]MH_GetDate [23:53:41]Write to MH i2c: F0 00 00 1B 19 23 [23:53:41]Write i2c OK [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: F0 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: F0 09 00 [23:53:41]MH_I2C_Read... [23:53:41]Read from MH i2c: F0 09 00 1B 19 00 0A AE F0 66 02 BF CF 66 30 [23:53:41]Malloc new data [23:53:41]Malloc new data [23:53:41]Malloc new data [23:53:41]Malloc new data [23:53:41]KKMCreateCloseShiftDocument OK [23:53:41]KKMSetCloseShiftData OK [23:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=69 [23:53:41]tlvbuf is 003342F0 [23:53:41]KKMLoadAndSignCloseShiftData [23:53:41]SAM_PROTO_ProcessDocument [23:53:41]wFMCommunicate request_size=9 [23:53:41]MH_SAM_APDU [23:53:41]CAPDU: 80 15 01 00 04 05 00 45 00 [23:53:41]Write to MH i2c: E2 0C 00 1C 19 80 15 01 00 04 00 05 00 45 00 00 00 06 [23:53:42]Write i2c OK [23:53:42]MH_I2C_Read... [23:53:42]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:53:42]Read from MH i2c: E2 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 1C 19 00 90 00 A9 [23:53:42]RAPDU: 90 00 [23:53:42]wFMCommunicate OK [23:53:42]wFMCommunicate request_size=23 [23:53:42]MH_SAM_APDU [23:53:42]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:53:42]Write to MH i2c: E2 1A 00 1D 19 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 AB [23:53:42]Write i2c OK [23:53:42]MH_I2C_Read... [23:53:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:42]Read from MH i2c: E2 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 1D 19 00 90 00 AA [23:53:42]RAPDU: 90 00 [23:53:42]wFMCommunicate OK [23:53:42]wFMCommunicate request_size=28 [23:53:42]MH_SAM_APDU [23:53:42]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9A D0 B0 D1 80 D0 B8 D0 BC D0 BE D0 B2 20 D0 A1 2E 20 [23:53:42]Write to MH i2c: E2 1F 00 1E 19 80 15 02 00 17 00 FD 03 13 00 D0 9A D0 B0 D1 80 D0 B8 D0 BC D0 BE D0 B2 20 D0 A1 2E 20 00 00 36 [23:53:42]Write i2c OK [23:53:42]MH_I2C_Read... [23:53:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:42]Read from MH i2c: E2 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 1E 19 00 90 00 AB [23:53:42]RAPDU: 90 00 [23:53:42]wFMCommunicate OK [23:53:42]wFMCommunicate request_size=13 [23:53:42]MH_SAM_APDU [23:53:42]CAPDU: 80 15 02 00 08 F4 03 04 00 0A AE F0 66 [23:53:42]Write to MH i2c: E2 10 00 1F 19 80 15 02 00 08 00 F4 03 04 00 0A AE F0 66 00 00 D1 [23:53:42]Write i2c OK [23:53:42]MH_I2C_Read... [23:53:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:42]Read from MH i2c: E2 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 1F 19 00 90 00 AC [23:53:42]RAPDU: 90 00 [23:53:42]wFMCommunicate OK [23:53:42]wFMCommunicate request_size=25 [23:53:42]MH_SAM_APDU [23:53:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 [23:53:42]Write to MH i2c: E2 1C 00 20 19 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 00 00 16 [23:53:42]Write i2c OK [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 [23:53:42]MH_I2C_Read... [23:53:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:42]Read from MH i2c: E2 03 00 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 03 00 20 19 00 90 00 AD [23:53:42]RAPDU: 90 00 [23:53:42]wFMCommunicate OK [23:53:42]wFMCommunicate request_size=4 [23:53:42]MH_SAM_APDU [23:53:42]CAPDU: 80 15 03 00 [23:53:42]Write to MH i2c: E2 08 00 21 19 80 15 03 00 00 00 00 00 BB [23:53:42]Write i2c OK [23:53:42]MH_I2C_Read... [23:53:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:53:42]Read from MH i2c: E2 [23:53:42]MH_I2C_Read... [23:53:42]Read from MH i2c: E2 FD 00 [23:53:42]MH_I2C_Read... [23:53:43]Read from MH i2c: E2 FD 00 21 19 00 EE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AA 56 00 00 0E 04 04 00 E4 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [23:53:43]RAPDU: EE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AA 56 00 00 0E 04 04 00 E4 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:43]wFMCommunicate OK [23:53:43]SAM_PROTO_ProcessDocument answer len = 1262 [23:53:43]SAM_PROTO_ProcessDocument remain to read = 1014 [23:53:43]wFMCommunicate request_size=4 [23:53:43]MH_SAM_APDU [23:53:43]CAPDU: 80 17 00 00 [23:53:43]Write to MH i2c: E2 08 00 22 19 80 17 00 00 00 00 00 00 BB [23:53:43]Write i2c OK [23:53:43]MH_I2C_Read... [23:53:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:43]Read from MH i2c: E2 [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: E2 FD 00 [23:53:43]MH_I2C_Read... [23:53:43]Read from MH i2c: E2 FD 00 22 19 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [23:53:43]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:43]wFMCommunicate OK [23:53:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:43]SAM_PROTO_ProcessDocument remain to read = 764 [23:53:43]wFMCommunicate request_size=4 [23:53:43]MH_SAM_APDU [23:53:43]CAPDU: 80 17 00 00 [23:53:43]Write to MH i2c: E2 08 00 23 19 80 17 00 00 00 00 00 00 BC [23:53:43]Write i2c OK [23:53:43]MH_I2C_Read... [23:53:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:44]Read from MH i2c: E2 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 FD 00 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 FD 00 23 19 00 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 90 00 1A [23:53:44]RAPDU: 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 90 00 [23:53:44]wFMCommunicate OK [23:53:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:44]SAM_PROTO_ProcessDocument remain to read = 514 [23:53:44]wFMCommunicate request_size=4 [23:53:44]MH_SAM_APDU [23:53:44]CAPDU: 80 17 00 00 [23:53:44]Write to MH i2c: E2 08 00 24 19 80 17 00 00 00 00 00 00 BD [23:53:44]Write i2c OK [23:53:44]MH_I2C_Read... [23:53:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:44]Read from MH i2c: E2 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 FD 00 [23:53:44]MH_I2C_Read... [23:53:44]Read from MH i2c: E2 FD 00 24 19 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 49 [23:53:44]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [23:53:44]F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:44]wFMCommunicate OK [23:53:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:44]SAM_PROTO_ProcessDocument remain to read = 264 [23:53:44]wFMCommunicate request_size=4 [23:53:44]MH_SAM_APDU [23:53:44]CAPDU: 80 17 00 00 [23:53:44]Write to MH i2c: E2 08 00 25 19 80 17 00 00 00 00 00 00 BE [23:53:45]Write i2c OK [23:53:45]MH_I2C_Read... [23:53:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:45]Read from MH i2c: E2 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 FD 00 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 FD 00 25 19 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [23:53:45]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:53:45]wFMCommunicate OK [23:53:45]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:45]SAM_PROTO_ProcessDocument remain to read = 14 [23:53:45]wFMCommunicate request_size=4 [23:53:45]MH_SAM_APDU [23:53:45]CAPDU: 80 17 00 00 [23:53:45]Write to MH i2c: E2 08 00 26 19 80 17 00 00 00 00 00 00 BF [23:53:45]Write i2c OK [23:53:45]MH_I2C_Read... [23:53:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 14! [23:53:45]Read from MH i2c: E2 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 11 00 [23:53:45]MH_I2C_Read... [23:53:45]Read from MH i2c: E2 11 00 26 19 00 F7 03 00 00 35 04 06 00 F3 0C 87 EB 6B 83 90 00 59 [23:53:45]RAPDU: F7 03 00 00 35 04 06 00 F3 0C 87 EB 6B 83 90 00 [23:53:45]wFMCommunicate OK [23:53:45]SAM_PROTO_ProcessDocument received (without SW) 14 bytes [23:53:45]SAM_PROTO_ProcessDocument done [23:53:45]1209 (1) - 1.0 - номер версии ФФД [23:53:45]1041 (16) - 0000000000959358 - номер ФМ [23:53:45]1040 (4) - 22186 - номер ФД [23:53:45]1038 (4) - 228 - номер смены [23:53:45]1118 (4) - 100 - количество кассовых чеков за смену [23:53:45]1111 (4) - 102 - общее количество ФД за смену [23:53:45]1194 (1191) - счетчики итогов смены [23:53:45] 1134 (4) - 100 - количество чеков со всеми признаками расчетов [23:53:45] 1129 (152) - счетчики операций «приход» [23:53:45] 1135 (4) - 100 - количество чеков по признаку расчетов [23:53:45] 1201 (3) - 23708.00 - общая итоговая сумма в чеках [23:53:45] 1136 (3) - 23708.00 - итоговая сумма в чеках наличными [23:53:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:45] 1024 (122) - суммы налогов [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 0% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1006 (12) - суммы НДС [23:53:45] 1010 (1) - 12% - код ставки НДС [23:53:45] 1011 (3) - 2517.87 - сумма НДС по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (11) - суммы НСП [23:53:45] 1014 (1) - 1% - код ставки НСП [23:53:45] 1015 (2) - 209.74 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 2% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 3% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 5% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0,50% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 1,50% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1130 (141) - счетчики операций «возврат прихода» [23:53:45] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:45] 1024 (117) - суммы налогов [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 0% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 12% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 1% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 2% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 3% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 5% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0,50% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 1,50% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1131 (141) - счетчики операций «расход» [23:53:45] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:45] 1024 (117) - суммы налогов [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 0% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 12% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 1% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 2% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 3% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 5% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0,50% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 1,50% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1132 (141) - счетчики операций «возврат расхода» [23:53:45] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:45] 1024 (117) - суммы налогов [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 0% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1006 (9) - суммы НДС [23:53:45] 1010 (1) - 12% - код ставки НДС [23:53:45] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 0% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 1% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:45] 1014 (1) - 2% - код ставки НСП [23:53:45] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:45] 1007 (9) - суммы НСП [23:53:46] 1014 (1) - 3% - код ставки НСП [23:53:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:46] 1007 (9) - суммы НСП [23:53:46] 1014 (1) - 5% - код ставки НСП [23:53:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:46] 1007 (9) - суммы НСП [23:53:46] 1014 (1) - 0,50% - код ставки НСП [23:53:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:46] 1007 (9) - суммы НСП [23:53:46] 1014 (1) - 1,50% - код ставки НСП [23:53:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:46] 1133 (588) - - счетчики коррекции - не используются [23:53:46]1077 (6) - 267235145509763 - ФПД [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1209 (04B9) [23:53:46]Malloc new data [23:53:46]Processing tag 1041 (0411) [23:53:46]Processing tag 1040 (0410) [23:53:46]Malloc new data [23:53:46]Processing tag 1038 (040E) [23:53:46]Malloc new data [23:53:46]Processing tag 1118 (045E) [23:53:46]Malloc new data [23:53:46]Processing tag 1111 (0457) [23:53:46]Malloc new data [23:53:46]Processing tag 1194 (04AA) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1134 (046E) [23:53:46]Malloc new data [23:53:46]Processing tag 1129 (0469) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1135 (046F) [23:53:46]Malloc new data [23:53:46]Processing tag 1201 (04B1) [23:53:46]Malloc new data [23:53:46]Processing tag 1136 (0470) [23:53:46]Malloc new data [23:53:46]Processing tag 1138 (0472) [23:53:46]Malloc new data [23:53:46]Processing tag 1024 (0400) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1130 (046A) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1135 (046F) [23:53:46]Malloc new data [23:53:46]Processing tag 1201 (04B1) [23:53:46]Malloc new data [23:53:46]Processing tag 1136 (0470) [23:53:46]Malloc new data [23:53:46]Processing tag 1138 (0472) [23:53:46]Malloc new data [23:53:46]Processing tag 1024 (0400) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1131 (046B) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1135 (046F) [23:53:46]Malloc new data [23:53:46]Processing tag 1201 (04B1) [23:53:46]Malloc new data [23:53:46]Processing tag 1136 (0470) [23:53:46]Malloc new data [23:53:46]Processing tag 1138 (0472) [23:53:46]Malloc new data [23:53:46]Processing tag 1024 (0400) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1132 (046C) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1135 (046F) [23:53:46]Malloc new data [23:53:46]Processing tag 1201 (04B1) [23:53:46]Malloc new data [23:53:46]Processing tag 1136 (0470) [23:53:46]Malloc new data [23:53:46]Processing tag 1138 (0472) [23:53:46]Malloc new data [23:53:46]Processing tag 1024 (0400) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1006 (03EE) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1010 (03F2) [23:53:46]Malloc new data [23:53:46]Processing tag 1011 (03F3) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1007 (03EF) [23:53:46]Load OK [23:53:46]SetTLVBufToDocument [23:53:46]Processing tag 1014 (03F6) [23:53:46]Malloc new data [23:53:46]Processing tag 1015 (03F7) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1133 (046D) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Processing tag 1077 (0435) [23:53:46]Malloc new data [23:53:46]SetTLVBufToDocument err=0 [23:53:46]Malloc new data [23:53:46]SAM_PROTO_GetFMData [23:53:46]wFMCommunicate request_size=4 [23:53:46]MH_SAM_APDU [23:53:46]CAPDU: 80 13 03 00 [23:53:46]Write to MH i2c: E2 08 00 27 19 80 13 03 00 00 00 00 00 BF [23:53:46]Write i2c OK [23:53:46]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 FD 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 FD 00 27 19 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 91 [23:53:47]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:53:47]wFMCommunicate OK [23:53:47]wFMCommunicate request_size=4 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 17 00 00 [23:53:47]Write to MH i2c: E2 08 00 28 19 80 17 00 00 00 00 00 00 C1 [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 FD 00 [23:53:47]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 FD 00 28 19 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [23:53:48]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:48]wFMCommunicate OK [23:53:48]wFMCommunicate request_size=4 [23:53:48]MH_SAM_APDU [23:53:48]CAPDU: 80 17 00 00 [23:53:48]Write to MH i2c: E2 08 00 29 19 80 17 00 00 00 00 00 00 C2 [23:53:48]Write i2c OK [23:53:48]MH_I2C_Read... [23:53:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:48]Read from MH i2c: E2 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 FD 00 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 FD 00 29 19 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [23:53:48]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:48]wFMCommunicate OK [23:53:48]wFMCommunicate request_size=4 [23:53:48]MH_SAM_APDU [23:53:48]CAPDU: 80 17 00 00 [23:53:48]Write to MH i2c: E2 08 00 2A 19 80 17 00 00 00 00 00 00 C3 [23:53:48]Write i2c OK [23:53:48]MH_I2C_Read... [23:53:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:49]Read from MH i2c: E2 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: E2 FD 00 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: E2 FD 00 2A 19 00 00 EF 03 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 90 00 3B [23:53:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:53:49]wFMCommunicate OK [23:53:49]wFMCommunicate request_size=4 [23:53:49]MH_SAM_APDU [23:53:49]CAPDU: 80 17 00 00 [23:53:49]Write to MH i2c: E2 08 00 2B 19 80 17 00 00 00 00 00 00 C4 [23:53:49]Write i2c OK [23:53:49]MH_I2C_Read... [23:53:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [23:53:49]Read from MH i2c: E2 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: E2 D7 00 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: E2 D7 00 2B 19 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:53:49]00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [23:53:50]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:50]wFMCommunicate OK [23:53:50]SAM_PROTO_GetFMData done [23:53:50]Malloc new data [23:53:50]Malloc new data [23:53:50]Malloc new data [23:53:50]Malloc new data [23:53:50]KKMLoadAndSignCloseShiftData err=0 [23:53:50]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Каримов С. 22.09.2024 23:53 Смена: 228 РНМ: 0000000000146243 ЗНМ: 0300000061 СНО: Общий режим Чеков за смену: 100 ФД за смену: 102 Всего чеков: 100 ИТОГИ ПРИХОД Чеков: 100 Общий итог: 23708.00 Итого наличными: 23708.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 2517.87 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 209.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 23708.00 НС Приход: 8005900.00 НС Возвр.Прихода: 6752.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 22186 ФМ: 0000000000959358 ФПД: 267235145509763 [23:53:50]StoreToDocumentArchive [23:53:50]shift 228 fd 22186 [23:53:50]save to /storage/0228/doc_00022186 [23:53:50]save last doc name /storage/0228/doc_00022186 to /storage/kkm_last_doc_name [23:53:50]save OK [23:53:50]Clear old archive folders... [23:53:50]Remove dir /storage/0010 [23:53:50]opendir ok [23:53:50]file . [23:53:50]file .. [23:53:50]file doc_1727049180 [23:53:50]remove file /storage/0010/doc_1727049180 [23:53:50]remove dir /storage/0010 [23:53:50]NVStorageSaveData kkm_registers [23:53:50]File name is /storage/kkm_registers [23:53:50]Write 24 bytes [23:53:50]NVStorageSaveData done [23:53:50]NVStorageSaveData kkm_registers [23:53:50]File name is /storage/kkm_registers [23:53:50]Write 24 bytes [23:53:50]NVStorageSaveData done [23:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=1375 [23:53:50]tlvbuf is 002CA760 [23:53:50]SAM_PROTO_ClearQueue [23:53:50]wFMCommunicate request_size=4 [23:53:50]MH_SAM_APDU [23:53:50]CAPDU: 80 09 00 00 [23:53:50]Write to MH i2c: E2 08 00 2C 19 80 09 00 00 00 00 00 00 B7 [23:53:50]Write i2c OK [23:53:50]MH_I2C_Read... [23:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:50]Read from MH i2c: E2 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 03 00 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [23:53:50]RAPDU: 90 00 [23:53:50]wFMCommunicate OK [23:53:50]SAM_PROTO_ClearQueue done [23:53:50]KKMCreateOFDPacket [23:53:50]OFDProtocolAddRootSTLVToBuf [23:53:50]FM_MakeSignedData [23:53:50]FM_MakeSignedData [23:53:50]SAM_PROTO_SignData [23:53:50]wFMCommunicate request_size=4 [23:53:50]MH_SAM_APDU [23:53:50]CAPDU: 80 0D 01 02 [23:53:50]Write to MH i2c: E2 08 00 2D 19 80 0D 01 02 00 00 00 00 BF [23:53:50]Write i2c OK [23:53:50]MH_I2C_Read... [23:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:50]Read from MH i2c: E2 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 03 00 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [23:53:50]RAPDU: 90 00 [23:53:50]wFMCommunicate OK [23:53:50]wFMCommunicate request_size=255 [23:53:50]MH_SAM_APDU [23:53:50]CAPDU: 80 0D 02 02 FA 05 00 5F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D1 80 D0 B8 D0 BC D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 0A AE F0 66 0E 04 04 00 E4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 AA 04 D3 04 6E 04 04 00 64 00 00 00 69 04 A0 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 01 00 00 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 8B D7 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 [23:53:50]Write to MH i2c: E2 02 01 2E 19 80 0D 02 02 FA 00 05 00 5F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D1 80 D0 B8 D0 BC D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 0A AE F0 66 0E 04 04 00 E4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 AA 04 D3 04 6E 04 04 00 64 00 00 00 69 04 A0 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 01 00 00 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 8B D7 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 00 00 A9 [23:53:50]Write i2c OK [23:53:50]MH_I2C_Read... [23:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:50]Read from MH i2c: E2 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 03 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [23:53:51]RAPDU: 90 00 [23:53:51]wFMCommunicate OK [23:53:51]wFMCommunicate request_size=255 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 51 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 [23:53:51]Write to MH i2c: E2 02 01 2F 19 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 51 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 00 00 76 [23:53:51]Write i2c OK [23:53:51]MH_I2C_Read... [23:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:51]Read from MH i2c: E2 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 [23:53:51]MH_I2C_Read... [23:53:51]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [23:53:51]RAPDU: 90 00 [23:53:51]wFMCommunicate OK [23:53:51]wFMCommunicate request_size=255 [23:53:51]MH_SAM_APDU [23:53:51]CAPDU: 80 0D 02 02 FA 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D [23:53:51]Write to MH i2c: E2 02 01 30 19 80 0D 02 02 FA 00 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 00 00 FD [23:53:52]Write i2c OK [23:53:52]MH_I2C_Read... [23:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:52]Read from MH i2c: E2 [23:53:52]MH_I2C_Read... [23:53:52]Read from MH i2c: E2 03 00 [23:53:52]MH_I2C_Read... [23:53:52]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [23:53:52]RAPDU: 90 00 [23:53:52]wFMCommunicate OK [23:53:52]wFMCommunicate request_size=255 [23:53:52]MH_SAM_APDU [23:53:52]CAPDU: 80 0D 02 02 FA 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF [23:53:52]Write to MH i2c: E2 02 01 31 19 80 0D 02 02 FA 00 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 00 00 0B [23:53:52]Write i2c OK [23:53:52]MH_I2C_Read... [23:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:53]Read from MH i2c: E2 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 03 00 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [23:53:53]RAPDU: 90 00 [23:53:53]wFMCommunicate OK [23:53:53]wFMCommunicate request_size=255 [23:53:53]MH_SAM_APDU [23:53:53]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 [23:53:53]Write to MH i2c: E2 02 01 32 19 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 00 00 5C [23:53:53]Write i2c OK [23:53:53]MH_I2C_Read... [23:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:53]Read from MH i2c: E2 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 03 00 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [23:53:53]RAPDU: 90 00 [23:53:53]wFMCommunicate OK [23:53:53]wFMCommunicate request_size=134 [23:53:53]MH_SAM_APDU [23:53:53]CAPDU: 80 0D 02 02 81 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 F3 0C 87 EB 6B 83 [23:53:53]Write to MH i2c: E2 89 00 33 19 80 0D 02 02 81 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 F3 0C 87 EB 6B 83 00 00 68 [23:53:53]Write i2c OK [23:53:53]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 03 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [23:53:54]RAPDU: 90 00 [23:53:54]wFMCommunicate OK [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 0D 03 02 [23:53:54]Write to MH i2c: E2 08 00 34 19 80 0D 03 02 00 00 00 00 C8 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 0B 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 0B 00 34 19 00 5C A6 2B 81 10 F6 7B FB 90 00 F3 [23:53:54]RAPDU: 5C A6 2B 81 10 F6 7B FB 90 00 [23:53:54]wFMCommunicate OK [23:53:54]SAM_PROTO_SignData done [23:53:54]FM_MakeSignedData done [23:53:54]CreateOFDProtocolMessage [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 11 00 00 [23:53:54]Write to MH i2c: E2 08 00 35 19 80 11 00 00 00 00 00 00 C8 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:54]Read from MH i2c: E2 17 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 17 00 35 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 22 [23:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [23:53:54]wFMCommunicate OK [23:53:54]CreateOFDProtocolMessage done [23:53:54]OFDSenderStorePacket 22186 [23:53:54]StoreOFDPacket docnum=22186 [23:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 73 05 00 00 03 04 6B 05 F1 0D 5A 05 01 00 05 00 5F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D1 80 D0 B8 D0 BC D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 0A AE F0 66 0E 04 04 00 E4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 AA 04 D3 04 6E 04 04 00 64 00 00 00 69 04 A0 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 01 00 00 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 8B D7 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 EE 51 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 AA 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 F3 0C 87 EB 6B 83 5C A6 2B 81 10 F6 7B FB [23:53:54]CheckFolder [23:53:54]dirname=/storage/ofd_packets [23:53:54]CheckFolder done [23:53:54]ProducePacketName [23:53:54]name=ofd_packets/00022186 [23:53:54]NVStorageSaveData ofd_packets/00022186 [23:53:54]File name is /storage/ofd_packets/00022186 [23:53:54]Write 1425 bytes [23:53:54]NVStorageSaveData done [23:53:54]OFDSenderStorePacket done [23:53:54]KKMCreateOFDPacket done [23:53:54]NVStorageSaveData kkm_last_timestamp [23:53:54]File name is /storage/kkm_last_timestamp [23:53:54]Write 4 bytes [23:53:54]NVStorageSaveData done [23:53:54]ExternCall_PrintAddStr [23:53:54]wPrintStart [23:53:54]Write to MH i2c: 01 00 00 36 19 4F [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: 01 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: 01 07 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: 01 07 00 36 19 00 00 00 00 00 FF 0F 64 [23:53:54]RasterBufferAndPrint [23:53:54]line Отчет о закрытии смены [23:53:54]line ФФД: 1.0 [23:53:54]line ИНН: 02508201610067 [23:53:54]line Кассир: Каримов С. [23:53:54]line 22.09.2024 23:53 [23:53:54]line Смена: 228 [23:53:54]line РНМ: 0000000000146243 [23:53:54]line ЗНМ: 0300000061 [23:53:54]line СНО: Общий режим [23:53:54]line Чеков за смену: 100 [23:53:54]line ФД за смену: 102 [23:53:54]line Всего чеков: 100 [23:53:54]line ИТОГИ ПРИХОД [23:53:54]line Чеков: 100 [23:53:54]line Общий итог: 23708.00 [23:53:54]line Итого наличными: 23708.00 [23:53:54]line Итого безнал.: 0.00 [23:53:54]line НДС 0% : 0.00 [23:53:54]line НДС 12% : 2517.87 [23:53:54]line НСП 0% : 0.00 [23:53:54]line НСП 1,50% : 0.00 [23:53:54]line НСП 0,50% : 0.00 [23:53:54]line НСП 5% : 0.00 [23:53:54]line НСП 3% : 0.00 [23:53:54]line НСП 2% : 0.00 [23:53:54]line НСП 1% : 209.74 [23:53:54]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:53:54]line Чеков: 0 [23:53:54]line Общий итог: 0.00 [23:53:54]line Итого наличными: 0.00 [23:53:54]line Итого безнал.: 0.00 [23:53:54]line НДС 0% : 0.00 [23:53:54]line НДС 12% : 0.00 [23:53:54]line НСП 0% : 0.00 [23:53:54]line НСП 1,50% : 0.00 [23:53:54]line НСП 0,50% : 0.00 [23:53:54]line НСП 5% : 0.00 [23:53:54]line НСП 3% : 0.00 [23:53:54]line НСП 2% : 0.00 [23:53:54]line НСП 1% : 0.00 [23:53:54]line ИТОГИ РАСХОД [23:53:54]line Чеков: 0 [23:53:54]line Общий итог: 0.00 [23:53:54]line Итого наличными: 0.00 [23:53:54]line Итого безнал.: 0.00 [23:53:54]line НДС 0% : 0.00 [23:53:54]line НДС 12% : 0.00 [23:53:54]line НСП 0% : 0.00 [23:53:54]line НСП 1,50% : 0.00 [23:53:54]line НСП 0,50% : 0.00 [23:53:54]line НСП 5% : 0.00 [23:53:54]line НСП 3% : 0.00 [23:53:54]line НСП 2% : 0.00 [23:53:54]line НСП 1% : 0.00 [23:53:54]line ИТОГИ ВОЗВРАТ РАСХОДА [23:53:54]line Чеков: 0 [23:53:54]line Общий итог: 0.00 [23:53:54]line Итого наличными: 0.00 [23:53:54]line Итого безнал.: 0.00 [23:53:54]line НДС 0% : 0.00 [23:53:54]line НДС 12% : 0.00 [23:53:54]line НСП 0% : 0.00 [23:53:54]line НСП 1,50% : 0.00 [23:53:54]line НСП 0,50% : 0.00 [23:53:54]line НСП 5% : 0.00 [23:53:54]line НСП 3% : 0.00 [23:53:54]line НСП 2% : 0.00 [23:53:54]line НСП 1% : 0.00 [23:53:54]line Сумма внесений: 0.00 [23:53:54]line Сумма выплат: 0.00 [23:53:54]line Нал. в кассе: 23708.00 [23:53:54]line НС Приход: 8005900.00 [23:53:54]line НС Возвр.Прихода: 6752.00 [23:53:54]line НС Расход: 0.00 [23:53:54]line НС Возвр.Расхода: 0.00 [23:53:54]line ФД: 22186 [23:53:54]line ФМ: 0000000000959358 [23:53:54]line ФПД: 267235145509763 [23:53:54]OFD Sender: Processing packet 22186 [packets to send 23, broken 22] [23:53:54]ProducePacketName [23:53:54]name=ofd_packets/00022186 [23:53:54]OFD Sender: To server: pG, [23:53:54]CommunicateWithHost lk.salyk.kg:30040 [23:53:54]ConnectInit lk.salyk.kg [23:53:54]written 0, free lines is 4095 [23:53:54]Connected sock=10 [23:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 73 05 00 00 03 04 6B 05 F1 0D 5A 05 01 00 05 00 5F 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9A D0 B0 D1 80 D0 B8 D0 BC D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 0A AE F0 66 0E 04 04 00 E4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 AA 04 D3 04 6E 04 04 00 64 00 00 00 69 04 A0 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 01 00 00 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 8B D7 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 EE 51 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 Write to MH i2c: F7 01 03 00 01 00 00 86 00 19 EF 9F [23:53:55]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 Write i2c OK [23:53:56]03 MH_I2C_Read... [23:53:56]00 Read from MH i2c: 00 01 D0 [23:53:56]04 MH_I2C_Read... [23:53:56]8D 00 6F 04 04 Read from MH i2c: 00 01 00 07 00 00 00 [23:53:56]00 MH_I2C_Read... [23:53:56]B1 Read from MH i2c: 04 01 00 07 00 00 70 86 04 19 00 00 00 00 72 00 04 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 C3 00 0B F3 74 03 [23:53:56]00 RasterBufferAndPrint [23:53:56]00 line [23:53:56]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF line [23:53:56]03 line [23:53:56]09 line [23:53:56]00 line [23:53:56]F6 03 01 00 00 F7 03 00 00 EF 03 09 written 0, free lines is 3737 [23:53:56]00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 MH_Cut [23:53:56]00 Write to MH i2c: 02 D1 F7 01 03 00 00 8D 00 19 EF 01 03 78 09 [23:53:56]00 F6 03 01 00 03 F7 03 00 00 EF 03 09 Write i2c OK [23:53:56]00 MH_I2C_Read... [23:53:56]F6 Read from MH i2c: 03 D1 01 [23:53:56]00 MH_I2C_Read... [23:53:56]04 Read from MH i2c: F7 D1 03 01 00 00 00 [23:53:56]EF MH_I2C_Read... [23:53:56]03 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 Read from MH i2c: 09 D1 00 01 F6 00 03 8D 01 19 00 00 77 [23:53:56]Write to MH i2c: 01 00 00 8E 19 A7 [23:53:56]02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 Write i2c OK [23:53:56]03 MH_I2C_Read... [23:53:56]00 00 EF 03 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 *** Cut start [23:53:56]F6 03 01 *** Partial cut [23:53:56]00 *** CUTSNS_PIN = 1 [23:53:56]01 *** CUTSNS_PIN = 0 [23:53:56]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 *** Brake cut motor [23:53:56]00 06 F7 03 00 00 10 04 04 00 AA 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 F3 0C 87 EB 6B 83 5C A6 2B 81 10 F6 7B FB [23:53:57]Read from MH i2c: *** Stop cut motor [23:53:57]01 *** Cut end [23:53:57] [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: 01 07 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: 01 07 00 8E 19 00 00 00 00 00 FF 0F BC [23:53:57]process_action close_shift done [23:53:57]requested_data is exist [23:53:57]produce_requested_data [23:53:57]requested_item fd.num is exist - process it [23:53:57]SAM_PROTO_GetFieldsCounters [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 13 00 00 [23:53:57]Write to MH i2c: E2 08 00 8F 19 80 13 00 00 00 00 00 00 24 [23:53:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 33 B9 47 00 33 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 Write i2c OK [23:53:57]30 MH_I2C_Read... [23:53:57]30 30 30 30 39 35 39 33 35 38 10 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:57]04 04 00 AA 56 00 00 F4 03 04 00 40 58 F0 66 B6 04 01 00 00 5B EC 2D 0B DB 82 F5 C7 [23:53:57]CommunicateWithHost err = 0 [23:53:57]CheckOFDResponse [23:53:57]1017 (14) - 77093643461234 [23:53:57]1041 (16) - 0000000000959358 [23:53:57]1040 (4) - 22186 [23:53:57]1012 (4) - 22.09.2024 17:47 [23:53:57]1206 (1) - 0 [23:53:57]OFD Sender: Remove packet 22186 [23:53:57]ProducePacketName [23:53:57]name=ofd_packets/00022186 [23:53:57]NVStorageDeleteData [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 62 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 62 00 8F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AA 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [23:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AA 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:57]wFMCommunicate OK [23:53:57]SAM_PROTO_GetFieldsCounters done [23:53:57]requested_item shift.num is exist - process it [23:53:57]requested_item shift.opened is exist - process it [23:53:57]req_shift_opened [23:53:57]FM_GetShiftState [23:53:57]SAM_PROTO_GetShiftState [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 13 01 00 [23:53:57]Write to MH i2c: E2 08 00 90 19 80 13 01 00 00 00 00 00 26 [23:53:57]Write i2c OK [23:53:57]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 0E 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 0E 00 90 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 31 [23:53:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:53:57]wFMCommunicate OK [23:53:57]SAM_PROTO_GetShiftState done [23:53:57]FM_GetShiftState done [23:53:57]req_shift_opened done [23:53:57]requested_item shift.open_date is exist - process it [23:53:57]req_shift_open_date [23:53:57]FM_GetShiftState [23:53:57]SAM_PROTO_GetShiftState [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 13 01 00 [23:53:57]Write to MH i2c: E2 08 00 91 19 80 13 01 00 00 00 00 00 27 [23:53:57]Write i2c OK [23:53:57]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 0E 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 0E 00 91 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 32 [23:53:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:53:57]wFMCommunicate OK [23:53:57]SAM_PROTO_GetShiftState done [23:53:57]FM_GetShiftState done [23:53:57]req_shift_open_date done [23:53:57]produce_requested_data done [23:53:57]produce_requested_data return {"fd.num":22186,"shift.num":228,"shift.opened":0,"shift.open_date":0} [23:53:57]process_action_free close_shift [23:53:57]json_value_free [23:53:57]json_value_free done [23:53:57]process_json_proto returns [23:53:57]Send response to host [23:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":22186,"shift.num":228,"shift.opened":0,"shift.open_date":0}}} [23:53:57]free response buf [23:53:57]execute_script done [23:53:57]execute_script returns [23:53:57]free content buf [23:53:57]Sock 9.Close socket [23:53:57]Sock 9.Thread stoped [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54: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:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]accept exits with 7 [00:13:03]New connection [00:13:03]New thread 3067182436 created [00:13:03]Thread 3067039076 joined [00:13:03]Waiting for new connection... [00:13:03] Sock 7.Parse request [00:13:03]Sock 7.Check first char [00:13:03]Sock 7.First char is OK [00:13:03]request: POST /json_proto HTTP/1.0 [00:13:03]Method: POST [00:13:03]URL: /json_proto [00:13:03]Method is POST - this is cgi request [00:13:03]url: /json_proto [00:13:03]query_string will be loaded in cgi processing [00:13:03]execute_cgi json_proto POST (null) [00:13:03]execute_cgi path=json_proto method=POST [00:13:03]POST find Content-Length [00:13:03]Host: 172.17.43.4:8080 [00:13:03]Content-Length: 215 [00:13:03]Content-Type: application/json [00:13:03] [00:13:03]POST finish read [00:13:03]Found Content-Length = 215 [00:13:03]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:13:03]execute_script... [00:13:03]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:13:03]POST & json_proto [00:13:03]process_json_proto [00:13:03]json parsed OK: [00:13:03]protocol is kg_v1.0 [00:13:03]action value=get_value [00:13:03]process_action get_value [00:13:03]cmd_get_value [00:13:03]process_action get_value done [00:13:03]requested_data is exist [00:13:03]produce_requested_data [00:13:03]requested_item kkm.sn is exist - process it [00:13:03]requested_item kkm.ver is exist - process it [00:13:03]requested_item fm.sn is exist - process it [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 11 00 00 [00:13:03]Write to MH i2c: E2 08 00 92 19 80 11 00 00 00 00 00 00 25 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]OFD Sender: No OFD packet to send [00:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 17 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 17 00 92 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 7F [00:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [00:13:03]wFMCommunicate OK [00:13:03]requested_item fd.num is exist - process it [00:13:03]SAM_PROTO_GetFieldsCounters [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 13 00 00 [00:13:03]Write to MH i2c: E2 08 00 93 19 80 13 00 00 00 00 00 00 28 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 62 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 62 00 93 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AA 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [00:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AA 56 00 00 0E 04 04 00 E4 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:04]wFMCommunicate OK [00:13:04]SAM_PROTO_GetFieldsCounters done [00:13:04]requested_item shift.num is exist - process it [00:13:04]requested_item shift.opened is exist - process it [00:13:04]req_shift_opened [00:13:04]FM_GetShiftState [00:13:04]SAM_PROTO_GetShiftState [00:13:04]wFMCommunicate request_size=4 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 13 01 00 [00:13:04]Write to MH i2c: E2 08 00 94 19 80 13 01 00 00 00 00 00 2A [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 0E 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 0E 00 94 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 35 [00:13:04]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:04]wFMCommunicate OK [00:13:04]SAM_PROTO_GetShiftState done [00:13:04]FM_GetShiftState done [00:13:04]req_shift_opened done [00:13:04]requested_item shift.open_date is exist - process it [00:13:04]req_shift_open_date [00:13:04]FM_GetShiftState [00:13:04]SAM_PROTO_GetShiftState [00:13:04]wFMCommunicate request_size=4 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 13 01 00 [00:13:04]Write to MH i2c: E2 08 00 95 19 80 13 01 00 00 00 00 00 2B [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 0E 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 0E 00 95 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 36 [00:13:04]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:04]wFMCommunicate OK [00:13:04]SAM_PROTO_GetShiftState done [00:13:04]FM_GetShiftState done [00:13:04]req_shift_open_date done [00:13:04]produce_requested_data done [00:13:04]produce_requested_data return {"kkm.sn":"0300000061","kkm.ver":"v1.0","fm.sn":"0000000000959358","fd.num":22186,"shift.num":228,"shift.opened":0,"shift.open_date":0} [00:13:04]process_action_free get_value [00:13:04]json_value_free [00:13:04]json_value_free done [00:13:04]process_json_proto returns [00:13:04]Send response to host [00:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000061","kkm.ver":"v1.0","fm.sn":"0000000000959358","fd.num":22186,"shift.num":228,"shift.opened":0,"shift.open_date":0}}} [00:13:04]free response buf [00:13:04]execute_script done [00:13:04]execute_script returns [00:13:04]free content buf [00:13:04]Sock 7.Close socket [00:13:04]Sock 7.Thread stoped [00:13:04]accept exits with 9 [00:13:04]New connection [00:13:04]New thread 3067039076 created [00:13:04]Thread 3067182436 joined [00:13:04]Waiting for new connection... [00:13:04] Sock 9.Parse request [00:13:04]Sock 9.Check first char [00:13:04]Sock 9.First char is OK [00:13:04]request: POST /json_proto HTTP/1.0 [00:13:04]Method: POST [00:13:04]URL: /json_proto [00:13:04]Method is POST - this is cgi request [00:13:04]url: /json_proto [00:13:04]query_string will be loaded in cgi processing [00:13:04]execute_cgi json_proto POST (null) [00:13:04]execute_cgi path=json_proto method=POST [00:13:04]POST find Content-Length [00:13:04]Host: 172.17.43.4:8080 [00:13:04]Content-Length: 331 [00:13:04]Content-Type: application/json [00:13:04] [00:13:04]POST finish read [00:13:04]Found Content-Length = 331 [00:13:04]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:13:04]execute_script... [00:13:04]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:13:04]POST & json_proto [00:13:04]process_json_proto [00:13:04]json parsed OK: [00:13:04]protocol is kg_v1.0 [00:13:04]action value=get_value [00:13:04]process_action get_value [00:13:04]cmd_get_value [00:13:04]process_action get_value done [00:13:04]requested_data is exist [00:13:04]produce_requested_data [00:13:04]requested_item fm.sale.total is exist - process it [00:13:04]SAM_PROTO_GetFMData [00:13:04]wFMCommunicate request_size=4 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 13 03 00 [00:13:04]Write to MH i2c: E2 08 00 96 19 80 13 03 00 00 00 00 00 2E [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 FD 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 FD 00 96 19 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 00 [00:13:04]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:13:04]wFMCommunicate OK [00:13:04]wFMCommunicate request_size=4 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 17 00 00 [00:13:04]Write to MH i2c: E2 08 00 97 19 80 17 00 00 00 00 00 00 30 [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:05]Read from MH i2c: E2 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 97 19 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:13:05]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:05]wFMCommunicate OK [00:13:05]wFMCommunicate request_size=4 [00:13:05]MH_SAM_APDU [00:13:05]CAPDU: 80 17 00 00 [00:13:05]Write to MH i2c: E2 08 00 98 19 80 17 00 00 00 00 00 00 31 [00:13:05]Write i2c OK [00:13:05]MH_I2C_Read... [00:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:05]Read from MH i2c: E2 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 98 19 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:13:05]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:05]wFMCommunicate OK [00:13:05]wFMCommunicate request_size=4 [00:13:05]MH_SAM_APDU [00:13:05]CAPDU: 80 17 00 00 [00:13:05]Write to MH i2c: E2 08 00 99 19 80 17 00 00 00 00 00 00 32 [00:13:05]Write i2c OK [00:13:05]MH_I2C_Read... [00:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:05]Read from MH i2c: E2 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 99 19 00 00 EF 03 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 90 00 AA [00:13:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:13:05]wFMCommunicate OK [00:13:05]wFMCommunicate request_size=4 [00:13:05]MH_SAM_APDU [00:13:05]CAPDU: 80 17 00 00 [00:13:05]Write to MH i2c: E2 08 00 9A 19 80 17 00 00 00 00 00 00 33 [00:13:05]Write i2c OK [00:13:05]MH_I2C_Read... [00:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:13:05]Read from MH i2c: E2 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 D7 00 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 D7 00 9A 19 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [00:13:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:05]wFMCommunicate OK [00:13:05]SAM_PROTO_GetFMData done [00:13:05]requested_item fm.sale_refund.total is exist - process it [00:13:05]requested_item fm.buy.total is exist - process it [00:13:05]requested_item shift.sale.total is exist - process it [00:13:05]SAM_PROTO_GetShiftData [00:13:05]wFMCommunicate request_size=4 [00:13:05]MH_SAM_APDU [00:13:05]CAPDU: 80 13 02 00 [00:13:05]Write to MH i2c: E2 08 00 9B 19 80 13 02 00 00 00 00 00 32 [00:13:06]Write i2c OK [00:13:06]MH_I2C_Read... [00:13:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:06]Read from MH i2c: E2 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 9B 19 00 AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:13:06]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 64 00 00 00 69 04 98 00 6F 04 04 00 64 00 00 00 B1 04 03 00 F0 2C 24 70 04 03 00 F0 2C 24 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8B D7 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 EE 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:06]wFMCommunicate OK [00:13:06]wFMCommunicate request_size=4 [00:13:06]MH_SAM_APDU [00:13:06]CAPDU: 80 17 00 00 [00:13:06]Write to MH i2c: E2 08 00 9C 19 80 17 00 00 00 00 00 00 35 [00:13:06]Write i2c OK [00:13:06]MH_I2C_Read... [00:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:06]Read from MH i2c: E2 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 9C 19 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:13:06]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:06]wFMCommunicate OK [00:13:06]wFMCommunicate request_size=4 [00:13:06]MH_SAM_APDU [00:13:06]CAPDU: 80 17 00 00 [00:13:06]Write to MH i2c: E2 08 00 9D 19 80 17 00 00 00 00 00 00 36 [00:13:06]Write i2c OK [00:13:06]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 FD 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 FD 00 9D 19 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [00:13:07]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:07]wFMCommunicate OK [00:13:07]wFMCommunicate request_size=4 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 17 00 00 [00:13:07]Write to MH i2c: E2 08 00 9E 19 80 17 00 00 00 00 00 00 37 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 FD 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 FD 00 9E 19 00 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 90 00 BD [00:13:07]RAPDU: 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 90 00 [00:13:07]wFMCommunicate OK [00:13:07]wFMCommunicate request_size=4 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 17 00 00 [00:13:07]Write to MH i2c: E2 08 00 9F 19 80 17 00 00 00 00 00 00 38 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 C8 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 C8 00 9F 19 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [00:13:07]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:07]wFMCommunicate OK [00:13:07]SAM_PROTO_GetShiftData done [00:13:07]requested_item shift.sale.total_cash is exist - process it [00:13:07]requested_item shift.sale_refund.total is exist - process it [00:13:07]requested_item shift.sale_refund.total_cash is exist - process it [00:13:07]requested_item shift.buy.total is exist - process it [00:13:07]requested_item shift.buy.total_cash is exist - process it [00:13:07]produce_requested_data done [00:13:07]produce_requested_data return {"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.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:13:07]process_action_free get_value [00:13:07]json_value_free [00:13:07]json_value_free done [00:13:07]process_json_proto returns [00:13:07]Send response to host [00:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.00,"fm.buy.total":0.00,"shift.sale.total":23708.00,"shift.sale.total_cash":23708.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:13:07]free response buf [00:13:07]execute_script done [00:13:07]execute_script returns [00:13:07]free content buf [00:13:07]Sock 9.Close socket [00:13:07]Sock 9.Thread stoped [00:13:07]accept exits with 7 [00:13:07]New connection [00:13:07]New thread 3067182436 created [00:13:07]Thread 3067039076 joined [00:13:07]Waiting for new connection... [00:13:07] Sock 7.Parse request [00:13:07]Sock 7.Check first char [00:13:07]Sock 7.First char is OK [00:13:07]request: POST /json_proto HTTP/1.0 [00:13:07]Method: POST [00:13:07]URL: /json_proto [00:13:07]Method is POST - this is cgi request [00:13:07]url: /json_proto [00:13:07]query_string will be loaded in cgi processing [00:13:07]execute_cgi json_proto POST (null) [00:13:07]execute_cgi path=json_proto method=POST [00:13:07]POST find Content-Length [00:13:07]Host: 172.17.43.4:8080 [00:13:07]Content-Length: 273 [00:13:07]Content-Type: application/json [00:13:07] [00:13:07]POST finish read [00:13:07]Found Content-Length = 273 [00:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u0448\u0440\u0430\u043F\u0431\u0430\u0439 \u041A. \u041F. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:07]execute_script... [00:13:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u0430\u0448\u0440\u0430\u043F\u0431\u0430\u0439 \u041A. \u041F. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:07]POST & json_proto [00:13:07]process_json_proto [00:13:07]json parsed OK: [00:13:07]protocol is kg_v1.0 [00:13:07]action value=open_shift [00:13:07]process_action open_shift [00:13:07]cmd_open_shift [00:13:07]MH_GetDate [00:13:07]Write to MH i2c: F0 00 00 A0 19 A8 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: F0 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: F0 09 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: F0 09 00 A0 19 00 97 B2 F0 66 02 BF CF 66 46 [00:13:07]GetLastDocTimeStamp 1727049226 [00:13:07]current date 1727050391 [00:13:07]FM_GetShiftState [00:13:07]SAM_PROTO_GetShiftState [00:13:07]wFMCommunicate request_size=4 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 13 01 00 [00:13:07]Write to MH i2c: E2 08 00 A1 19 80 13 01 00 00 00 00 00 37 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 0E 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 0E 00 A1 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 42 [00:13:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:07]wFMCommunicate OK [00:13:07]SAM_PROTO_GetShiftState done [00:13:07]FM_GetShiftState done [00:13:07]KKMCreateOpenShiftDocument [00:13:07]Load OK [00:13:07]Malloc new data [00:13:07]MH_GetDate [00:13:07]Write to MH i2c: F0 00 00 A2 19 AA [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: F0 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: F0 09 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: F0 09 00 A2 19 00 97 B2 F0 66 02 BF CF 66 48 [00:13:07]Malloc new data [00:13:07]KKMCreateOpenShiftDocument OK [00:13:07]KKMSetOpenShiftData OK [00:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=221 [00:13:07]tlvbuf is 003162A0 [00:13:07]KKMLoadAndSignOpenShiftData [00:13:07]SAM_PROTO_ProcessDocument [00:13:07]wFMCommunicate request_size=9 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 15 01 00 04 02 00 DD 00 [00:13:07]Write to MH i2c: E2 0C 00 A3 19 80 15 01 00 04 00 02 00 DD 00 00 00 22 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 03 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [00:13:07]RAPDU: 90 00 [00:13:07]wFMCommunicate OK [00:13:07]wFMCommunicate request_size=23 [00:13:07]MH_SAM_APDU [00:13:07]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:13:07]Write to MH i2c: E2 1A 00 A4 19 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 32 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 03 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 03 00 A4 19 00 90 00 31 [00:13:07]RAPDU: 90 00 [00:13:07]wFMCommunicate OK [00:13:07]wFMCommunicate request_size=36 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 9C D0 B0 D1 88 D1 80 D0 B0 D0 BF D0 B1 D0 B0 D0 B9 20 D0 9A 2E 20 D0 9F 2E 20 [00:13:07]Write to MH i2c: E2 27 00 A5 19 80 15 02 00 1F 00 FD 03 1B 00 D0 9C D0 B0 D1 88 D1 80 D0 B0 D0 BF D0 B1 D0 B0 D0 B9 20 D0 9A 2E 20 D0 9F 2E 20 00 00 5B [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:07]Read from MH i2c: E2 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 03 00 [00:13:07]MH_I2C_Read... [00:13:07]Read from MH i2c: E2 03 00 A5 19 00 90 00 32 [00:13:07]RAPDU: 90 00 [00:13:07]wFMCommunicate OK [00:13:07]wFMCommunicate request_size=104 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 15 02 00 63 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 88 D0 BA D0 B0 D1 80 2D D0 9A D1 8B D1 88 D1 82 D0 B0 D0 BA 2C 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 A1 D1 83 D1 83 D0 B9 D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 20 34 30 2E 36 34 38 35 31 31 2C 37 32 2E 38 34 35 35 34 37 [00:13:07]Write to MH i2c: E2 6B 00 A6 19 80 15 02 00 63 00 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 88 D0 BA D0 B0 D1 80 2D D0 9A D1 8B D1 88 D1 82 D0 B0 D0 BA 2C 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 A1 D1 83 D1 83 D0 B9 D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 20 34 30 2E 36 34 38 35 31 31 2C 37 32 2E 38 34 35 35 34 37 00 00 FC [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 A6 19 00 90 00 33 [00:13:08]RAPDU: 90 00 [00:13:08]wFMCommunicate OK [00:13:08]wFMCommunicate request_size=50 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 38 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:13:08]Write to MH i2c: E2 35 00 A7 19 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 38 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 BF [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [00:13:08]RAPDU: 90 00 [00:13:08]wFMCommunicate OK [00:13:08]wFMCommunicate request_size=13 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 15 02 00 08 F4 03 04 00 97 B2 F0 66 [00:13:08]Write to MH i2c: E2 10 00 A8 19 80 15 02 00 08 00 F4 03 04 00 97 B2 F0 66 00 00 EB [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [00:13:08]RAPDU: 90 00 [00:13:08]wFMCommunicate OK [00:13:08]wFMCommunicate request_size=25 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 [00:13:08]Write to MH i2c: E2 1C 00 A9 19 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 00 00 9F [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [00:13:08]RAPDU: 90 00 [00:13:08]wFMCommunicate OK [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 15 03 00 [00:13:08]Write to MH i2c: E2 08 00 AA 19 80 15 03 00 00 00 00 00 44 [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 38 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 38 00 AA 19 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AB 56 00 00 0E 04 04 00 E5 00 00 00 35 04 06 00 CC 95 12 8B AF 1C 90 00 C6 [00:13:08]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AB 56 00 00 0E 04 04 00 E5 00 00 00 35 04 06 00 CC 95 12 8B AF 1C 90 00 [00:13:08]wFMCommunicate OK [00:13:08]SAM_PROTO_ProcessDocument answer len = 51 [00:13:08]SAM_PROTO_ProcessDocument done [00:13:08]SetTLVBufToDocument [00:13:08]Processing tag 1209 (04B9) [00:13:08]Malloc new data [00:13:08]Processing tag 1041 (0411) [00:13:08]Processing tag 1040 (0410) [00:13:08]Malloc new data [00:13:08]Processing tag 1038 (040E) [00:13:08]Malloc new data [00:13:08]Processing tag 1077 (0435) [00:13:08]Malloc new data [00:13:08]SetTLVBufToDocument err=0 [00:13:08]KKMLoadAndSignOpenShiftData store KKM data [00:13:08]KKMLoadAndSignOpenShiftData err=0 [00:13:08]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Машрапбай К. П. Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 Место: АЗС № 88 "Партнер Нефть" 23.09.2024 00:13 Смена: 229 РНМ: 0000000000146243 ЗНМ: 0300000061 ФД: 22187 ФМ: 0000000000959358 ФПД: 224940633337628 [00:13:08]StoreToDocumentArchive [00:13:08]shift 229 fd 22187 [00:13:08]Create dir for shift 0229 [00:13:08]save to /storage/0229/doc_00022187 [00:13:08]save last doc name /storage/0229/doc_00022187 to /storage/kkm_last_doc_name [00:13:08]save OK [00:13:08]Clear old archive folders... [00:13:08]Remove dir /storage/0228 [00:13:08]opendir ok [00:13:08]file . [00:13:08]file .. [00:13:08]file doc_00022085 [00:13:08]remove file /storage/0228/doc_00022085 [00:13:08]file doc_00022086 [00:13:08]remove file /storage/0228/doc_00022086 [00:13:08]file doc_00022087 [00:13:08]remove file /storage/0228/doc_00022087 [00:13:08]file doc_00022088 [00:13:08]remove file /storage/0228/doc_00022088 [00:13:08]file doc_00022089 [00:13:08]remove file /storage/0228/doc_00022089 [00:13:08]file doc_00022090 [00:13:08]remove file /storage/0228/doc_00022090 [00:13:08]file doc_00022091 [00:13:08]remove file /storage/0228/doc_00022091 [00:13:08]file doc_00022092 [00:13:08]remove file /storage/0228/doc_00022092 [00:13:08]file doc_00022093 [00:13:08]remove file /storage/0228/doc_00022093 [00:13:08]file doc_00022094 [00:13:08]remove file /storage/0228/doc_00022094 [00:13:08]file doc_00022095 [00:13:08]remove file /storage/0228/doc_00022095 [00:13:08]file doc_00022096 [00:13:08]remove file /storage/0228/doc_00022096 [00:13:08]file doc_00022097 [00:13:08]remove file /storage/0228/doc_00022097 [00:13:08]file doc_00022098 [00:13:08]remove file /storage/0228/doc_00022098 [00:13:08]file doc_00022099 [00:13:08]remove file /storage/0228/doc_00022099 [00:13:08]file doc_00022100 [00:13:08]remove file /storage/0228/doc_00022100 [00:13:08]file doc_00022101 [00:13:08]remove file /storage/0228/doc_00022101 [00:13:08]file doc_00022102 [00:13:08]remove file /storage/0228/doc_00022102 [00:13:08]file doc_00022103 [00:13:08]remove file /storage/0228/doc_00022103 [00:13:08]file doc_00022104 [00:13:08]remove file /storage/0228/doc_00022104 [00:13:08]file doc_00022105 [00:13:08]remove file /storage/0228/doc_00022105 [00:13:08]file doc_00022106 [00:13:08]remove file /storage/0228/doc_00022106 [00:13:08]file doc_00022107 [00:13:08]remove file /storage/0228/doc_00022107 [00:13:08]file doc_00022108 [00:13:08]remove file /storage/0228/doc_00022108 [00:13:08]file doc_00022109 [00:13:08]remove file /storage/0228/doc_00022109 [00:13:08]file doc_00022110 [00:13:08]remove file /storage/0228/doc_00022110 [00:13:08]file doc_00022111 [00:13:08]remove file /storage/0228/doc_00022111 [00:13:08]file doc_00022112 [00:13:08]remove file /storage/0228/doc_00022112 [00:13:08]file doc_00022113 [00:13:08]remove file /storage/0228/doc_00022113 [00:13:08]file doc_00022114 [00:13:08]remove file /storage/0228/doc_00022114 [00:13:08]file doc_00022115 [00:13:08]remove file /storage/0228/doc_00022115 [00:13:08]file doc_00022116 [00:13:08]remove file /storage/0228/doc_00022116 [00:13:08]file doc_00022117 [00:13:08]remove file /storage/0228/doc_00022117 [00:13:08]file doc_00022118 [00:13:08]remove file /storage/0228/doc_00022118 [00:13:08]file doc_00022119 [00:13:08]remove file /storage/0228/doc_00022119 [00:13:08]file doc_00022120 [00:13:08]remove file /storage/0228/doc_00022120 [00:13:08]file doc_00022121 [00:13:08]remove file /storage/0228/doc_00022121 [00:13:08]file doc_00022122 [00:13:08]remove file /storage/0228/doc_00022122 [00:13:08]file doc_00022123 [00:13:08]remove file /storage/0228/doc_00022123 [00:13:08]file doc_00022124 [00:13:08]remove file /storage/0228/doc_00022124 [00:13:08]file doc_00022125 [00:13:08]remove file /storage/0228/doc_00022125 [00:13:08]file doc_00022126 [00:13:08]remove file /storage/0228/doc_00022126 [00:13:08]file doc_00022127 [00:13:08]remove file /storage/0228/doc_00022127 [00:13:08]file doc_00022128 [00:13:08]remove file /storage/0228/doc_00022128 [00:13:08]file doc_00022129 [00:13:08]remove file /storage/0228/doc_00022129 [00:13:08]file doc_00022130 [00:13:08]remove file /storage/0228/doc_00022130 [00:13:09]file doc_00022131 [00:13:09]remove file /storage/0228/doc_00022131 [00:13:09]file doc_00022132 [00:13:09]remove file /storage/0228/doc_00022132 [00:13:09]file doc_00022133 [00:13:09]remove file /storage/0228/doc_00022133 [00:13:09]OFD Sender: No OFD packet to send [00:13:09]file doc_00022134 [00:13:09]remove file /storage/0228/doc_00022134 [00:13:09]file doc_00022135 [00:13:09]remove file /storage/0228/doc_00022135 [00:13:09]file doc_00022136 [00:13:09]remove file /storage/0228/doc_00022136 [00:13:09]file doc_00022137 [00:13:09]remove file /storage/0228/doc_00022137 [00:13:09]file doc_00022138 [00:13:09]remove file /storage/0228/doc_00022138 [00:13:09]file doc_00022139 [00:13:09]remove file /storage/0228/doc_00022139 [00:13:09]file doc_00022140 [00:13:09]remove file /storage/0228/doc_00022140 [00:13:09]file doc_00022141 [00:13:09]remove file /storage/0228/doc_00022141 [00:13:09]file doc_00022142 [00:13:09]remove file /storage/0228/doc_00022142 [00:13:09]file doc_00022143 [00:13:09]remove file /storage/0228/doc_00022143 [00:13:09]file doc_00022144 [00:13:09]remove file /storage/0228/doc_00022144 [00:13:09]file doc_00022145 [00:13:09]remove file /storage/0228/doc_00022145 [00:13:09]file doc_00022146 [00:13:09]remove file /storage/0228/doc_00022146 [00:13:09]file doc_00022147 [00:13:09]remove file /storage/0228/doc_00022147 [00:13:09]file doc_00022148 [00:13:09]remove file /storage/0228/doc_00022148 [00:13:09]file doc_00022149 [00:13:09]remove file /storage/0228/doc_00022149 [00:13:09]file doc_00022150 [00:13:09]remove file /storage/0228/doc_00022150 [00:13:09]file doc_00022151 [00:13:09]remove file /storage/0228/doc_00022151 [00:13:09]file doc_00022152 [00:13:09]remove file /storage/0228/doc_00022152 [00:13:09]file doc_00022153 [00:13:09]remove file /storage/0228/doc_00022153 [00:13:09]file doc_00022154 [00:13:09]remove file /storage/0228/doc_00022154 [00:13:09]file doc_00022155 [00:13:09]remove file /storage/0228/doc_00022155 [00:13:09]file doc_00022156 [00:13:09]remove file /storage/0228/doc_00022156 [00:13:09]file doc_00022157 [00:13:09]remove file /storage/0228/doc_00022157 [00:13:09]file doc_00022158 [00:13:09]remove file /storage/0228/doc_00022158 [00:13:09]file doc_00022159 [00:13:09]remove file /storage/0228/doc_00022159 [00:13:09]file doc_00022160 [00:13:09]remove file /storage/0228/doc_00022160 [00:13:09]file doc_00022161 [00:13:09]remove file /storage/0228/doc_00022161 [00:13:09]file doc_00022162 [00:13:09]remove file /storage/0228/doc_00022162 [00:13:09]file doc_00022163 [00:13:09]remove file /storage/0228/doc_00022163 [00:13:09]file doc_00022164 [00:13:09]remove file /storage/0228/doc_00022164 [00:13:09]file doc_00022165 [00:13:09]remove file /storage/0228/doc_00022165 [00:13:09]file doc_00022166 [00:13:09]remove file /storage/0228/doc_00022166 [00:13:09]file doc_00022167 [00:13:09]remove file /storage/0228/doc_00022167 [00:13:09]file doc_00022168 [00:13:09]remove file /storage/0228/doc_00022168 [00:13:09]file doc_00022169 [00:13:09]remove file /storage/0228/doc_00022169 [00:13:09]file doc_00022170 [00:13:09]remove file /storage/0228/doc_00022170 [00:13:09]file doc_00022171 [00:13:09]remove file /storage/0228/doc_00022171 [00:13:09]file doc_00022172 [00:13:09]remove file /storage/0228/doc_00022172 [00:13:09]file doc_00022173 [00:13:09]remove file /storage/0228/doc_00022173 [00:13:09]file doc_00022174 [00:13:09]remove file /storage/0228/doc_00022174 [00:13:09]file doc_00022175 [00:13:09]remove file /storage/0228/doc_00022175 [00:13:09]file doc_00022176 [00:13:09]remove file /storage/0228/doc_00022176 [00:13:09]file doc_00022177 [00:13:09]remove file /storage/0228/doc_00022177 [00:13:09]file doc_00022178 [00:13:09]remove file /storage/0228/doc_00022178 [00:13:09]file doc_00022179 [00:13:09]remove file /storage/0228/doc_00022179 [00:13:09]file doc_00022180 [00:13:09]remove file /storage/0228/doc_00022180 [00:13:09]file doc_00022181 [00:13:09]remove file /storage/0228/doc_00022181 [00:13:09]file doc_00022182 [00:13:09]remove file /storage/0228/doc_00022182 [00:13:09]file doc_00022183 [00:13:09]remove file /storage/0228/doc_00022183 [00:13:09]file doc_00022184 [00:13:09]remove file /storage/0228/doc_00022184 [00:13:09]file doc_00022185 [00:13:09]remove file /storage/0228/doc_00022185 [00:13:09]file doc_00022186 [00:13:09]remove file /storage/0228/doc_00022186 [00:13:09]remove dir /storage/0228 [00:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [00:13:09]tlvbuf is 00327A60 [00:13:09]SAM_PROTO_ClearQueue [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 09 00 00 [00:13:09]Write to MH i2c: E2 08 00 AB 19 80 09 00 00 00 00 00 00 36 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:09]Read from MH i2c: E2 03 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 03 00 AB 19 00 90 00 38 [00:13:09]RAPDU: 90 00 [00:13:09]wFMCommunicate OK [00:13:09]SAM_PROTO_ClearQueue done [00:13:09]KKMCreateOFDPacket [00:13:09]OFDProtocolAddRootSTLVToBuf [00:13:09]FM_MakeSignedData [00:13:09]FM_MakeSignedData [00:13:09]SAM_PROTO_SignData [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 0D 01 02 [00:13:09]Write to MH i2c: E2 08 00 AC 19 80 0D 01 02 00 00 00 00 3E [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 03 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 03 00 AC 19 00 90 00 39 [00:13:09]RAPDU: 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=255 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 0D 02 02 FA 02 00 10 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 1B 00 D0 9C D0 B0 D1 88 D1 80 D0 B0 D0 BF D0 B1 D0 B0 D0 B9 20 D0 9A 2E 20 D0 9F 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 88 D0 BA D0 B0 D1 80 2D D0 9A D1 8B D1 88 D1 82 D0 B0 D0 BA 2C 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 A1 D1 83 D1 83 D0 B9 D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 20 34 30 2E 36 34 38 35 31 31 2C 37 32 2E 38 34 35 35 34 37 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 38 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 97 B2 F0 66 0E 04 04 00 E5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AB 56 00 00 11 04 10 00 [00:13:09]Write to MH i2c: E2 02 01 AD 19 80 0D 02 02 FA 00 02 00 10 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 1B 00 D0 9C D0 B0 D1 88 D1 80 D0 B0 D0 BF D0 B1 D0 B0 D0 B9 20 D0 9A 2E 20 D0 9F 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 88 D0 BA D0 B0 D1 80 2D D0 9A D1 8B D1 88 D1 82 D0 B0 D0 BA 2C 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 A1 D1 83 D1 83 D0 B9 D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 20 34 30 2E 36 34 38 35 31 31 2C 37 32 2E 38 34 35 35 34 37 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 38 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 97 B2 F0 66 0E 04 04 00 E5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AB 56 00 00 11 04 10 00 00 00 DB [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 03 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 03 00 AD 19 00 90 00 3A [00:13:09]RAPDU: 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=31 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 0D 02 02 1A 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 CC 95 12 8B AF 1C [00:13:09]Write to MH i2c: E2 22 00 AE 19 80 0D 02 02 1A 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 CC 95 12 8B AF 1C 00 00 A4 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 03 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [00:13:10]RAPDU: 90 00 [00:13:10]wFMCommunicate OK [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 0D 03 02 [00:13:10]Write to MH i2c: E2 08 00 AF 19 80 0D 03 02 00 00 00 00 43 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 0B 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 0B 00 AF 19 00 16 90 38 76 EB 25 47 4D 90 00 3C [00:13:10]RAPDU: 16 90 38 76 EB 25 47 4D 90 00 [00:13:10]wFMCommunicate OK [00:13:10]SAM_PROTO_SignData done [00:13:10]FM_MakeSignedData done [00:13:10]CreateOFDProtocolMessage [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 11 00 00 [00:13:10]Write to MH i2c: E2 08 00 B0 19 80 11 00 00 00 00 00 00 43 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 17 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 17 00 B0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 9D [00:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [00:13:10]wFMCommunicate OK [00:13:10]CreateOFDProtocolMessage done [00:13:10]OFDSenderStorePacket 22187 [00:13:10]StoreOFDPacket docnum=22187 [00:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 24 01 00 00 C0 8F 1C 01 4C E9 5A 02 01 00 02 00 10 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 1B 00 D0 9C D0 B0 D1 88 D1 80 D0 B0 D0 BF D0 B1 D0 B0 D0 B9 20 D0 9A 2E 20 D0 9F 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 88 D0 BA D0 B0 D1 80 2D D0 9A D1 8B D1 88 D1 82 D0 B0 D0 BA 2C 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 A1 D1 83 D1 83 D0 B9 D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 20 34 30 2E 36 34 38 35 31 31 2C 37 32 2E 38 34 35 35 34 37 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 38 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 97 B2 F0 66 0E 04 04 00 E5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AB 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 CC 95 12 8B AF 1C 16 90 38 76 EB 25 47 4D [00:13:10]CheckFolder [00:13:10]dirname=/storage/ofd_packets [00:13:10]CheckFolder done [00:13:10]ProducePacketName [00:13:10]name=ofd_packets/00022187 [00:13:10]NVStorageSaveData ofd_packets/00022187 [00:13:10]File name is /storage/ofd_packets/00022187 [00:13:10]Write 322 bytes [00:13:10]NVStorageSaveData done [00:13:10]OFDSenderStorePacket done [00:13:10]KKMCreateOFDPacket done [00:13:10]NVStorageSaveData kkm_last_timestamp [00:13:10]File name is /storage/kkm_last_timestamp [00:13:10]Write 4 bytes [00:13:10]NVStorageSaveData done [00:13:10]ExternCall_PrintAddStr [00:13:10]wPrintStart [00:13:10]Write to MH i2c: 01 00 00 B1 19 CA [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]OFD Sender: Processing packet 22187 [packets to send 23, broken 22] [00:13:10]ProducePacketName [00:13:10]name=ofd_packets/00022187 [00:13:10]OFD Sender: To server: pG, [00:13:10]CommunicateWithHost lk.salyk.kg:30040 [00:13:10]ConnectInit lk.salyk.kg [00:13:10]Read from MH i2c: 01 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: 01 07 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 FF 0F DF [00:13:10]RasterBufferAndPrint [00:13:10]line Отчет об открытии смены [00:13:10]line ФФД: 1.0 [00:13:10]line ИНН: 02508201610067 [00:13:10]line Кассир: Машрапбай К. П. [00:13:10]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [00:13:10]line Место: АЗС № 88 "Партнер Нефть" [00:13:10]line 23.09.2024 00:13 [00:13:10]line Смена: 229 [00:13:10]line РНМ: 0000000000146243 [00:13:10]line ЗНМ: 0300000061 [00:13:10]line ФД: 22187 [00:13:10]line ФМ: 0000000000959358 [00:13:10]line ФПД: 224940633337628 [00:13:10]written 0, free lines is 4095 [00:13:10]Connected sock=10 [00:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 24 01 00 00 C0 8F 1C 01 4C E9 5A 02 01 00 02 00 10 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 1B 00 D0 9C D0 B0 D1 88 D1 80 D0 B0 D0 BF D0 B1 D0 B0 D0 B9 20 D0 9A 2E 20 D0 9F 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 88 D0 BA D0 B0 D1 80 2D D0 9A D1 8B D1 88 D1 82 D0 B0 D0 BA 2C 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 A1 D1 83 D1 83 D0 B9 D1 81 D0 BA D0 B8 D0 B9 20 D1 80 D0 B0 D0 B9 D0 BE D0 BD 20 34 30 2E 36 34 38 35 31 31 2C 37 32 2E 38 34 35 35 34 37 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 38 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 97 B2 F0 66 0E 04 04 00 E5 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AB 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 35 04 06 00 CC 95 12 8B AF 1C 16 90 38 76 EB 25 47 4D [00:13:10]Write to MH i2c: 01 00 00 C3 19 DC [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: 01 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: 01 07 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: 01 07 00 C3 19 00 00 00 00 00 BC 0E AD [00:13:10]RasterBufferAndPrint [00:13:10]line [00:13:10]line [00:13:10]line [00:13:10]line [00:13:10]line [00:13:10]written 0, free lines is 3795 [00:13:10]MH_Cut [00:13:10]Write to MH i2c: D1 01 00 CA 19 01 B5 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: D1 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: D1 01 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: D1 01 00 CA 19 00 B4 [00:13:10]Write to MH i2c: 01 00 00 CB 19 E4 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 19 8E 47 00 F1 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AB 56 00 00 F4 03 04 00 C2 5C F0 66 B6 04 01 00 00 73 0A 23 5D 19 C0 2D A6 [00:13:10]CommunicateWithHost err = 0 [00:13:10]CheckOFDResponse [00:13:10]1017 (14) - 77093643461234 [00:13:10]1041 (16) - 0000000000959358 [00:13:10]1040 (4) - 22187 [00:13:10]1012 (4) - 22.09.2024 18:06 [00:13:10]1206 (1) - 0 [00:13:10]OFD Sender: Remove packet 22187 [00:13:10]ProducePacketName [00:13:10]name=ofd_packets/00022187 [00:13:10]NVStorageDeleteData [00:13:10]*** Cut start [00:13:10]*** Partial cut [00:13:10]*** CUTSNS_PIN = 1 [00:13:10]*** CUTSNS_PIN = 0 [00:13:11]*** Brake cut motor [00:13:11]OFD Sender: No OFD packet to send [00:13:11]Read from MH i2c: 01 [00:13:11]MH_I2C_Read... [00:13:11]*** Stop cut motor [00:13:11]*** Cut end [00:13:11]Read from MH i2c: 01 07 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: 01 07 00 CB 19 00 00 00 00 00 FF 0F F9 [00:13:11]process_action open_shift done [00:13:11]requested_data is exist [00:13:11]produce_requested_data [00:13:11]requested_item fd.num is exist - process it [00:13:11]SAM_PROTO_GetFieldsCounters [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 13 00 00 [00:13:11]Write to MH i2c: E2 08 00 CC 19 80 13 00 00 00 00 00 00 61 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 62 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 62 00 CC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AB 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [00:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AB 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:11]wFMCommunicate OK [00:13:11]SAM_PROTO_GetFieldsCounters done [00:13:11]requested_item shift.num is exist - process it [00:13:11]requested_item shift.opened is exist - process it [00:13:11]req_shift_opened [00:13:11]FM_GetShiftState [00:13:11]SAM_PROTO_GetShiftState [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 13 01 00 [00:13:11]Write to MH i2c: E2 08 00 CD 19 80 13 01 00 00 00 00 00 63 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 0E 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 0E 00 CD 19 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 0E [00:13:11]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [00:13:11]wFMCommunicate OK [00:13:11]SAM_PROTO_GetShiftState done [00:13:11]FM_GetShiftState done [00:13:11]req_shift_opened done [00:13:11]requested_item shift.open_date is exist - process it [00:13:11]req_shift_open_date [00:13:11]req_shift_open_date done [00:13:11]produce_requested_data done [00:13:11]produce_requested_data return {"fd.num":22187,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391} [00:13:11]process_action_free open_shift [00:13:11]json_value_free [00:13:11]json_value_free done [00:13:11]process_json_proto returns [00:13:11]Send response to host [00:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":22187,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391}}} [00:13:11]free response buf [00:13:11]execute_script done [00:13:11]execute_script returns [00:13:11]free content buf [00:13:11]Sock 7.Close socket [00:13:11]Sock 7.Thread stoped [00:13:11]accept exits with 9 [00:13:11]New connection [00:13:11]New thread 3067039076 created [00:13:11]Thread 3067182436 joined [00:13:11]Waiting for new connection... [00:13:11] Sock 9.Parse request [00:13:11]Sock 9.Check first char [00:13:11]Sock 9.First char is OK [00:13:11]request: POST /json_proto HTTP/1.0 [00:13:11]Method: POST [00:13:11]URL: /json_proto [00:13:11]Method is POST - this is cgi request [00:13:11]url: /json_proto [00:13:11]query_string will be loaded in cgi processing [00:13:11]execute_cgi json_proto POST (null) [00:13:11]execute_cgi path=json_proto method=POST [00:13:11]POST find Content-Length [00:13:11]Host: 172.17.43.4:8080 [00:13:11]Content-Length: 331 [00:13:11]Content-Type: application/json [00:13:11] [00:13:11]POST finish read [00:13:11]Found Content-Length = 331 [00:13:11]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:13:11]execute_script... [00:13:11]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:13:11]POST & json_proto [00:13:11]process_json_proto [00:13:11]json parsed OK: [00:13:11]protocol is kg_v1.0 [00:13:11]action value=get_value [00:13:11]process_action get_value [00:13:11]cmd_get_value [00:13:11]process_action get_value done [00:13:11]requested_data is exist [00:13:11]produce_requested_data [00:13:11]requested_item fm.sale.total is exist - process it [00:13:11]SAM_PROTO_GetFMData [00:13:11]wFMCommunicate request_size=4 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 13 03 00 [00:13:11]Write to MH i2c: E2 08 00 CE 19 80 13 03 00 00 00 00 00 66 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 FD 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 FD 00 CE 19 00 BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 38 [00:13:12]RAPDU: BA 04 85 04 B6 04 6E 04 04 00 E1 54 00 00 69 04 9C 00 6F 04 04 00 DC 54 00 00 B1 04 04 00 B0 08 B8 2F 70 04 04 00 B0 08 B8 2F 72 04 00 00 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 FF 9D 11 05 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 18 1A 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 80 4D 0A 70 04 03 00 80 4D 0A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2B 18 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 17 00 00 [00:13:12]Write to MH i2c: E2 08 00 CF 19 80 17 00 00 00 00 00 00 68 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 FD 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 FD 00 CF 19 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [00:13:12]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 17 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=4 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 17 00 00 [00:13:12]Write to MH i2c: E2 08 00 D0 19 80 17 00 00 00 00 00 00 69 [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 FD 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 FD 00 D0 19 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [00:13:13]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:13:13]wFMCommunicate OK [00:13:13]wFMCommunicate request_size=4 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 17 00 00 [00:13:13]Write to MH i2c: E2 08 00 D1 19 80 17 00 00 00 00 00 00 6A [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 FD 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 FD 00 D1 19 00 00 EF 03 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 90 00 E2 [00:13:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:13:13]wFMCommunicate OK [00:13:13]wFMCommunicate request_size=4 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 17 00 00 [00:13:13]Write to MH i2c: E2 08 00 D2 19 80 17 00 00 00 00 00 00 6B [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 D7 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 D7 00 D2 19 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [00:13:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:13:13]wFMCommunicate OK [00:13:14]SAM_PROTO_GetFMData done [00:13:14]requested_item fm.sale_refund.total is exist - process it [00:13:14]requested_item fm.buy.total is exist - process it [00:13:14]requested_item shift.sale.total is exist - process it [00:13:14]SAM_PROTO_GetShiftData [00:13:14]wFMCommunicate request_size=4 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 13 02 00 [00:13:14]Write to MH i2c: E2 08 00 D3 19 80 13 02 00 00 00 00 00 6A [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 FD 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 FD 00 D3 19 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 DD [00:13:14]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:13:14]wFMCommunicate OK [00:13:14]wFMCommunicate request_size=4 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 17 00 00 [00:13:14]Write to MH i2c: E2 08 00 D4 19 80 17 00 00 00 00 00 00 6D [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 FD 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 FD 00 D4 19 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 75 [00:13:15]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:13:15]wFMCommunicate OK [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 17 00 00 [00:13:15]Write to MH i2c: E2 08 00 D5 19 80 17 00 00 00 00 00 00 6E [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 FD 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 FD 00 D5 19 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 40 [00:13:15]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:13:15]wFMCommunicate OK [00:13:15]wFMCommunicate request_size=4 [00:13:15]MH_SAM_APDU [00:13:15]CAPDU: 80 17 00 00 [00:13:15]Write to MH i2c: E2 08 00 D6 19 80 17 00 00 00 00 00 00 6F [00:13:15]Write i2c OK [00:13:15]MH_I2C_Read... [00:13:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:15]Read from MH i2c: E2 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 FD 00 [00:13:15]MH_I2C_Read... [00:13:15]Read from MH i2c: E2 FD 00 D6 19 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 E1 [00:13:15]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:13:16]wFMCommunicate OK [00:13:16]wFMCommunicate request_size=4 [00:13:16]MH_SAM_APDU [00:13:16]CAPDU: 80 17 00 00 [00:13:16]Write to MH i2c: E2 08 00 D7 19 80 17 00 00 00 00 00 00 70 [00:13:16]Write i2c OK [00:13:16]MH_I2C_Read... [00:13:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:13:16]Read from MH i2c: E2 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 BD 00 [00:13:16]MH_I2C_Read... [00:13:16]Read from MH i2c: E2 BD 00 D7 19 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 56 [00:13:16]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:13:16]wFMCommunicate OK [00:13:16]SAM_PROTO_GetShiftData done [00:13:16]requested_item shift.sale.total_cash is exist - process it [00:13:16]requested_item shift.sale_refund.total is exist - process it [00:13:16]requested_item shift.sale_refund.total_cash is exist - process it [00:13:16]requested_item shift.buy.total is exist - process it [00:13:16]requested_item shift.buy.total_cash is exist - process it [00:13:16]produce_requested_data done [00:13:16]produce_requested_data return {"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.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:13:16]process_action_free get_value [00:13:16]json_value_free [00:13:16]json_value_free done [00:13:16]process_json_proto returns [00:13:16]Send response to host [00:13:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":8005900.00,"fm.sale_refund.total":6752.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:13:16]free response buf [00:13:16]execute_script done [00:13:16]execute_script returns [00:13:16]free content buf [00:13:16]Sock 9.Close socket [00:13:16]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:33]accept exits with 7 [00:46:33]New connection [00:46:33]New thread 3067182436 created [00:46:33]Thread 3067039076 joined [00:46:33]Waiting for new connection... [00:46:33] Sock 7.Parse request [00:46:33]Sock 7.Check first char [00:46:33]Sock 7.First char is OK [00:46:33]request: POST /json_proto HTTP/1.0 [00:46:33]Method: POST [00:46:33]URL: /json_proto [00:46:33]Method is POST - this is cgi request [00:46:33]url: /json_proto [00:46:33]query_string will be loaded in cgi processing [00:46:33]execute_cgi json_proto POST (null) [00:46:33]execute_cgi path=json_proto method=POST [00:46:33]POST find Content-Length [00:46:33]Host: 172.17.43.4:8080 [00:46:33]Content-Length: 741 [00:46:33]Content-Type: application/json [00:46:33] [00:46:33]POST finish read [00:46:33]Found Content-Length = 741 [00:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51453", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:33]execute_script... [00:46: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)51453", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:33]POST & json_proto [00:46:33]process_json_proto [00:46:33]json parsed OK: [00:46:33]protocol is kg_v1.0 [00:46:33]action value=close_receipt [00:46:33]process_action close_receipt [00:46:33]cmd_close_receipt [00:46:33]MH_GetDate [00:46:33]Write to MH i2c: F0 00 00 D8 19 E0 [00:46:33]Write i2c OK [00:46:33]MH_I2C_Read... [00:46:33]Read from MH i2c: F0 [00:46:33]MH_I2C_Read... [00:46:33]Read from MH i2c: F0 09 00 [00:46:33]MH_I2C_Read... [00:46:33]Read from MH i2c: F0 09 00 D8 19 00 6D BA F0 66 02 BF CF 66 5C [00:46:33]GetLastDocTimeStamp 1727050391 [00:46:33]current date 1727052397 [00:46:33]FM_GetShiftState [00:46:33]SAM_PROTO_GetShiftState [00:46:33]wFMCommunicate request_size=4 [00:46:33]MH_SAM_APDU [00:46:33]CAPDU: 80 13 01 00 [00:46:33]Write to MH i2c: E2 08 00 D9 19 80 13 01 00 00 00 00 00 6F [00:46:33]Write i2c OK [00:46:33]MH_I2C_Read... [00:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:33]Read from MH i2c: E2 [00:46:33]MH_I2C_Read... [00:46:33]Read from MH i2c: E2 0E 00 [00:46:33]MH_I2C_Read... [00:46:33]Read from MH i2c: E2 0E 00 D9 19 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 1A [00:46:33]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [00:46:33]wFMCommunicate OK [00:46:33]SAM_PROTO_GetShiftState done [00:46:33]FM_GetShiftState done [00:46:33]opened in 1727050391 [00:46:33]opened+sec_in_day 1727136791 [00:46:33]quantity*price = 0 [00:46:33]sum+1 = 1 [00:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 1 23.09.2024 00:46 Смена: 229 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22188 ФПД: 152579907346077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004637&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22188&fm=152579907346077&tin=02508201610067®Number=0000000000146243&sum=0 0 [00:46:34]StoreToDocumentArchive [00:46:34]shift 229 fd 22188 [00:46:34]save to /storage/0229/doc_00022188 [00:46:34]save last doc name /storage/0229/doc_00022188 to /storage/kkm_last_doc_name [00:46:34]save OK [00:46:34]Clear old archive folders... [00:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:46:34]tlvbuf is B6F90D00 [00:46:34]SAM_PROTO_ClearQueue [00:46:34]wFMCommunicate request_size=4 [00:46:34]MH_SAM_APDU [00:46:34]CAPDU: 80 09 00 00 [00:46:34]Write to MH i2c: E2 08 00 E6 19 80 09 00 00 00 00 00 00 71 [00:46:34]Write i2c OK [00:46:34]MH_I2C_Read... [00:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:34]Read from MH i2c: E2 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 03 00 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [00:46:34]RAPDU: 90 00 [00:46:34]wFMCommunicate OK [00:46:34]SAM_PROTO_ClearQueue done [00:46:34]KKMCreateOFDPacket [00:46:34]OFDProtocolAddRootSTLVToBuf [00:46:34]FM_MakeSignedData [00:46:34]FM_MakeSignedData [00:46:34]SAM_PROTO_SignData [00:46:34]wFMCommunicate request_size=4 [00:46:34]MH_SAM_APDU [00:46:34]CAPDU: 80 0D 01 02 [00:46:34]Write to MH i2c: E2 08 00 E7 19 80 0D 01 02 00 00 00 00 79 [00:46:34]Write i2c OK [00:46:34]MH_I2C_Read... [00:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:34]Read from MH i2c: E2 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 03 00 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [00:46:34]RAPDU: 90 00 [00:46:34]wFMCommunicate OK [00:46:34]wFMCommunicate request_size=255 [00:46:34]MH_SAM_APDU [00:46:34]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D BA F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 [00:46:34]Write to MH i2c: E2 02 01 E8 19 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D BA F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 00 00 E4 [00:46:34]Write i2c OK [00:46:34]MH_I2C_Read... [00:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:35]Read from MH i2c: E2 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 03 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [00:46:35]RAPDU: 90 00 [00:46:35]wFMCommunicate OK [00:46:35]wFMCommunicate request_size=32 [00:46:35]MH_SAM_APDU [00:46:35]CAPDU: 80 0D 02 02 1B 30 30 30 39 35 39 33 35 38 10 04 04 00 AC 56 00 00 35 04 06 00 8A C5 47 2D 5E 9D [00:46:35]Write to MH i2c: E2 23 00 E9 19 80 0D 02 02 1B 00 30 30 30 39 35 39 33 35 38 10 04 04 00 AC 56 00 00 35 04 06 00 8A C5 47 2D 5E 9D 00 00 A0 [00:46:35]Write i2c OK [00:46:35]MH_I2C_Read... [00:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:35]Read from MH i2c: E2 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 03 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [00:46:35]RAPDU: 90 00 [00:46:35]wFMCommunicate OK [00:46:35]wFMCommunicate request_size=4 [00:46:35]MH_SAM_APDU [00:46:35]CAPDU: 80 0D 03 02 [00:46:35]Write to MH i2c: E2 08 00 EA 19 80 0D 03 02 00 00 00 00 7E [00:46:35]Write i2c OK [00:46:35]MH_I2C_Read... [00:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:35]Read from MH i2c: E2 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 0B 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 0B 00 EA 19 00 B5 73 54 1E E5 95 05 08 90 00 A0 [00:46:35]RAPDU: B5 73 54 1E E5 95 05 08 90 00 [00:46:35]wFMCommunicate OK [00:46:35]SAM_PROTO_SignData done [00:46:35]FM_MakeSignedData done [00:46:35]CreateOFDProtocolMessage [00:46:35]wFMCommunicate request_size=4 [00:46:35]MH_SAM_APDU [00:46:35]CAPDU: 80 11 00 00 [00:46:35]Write to MH i2c: E2 08 00 EB 19 80 11 00 00 00 00 00 00 7E [00:46:35]Write i2c OK [00:46:35]MH_I2C_Read... [00:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:35]Read from MH i2c: E2 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 17 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: E2 17 00 EB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 D8 [00:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [00:46:35]wFMCommunicate OK [00:46:35]CreateOFDProtocolMessage done [00:46:35]OFDSenderStorePacket 22188 [00:46:35]StoreOFDPacket docnum=22188 [00:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 73 54 1D 01 49 9C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D BA F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AC 56 00 00 35 04 06 00 8A C5 47 2D 5E 9D B5 73 54 1E E5 95 05 08 [00:46:35]CheckFolder [00:46:35]dirname=/storage/ofd_packets [00:46:35]CheckFolder done [00:46:35]ProducePacketName [00:46:35]name=ofd_packets/00022188 [00:46:35]NVStorageSaveData ofd_packets/00022188 [00:46:35]File name is /storage/ofd_packets/00022188 [00:46:35]Write 323 bytes [00:46:35]NVStorageSaveData done [00:46:35]OFDSenderStorePacket done [00:46:35]KKMCreateOFDPacket done [00:46:35]NVStorageSaveData kkm_last_timestamp [00:46:35]File name is /storage/kkm_last_timestamp [00:46:35]Write 4 bytes [00:46:35]NVStorageSaveData done [00:46:35]ExternCall_PrintAddStr [00:46:35]wPrintStart [00:46:35]Write to MH i2c: 01 00 00 EC 19 05 [00:46:35]Write i2c OK [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: 01 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: 01 07 00 [00:46:35]MH_I2C_Read... [00:46:35]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 FF 0F 1A [00:46:35]RasterBufferAndPrint [00:46:35]line Счет N : (3)51453 [00:46:35]line ИНН: 02508201610067 [00:46:35]line Контрольно-Кассовый Чек [00:46:35]line ПРОДАЖА [00:46:35]line Товар: 48743570 [00:46:35]line Сигареты Winston XStyle Blue [00:46:35]line 1.000 * 0.00 [00:46:35]line = 0.00 [00:46:35]line НДС 12% НСП 1% [00:46:35]line > о реализуемом товаре [00:46:35]line ИТОГО: 0.00 [00:46:35]line НСП 1% : 0.00 [00:46:35]line НДС 12% : 0.00 [00:46:35]line Наличными: 0.00 [00:46:35]line Безнал.: 0.00 [00:46:35]line Место: АЗС № 88 "Партнер Нефть" [00:46:35]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [00:46:35]line СНО: Общий режим [00:46:35]line Чек 1 23.09.2024 00:46 [00:46:35]line Смена: 229 ФФД: 1.0 [00:46:35]line ЗНМ: 0300000061 [00:46:35]line РНМ: 0000000000146243 [00:46:35]line Версия ККМ: v1.0 [00:46:35]line Платежная система: Mbank [00:46:35]line ФМ: 0000000000959358 [00:46:35]line ФД: 22188 [00:46:35]line ФПД: 152579907346077 [00:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T004637&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22188&fm=152579907346077&tin=02508201610067®Number=0000000000146243&sum=0 [00:46:35]line 0 [00:46:35]OFD Sender: Processing packet 22188 [packets to send 23, broken 22] [00:46:35]ProducePacketName [00:46:35]name=ofd_packets/00022188 [00:46:35]OFD Sender: To server: pG, [00:46:35]CommunicateWithHost lk.salyk.kg:30040 [00:46:35]ConnectInit lk.salyk.kg [00:46:35]written 0, free lines is 4095 [00:46:35]Connected sock=10 [00:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 25 01 00 00 73 54 1D 01 49 9C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 6D BA F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AC 56 00 00 35 04 06 00 8A C5 47 2D 5E 9D B5 73 54 1E E5 95 05 08 [00:46:36]Write to MH i2c: 01 00 00 15 1A 2F [00:46:36]Write i2c OK [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: 01 [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: 01 07 00 [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 1A 0D 5D [00:46:36]RasterBufferAndPrint [00:46:36]line [00:46:36]line [00:46:36]line [00:46:36]line [00:46:36]line [00:46:36]written 0, free lines is 3360 [00:46:36]MH_Cut [00:46:36]Write to MH i2c: D1 01 00 1C 1A 01 08 [00:46:36]Write i2c OK [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: D1 [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: D1 01 00 [00:46:36]MH_I2C_Read... [00:46:36]Read from MH i2c: D1 01 00 1C 1A 00 07 [00:46:36]Write to MH i2c: 01 00 00 1D 1A 37 [00:46:36]Write i2c OK [00:46:36]MH_I2C_Read... [00:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 9C 89 47 00 C9 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 39 35 39 33 35 38 10 04 04 00 AC 56 00 00 F4 03 04 00 97 64 F0 66 B6 04 01 00 00 E4 54 DD 1B A8 B7 20 2E [00:46:36]CommunicateWithHost err = 0 [00:46:36]CheckOFDResponse [00:46:36]1017 (14) - 77093643461234 [00:46:36]1041 (16) - 0000000000959358 [00:46:36]1040 (4) - 22188 [00:46:36]1012 (4) - 22.09.2024 18:40 [00:46:36]1206 (1) - 0 [00:46:36]OFD Sender: Remove packet 22188 [00:46:36]ProducePacketName [00:46:36]name=ofd_packets/00022188 [00:46:36]NVStorageDeleteData [00:46:36]OFD Sender: No OFD packet to send [00:46:36]*** Cut start [00:46:36]*** Partial cut [00:46:36]*** CUTSNS_PIN = 1 [00:46:36]*** CUTSNS_PIN = 0 [00:46:36]*** Brake cut motor [00:46:37]Read from MH i2c: 01 [00:46:37]MH_I2C_Read... [00:46:37]*** Stop cut motor [00:46:37]*** Cut end [00:46:37]Read from MH i2c: 01 07 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 FF 0F 4C [00:46:37]process_action close_receipt done [00:46:37]requested_data is exist [00:46:37]produce_requested_data [00:46:37]requested_item fm.sn is exist - process it [00:46:37]wFMCommunicate request_size=4 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 11 00 00 [00:46:37]Write to MH i2c: E2 08 00 1E 1A 80 11 00 00 00 00 00 00 B2 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 17 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 17 00 1E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 0C [00:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [00:46:37]wFMCommunicate OK [00:46:37]requested_item fd.num is exist - process it [00:46:37]SAM_PROTO_GetFieldsCounters [00:46:37]wFMCommunicate request_size=4 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 13 00 00 [00:46:37]Write to MH i2c: E2 08 00 1F 1A 80 13 00 00 00 00 00 00 B5 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 62 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 62 00 1F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AC 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [00:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AC 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:37]wFMCommunicate OK [00:46:37]SAM_PROTO_GetFieldsCounters done [00:46:37]requested_item shift.num is exist - process it [00:46:37]requested_item shift.opened is exist - process it [00:46:37]req_shift_opened [00:46:37]FM_GetShiftState [00:46:37]SAM_PROTO_GetShiftState [00:46:37]wFMCommunicate request_size=4 [00:46:37]MH_SAM_APDU [00:46:37]CAPDU: 80 13 01 00 [00:46:37]Write to MH i2c: E2 08 00 20 1A 80 13 01 00 00 00 00 00 B7 [00:46:37]Write i2c OK [00:46:37]MH_I2C_Read... [00:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:37]Read from MH i2c: E2 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 0E 00 [00:46:37]MH_I2C_Read... [00:46:37]Read from MH i2c: E2 0E 00 20 1A 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 62 [00:46:37]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [00:46:37]wFMCommunicate OK [00:46:37]SAM_PROTO_GetShiftState done [00:46:37]FM_GetShiftState done [00:46:37]req_shift_opened done [00:46:37]requested_item shift.open_date is exist - process it [00:46:37]req_shift_open_date [00:46:37]req_shift_open_date done [00:46:37]produce_requested_data done [00:46:37]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22188,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391} [00:46:37]process_action_free close_receipt [00:46:37]json_value_free [00:46:37]json_value_free done [00:46:37]process_json_proto returns [00:46:37]Send response to host [00:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22188,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391}}} [00:46:37]free response buf [00:46:37]execute_script done [00:46:37]execute_script returns [00:46:37]free content buf [00:46:37]Sock 7.Close socket [00:46:37]Sock 7.Thread stoped [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]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:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]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:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [01:31:26]New connection [01:31:26]New thread 3067039076 created [01:31:26]Thread 3067182436 joined [01:31:26]Waiting for new connection... [01:31:26] Sock 9.Parse request [01:31:26]Sock 9.Check first char [01:31:26]Sock 9.First char is OK [01:31:26]request: POST /json_proto HTTP/1.0 [01:31:26]Method: POST [01:31:26]URL: /json_proto [01:31:26]Method is POST - this is cgi request [01:31:26]url: /json_proto [01:31:26]query_string will be loaded in cgi processing [01:31:26]execute_cgi json_proto POST (null) [01:31:26]execute_cgi path=json_proto method=POST [01:31:26]POST find Content-Length [01:31:26]Host: 172.17.43.4:8080 [01:31:26]Content-Length: 1144 [01:31:26]Content-Type: application/json [01:31:26] [01:31:26]POST finish read [01:31:26]Found Content-Length = 1144 [01:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51454", "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": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:26]execute_script... [01:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51454", "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": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:26]POST & json_proto [01:31:26]process_json_proto [01:31:26]json parsed OK: [01:31:26]protocol is kg_v1.0 [01:31:26]action value=close_receipt [01:31:26]process_action close_receipt [01:31:26]cmd_close_receipt [01:31:26]MH_GetDate [01:31:26]Write to MH i2c: F0 00 00 21 1A 2A [01:31:26]Write i2c OK [01:31:26]MH_I2C_Read... [01:31:26]Read from MH i2c: F0 [01:31:26]MH_I2C_Read... [01:31:26]Read from MH i2c: F0 09 00 [01:31:26]MH_I2C_Read... [01:31:26]Read from MH i2c: F0 09 00 21 1A 00 F3 C4 F0 66 02 BF CF 66 36 [01:31:26]GetLastDocTimeStamp 1727052397 [01:31:26]current date 1727055091 [01:31:26]FM_GetShiftState [01:31:26]SAM_PROTO_GetShiftState [01:31:26]wFMCommunicate request_size=4 [01:31:26]MH_SAM_APDU [01:31:26]CAPDU: 80 13 01 00 [01:31:26]Write to MH i2c: E2 08 00 22 1A 80 13 01 00 00 00 00 00 B9 [01:31:26]Write i2c OK [01:31:26]MH_I2C_Read... [01:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:26]Read from MH i2c: E2 [01:31:26]MH_I2C_Read... [01:31:26]Read from MH i2c: E2 0E 00 [01:31:26]MH_I2C_Read... [01:31:26]Read from MH i2c: E2 0E 00 22 1A 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 64 [01:31:26]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [01:31:26]wFMCommunicate OK [01:31:26]SAM_PROTO_GetShiftState done [01:31:26]FM_GetShiftState done [01:31:26]opened in 1727050391 [01:31:26]opened+sec_in_day 1727136791 [01:31:26]quantity*price = 4000 [01:31:26]sum+1 = 4001 [01:31:26]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231512 Mentos ПФ Виноград 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.78 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 2 23.09.2024 01:31 Смена: 229 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22189 ФПД: 121805469936073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013131&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22189&fm=121805469936073&tin=02508201610067®Number=0000000000146243&sum=31500 0 [01:31:27]StoreToDocumentArchive [01:31:27]shift 229 fd 22189 [01:31:27]save to /storage/0229/doc_00022189 [01:31:27]save last doc name /storage/0229/doc_00022189 to /storage/kkm_last_doc_name [01:31:27]save OK [01:31:27]Clear old archive folders... [01:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=485 [01:31:27]tlvbuf is 00246740 [01:31:27]SAM_PROTO_ClearQueue [01:31:27]wFMCommunicate request_size=4 [01:31:27]MH_SAM_APDU [01:31:27]CAPDU: 80 09 00 00 [01:31:27]Write to MH i2c: E2 08 00 2F 1A 80 09 00 00 00 00 00 00 BB [01:31:28]Write i2c OK [01:31:28]MH_I2C_Read... [01:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:28]Read from MH i2c: E2 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [01:31:28]RAPDU: 90 00 [01:31:28]wFMCommunicate OK [01:31:28]SAM_PROTO_ClearQueue done [01:31:28]KKMCreateOFDPacket [01:31:28]OFDProtocolAddRootSTLVToBuf [01:31:28]FM_MakeSignedData [01:31:28]FM_MakeSignedData [01:31:28]SAM_PROTO_SignData [01:31:28]wFMCommunicate request_size=4 [01:31:28]MH_SAM_APDU [01:31:28]CAPDU: 80 0D 01 02 [01:31:28]Write to MH i2c: E2 08 00 30 1A 80 0D 01 02 00 00 00 00 C3 [01:31:28]Write i2c OK [01:31:28]MH_I2C_Read... [01:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:28]Read from MH i2c: E2 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [01:31:28]RAPDU: 90 00 [01:31:28]wFMCommunicate OK [01:31:28]wFMCommunicate request_size=255 [01:31:28]MH_SAM_APDU [01:31:28]CAPDU: 80 0D 02 02 FA 03 00 E5 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 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 [01:31:28]Write to MH i2c: E2 02 01 31 1A 80 0D 02 02 FA 00 03 00 E5 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 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 00 00 B1 [01:31:28]Write i2c OK [01:31:28]MH_I2C_Read... [01:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:28]Read from MH i2c: E2 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [01:31:28]RAPDU: 90 00 [01:31:28]wFMCommunicate OK [01:31:28]wFMCommunicate request_size=244 [01:31:28]MH_SAM_APDU [01:31:28]CAPDU: 80 0D 02 02 EF 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 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 0C 7B 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 F3 C4 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AD 56 00 00 35 04 06 00 6E C8 0B C4 69 C9 [01:31:28]Write to MH i2c: E2 F7 00 32 1A 80 0D 02 02 EF 00 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 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 0C 7B 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 F3 C4 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AD 56 00 00 35 04 06 00 6E C8 0B C4 69 C9 00 00 26 [01:31:28]Write i2c OK [01:31:28]MH_I2C_Read... [01:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:28]Read from MH i2c: E2 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 [01:31:28]MH_I2C_Read... [01:31:28]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [01:31:28]RAPDU: 90 00 [01:31:28]wFMCommunicate OK [01:31:28]wFMCommunicate request_size=4 [01:31:28]MH_SAM_APDU [01:31:28]CAPDU: 80 0D 03 02 [01:31:28]Write to MH i2c: E2 08 00 33 1A 80 0D 03 02 00 00 00 00 C8 [01:31:28]Write i2c OK [01:31:28]MH_I2C_Read... [01:31:28]OFD Sender: No OFD packet to send [01:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:29]Read from MH i2c: E2 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: E2 0B 00 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: E2 0B 00 33 1A 00 C6 30 D9 E7 85 17 CF FB 90 00 E5 [01:31:29]RAPDU: C6 30 D9 E7 85 17 CF FB 90 00 [01:31:29]wFMCommunicate OK [01:31:29]SAM_PROTO_SignData done [01:31:29]FM_MakeSignedData done [01:31:29]CreateOFDProtocolMessage [01:31:29]wFMCommunicate request_size=4 [01:31:29]MH_SAM_APDU [01:31:29]CAPDU: 80 11 00 00 [01:31:29]Write to MH i2c: E2 08 00 34 1A 80 11 00 00 00 00 00 00 C8 [01:31:29]Write i2c OK [01:31:29]MH_I2C_Read... [01:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:29]Read from MH i2c: E2 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: E2 17 00 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: E2 17 00 34 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 22 [01:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [01:31:29]wFMCommunicate OK [01:31:29]CreateOFDProtocolMessage done [01:31:29]OFDSenderStorePacket 22189 [01:31:29]StoreOFDPacket docnum=22189 [01:31:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 F9 01 00 00 55 3D F1 01 E8 99 5A 03 01 00 03 00 E5 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 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 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 0C 7B 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 F3 C4 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AD 56 00 00 35 04 06 00 6E C8 0B C4 69 C9 C6 30 D9 E7 85 17 CF FB [01:31:29]CheckFolder [01:31:29]dirname=/storage/ofd_packets [01:31:29]CheckFolder done [01:31:29]ProducePacketName [01:31:29]name=ofd_packets/00022189 [01:31:29]NVStorageSaveData ofd_packets/00022189 [01:31:29]File name is /storage/ofd_packets/00022189 [01:31:29]Write 535 bytes [01:31:29]NVStorageSaveData done [01:31:29]OFDSenderStorePacket done [01:31:29]KKMCreateOFDPacket done [01:31:29]NVStorageSaveData kkm_last_timestamp [01:31:29]File name is /storage/kkm_last_timestamp [01:31:29]Write 4 bytes [01:31:29]NVStorageSaveData done [01:31:29]ExternCall_PrintAddStr [01:31:29]wPrintStart [01:31:29]Write to MH i2c: 01 00 00 35 1A 4F [01:31:29]Write i2c OK [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: 01 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: 01 07 00 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 FF 0F 64 [01:31:29]RasterBufferAndPrint [01:31:29]line Счет N : (3)51454 [01:31:29]line ИНН: 02508201610067 [01:31:29]line Контрольно-Кассовый Чек [01:31:29]line ПРОДАЖА [01:31:29]line Товар: 4700000160211 [01:31:29]line Вода Легенда 0,5л [01:31:29]line 1.000 * 40.00 [01:31:29]line = 40.00 [01:31:29]line НДС 12% НСП 1% [01:31:29]line > о реализуемом товаре [01:31:29]line Товар: 90448300 [01:31:29]line Энерг напиток Red Bull 0,355л [01:31:29]line 1.000 * 265.00 [01:31:29]line = 265.00 [01:31:29]line НДС 12% НСП 1% [01:31:29]line > о реализуемом товаре [01:31:29]line Товар: 46231512 [01:31:29]line Mentos ПФ Виноград 6*100*2г [01:31:29]line 1.000 * 10.00 [01:31:29]line = 10.00 [01:31:29]line НДС 12% НСП 1% [01:31:29]line > о реализуемом товаре [01:31:29]line ИТОГО: 315.00 [01:31:29]line НСП 1% : 2.78 [01:31:29]line НДС 12% : 33.45 [01:31:29]line Наличными: 315.00 [01:31:29]line Безнал.: 0.00 [01:31:29]line Место: АЗС № 88 "Партнер Нефть" [01:31:29]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [01:31:29]line СНО: Общий режим [01:31:29]line Чек 2 23.09.2024 01:31 [01:31:29]line Смена: 229 ФФД: 1.0 [01:31:29]line ЗНМ: 0300000061 [01:31:29]line РНМ: 0000000000146243 [01:31:29]line Версия ККМ: v1.0 [01:31:29]line ФМ: 0000000000959358 [01:31:29]line ФД: 22189 [01:31:29]line ФПД: 121805469936073 [01:31:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T013131&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22189&fm=121805469936073&tin=02508201610067®Number=0000000000146243&sum=31500 [01:31:29]line 0 [01:31:29]written 0, free lines is 4095 [01:31:29]OFD Sender: Processing packet 22189 [packets to send 23, broken 22] [01:31:29]ProducePacketName [01:31:29]name=ofd_packets/00022189 [01:31:29]OFD Sender: To server: pG, [01:31:29]CommunicateWithHost lk.salyk.kg:30040 [01:31:29]ConnectInit lk.salyk.kg [01:31:29]Connected sock=10 [01:31:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 F9 01 00 00 55 3D F1 01 E8 99 5A 03 01 00 03 00 E5 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 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 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 0C 7B 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 F3 C4 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AD 56 00 00 35 04 06 00 6E C8 0B C4 69 C9 C6 30 D9 E7 85 17 CF FB [01:31:29]Write to MH i2c: 01 00 00 69 1A 83 [01:31:29]Write i2c OK [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: 01 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: 01 07 00 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: 01 07 00 69 1A 00 00 00 00 00 A1 0C 37 [01:31:29]RasterBufferAndPrint [01:31:29]line [01:31:29]line [01:31:29]line [01:31:29]line [01:31:29]line [01:31:29]written 0, free lines is 3239 [01:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 7F 00 47 00 FD 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AD 56 00 00 F4 03 04 00 1D 6F F0 66 B6 04 01 00 00 0C 07 EF F4 52 06 95 E8 [01:31:29]CommunicateWithHost err = 0 [01:31:29]CheckOFDResponse [01:31:29]1017 (14) - 77093643461234 [01:31:29]1041 (16) - 0000000000959358 [01:31:29]1040 (4) - 22189 [01:31:29]1012 (4) - 22.09.2024 19:25 [01:31:29]1206 (1) - 0 [01:31:29]OFD Sender: Remove packet 22189 [01:31:29]ProducePacketName [01:31:29]name=ofd_packets/00022189 [01:31:29]NVStorageDeleteData [01:31:29]MH_Cut [01:31:29]Write to MH i2c: D1 01 00 70 1A 01 5C [01:31:29]Write i2c OK [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: D1 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: D1 01 00 [01:31:29]MH_I2C_Read... [01:31:29]Read from MH i2c: D1 01 00 70 1A 00 5B [01:31:29]Write to MH i2c: 01 00 00 71 1A 8B [01:31:29]Write i2c OK [01:31:29]MH_I2C_Read... [01:31:30]OFD Sender: No OFD packet to send [01:31:30]*** Cut start [01:31:30]*** Partial cut [01:31:30]*** CUTSNS_PIN = 1 [01:31:30]*** CUTSNS_PIN = 0 [01:31:30]*** Brake cut motor [01:31:30]Read from MH i2c: 01 [01:31:30]MH_I2C_Read... [01:31:30]*** Stop cut motor [01:31:31]*** Cut end [01:31:31]Read from MH i2c: 01 07 00 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: 01 07 00 71 1A 00 00 00 00 00 FF 0F A0 [01:31:31]process_action close_receipt done [01:31:31]requested_data is exist [01:31:31]produce_requested_data [01:31:31]requested_item fm.sn is exist - process it [01:31:31]wFMCommunicate request_size=4 [01:31:31]MH_SAM_APDU [01:31:31]CAPDU: 80 11 00 00 [01:31:31]Write to MH i2c: E2 08 00 72 1A 80 11 00 00 00 00 00 00 06 [01:31:31]Write i2c OK [01:31:31]MH_I2C_Read... [01:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:31]Read from MH i2c: E2 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: E2 17 00 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: E2 17 00 72 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 60 [01:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [01:31:31]wFMCommunicate OK [01:31:31]requested_item fd.num is exist - process it [01:31:31]SAM_PROTO_GetFieldsCounters [01:31:31]wFMCommunicate request_size=4 [01:31:31]MH_SAM_APDU [01:31:31]CAPDU: 80 13 00 00 [01:31:31]Write to MH i2c: E2 08 00 73 1A 80 13 00 00 00 00 00 00 09 [01:31:31]Write i2c OK [01:31:31]MH_I2C_Read... [01:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:31]Read from MH i2c: E2 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: E2 62 00 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: E2 62 00 73 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AD 56 00 00 0E 04 04 00 E5 00 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 1A [01:31:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AD 56 00 00 0E 04 04 00 E5 00 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:31:31]wFMCommunicate OK [01:31:31]SAM_PROTO_GetFieldsCounters done [01:31:31]requested_item shift.num is exist - process it [01:31:31]requested_item shift.opened is exist - process it [01:31:31]req_shift_opened [01:31:31]FM_GetShiftState [01:31:31]SAM_PROTO_GetShiftState [01:31:31]wFMCommunicate request_size=4 [01:31:31]MH_SAM_APDU [01:31:31]CAPDU: 80 13 01 00 [01:31:31]Write to MH i2c: E2 08 00 74 1A 80 13 01 00 00 00 00 00 0B [01:31:31]Write i2c OK [01:31:31]MH_I2C_Read... [01:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:31]Read from MH i2c: E2 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: E2 0E 00 [01:31:31]MH_I2C_Read... [01:31:31]Read from MH i2c: E2 0E 00 74 1A 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 B6 [01:31:31]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [01:31:31]wFMCommunicate OK [01:31:31]SAM_PROTO_GetShiftState done [01:31:31]FM_GetShiftState done [01:31:31]req_shift_opened done [01:31:31]requested_item shift.open_date is exist - process it [01:31:31]req_shift_open_date [01:31:31]req_shift_open_date done [01:31:31]produce_requested_data done [01:31:31]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22189,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391} [01:31:31]process_action_free close_receipt [01:31:31]json_value_free [01:31:31]json_value_free done [01:31:31]process_json_proto returns [01:31:31]Send response to host [01:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22189,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391}}} [01:31:31]free response buf [01:31:31]execute_script done [01:31:31]execute_script returns [01:31:31]free content buf [01:31:31]Sock 9.Close socket [01:31:31]Sock 9.Thread stoped [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]accept exits with 7 [01:44:05]New connection [01:44:05]New thread 3067182436 created [01:44:05]Thread 3067039076 joined [01:44:05]Waiting for new connection... [01:44:05] Sock 7.Parse request [01:44:05]Sock 7.Check first char [01:44:05]Sock 7.First char is OK [01:44:05]request: POST /json_proto HTTP/1.0 [01:44:05]Method: POST [01:44:05]URL: /json_proto [01:44:05]Method is POST - this is cgi request [01:44:05]url: /json_proto [01:44:05]query_string will be loaded in cgi processing [01:44:05]execute_cgi json_proto POST (null) [01:44:05]execute_cgi path=json_proto method=POST [01:44:05]POST find Content-Length [01:44:05]Host: 172.17.43.4:8080 [01:44:05]Content-Length: 860 [01:44:05]Content-Type: application/json [01:44:05] [01:44:05]POST finish read [01:44:05]Found Content-Length = 860 [01:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51455", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 273.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:05]execute_script... [01:44: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)51455", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 273.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:05]POST & json_proto [01:44:05]process_json_proto [01:44:05]json parsed OK: [01:44:05]protocol is kg_v1.0 [01:44:05]action value=close_receipt [01:44:05]process_action close_receipt [01:44:05]cmd_close_receipt [01:44:05]MH_GetDate [01:44:05]Write to MH i2c: F0 00 00 75 1A 7E [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: F0 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: F0 09 00 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: F0 09 00 75 1A 00 EA C7 F0 66 02 BF CF 66 84 [01:44:05]GetLastDocTimeStamp 1727055091 [01:44:05]current date 1727055850 [01:44:05]FM_GetShiftState [01:44:05]SAM_PROTO_GetShiftState [01:44:05]wFMCommunicate request_size=4 [01:44:05]MH_SAM_APDU [01:44:05]CAPDU: 80 13 01 00 [01:44:05]Write to MH i2c: E2 08 00 76 1A 80 13 01 00 00 00 00 00 0D [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:05]Read from MH i2c: E2 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: E2 0E 00 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: E2 0E 00 76 1A 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 B8 [01:44:05]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [01:44:05]wFMCommunicate OK [01:44:05]SAM_PROTO_GetShiftState done [01:44:05]FM_GetShiftState done [01:44:05]opened in 1727050391 [01:44:05]opened+sec_in_day 1727136791 [01:44:05]quantity*price = 13900 [01:44:05]sum+1 = 13901 [01:44:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741415 Сигареты LD Super Slims Violet 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 273.00 НСП 1% : 2.42 НДС 12% : 28.99 Наличными: 273.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 3 23.09.2024 01:44 Смена: 229 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22190 ФПД: 65005942272448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014410&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22190&fm=65005942272448&tin=02508201610067®Number=0000000000146243&sum=27300 0 [01:44:06]StoreToDocumentArchive [01:44:06]shift 229 fd 22190 [01:44:06]save to /storage/0229/doc_00022190 [01:44:06]save last doc name /storage/0229/doc_00022190 to /storage/kkm_last_doc_name [01:44:06]save OK [01:44:06]Clear old archive folders... [01:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=379 [01:44:06]tlvbuf is 00236960 [01:44:06]SAM_PROTO_ClearQueue [01:44:06]wFMCommunicate request_size=4 [01:44:06]MH_SAM_APDU [01:44:06]CAPDU: 80 09 00 00 [01:44:06]Write to MH i2c: E2 08 00 83 1A 80 09 00 00 00 00 00 00 0F [01:44:06]Write i2c OK [01:44:06]MH_I2C_Read... [01:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:06]Read from MH i2c: E2 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 03 00 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 03 00 83 1A 00 90 00 11 [01:44:06]RAPDU: 90 00 [01:44:06]wFMCommunicate OK [01:44:06]SAM_PROTO_ClearQueue done [01:44:06]KKMCreateOFDPacket [01:44:06]OFDProtocolAddRootSTLVToBuf [01:44:06]FM_MakeSignedData [01:44:06]FM_MakeSignedData [01:44:06]SAM_PROTO_SignData [01:44:06]wFMCommunicate request_size=4 [01:44:06]MH_SAM_APDU [01:44:06]CAPDU: 80 0D 01 02 [01:44:06]Write to MH i2c: E2 08 00 84 1A 80 0D 01 02 00 00 00 00 17 [01:44:06]Write i2c OK [01:44:06]MH_I2C_Read... [01:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:06]Read from MH i2c: E2 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 03 00 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 03 00 84 1A 00 90 00 12 [01:44:06]RAPDU: 90 00 [01:44:06]wFMCommunicate OK [01:44:06]wFMCommunicate request_size=255 [01:44:06]MH_SAM_APDU [01:44:06]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 [01:44:06]Write to MH i2c: E2 02 01 85 1A 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 00 2B [01:44:06]Write i2c OK [01:44:06]MH_I2C_Read... [01:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:07]Read from MH i2c: E2 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 03 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 03 00 85 1A 00 90 00 13 [01:44:07]RAPDU: 90 00 [01:44:07]wFMCommunicate OK [01:44:07]wFMCommunicate request_size=138 [01:44:07]MH_SAM_APDU [01:44:07]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 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 EA C7 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AE 56 00 00 35 04 06 00 3B 1F 60 18 F1 C0 [01:44:07]Write to MH i2c: E2 8D 00 86 1A 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 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 EA C7 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AE 56 00 00 35 04 06 00 3B 1F 60 18 F1 C0 00 00 35 [01:44:07]Write i2c OK [01:44:07]MH_I2C_Read... [01:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:07]Read from MH i2c: E2 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 03 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 03 00 86 1A 00 90 00 14 [01:44:07]RAPDU: 90 00 [01:44:07]wFMCommunicate OK [01:44:07]wFMCommunicate request_size=4 [01:44:07]MH_SAM_APDU [01:44:07]CAPDU: 80 0D 03 02 [01:44:07]Write to MH i2c: E2 08 00 87 1A 80 0D 03 02 00 00 00 00 1C [01:44:07]Write i2c OK [01:44:07]MH_I2C_Read... [01:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:07]Read from MH i2c: E2 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 0B 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 0B 00 87 1A 00 B0 8C 03 DC D0 43 DF A2 90 00 CC [01:44:07]RAPDU: B0 8C 03 DC D0 43 DF A2 90 00 [01:44:07]wFMCommunicate OK [01:44:07]SAM_PROTO_SignData done [01:44:07]FM_MakeSignedData done [01:44:07]CreateOFDProtocolMessage [01:44:07]wFMCommunicate request_size=4 [01:44:07]MH_SAM_APDU [01:44:07]CAPDU: 80 11 00 00 [01:44:07]Write to MH i2c: E2 08 00 88 1A 80 11 00 00 00 00 00 00 1C [01:44:07]Write i2c OK [01:44:07]MH_I2C_Read... [01:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:07]Read from MH i2c: E2 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 17 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 17 00 88 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 76 [01:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [01:44:07]wFMCommunicate OK [01:44:07]CreateOFDProtocolMessage done [01:44:07]OFDSenderStorePacket 22190 [01:44:07]StoreOFDPacket docnum=22190 [01:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 8F 01 00 00 39 59 87 01 85 6F 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 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 EA C7 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AE 56 00 00 35 04 06 00 3B 1F 60 18 F1 C0 B0 8C 03 DC D0 43 DF A2 [01:44:07]CheckFolder [01:44:07]dirname=/storage/ofd_packets [01:44:07]CheckFolder done [01:44:07]ProducePacketName [01:44:07]name=ofd_packets/00022190 [01:44:07]NVStorageSaveData ofd_packets/00022190 [01:44:07]File name is /storage/ofd_packets/00022190 [01:44:07]Write 429 bytes [01:44:07]NVStorageSaveData done [01:44:07]OFDSenderStorePacket done [01:44:07]KKMCreateOFDPacket done [01:44:07]NVStorageSaveData kkm_last_timestamp [01:44:07]File name is /storage/kkm_last_timestamp [01:44:07]Write 4 bytes [01:44:07]NVStorageSaveData done [01:44:07]ExternCall_PrintAddStr [01:44:07]wPrintStart [01:44:07]Write to MH i2c: 01 00 00 89 1A A3 [01:44:07]Write i2c OK [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: 01 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: 01 07 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0F B8 [01:44:07]RasterBufferAndPrint [01:44:07]line Счет N : (3)51455 [01:44:07]line ИНН: 02508201610067 [01:44:07]line Контрольно-Кассовый Чек [01:44:07]line ПРОДАЖА [01:44:07]line Товар: 48744997 [01:44:07]line Сигареты Winston Compact Blue [01:44:07]line 1.000 * 139.00 [01:44:07]line = 139.00 [01:44:07]line НДС 12% НСП 1% [01:44:07]line > о реализуемом товаре [01:44:07]line Товар: 48741415 [01:44:07]line Сигареты LD Super Slims Violet [01:44:07]line 1.000 * 134.00 [01:44:07]line = 134.00 [01:44:07]line НДС 12% НСП 1% [01:44:07]line > о реализуемом товаре [01:44:07]line ИТОГО: 273.00 [01:44:07]line НСП 1% : 2.42 [01:44:07]line НДС 12% : 28.99 [01:44:07]line Наличными: 273.00 [01:44:07]line Безнал.: 0.00 [01:44:07]line Место: АЗС № 88 "Партнер Нефть" [01:44:07]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [01:44:07]line СНО: Общий режим [01:44:07]line Чек 3 23.09.2024 01:44 [01:44:07]line Смена: 229 ФФД: 1.0 [01:44:07]line ЗНМ: 0300000061 [01:44:07]line РНМ: 0000000000146243 [01:44:07]line Версия ККМ: v1.0 [01:44:07]line ФМ: 0000000000959358 [01:44:07]line ФД: 22190 [01:44:07]line ФПД: 65005942272448 [01:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T014410&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22190&fm=65005942272448&tin=02508201610067®Number=0000000000146243&sum=27300 [01:44:07]line 0 [01:44:07]OFD Sender: Processing packet 22190 [packets to send 23, broken 22] [01:44:07]ProducePacketName [01:44:07]name=ofd_packets/00022190 [01:44:07]OFD Sender: To server: pG, [01:44:07]CommunicateWithHost lk.salyk.kg:30040 [01:44:07]ConnectInit lk.salyk.kg [01:44:07]written 0, free lines is 4095 [01:44:08]Connected sock=10 [01:44:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 8F 01 00 00 39 59 87 01 85 6F 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 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 EA C7 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AE 56 00 00 35 04 06 00 3B 1F 60 18 F1 C0 B0 8C 03 DC D0 43 DF A2 [01:44:08]Write to MH i2c: 01 00 00 B9 1A D3 [01:44:08]Write i2c OK [01:44:08]MH_I2C_Read... [01:44:08]Read from MH i2c: 01 [01:44:08]MH_I2C_Read... [01:44:08]Read from MH i2c: 01 07 00 [01:44:08]MH_I2C_Read... [01:44:08]Read from MH i2c: 01 07 00 B9 1A 00 00 00 00 00 8E 0C 74 [01:44:08]RasterBufferAndPrint [01:44:08]line [01:44:08]line [01:44:08]line [01:44:08]line [01:44:08]line [01:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 7F B1 47 00 A4 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AE 56 00 00 F4 03 04 00 14 72 F0 66 B6 04 01 00 00 E8 03 DA 64 C5 97 CB 71 [01:44:08]CommunicateWithHost err = 0 [01:44:08]CheckOFDResponse [01:44:08]1017 (14) - 77093643461234 [01:44:08]1041 (16) - 0000000000959358 [01:44:08]1040 (4) - 22190 [01:44:08]1012 (4) - 22.09.2024 19:37 [01:44:08]1206 (1) - 0 [01:44:08]OFD Sender: Remove packet 22190 [01:44:08]ProducePacketName [01:44:08]name=ofd_packets/00022190 [01:44:08]NVStorageDeleteData [01:44:08]written 0, free lines is 3220 [01:44:08]MH_Cut [01:44:08]Write to MH i2c: D1 01 00 C0 1A 01 AC [01:44:08]Write i2c OK [01:44:08]MH_I2C_Read... [01:44:08]Read from MH i2c: D1 [01:44:08]MH_I2C_Read... [01:44:08]Read from MH i2c: D1 01 00 [01:44:08]MH_I2C_Read... [01:44:08]Read from MH i2c: D1 01 00 C0 1A 00 AB [01:44:08]Write to MH i2c: 01 00 00 C1 1A DB [01:44:08]Write i2c OK [01:44:08]MH_I2C_Read... [01:44:08]OFD Sender: No OFD packet to send [01:44:09]*** Cut start [01:44:09]*** Partial cut [01:44:09]*** CUTSNS_PIN = 1 [01:44:09]*** CUTSNS_PIN = 0 [01:44:09]*** Brake cut motor [01:44:09]Read from MH i2c: 01 [01:44:09]MH_I2C_Read... [01:44:09]*** Stop cut motor [01:44:09]*** Cut end [01:44:09]Read from MH i2c: 01 07 00 [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: 01 07 00 C1 1A 00 00 00 00 00 FF 0F F0 [01:44:09]process_action close_receipt done [01:44:09]requested_data is exist [01:44:09]produce_requested_data [01:44:09]requested_item fm.sn is exist - process it [01:44:09]wFMCommunicate request_size=4 [01:44:09]MH_SAM_APDU [01:44:09]CAPDU: 80 11 00 00 [01:44:09]Write to MH i2c: E2 08 00 C2 1A 80 11 00 00 00 00 00 00 56 [01:44:09]Write i2c OK [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: E2 [01:44:09]MH_I2C_Read... [01:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:09]Read from MH i2c: E2 17 00 [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: E2 17 00 C2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 B0 [01:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [01:44:09]wFMCommunicate OK [01:44:09]requested_item fd.num is exist - process it [01:44:09]SAM_PROTO_GetFieldsCounters [01:44:09]wFMCommunicate request_size=4 [01:44:09]MH_SAM_APDU [01:44:09]CAPDU: 80 13 00 00 [01:44:09]Write to MH i2c: E2 08 00 C3 1A 80 13 00 00 00 00 00 00 59 [01:44:09]Write i2c OK [01:44:09]MH_I2C_Read... [01:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:09]Read from MH i2c: E2 [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: E2 62 00 [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: E2 62 00 C3 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AE 56 00 00 0E 04 04 00 E5 00 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 6E [01:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AE 56 00 00 0E 04 04 00 E5 00 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 [01:44:09]wFMCommunicate OK [01:44:09]SAM_PROTO_GetFieldsCounters done [01:44:09]requested_item shift.num is exist - process it [01:44:09]requested_item shift.opened is exist - process it [01:44:09]req_shift_opened [01:44:09]FM_GetShiftState [01:44:09]SAM_PROTO_GetShiftState [01:44:09]wFMCommunicate request_size=4 [01:44:09]MH_SAM_APDU [01:44:09]CAPDU: 80 13 01 00 [01:44:09]Write to MH i2c: E2 08 00 C4 1A 80 13 01 00 00 00 00 00 5B [01:44:09]Write i2c OK [01:44:09]MH_I2C_Read... [01:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:09]Read from MH i2c: E2 [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: E2 0E 00 [01:44:09]MH_I2C_Read... [01:44:09]Read from MH i2c: E2 0E 00 C4 1A 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 06 [01:44:09]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [01:44:09]wFMCommunicate OK [01:44:09]SAM_PROTO_GetShiftState done [01:44:09]FM_GetShiftState done [01:44:09]req_shift_opened done [01:44:09]requested_item shift.open_date is exist - process it [01:44:09]req_shift_open_date [01:44:09]req_shift_open_date done [01:44:09]produce_requested_data done [01:44:09]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22190,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391} [01:44:09]process_action_free close_receipt [01:44:09]json_value_free [01:44:09]json_value_free done [01:44:09]process_json_proto returns [01:44:09]Send response to host [01:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22190,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391}}} [01:44:09]free response buf [01:44:09]execute_script done [01:44:09]execute_script returns [01:44:09]free content buf [01:44:09]Sock 7.Close socket [01:44:09]Sock 7.Thread stoped [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]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:35]accept exits with 9 [01:50:35]New connection [01:50:35]New thread 3067039076 created [01:50:35]Thread 3067182436 joined [01:50:35]Waiting for new connection... [01:50:35] Sock 9.Parse request [01:50:35]Sock 9.Check first char [01:50:35]Sock 9.First char is OK [01:50:35]request: POST /json_proto HTTP/1.0 [01:50:35]Method: POST [01:50:35]URL: /json_proto [01:50:35]Method is POST - this is cgi request [01:50:35]url: /json_proto [01:50:35]query_string will be loaded in cgi processing [01:50:35]execute_cgi json_proto POST (null) [01:50:35]execute_cgi path=json_proto method=POST [01:50:35]POST find Content-Length [01:50:35]Host: 172.17.43.4:8080 [01:50:35]Content-Length: 1945 [01:50:35]Content-Type: application/json [01:50:35] [01:50:35]POST finish read [01:50:35]Found Content-Length = 1945 [01:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51456", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 995.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:35]execute_script... [01:50:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51456", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 4.000, "sum" : 600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160013", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 4.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 995.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:35]POST & json_proto [01:50:35]process_json_proto [01:50:35]json parsed OK: [01:50:35]protocol is kg_v1.0 [01:50:35]action value=close_receipt [01:50:35]process_action close_receipt [01:50:35]cmd_close_receipt [01:50:35]MH_GetDate [01:50:35]Write to MH i2c: F0 00 00 C5 1A CE [01:50:35]Write i2c OK [01:50:35]MH_I2C_Read... [01:50:35]Read from MH i2c: F0 [01:50:35]MH_I2C_Read... [01:50:35]Read from MH i2c: F0 09 00 [01:50:35]MH_I2C_Read... [01:50:35]Read from MH i2c: F0 09 00 C5 1A 00 70 C9 F0 66 02 BF CF 66 5C [01:50:35]GetLastDocTimeStamp 1727055850 [01:50:35]current date 1727056240 [01:50:35]FM_GetShiftState [01:50:35]SAM_PROTO_GetShiftState [01:50:35]wFMCommunicate request_size=4 [01:50:35]MH_SAM_APDU [01:50:35]CAPDU: 80 13 01 00 [01:50:35]Write to MH i2c: E2 08 00 C6 1A 80 13 01 00 00 00 00 00 5D [01:50:35]Write i2c OK [01:50:35]MH_I2C_Read... [01:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:35]Read from MH i2c: E2 [01:50:35]MH_I2C_Read... [01:50:35]Read from MH i2c: E2 0E 00 [01:50:35]MH_I2C_Read... [01:50:35]Read from MH i2c: E2 0E 00 C6 1A 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 08 [01:50:35]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [01:50:35]wFMCommunicate OK [01:50:35]SAM_PROTO_GetShiftState done [01:50:35]FM_GetShiftState done [01:50:35]opened in 1727050391 [01:50:35]opened+sec_in_day 1727136791 [01:50:35]quantity*price = 60000 [01:50:35]sum+1 = 60001 [01:50:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160013 Снек Курут индивидуальный 4.000 * 15.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329000476 Сух Кириешки шашлык 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46231512 Mentos ПФ Виноград 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 995.00 НСП 1% : 8.81 НДС 12% : 105.66 Наличными: 995.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 4 23.09.2024 01:50 Смена: 229 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 ФМ: 0000000000959358 ФД: 22191 ФПД: 275080276289542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T015040&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22191&fm=275080276289542&tin=02508201610067®Number=0000000000146243&sum=99500 0 [01:50:36]StoreToDocumentArchive [01:50:36]shift 229 fd 22191 [01:50:36]save to /storage/0229/doc_00022191 [01:50:36]save last doc name /storage/0229/doc_00022191 to /storage/kkm_last_doc_name [01:50:36]save OK [01:50:36]Clear old archive folders... [01:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=814 [01:50:36]tlvbuf is 0027A4C0 [01:50:36]SAM_PROTO_ClearQueue [01:50:36]wFMCommunicate request_size=4 [01:50:36]MH_SAM_APDU [01:50:36]CAPDU: 80 09 00 00 [01:50:36]Write to MH i2c: E2 08 00 D3 1A 80 09 00 00 00 00 00 00 5F [01:50:36]Write i2c OK [01:50:36]MH_I2C_Read... [01:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:36]Read from MH i2c: E2 [01:50:36]MH_I2C_Read... [01:50:36]Read from MH i2c: E2 03 00 [01:50:36]MH_I2C_Read... [01:50:36]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [01:50:36]RAPDU: 90 00 [01:50:36]wFMCommunicate OK [01:50:36]SAM_PROTO_ClearQueue done [01:50:36]KKMCreateOFDPacket [01:50:36]OFDProtocolAddRootSTLVToBuf [01:50:36]FM_MakeSignedData [01:50:36]FM_MakeSignedData [01:50:36]SAM_PROTO_SignData [01:50:36]wFMCommunicate request_size=4 [01:50:36]MH_SAM_APDU [01:50:36]CAPDU: 80 0D 01 02 [01:50:36]Write to MH i2c: E2 08 00 D4 1A 80 0D 01 02 00 00 00 00 67 [01:50:36]Write i2c OK [01:50:36]MH_I2C_Read... [01:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:37]Read from MH i2c: E2 [01:50:37]MH_I2C_Read... [01:50:37]Read from MH i2c: E2 03 00 [01:50:37]MH_I2C_Read... [01:50:37]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [01:50:37]RAPDU: 90 00 [01:50:37]wFMCommunicate OK [01:50:37]wFMCommunicate request_size=255 [01:50:37]MH_SAM_APDU [01:50:37]CAPDU: 80 0D 02 02 FA 03 00 2E 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 [01:50:37]Write to MH i2c: E2 02 01 D5 1A 80 0D 02 02 FA 00 03 00 2E 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 00 00 FE [01:50:37]Write i2c OK [01:50:37]MH_I2C_Read... [01:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:37]Read from MH i2c: E2 [01:50:37]MH_I2C_Read... [01:50:37]Read from MH i2c: E2 03 00 [01:50:37]MH_I2C_Read... [01:50:37]Read from MH i2c: E2 03 00 D5 1A 00 90 00 63 [01:50:37]RAPDU: 90 00 [01:50:37]wFMCommunicate OK [01:50:37]wFMCommunicate request_size=255 [01:50:37]MH_SAM_APDU [01:50:37]CAPDU: 80 0D 02 02 FA B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 [01:50:37]Write to MH i2c: E2 02 01 D6 1A 80 0D 02 02 FA 00 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 00 00 16 [01:50:37]Write i2c OK [01:50:37]MH_I2C_Read... [01:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:37]Read from MH i2c: E2 [01:50:37]MH_I2C_Read... [01:50:37]Read from MH i2c: E2 03 00 [01:50:37]MH_I2C_Read... [01:50:37]Read from MH i2c: E2 03 00 D6 1A 00 90 00 64 [01:50:37]RAPDU: 90 00 [01:50:37]wFMCommunicate OK [01:50:37]wFMCommunicate request_size=255 [01:50:37]MH_SAM_APDU [01:50:37]CAPDU: 80 0D 02 02 FA B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 AC 84 01 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 70 C9 F0 66 0E 04 04 [01:50:37]Write to MH i2c: E2 02 01 D7 1A 80 0D 02 02 FA 00 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 AC 84 01 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 70 C9 F0 66 0E 04 04 00 00 4A [01:50:37]Write i2c OK [01:50:37]MH_I2C_Read... [01:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:38]Read from MH i2c: E2 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 03 00 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 03 00 D7 1A 00 90 00 65 [01:50:38]RAPDU: 90 00 [01:50:38]wFMCommunicate OK [01:50:38]wFMCommunicate request_size=73 [01:50:38]MH_SAM_APDU [01:50:38]CAPDU: 80 0D 02 02 44 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AF 56 00 00 35 04 06 00 FA 2F 1E 27 28 06 [01:50:38]Write to MH i2c: E2 4C 00 D8 1A 80 0D 02 02 44 00 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AF 56 00 00 35 04 06 00 FA 2F 1E 27 28 06 00 00 11 [01:50:38]Write i2c OK [01:50:38]MH_I2C_Read... [01:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:38]Read from MH i2c: E2 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 03 00 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 03 00 D8 1A 00 90 00 66 [01:50:38]RAPDU: 90 00 [01:50:38]wFMCommunicate OK [01:50:38]wFMCommunicate request_size=4 [01:50:38]MH_SAM_APDU [01:50:38]CAPDU: 80 0D 03 02 [01:50:38]Write to MH i2c: E2 08 00 D9 1A 80 0D 03 02 00 00 00 00 6E [01:50:38]Write i2c OK [01:50:38]MH_I2C_Read... [01:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:38]Read from MH i2c: E2 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 0B 00 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 0B 00 D9 1A 00 F9 5A D3 B1 E7 83 6F 98 90 00 B7 [01:50:38]RAPDU: F9 5A D3 B1 E7 83 6F 98 90 00 [01:50:38]wFMCommunicate OK [01:50:38]SAM_PROTO_SignData done [01:50:38]FM_MakeSignedData done [01:50:38]CreateOFDProtocolMessage [01:50:38]wFMCommunicate request_size=4 [01:50:38]MH_SAM_APDU [01:50:38]CAPDU: 80 11 00 00 [01:50:38]Write to MH i2c: E2 08 00 DA 1A 80 11 00 00 00 00 00 00 6E [01:50:38]Write i2c OK [01:50:38]MH_I2C_Read... [01:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:38]Read from MH i2c: E2 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 17 00 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: E2 17 00 DA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 C8 [01:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [01:50:38]wFMCommunicate OK [01:50:38]CreateOFDProtocolMessage done [01:50:38]OFDSenderStorePacket 22191 [01:50:38]StoreOFDPacket docnum=22191 [01:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 42 03 00 00 52 91 3A 03 43 BB 5A 03 01 00 03 00 2E 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 AC 84 01 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 70 C9 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AF 56 00 00 35 04 06 00 FA 2F 1E 27 28 06 F9 5A D3 B1 E7 83 6F 98 [01:50:38]CheckFolder [01:50:38]dirname=/storage/ofd_packets [01:50:38]CheckFolder done [01:50:38]ProducePacketName [01:50:38]name=ofd_packets/00022191 [01:50:38]NVStorageSaveData ofd_packets/00022191 [01:50:38]File name is /storage/ofd_packets/00022191 [01:50:38]Write 864 bytes [01:50:38]NVStorageSaveData done [01:50:38]OFDSenderStorePacket done [01:50:38]KKMCreateOFDPacket done [01:50:38]NVStorageSaveData kkm_last_timestamp [01:50:38]File name is /storage/kkm_last_timestamp [01:50:38]Write 4 bytes [01:50:38]NVStorageSaveData done [01:50:38]ExternCall_PrintAddStr [01:50:38]wPrintStart [01:50:38]Write to MH i2c: 01 00 00 DB 1A F5 [01:50:38]Write i2c OK [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: 01 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: 01 07 00 [01:50:38]MH_I2C_Read... [01:50:38]Read from MH i2c: 01 07 00 DB 1A 00 00 00 00 00 FF 0F 0A [01:50:38]RasterBufferAndPrint [01:50:38]line Счет N : (3)51456 [01:50:38]line ИНН: 02508201610067 [01:50:38]line Контрольно-Кассовый Чек [01:50:38]line ПРОДАЖА [01:50:38]line Товар: 4600721021627 [01:50:38]line Пиво БАД 0,5л ст [01:50:38]line 4.000 * 150.00 [01:50:38]line = 600.00 [01:50:38]line НДС 12% НСП 1% [01:50:38]line > о реализуемом товаре [01:50:38]line Товар: 4700000160013 [01:50:38]line Снек Курут индивидуальный [01:50:38]line 4.000 * 15.00 [01:50:38]line = 60.00 [01:50:38]line НДС 12% НСП 1% [01:50:38]line > о реализуемом товаре [01:50:38]line Товар: 46230614 [01:50:38]line Сигареты Richmond Red Edition [01:50:38]line 1.000 * 154.00 [01:50:38]line = 154.00 [01:50:38]line НДС 12% НСП 1% [01:50:38]line > о реализуемом товаре [01:50:38]line Товар: 4640030091645 [01:50:38]line Сигареты ESSE Exchange M [01:50:38]line 1.000 * 150.00 [01:50:38]line = 150.00 [01:50:38]line НДС 12% НСП 1% [01:50:38]line > о реализуемом товаре [01:50:38]line Товар: 4690329000476 [01:50:38]line Сух Кириешки шашлык 40г [01:50:38]line 1.000 * 21.00 [01:50:38]line = 21.00 [01:50:38]line НДС 12% НСП 1% [01:50:38]line > о реализуемом товаре [01:50:38]line Товар: 46231512 [01:50:38]line Mentos ПФ Виноград 6*100*2г [01:50:38]line 1.000 * 10.00 [01:50:38]line = 10.00 [01:50:38]line НДС 12% НСП 1% [01:50:38]line > о реализуемом товаре [01:50:38]line ИТОГО: 995.00 [01:50:38]line НСП 1% : 8.81 [01:50:38]line НДС 12% : 105.66 [01:50:38]line Наличными: 995.00 [01:50:38]line Безнал.: 0.00 [01:50:38]line Место: АЗС № 88 "Партнер Нефть" [01:50:38]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [01:50:38]line СНО: Общий режим [01:50:38]line Чек 4 23.09.2024 01:50 [01:50:38]line Смена: 229 ФФД: 1.0 [01:50:38]line ЗНМ: 0300000061 [01:50:38]line РНМ: 0000000000146243 [01:50:38]line Версия ККМ: v1.0 [01:50:38]OFD Sender: Processing packet 22191 [packets to send 23, broken 22] [01:50:38]ProducePacketName [01:50:38]name=ofd_packets/00022191 [01:50:38]OFD Sender: To server: pG, [01:50:38]CommunicateWithHost lk.salyk.kg:30040 [01:50:38]ConnectInit lk.salyk.kg [01:50:38]line ФМ: 0000000000959358 [01:50:38]line ФД: 22191 [01:50:38]line ФПД: 275080276289542 [01:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T015040&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22191&fm=275080276289542&tin=02508201610067®Number=0000000000146243&sum=99500 [01:50:38]line 0 [01:50:38]written 0, free lines is 4095 [01:50:39]Connected sock=11 [01:50:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 42 03 00 00 52 91 3A 03 43 BB 5A 03 01 00 03 00 2E 03 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 60 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 31 33 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 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 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 29 00 00 00 00 07 04 06 00 AC 84 01 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 70 C9 F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AF 56 00 00 35 04 06 00 FA 2F 1E 27 28 06 F9 5A D3 B1 E7 83 6F 98 [01:50:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 85 F0 47 00 9B 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 AF 56 00 00 F4 03 04 00 9B 73 F0 66 B6 04 01 00 00 69 B4 E1 82 00 7F 12 26 [01:50:39]CommunicateWithHost err = 0 [01:50:39]CheckOFDResponse [01:50:39]1017 (14) - 77093643461234 [01:50:39]1041 (16) - 0000000000959358 [01:50:39]1040 (4) - 22191 [01:50:39]1012 (4) - 22.09.2024 19:44 [01:50:39]1206 (1) - 0 [01:50:39]OFD Sender: Remove packet 22191 [01:50:39]ProducePacketName [01:50:39]name=ofd_packets/00022191 [01:50:39]NVStorageDeleteData [01:50:39]Write to MH i2c: 01 00 00 22 1B 3D [01:50:39]Write i2c OK [01:50:39]MH_I2C_Read... [01:50:39]Read from MH i2c: 01 [01:50:39]MH_I2C_Read... [01:50:39]Read from MH i2c: 01 07 00 [01:50:39]MH_I2C_Read... [01:50:39]Read from MH i2c: 01 07 00 22 1B 00 00 00 00 00 98 0B E7 [01:50:39]RasterBufferAndPrint [01:50:39]line [01:50:39]line [01:50:39]line [01:50:39]line [01:50:39]line [01:50:39]written 0, free lines is 2980 [01:50:39]MH_Cut [01:50:39]Write to MH i2c: D1 01 00 29 1B 01 16 [01:50:39]Write i2c OK [01:50:39]MH_I2C_Read... [01:50:39]Read from MH i2c: D1 [01:50:39]MH_I2C_Read... [01:50:39]Read from MH i2c: D1 01 00 [01:50:39]MH_I2C_Read... [01:50:39]Read from MH i2c: D1 01 00 29 1B 00 15 [01:50:39]Write to MH i2c: 01 00 00 2A 1B 45 [01:50:39]Write i2c OK [01:50:39]MH_I2C_Read... [01:50:39]OFD Sender: No OFD packet to send [01:50:40]*** Cut start [01:50:40]*** Partial cut [01:50:40]*** CUTSNS_PIN = 1 [01:50:40]*** CUTSNS_PIN = 0 [01:50:40]*** Brake cut motor [01:50:40]Read from MH i2c: 01 [01:50:40]MH_I2C_Read... [01:50:40]*** Stop cut motor [01:50:41]*** Cut end [01:50:41]Read from MH i2c: 01 07 00 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [01:50:41]process_action close_receipt done [01:50:41]requested_data is exist [01:50:41]produce_requested_data [01:50:41]requested_item fm.sn is exist - process it [01:50:41]wFMCommunicate request_size=4 [01:50:41]MH_SAM_APDU [01:50:41]CAPDU: 80 11 00 00 [01:50:41]Write to MH i2c: E2 08 00 2B 1B 80 11 00 00 00 00 00 00 C0 [01:50:41]Write i2c OK [01:50:41]MH_I2C_Read... [01:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:41]Read from MH i2c: E2 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: E2 17 00 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: E2 17 00 2B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 1A [01:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [01:50:41]wFMCommunicate OK [01:50:41]requested_item fd.num is exist - process it [01:50:41]SAM_PROTO_GetFieldsCounters [01:50:41]wFMCommunicate request_size=4 [01:50:41]MH_SAM_APDU [01:50:41]CAPDU: 80 13 00 00 [01:50:41]Write to MH i2c: E2 08 00 2C 1B 80 13 00 00 00 00 00 00 C3 [01:50:41]Write i2c OK [01:50:41]MH_I2C_Read... [01:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:41]Read from MH i2c: E2 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: E2 62 00 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: E2 62 00 2C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AF 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [01:50:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 AF 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:41]wFMCommunicate OK [01:50:41]SAM_PROTO_GetFieldsCounters done [01:50:41]requested_item shift.num is exist - process it [01:50:41]requested_item shift.opened is exist - process it [01:50:41]req_shift_opened [01:50:41]FM_GetShiftState [01:50:41]SAM_PROTO_GetShiftState [01:50:41]wFMCommunicate request_size=4 [01:50:41]MH_SAM_APDU [01:50:41]CAPDU: 80 13 01 00 [01:50:41]Write to MH i2c: E2 08 00 2D 1B 80 13 01 00 00 00 00 00 C5 [01:50:41]Write i2c OK [01:50:41]MH_I2C_Read... [01:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:41]Read from MH i2c: E2 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: E2 0E 00 [01:50:41]MH_I2C_Read... [01:50:41]Read from MH i2c: E2 0E 00 2D 1B 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 70 [01:50:41]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [01:50:41]wFMCommunicate OK [01:50:41]SAM_PROTO_GetShiftState done [01:50:41]FM_GetShiftState done [01:50:41]req_shift_opened done [01:50:41]requested_item shift.open_date is exist - process it [01:50:41]req_shift_open_date [01:50:41]req_shift_open_date done [01:50:41]produce_requested_data done [01:50:41]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22191,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391} [01:50:41]process_action_free close_receipt [01:50:41]json_value_free [01:50:41]json_value_free done [01:50:41]process_json_proto returns [01:50:41]Send response to host [01:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22191,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391}}} [01:50:41]free response buf [01:50:41]execute_script done [01:50:41]execute_script returns [01:50:41]free content buf [01:50:41]Sock 9.Close socket [01:50:41]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]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:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:02]accept exits with 7 [02:18:02]New connection [02:18:02]New thread 3067182436 created [02:18:02]Thread 3067039076 joined [02:18:02]Waiting for new connection... [02:18:02] Sock 7.Parse request [02:18:02]Sock 7.Check first char [02:18:02]Sock 7.First char is OK [02:18:02]request: POST /json_proto HTTP/1.0 [02:18:02]Method: POST [02:18:02]URL: /json_proto [02:18:02]Method is POST - this is cgi request [02:18:02]url: /json_proto [02:18:02]query_string will be loaded in cgi processing [02:18:02]execute_cgi json_proto POST (null) [02:18:02]execute_cgi path=json_proto method=POST [02:18:02]POST find Content-Length [02:18:02]Host: 172.17.43.4:8080 [02:18:02]Content-Length: 1062 [02:18:02]Content-Type: application/json [02:18:02] [02:18:02]POST finish read [02:18:02]Found Content-Length = 1062 [02:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51457", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 0.00, "quantity" : 2.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:02]execute_script... [02:18: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)51457", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 0.00, "quantity" : 1.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 0.00, "quantity" : 2.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 0.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:02]POST & json_proto [02:18:02]process_json_proto [02:18:02]json parsed OK: [02:18:02]protocol is kg_v1.0 [02:18:02]action value=close_receipt [02:18:02]process_action close_receipt [02:18:02]cmd_close_receipt [02:18:02]MH_GetDate [02:18:02]Write to MH i2c: F0 00 00 2E 1B 38 [02:18:02]Write i2c OK [02:18:02]MH_I2C_Read... [02:18:02]Read from MH i2c: F0 [02:18:02]MH_I2C_Read... [02:18:02]Read from MH i2c: F0 09 00 [02:18:02]MH_I2C_Read... [02:18:02]Read from MH i2c: F0 09 00 2E 1B 00 DF CF F0 66 02 BF CF 66 3B [02:18:02]GetLastDocTimeStamp 1727056240 [02:18:02]current date 1727057887 [02:18:02]FM_GetShiftState [02:18:02]SAM_PROTO_GetShiftState [02:18:02]wFMCommunicate request_size=4 [02:18:02]MH_SAM_APDU [02:18:02]CAPDU: 80 13 01 00 [02:18:02]Write to MH i2c: E2 08 00 2F 1B 80 13 01 00 00 00 00 00 C7 [02:18:02]Write i2c OK [02:18:02]MH_I2C_Read... [02:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:02]Read from MH i2c: E2 [02:18:02]MH_I2C_Read... [02:18:02]Read from MH i2c: E2 0E 00 [02:18:02]MH_I2C_Read... [02:18:02]Read from MH i2c: E2 0E 00 2F 1B 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 72 [02:18:02]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [02:18:02]wFMCommunicate OK [02:18:02]SAM_PROTO_GetShiftState done [02:18:02]FM_GetShiftState done [02:18:02]opened in 1727050391 [02:18:02]opened+sec_in_day 1727136791 [02:18:02]quantity*price = 0 [02:18:02]sum+1 = 1 [02:18:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 2.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 88 "Партнер Нефть" Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 СНО: Общий режим Чек 5 23.09.2024 02:18 Смена: 229 ФФД: 1.0 ЗНМ: 0300000061 РНМ: 0000000000146243 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000959358 ФД: 22192 ФПД: 154111673946969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T021807&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22192&fm=154111673946969&tin=02508201610067®Number=0000000000146243&sum=0 0 [02:18:03]StoreToDocumentArchive [02:18:03]shift 229 fd 22192 [02:18:03]save to /storage/0229/doc_00022192 [02:18:03]save last doc name /storage/0229/doc_00022192 to /storage/kkm_last_doc_name [02:18:03]save OK [02:18:03]Clear old archive folders... [02:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=392 [02:18:03]tlvbuf is 002A1180 [02:18:03]SAM_PROTO_ClearQueue [02:18:03]wFMCommunicate request_size=4 [02:18:03]MH_SAM_APDU [02:18:03]CAPDU: 80 09 00 00 [02:18:03]Write to MH i2c: E2 08 00 3C 1B 80 09 00 00 00 00 00 00 C9 [02:18:03]Write i2c OK [02:18:03]MH_I2C_Read... [02:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:18:03]Read from MH i2c: E2 [02:18:03]MH_I2C_Read... [02:18:03]Read from MH i2c: E2 03 00 [02:18:03]MH_I2C_Read... [02:18:03]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [02:18:03]RAPDU: 90 00 [02:18:03]wFMCommunicate OK [02:18:03]SAM_PROTO_ClearQueue done [02:18:03]KKMCreateOFDPacket [02:18:03]OFDProtocolAddRootSTLVToBuf [02:18:03]FM_MakeSignedData [02:18:03]FM_MakeSignedData [02:18:03]SAM_PROTO_SignData [02:18:03]wFMCommunicate request_size=4 [02:18:03]MH_SAM_APDU [02:18:03]CAPDU: 80 0D 01 02 [02:18:03]Write to MH i2c: E2 08 00 3D 1B 80 0D 01 02 00 00 00 00 D1 [02:18:03]Write i2c OK [02:18:03]MH_I2C_Read... [02:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:18:03]Read from MH i2c: E2 [02:18:03]MH_I2C_Read... [02:18:03]Read from MH i2c: E2 03 00 [02:18:03]MH_I2C_Read... [02:18:03]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [02:18:03]RAPDU: 90 00 [02:18:03]wFMCommunicate OK [02:18:03]wFMCommunicate request_size=255 [02:18:03]MH_SAM_APDU [02:18:03]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [02:18:03]Write to MH i2c: E2 02 01 3E 1B 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 D4 [02:18:03]Write i2c OK [02:18:03]MH_I2C_Read... [02:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:04]Read from MH i2c: E2 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 03 00 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [02:18:04]RAPDU: 90 00 [02:18:04]wFMCommunicate OK [02:18:04]wFMCommunicate request_size=151 [02:18:04]MH_SAM_APDU [02:18:04]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DF CF F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 B0 56 00 00 35 04 06 00 8C 29 EB 94 D3 59 [02:18:04]Write to MH i2c: E2 9A 00 3F 1B 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DF CF F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 B0 56 00 00 35 04 06 00 8C 29 EB 94 D3 59 00 00 80 [02:18:04]Write i2c OK [02:18:04]MH_I2C_Read... [02:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:04]Read from MH i2c: E2 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 03 00 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [02:18:04]RAPDU: 90 00 [02:18:04]wFMCommunicate OK [02:18:04]wFMCommunicate request_size=4 [02:18:04]MH_SAM_APDU [02:18:04]CAPDU: 80 0D 03 02 [02:18:04]Write to MH i2c: E2 08 00 40 1B 80 0D 03 02 00 00 00 00 D6 [02:18:04]Write i2c OK [02:18:04]MH_I2C_Read... [02:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:18:04]Read from MH i2c: E2 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 0B 00 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 0B 00 40 1B 00 95 F6 10 5A 9C EC 55 E6 90 00 8F [02:18:04]RAPDU: 95 F6 10 5A 9C EC 55 E6 90 00 [02:18:04]wFMCommunicate OK [02:18:04]SAM_PROTO_SignData done [02:18:04]FM_MakeSignedData done [02:18:04]CreateOFDProtocolMessage [02:18:04]wFMCommunicate request_size=4 [02:18:04]MH_SAM_APDU [02:18:04]CAPDU: 80 11 00 00 [02:18:04]Write to MH i2c: E2 08 00 41 1B 80 11 00 00 00 00 00 00 D6 [02:18:04]Write i2c OK [02:18:04]MH_I2C_Read... [02:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:04]Read from MH i2c: E2 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 17 00 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: E2 17 00 41 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 30 [02:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [02:18:04]wFMCommunicate OK [02:18:04]CreateOFDProtocolMessage done [02:18:04]OFDSenderStorePacket 22192 [02:18:04]StoreOFDPacket docnum=22192 [02:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9C 01 00 00 5A 3E 94 01 43 70 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DF CF F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 B0 56 00 00 35 04 06 00 8C 29 EB 94 D3 59 95 F6 10 5A 9C EC 55 E6 [02:18:04]CheckFolder [02:18:04]dirname=/storage/ofd_packets [02:18:04]CheckFolder done [02:18:04]ProducePacketName [02:18:04]name=ofd_packets/00022192 [02:18:04]NVStorageSaveData ofd_packets/00022192 [02:18:04]File name is /storage/ofd_packets/00022192 [02:18:04]Write 442 bytes [02:18:04]NVStorageSaveData done [02:18:04]OFDSenderStorePacket done [02:18:04]KKMCreateOFDPacket done [02:18:04]NVStorageSaveData kkm_last_timestamp [02:18:04]File name is /storage/kkm_last_timestamp [02:18:04]Write 4 bytes [02:18:04]NVStorageSaveData done [02:18:04]ExternCall_PrintAddStr [02:18:04]wPrintStart [02:18:04]Write to MH i2c: 01 00 00 42 1B 5D [02:18:04]OFD Sender: Processing packet 22192 [packets to send 23, broken 22] [02:18:04]ProducePacketName [02:18:04]name=ofd_packets/00022192 [02:18:04]OFD Sender: To server: pG, [02:18:04]Write i2c OK [02:18:04]CommunicateWithHost lk.salyk.kg:30040 [02:18:04]MH_I2C_Read... [02:18:04]ConnectInit lk.salyk.kg [02:18:04]Read from MH i2c: 01 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: 01 07 00 [02:18:04]MH_I2C_Read... [02:18:04]Read from MH i2c: 01 07 00 42 1B 00 00 00 00 00 FF 0F 72 [02:18:04]RasterBufferAndPrint [02:18:04]line Счет N : (3)51457 [02:18:04]line ИНН: 02508201610067 [02:18:04]line Контрольно-Кассовый Чек [02:18:04]line ПРОДАЖА [02:18:04]line Товар: 4700002083266 [02:18:04]line Водка Атилла Гунн 0,5л [02:18:04]line 1.000 * 0.00 [02:18:04]line = 0.00 [02:18:04]line НДС 12% НСП 1% [02:18:04]line > о реализуемом товаре [02:18:04]line Товар: 4700000480357 [02:18:04]line Пиво шахтерское 1л ПЭТ [02:18:04]line 2.000 * 0.00 [02:18:04]line = 0.00 [02:18:04]line НДС 12% НСП 1% [02:18:04]line > о реализуемом товаре [02:18:04]line ИТОГО: 0.00 [02:18:04]line НСП 1% : 0.00 [02:18:04]line НДС 12% : 0.00 [02:18:04]line Наличными: 0.00 [02:18:04]line Безнал.: 0.00 [02:18:04]line Место: АЗС № 88 "Партнер Нефть" [02:18:04]line Адрес: 720001, с. Кашкар-Кыштак, Кара-Сууйский район 40.648511,72.845547 [02:18:04]line СНО: Общий режим [02:18:04]line Чек 5 23.09.2024 02:18 [02:18:04]line Смена: 229 ФФД: 1.0 [02:18:04]line ЗНМ: 0300000061 [02:18:04]line РНМ: 0000000000146243 [02:18:04]line Версия ККМ: v1.0 [02:18:04]line Платежная система: Mbank [02:18:04]line ФМ: 0000000000959358 [02:18:04]line ФД: 22192 [02:18:04]line ФПД: 154111673946969 [02:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240923T021807&type=1&operation_type=1&fn_number=0000000000959358&fd_number=22192&fm=154111673946969&tin=02508201610067®Number=0000000000146243&sum=0 [02:18:04]line 0 [02:18:04]written 0, free lines is 4095 [02:18:04]Connected sock=11 [02:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 9C 01 00 00 5A 3E 94 01 43 70 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DF CF F0 66 0E 04 04 00 E5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 B0 56 00 00 35 04 06 00 8C 29 EB 94 D3 59 95 F6 10 5A 9C EC 55 E6 [02:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 4F 00 00 00 83 B2 47 00 E4 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 10 04 04 00 B0 56 00 00 F4 03 04 00 09 7A F0 66 B6 04 01 00 00 5F A2 BD 6C 5F CA E9 25 [02:18:05]CommunicateWithHost err = 0 [02:18:05]CheckOFDResponse [02:18:05]1017 (14) - 77093643461234 [02:18:05]1041 (16) - 0000000000959358 [02:18:05]1040 (4) - 22192 [02:18:05]1012 (4) - 22.09.2024 20:11 [02:18:05]1206 (1) - 0 [02:18:05]OFD Sender: Remove packet 22192 [02:18:05]ProducePacketName [02:18:05]name=ofd_packets/00022192 [02:18:05]NVStorageDeleteData [02:18:05]Write to MH i2c: 01 00 00 71 1B 8C [02:18:05]Write i2c OK [02:18:05]MH_I2C_Read... [02:18:05]Read from MH i2c: 01 [02:18:05]MH_I2C_Read... [02:18:05]Read from MH i2c: 01 07 00 [02:18:05]MH_I2C_Read... [02:18:05]Read from MH i2c: 01 07 00 71 1B 00 00 00 00 00 E0 0C 7F [02:18:05]RasterBufferAndPrint [02:18:05]line [02:18:05]line [02:18:05]line [02:18:05]line [02:18:05]line [02:18:05]written 0, free lines is 3305 [02:18:05]MH_Cut [02:18:05]Write to MH i2c: D1 01 00 78 1B 01 65 [02:18:05]Write i2c OK [02:18:05]MH_I2C_Read... [02:18:05]Read from MH i2c: D1 [02:18:05]MH_I2C_Read... [02:18:05]Read from MH i2c: D1 01 00 [02:18:05]MH_I2C_Read... [02:18:05]Read from MH i2c: D1 01 00 78 1B 00 64 [02:18:05]Write to MH i2c: 01 00 00 79 1B 94 [02:18:05]Write i2c OK [02:18:05]MH_I2C_Read... [02:18:05]OFD Sender: No OFD packet to send [02:18:06]*** Cut start [02:18:06]*** Partial cut [02:18:06]*** CUTSNS_PIN = 1 [02:18:06]*** CUTSNS_PIN = 0 [02:18:06]*** Brake cut motor [02:18:06]Read from MH i2c: 01 [02:18:06]MH_I2C_Read... [02:18:06]*** Stop cut motor [02:18:06]*** Cut end [02:18:06]Read from MH i2c: 01 07 00 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [02:18:06]process_action close_receipt done [02:18:06]requested_data is exist [02:18:06]produce_requested_data [02:18:06]requested_item fm.sn is exist - process it [02:18:06]wFMCommunicate request_size=4 [02:18:06]MH_SAM_APDU [02:18:06]CAPDU: 80 11 00 00 [02:18:06]Write to MH i2c: E2 08 00 7A 1B 80 11 00 00 00 00 00 00 0F [02:18:06]Write i2c OK [02:18:06]MH_I2C_Read... [02:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:06]Read from MH i2c: E2 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: E2 17 00 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: E2 17 00 7A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 69 [02:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 90 00 [02:18:06]wFMCommunicate OK [02:18:06]requested_item fd.num is exist - process it [02:18:06]SAM_PROTO_GetFieldsCounters [02:18:06]wFMCommunicate request_size=4 [02:18:06]MH_SAM_APDU [02:18:06]CAPDU: 80 13 00 00 [02:18:06]Write to MH i2c: E2 08 00 7B 1B 80 13 00 00 00 00 00 00 12 [02:18:06]Write i2c OK [02:18:06]MH_I2C_Read... [02:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:18:06]Read from MH i2c: E2 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: E2 62 00 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: E2 62 00 7B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 B0 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [02:18:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 35 39 33 35 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 34 36 32 34 33 10 04 04 00 B0 56 00 00 0E 04 04 00 E5 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:18:06]wFMCommunicate OK [02:18:06]SAM_PROTO_GetFieldsCounters done [02:18:06]requested_item shift.num is exist - process it [02:18:06]requested_item shift.opened is exist - process it [02:18:06]req_shift_opened [02:18:06]FM_GetShiftState [02:18:06]SAM_PROTO_GetShiftState [02:18:06]wFMCommunicate request_size=4 [02:18:06]MH_SAM_APDU [02:18:06]CAPDU: 80 13 01 00 [02:18:06]Write to MH i2c: E2 08 00 7C 1B 80 13 01 00 00 00 00 00 14 [02:18:06]Write i2c OK [02:18:06]MH_I2C_Read... [02:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:06]Read from MH i2c: E2 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: E2 0E 00 [02:18:06]MH_I2C_Read... [02:18:06]Read from MH i2c: E2 0E 00 7C 1B 00 09 00 01 97 B2 F0 66 00 00 00 00 90 00 BF [02:18:06]RAPDU: 09 00 01 97 B2 F0 66 00 00 00 00 90 00 [02:18:06]wFMCommunicate OK [02:18:06]SAM_PROTO_GetShiftState done [02:18:06]FM_GetShiftState done [02:18:06]req_shift_opened done [02:18:06]requested_item shift.open_date is exist - process it [02:18:06]req_shift_open_date [02:18:06]req_shift_open_date done [02:18:06]produce_requested_data done [02:18:06]produce_requested_data return {"fm.sn":"0000000000959358","fd.num":22192,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391} [02:18:06]process_action_free close_receipt [02:18:06]json_value_free [02:18:06]json_value_free done [02:18:06]process_json_proto returns [02:18:06]Send response to host [02:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000959358","fd.num":22192,"shift.num":229,"shift.opened":1,"shift.open_date":1727050391}}} [02:18:06]free response buf [02:18:06]execute_script done [02:18:06]execute_script returns [02:18:06]free content buf [02:18:06]Sock 7.Close socket [02:18:06]Sock 7.Thread stoped [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]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:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]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